/* Neutral base styles of the template: a page column, legal text, footer and cookie banner.
   Mobile first at 375 px; on wide screens the page is a centred column up to 640 px.
   A project replaces the colour tokens and adds its own design on top. */

:root {
  --ink: #1b1b1f;
  --ink-2: #44444c;
  --bg: #ffffff;
  --bg-soft: #f3f3f6;
  --line: #e2e2e8;
  --line-2: #d2d2da;
  --accent: #1f5fbf; /* links */
  --radius: 16px;
  --radius-pill: 999px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --side: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.page {
  max-width: 640px;
  margin: 0 auto;
}

/* Fallback page of / (home.html): the first screen until the landing arrives */

.hero {
  padding: 40px var(--side) 24px;
}

.hero__eyebrow {
  margin: 0;
  color: var(--ink-2);
  font-weight: 600;
}

.hero__title {
  margin: 8px 0 0;
  font: 800 28px/1.15 var(--font);
}

.hero__subtitle,
.hero__when,
.hero__host,
.hero__note {
  margin: 12px 0 0;
  color: var(--ink-2);
}

.hero__button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

/* Legal texts (docs/legal) */

.prose {
  padding: 40px var(--side) 8px;
  color: var(--ink-2);
}

.prose h1 {
  margin: 0;
  color: var(--ink);
  font: 800 28px/1.1 var(--font);
}

.prose h2 {
  margin: 32px 0 0;
  color: var(--ink);
  font: 700 19px/1.3 var(--font);
}

.prose p,
.prose ul {
  margin: 12px 0 0;
}

.prose li {
  margin-top: 6px;
}

.prose strong {
  color: var(--ink);
}

.prose td,
.prose th {
  overflow-wrap: anywhere;
}

.prose pre {
  overflow-x: auto;
}

/* Wide tables scroll inside their own box instead of widening the page */

.table-scroll {
  max-width: 100%;
  margin-top: 12px;
  overflow-x: auto;
}

table {
  min-width: 480px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}

th,
td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  font-weight: 600;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  max-width: 640px;
  margin: 24px auto 0;
  padding: 24px var(--side) 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 14px;
}

/* Cookie banner: both buttons look the same (equal prominence) */

.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px var(--side) 22px;
  border-top: 2px solid var(--line-2);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg);
  color: var(--ink);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin: 0;
  font: 700 17px/1.3 var(--font);
}

.cookie-banner p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.cookie-banner__button {
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--ink);
  font: 700 15px/1 var(--font);
  cursor: pointer;
}

.cookie-banner__button:hover {
  background: var(--bg-soft);
}
