:root {
  --ink: #0E1A2B;
  --ink-2: #16253A;
  --accent: #3D5AFE;
  --accent-deep: #2E47D6;
  --paper: #F6F7FB;
  --text: #1B2433;
  --muted: #5B6678;
  --on-ink-muted: #96A5BE;
  --line: #DDE2EC;
  --sans: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; color: var(--ink); padding: .5rem .75rem; z-index: 10; }

/* ---------- Coming soon (index) ---------- */
body.home { background: var(--ink); color: #fff; min-height: 100vh; display: flex; flex-direction: column; }
.home .banner { width: 100%; max-width: 1440px; margin: 0 auto; }
.home main { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 8.3vw, 120px); }
.home h1 { font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 1rem; }
.home .lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--on-ink-muted); max-width: 34rem; margin: 0 0 2rem; }
.button {
  display: inline-block; font: 500 1rem/1 var(--sans); color: #fff; text-decoration: none;
  padding: .9rem 1.4rem; border: 2px solid var(--accent); border-radius: 10px; transition: background-color .15s ease;
}
.button:hover { background: var(--accent); color: #fff; }
.progress { margin-top: 3rem; display: flex; gap: .5rem; align-items: center; color: var(--on-ink-muted); font-size: .9rem; }
.progress span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.home footer { border-top: 1px solid var(--ink-2); }
.home footer a { color: var(--on-ink-muted); }
.home footer a:hover { color: #fff; }

/* ---------- Shared footer ---------- */
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem clamp(1.5rem, 8.3vw, 120px); max-width: 1440px; margin: 0 auto; font-size: .9rem; }
footer nav { display: flex; gap: 1.5rem; }

/* ---------- Legal pages ---------- */
.site-header { background: var(--ink); }
.site-header .wrap { max-width: 1440px; margin: 0 auto; padding: 1rem clamp(1.5rem, 8.3vw, 120px); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand img { width: 30px; height: 30px; }
.site-header nav { display: flex; gap: 1.25rem; font-size: .95rem; }
.site-header nav a { color: var(--on-ink-muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: #fff; }

.legal { max-width: 46rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem 4rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .5rem; color: var(--ink); }
.legal .meta { color: var(--muted); font-size: .95rem; margin: 0 0 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 1.25rem; font-weight: 600; color: var(--ink); margin: 2.5rem 0 .75rem; }
.legal p, .legal li { font-family: var(--serif); font-size: 1.075rem; line-height: 1.75; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .4rem; }
.legal strong { font-weight: 600; }

/* Placeholders to fill before publishing — remove this rule once done */
mark.fill { background: #FFF1A8; color: inherit; padding: 0 .2em; border-radius: 3px; }

.legal-page footer { border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 560px) {
  .site-header .wrap { flex-direction: column; gap: .75rem; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .progress span { animation: none; }
  .button { transition: none; }
}
