/* Same palette as the apps (App/DesignSystem/Theme.swift). Fonts are served from this site. */
@font-face { font-family: "Fraunces"; font-weight: 900; font-display: swap; src: url("/fonts/Fraunces-Black.ttf") format("truetype"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-display: swap; src: url("/fonts/InstrumentSerif-Italic.ttf") format("truetype"); }
:root {
  --bg: #06070c; --bg-top: #121426; --fg: #f4f5f8; --fg2: rgba(244,245,248,.68); --fg3: rgba(244,245,248,.56);
  --gold: #ffc65a; --mint: #5ae6c6; --red: #ff8785; --line: rgba(255,255,255,.08); --glass: rgba(255,255,255,.06); --border: rgba(255,255,255,.14);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--fg); line-height: 1.6;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 700px at 10% -10%, rgba(89,62,199,.35), transparent 60%),
              radial-gradient(900px 600px at 110% 40%, rgba(0,125,134,.25), transparent 60%),
              linear-gradient(var(--bg-top), var(--bg) 60%);
  background-attachment: fixed;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
a { color: var(--fg); text-decoration-color: var(--gold); text-underline-offset: 3px; }
nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-bottom: 40px; font-size: 15px; }
nav a { color: var(--fg2); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--fg); }
.mark { font-family: "Fraunces", Georgia, serif; font-weight: 900; letter-spacing: .02em; color: var(--fg); text-decoration: none; font-size: 22px; margin-right: auto; }
.mark b, .word b { color: var(--gold); font-weight: inherit; }
h1 { font-size: clamp(30px, 7vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; }
h2 { font-size: 21px; margin: 36px 0 8px; }
.lead { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 24px; color: var(--fg2); margin: 0 0 28px; }
.word { font-family: "Fraunces", Georgia, serif; font-weight: 900; font-size: clamp(44px, 13vw, 84px); letter-spacing: .04em; margin: 24px 0 8px; line-height: 1; }
.card { background: linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,.03)); border: 1px solid var(--border); border-radius: 26px; padding: 22px; margin: 22px 0; backdrop-filter: blur(20px); }
.muted { color: var(--fg2); }
.small { font-size: 14px; color: var(--fg3); }
ol, ul { padding-left: 22px; } li { margin: 6px 0; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.button, button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer;
  background: linear-gradient(#ffd673, #f6b84d); color: #1a1406;
}
.button.ghost { background: var(--glass); color: var(--fg); border: 1px solid var(--border); }
button:disabled { opacity: .45; cursor: default; }
label { display: block; font-size: 15px; color: var(--fg2); margin: 14px 0 6px; }
input[type=email], input[type=password] {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--border);
  background: rgba(0,0,0,.25); color: var(--fg); font: inherit;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--fg); margin-top: 18px; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.status { margin-top: 16px; min-height: 24px; }
.status.error { color: var(--red); } .status.ok { color: var(--mint); }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg3); }
@media (prefers-reduced-motion: no-preference) { .word b { animation: drop .6s cubic-bezier(.2,.9,.25,1) both; } .word b:nth-of-type(2) { animation-delay: .08s; } .word b:nth-of-type(3) { animation-delay: .16s; } }
@keyframes drop { from { opacity: 0; transform: translateY(-.4em); } }
