/* Shared tokens and base styles for every page. Night is the default look. */
:root {
  --bg: #0c0b10;
  --bg-2: #121017;
  --surface: rgba(24, 21, 30, 0.86);
  --surface-solid: #18151e;
  --ink: #ebe5dc;
  --ink-2: #b8b0a6;
  --ink-quiet: #7c766f;
  --line: rgba(255, 255, 255, 0.09);
  --ruby: #e5345a;
  --ruby-deep: #8f1030;
  --ruby-glow: rgba(229, 52, 90, 0.35);
  --eva: #93c5ff;
  --gold: #d8b46c;
  --hl: rgba(229, 52, 90, 0.13);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font-body: "Literata", Georgia, "Times New Roman", serif;
  --font-display: "Cormorant Garamond", "Literata", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs: 1;
  --gutter: 16px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5efe6;
    --bg-2: #ede5d8;
    --surface: rgba(255, 251, 244, 0.9);
    --surface-solid: #fffbf4;
    --ink: #221d18;
    --ink-2: #4c443b;
    --ink-quiet: #9a9187;
    --line: rgba(40, 25, 10, 0.12);
    --ruby: #b3143c;
    --ruby-deep: #7d0b28;
    --ruby-glow: rgba(179, 20, 60, 0.22);
    --eva: #1d5bb5;
    --gold: #8a6522;
    --hl: rgba(179, 20, 60, 0.09);
    --shadow: 0 18px 50px rgba(60, 40, 20, 0.18);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5efe6;
  --bg-2: #ede5d8;
  --surface: rgba(255, 251, 244, 0.9);
  --surface-solid: #fffbf4;
  --ink: #221d18;
  --ink-2: #4c443b;
  --ink-quiet: #9a9187;
  --line: rgba(40, 25, 10, 0.12);
  --ruby: #b3143c;
  --ruby-deep: #7d0b28;
  --ruby-glow: rgba(179, 20, 60, 0.22);
  --eva: #1d5bb5;
  --gold: #8a6522;
  --hl: rgba(179, 20, 60, 0.09);
  --shadow: 0 18px 50px rgba(60, 40, 20, 0.18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ruby); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--surface-solid); color: var(--ink); padding: 8px 14px; border-radius: 8px;
  font-family: var(--font-ui); font-size: 14px;
}
.skip:focus { left: 8px; }

svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 500; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn[hidden] { display: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ruby); color: #fff; box-shadow: 0 8px 30px var(--ruby-glow); }
.btn-primary:hover { background: color-mix(in srgb, var(--ruby) 88%, #fff); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-quiet); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 44px; height: 44px; padding: 0 8px; border-radius: 999px;
  background: transparent; border: 0; cursor: pointer; color: var(--ink-2);
  transition: background-color .2s ease, color .2s ease;
}
.icon-btn:hover { background: var(--line); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}
