/* Colors from constants/theme.ts (light and dark themes). */
@font-face { font-family: Barlow; src: url(/fonts/Barlow_400Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url(/fonts/Barlow_600SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: Barlow; src: url(/fonts/Barlow_700Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(/fonts/Nunito_800ExtraBold.ttf); font-weight: 800; font-display: swap; }

:root {
  --bg: #EFEEEB; --card: #FAF9F7; --fg: #23252B; --muted: #62656D; --border: #E0DED9;
  --accent: #DE5F1C; --glow: rgba(222,95,28,0.16);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0B0E; --card: #15171C; --fg: #F2F3F5; --muted: #9298A4; --border: #262A32;
    --accent: #FF7A2F; --glow: rgba(255,122,47,0.14);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 Barlow, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
strong { font-weight: 600; }
.dot { color: var(--accent); }

/* Header on the document pages */
.top { width: 100%; max-width: 720px; margin: 0 auto; padding: 20px 20px 8px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 800 22px Nunito, system-ui, sans-serif; }
.brand img { border-radius: 9px; }

/* Language switcher: a small segmented control */
.langs { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 600; }
.langs a, .langs span { padding: 4px 12px; border-radius: 999px; text-decoration: none; }
.langs a { color: var(--muted); }
.langs a:hover { color: var(--fg); }
.langs span { background: var(--border); color: var(--fg); }

/* Document pages */
.doc { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px 48px; }
.doc h1 { font-size: 36px; line-height: 1.2; margin: 32px 0 8px; font-weight: 700; letter-spacing: -0.01em; }
.doc h2 { font-size: 22px; line-height: 1.3; margin: 40px 0 8px; font-weight: 700; scroll-margin-top: 16px; }
.doc h3 { font-size: 18px; margin: 24px 0 4px; font-weight: 600; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--accent); }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

/* Footer, the same on every page */
footer { width: 100%; max-width: 720px; margin: 0 auto; padding: 24px 20px 40px; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin-bottom: 8px; }
footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--accent); }
footer .made { margin: 0; font-size: 14px; }

/* Landing page */
.hero { width: 100%; max-width: 600px; margin: 0 auto; padding: 72px 20px 56px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.icon { position: relative; }
.icon::before { content: ""; position: absolute; inset: -60px; background: radial-gradient(closest-side, var(--glow), transparent); z-index: -1; }
.icon img { display: block; width: 112px; height: 112px; border-radius: 26px; }
.hero h1 { font: 800 48px/1.1 Nunito, system-ui, sans-serif; margin: 28px 0 6px; letter-spacing: -0.01em; }
.hero .tagline { font-size: 22px; font-weight: 600; margin: 0 0 20px; color: var(--fg); }
.hero p { color: var(--muted); margin: 0 0 12px; max-width: 520px; }
.soon { margin-top: 20px; padding: 10px 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-weight: 600; font-size: 16px; }
@media (max-width: 420px) { .soon { font-size: 14px; padding: 10px 16px; } .hero { padding-top: 56px; } }
