/* Shared by the landing page and the sign-in pages: colours, type, buttons.
   Brand colours come from the logo: navy #1e3a6e (Primary, used on the light theme) and
   light blue #8fb3f0 (Secondary, used on the dark theme).
   The theme follows the hero's day / night switch (stored as `syn-theme`). Night is the default. */
:root,
:root[data-theme="night"] {
  --header-h: 84px; /* the fixed site header: everything that clears it uses this one value */
  --bg: #14171c;
  --bg-2: #191d23;
  --surface: #1e232a;
  --surface-2: #252b33;
  --ink: #f2efe6;
  --ink-soft: rgba(242, 239, 230, .7);
  --ink-faint: rgba(242, 239, 230, .48);
  --line: rgba(242, 239, 230, .12);
  --line-strong: rgba(242, 239, 230, .22);
  --accent: #8fb3f0;
  --accent-ink: #0d1a33;
  --accent-soft: rgba(143, 179, 240, .16);
  --teal: #c9dbfa;
  --ins: #7ee2b4;
  --ins-bg: rgba(46, 160, 110, .2);
  --del: #ff958c;
  --del-bg: rgba(220, 80, 70, .18);
  --warn: #ffcf7a;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --paper: #f4efe1;
  --paper-ink: #24271f;
  color-scheme: dark;
}
:root[data-theme="day"] {
  --header-h: 84px;
  --bg: #f4efe1;
  --bg-2: #ece5d0;
  --surface: #fbf8ef;
  --surface-2: #f2ecdc;
  --ink: #1d201c;
  --ink-soft: rgba(29, 32, 28, .72);
  --ink-faint: rgba(29, 32, 28, .52);
  --line: rgba(29, 32, 28, .13);
  --line-strong: rgba(29, 32, 28, .24);
  --accent: #1e3a6e;
  --accent-ink: #ffffff;
  --accent-soft: rgba(30, 58, 110, .09);
  --teal: #8fb3f0;
  --ins: #1d7a52;
  --ins-bg: rgba(46, 160, 110, .14);
  --del: #b23a31;
  --del-bg: rgba(200, 60, 50, .1);
  --warn: #9a6500;
  --shadow: 0 24px 60px rgba(60, 52, 30, .16);
  --paper: #ffffff;
  --paper-ink: #24271f;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 400 16px/1.6 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; transition: background-color .5s, color .5s;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, .serif { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
[hidden] { display: none !important; }

/* The logo: navy (Primary) on the light theme, light blue (Secondary) on the dark theme. */
.logo { display: block; width: auto; height: 30px; flex: none; }
:root[data-theme="night"] .logo-day, :root:not([data-theme]) .logo-day { display: none; }
:root[data-theme="day"] .logo-night { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  transition: transform .2s, background-color .3s, border-color .3s, color .3s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 11px; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }

.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 14px; line-height: 1.5; color: var(--ink-soft);
}
.notice[data-kind="error"] { border-color: color-mix(in srgb, var(--del) 50%, transparent); color: var(--ink); }
.notice[data-kind="ok"] { border-color: color-mix(in srgb, var(--ins) 50%, transparent); color: var(--ink); }
.notice .icon { margin-top: 1px; width: 18px; height: 18px; }
.notice[data-kind="error"] .icon { color: var(--del); }
.notice[data-kind="ok"] .icon { color: var(--ins); }
.notice[data-kind="info"] .icon { color: var(--accent); }

kbd {
  display: inline-block; min-width: 22px; padding: 1px 7px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px;
  background: var(--surface); font: 600 12px/1.6 'Space Grotesk', system-ui, sans-serif; text-align: center; color: var(--ink);
}
code { font: 500 .92em/1 ui-monospace, 'Cascadia Code', Consolas, monospace; }
