/* Agora · site styles. Fonts: Newsreader and IBM Plex Sans (SIL OFL 1.1, see /assets/fonts/LICENSE-*).
 * Contrast (WCAG 2.x, measured): ink #1a1a1a on paper #fbf8f3 16.4:1 · muted #5b5650 6.9:1 · accent #a63d17 6.0:1,
 * white on accent 6.4:1 · dark: text #f0e9df on #14110f 15.6:1, accent #f09a74 8.6:1, muted #b9b1a6 8.9:1. */
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/newsreader-latin-opsz-normal.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/newsreader-latin-opsz-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/assets/fonts/ibm-plex-sans-latin-wght-normal.woff2') format('woff2'); font-weight: 100 700; font-style: normal; font-display: swap; }

:root {
  --paper: #fbf8f3; --paper-2: #f4efe7; --line: #e4ddd2; --ink: #1a1a1a; --muted: #5b5650;
  --accent: #a63d17; --accent-ink: #ffffff; --accent-soft: #f6e6dd;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wide: 70rem; --narrow: 46rem; --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #14110f; --paper-2: #1d1916; --line: #342e29; --ink: #f0e9df; --muted: #b9b1a6;
          --accent: #f09a74; --accent-ink: #14110f; --accent-soft: #2a1d17; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
code, .scope { font-family: var(--mono); font-size: 0.85em; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: var(--paper); padding: 0.5rem 0.9rem; border-radius: 8px; z-index: 10; }
.skip:focus { left: 0.75rem; }

.site-header { max-width: var(--wide); margin: 0 auto; padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 1.9rem; height: 1.9rem; color: var(--accent); }
.brand span { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; font-size: 0.95rem; }
.site-header nav a { color: var(--ink); text-decoration: none; padding: 0.25rem 0; border-bottom: 1px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.site-header nav .lang { color: var(--muted); }

main { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem 3rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding: 3.5rem 0 4rem; }
.eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; padding: 0.8rem 1.35rem; border-radius: 999px; }
.button:hover { filter: brightness(1.08); }
.text-link { font-weight: 500; }
.hero-mark { display: flex; justify-content: center; }
.hero-mark svg { width: min(100%, 11.5rem); height: auto; color: var(--accent); }

.block { padding: 3.25rem 0; border-top: 1px solid var(--line); }
.block.narrow p { max-width: 46rem; font-size: 1.1rem; }
.section-lead { font-size: 1.12rem; color: var(--muted); max-width: 44rem; margin-bottom: 1.8rem; }
.grid { display: grid; gap: 1.25rem; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem 1.1rem; }
.card h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.7rem; }
.scope { font-size: 0.78rem; font-weight: 500; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 0.15rem 0.6rem; letter-spacing: 0; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: start; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.steps li { display: flex; align-items: center; gap: 1rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.95rem 1.2rem; }
.steps span { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 0.95rem; }

.facts { list-style: none; padding: 0; margin: 1.8rem 0 1.4rem; display: grid; gap: 0.6rem; }
.facts li { position: relative; padding-left: 1.9rem; }
.facts li::before { content: ''; position: absolute; left: 0.2rem; top: 0.55em; width: 0.8rem; height: 0.45rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.contact p { font-size: 1.12rem; }

.legal { max-width: var(--narrow); padding: 2.5rem 0 1rem; }
.legal h1 { margin-bottom: 0.3em; }
.legal h2 { font-size: 1.45rem; margin-top: 2.2rem; scroll-margin-top: 1rem; }
.legal .updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.55rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: 0.97rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); }
.legal th { font-family: var(--sans); font-weight: 600; background: var(--paper-2); }
.legal td:first-child { white-space: nowrap; }

.site-footer { border-top: 1px solid var(--line); max-width: var(--wide); margin: 0 auto; padding: 2rem 1.5rem 2.75rem; color: var(--muted); font-size: 0.9rem; }
.site-footer p { margin: 0 0 0.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; color: var(--ink); font-weight: 500; }
.footer-brand svg { width: 1.2rem; height: 1.2rem; color: var(--accent); }
.site-footer a { color: inherit; }

.notfound { max-width: var(--narrow); padding: 6rem 1.5rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0 3rem; }
  .hero-mark { display: none; }
  .grid.three, .grid.two, .split { grid-template-columns: 1fr; }
  .split { gap: 1.5rem; }
  .legal td:first-child { white-space: normal; }
}
