@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;0,900;1,400&family=Raleway:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand -- Primary navy, Secondary teal + gray, Accent gold */
  --brand: #11324d;
  --brand-ink: #0b2439;
  --brand-soft: #eef2f6;
  --brand-soft-2: #ededed;
  --teal: #499292;
  --teal-soft: #e8f2f2;
  --gold: #eab308;
  --gold-deep: #d3c30c;
  --gold-soft: #f5f6e8;

  /* Surface */
  --bg: #fafbfc;
  --bg-raised: #ffffff;
  --surface: #ffffff;
  --surface-2: #ededed;
  --border: rgba(107,114,128,.22);
  --border-soft: rgba(107,114,128,.12);

  /* Text */
  --text: #111827;
  --text-dim: #6b7280;
  --text-faint: #9ca3af;
  --text-on-brand: #fafbfc;

  /* Type */
  --display: 'Merriweather', Georgia, serif;
  --sans: 'Raleway', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(17,50,77,.05), 0 1px 1px rgba(17,50,77,.04);
  --shadow-pop: 0 20px 48px rgba(17,50,77,.16), 0 4px 12px rgba(17,50,77,.07);
  --shadow-float: 0 8px 24px rgba(17,50,77,.12);

  /* Motion */
  --ease: cubic-bezier(.22,.9,.3,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1419;
    --bg-raised: #171d24;
    --surface: #171d24;
    --surface-2: #1c232b;
    --border: rgba(156,163,175,.28);
    --border-soft: rgba(156,163,175,.15);
    --text: #eef1f4;
    --text-dim: #9ca3af;
    --text-faint: #6b7280;
    --brand-soft: #16222c;
    --brand-soft-2: #1c232b;
    --teal-soft: #15282a;
    --gold-soft: #2a2a16;
  }
}

* { box-sizing: border-box; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display { font-family: var(--display); letter-spacing: -0.01em; }
.font-mono { font-family: var(--mono); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: var(--radius-full); font-weight: 600; font-size: 15px;
  padding: 12px 24px; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
  cursor: pointer; border: none;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: var(--text-on-brand); }
.btn-primary:hover { box-shadow: var(--shadow-float); }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

::selection { background: var(--gold-soft); color: var(--brand-ink); }

a { color: var(--brand); }

.scrollbar-thin::-webkit-scrollbar { width: 6px; height: 6px; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }