@font-face {
  font-family: "Momo Trust Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/momo-trust-sans-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --ink: #111;
  --muted: #555;
  --line: #dcdad3;
  --panel: #ebeae4;
  --accent: #0b5cad;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121416;
    --ink: #f1f1ee;
    --muted: #a8aaa8;
    --line: #2c2f33;
    --panel: #1c1f22;
    --accent: #6fb0f2;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121416;
  --ink: #f1f1ee;
  --muted: #a8aaa8;
  --line: #2c2f33;
  --panel: #1c1f22;
  --accent: #6fb0f2;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 "Momo Trust Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.label { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.accent { color: var(--accent); }

/* header / footer */
.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.1rem; border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; text-decoration: none; font-size: 1.05rem; }
.site-header nav { display: flex; align-items: center; gap: 1.4rem; font-size: .88rem; }
.site-header nav a { text-decoration: none; white-space: nowrap; }
.nav-short { display: none; }
.theme-toggle {
  display: grid; place-items: center; width: 32px; height: 32px; margin-right: -6px; padding: 0;
  border: 0; border-radius: 6px; background: none; color: var(--ink); cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--accent); background: var(--panel); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { display: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle[data-mode="system"] .i-system,
.theme-toggle[data-mode="light"] .i-light,
.theme-toggle[data-mode="dark"] .i-dark { display: block; }
.site-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 2rem; margin-top: 5rem; border-top: 1px solid var(--line); font-size: .88rem;
}

/* home */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start;
  padding-block: clamp(3rem, 9vw, 6.5rem);
}
.hero-aside p + p { margin-top: .8rem; font-size: 1.05rem; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-bottom: 1.2rem; border-bottom: 1px solid var(--ink);
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); }
.card { padding: 1.4rem 1.6rem 2rem 0; border-bottom: 1px solid var(--line); }
.card + .card { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.card h3 { margin-top: .6rem; }
.card h3 a { text-decoration: none; }
.card p:not(.label) { color: var(--muted); margin: .6rem 0 1.2rem; }
.more { font-weight: 600; font-size: .92rem; }

.feature {
  display: grid; grid-template-columns: 1fr 2fr; gap: 3rem;
  margin-top: 5rem; padding-block: 3rem; border-top: 1px solid var(--ink);
}
.feature p { max-width: 60ch; }
.links { display: flex; flex-wrap: wrap; gap: 1.6rem; font-weight: 600; }
.disclaimer { margin-top: 3rem; font-size: .88rem; color: var(--muted); }

/* guide */
.guide { --max: 760px; padding-top: clamp(2.5rem, 7vw, 4.5rem); } /* centred reading column */
.guide h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-top: .8rem; }
.guide h2 { font-size: 1.6rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.guide p, .guide li, .guide dd { color: var(--muted); }
.guide strong, .guide dt { color: var(--ink); }
.guide ul { padding-left: 1.2rem; }
.guide li { margin-block: .35rem; }
.short-answer {
  margin-top: 2rem; padding: 1.2rem 1.4rem; background: var(--panel);
  border-left: 3px solid var(--accent); font-size: 1.1rem; color: var(--ink) !important;
}
.faq dt { font-weight: 600; margin-top: 1.2rem; }
.faq dd { margin: .3rem 0 0; }
.source { margin-top: 2.6rem; font-size: .88rem; }
.guide-nav {
  display: flex; flex-wrap: wrap; gap: .8rem 1.8rem;
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-weight: 600; font-size: .92rem;
}

@media (max-width: 820px) {
  .hero, .feature { grid-template-columns: 1fr; gap: 1.5rem; }
  .cards { grid-template-columns: 1fr; }
  .card, .card + .card { padding: 1.4rem 0 1.8rem; border-left: 0; }
  .site-header nav { gap: 1rem; }
}
@media (max-width: 480px) {
  .nav-long { display: none; }
  .nav-short { display: inline; }
}
