:root {
  --paper: #f4f7fb;
  --foam: #ffffff;
  --ink: #0a2540;
  --cobalt: #1a56c4;
  --steel: #3e7cb1;
  --muted: #6b7c93;
  --line: rgba(10, 37, 64, 0.08);
  --shadow: 0 18px 40px rgba(26, 86, 196, 0.12);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  line-height: 1.5;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

.mark img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
  color: var(--steel);
}

nav a[aria-current="page"],
nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-ink {
  background: var(--ink);
  color: var(--foam);
}

.btn-ghost {
  background: var(--foam);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
  padding: 72px 0 80px;
}

.kicker {
  color: var(--steel);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.92;
  font-weight: 600;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.lede {
  font-size: 1.28rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.pint-stage {
  position: relative;
  min-height: 420px;
  background: var(--foam);
  border-radius: 40px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pint-stage svg {
  position: absolute;
  inset: 18% 22% 12%;
  width: auto;
  height: auto;
  margin: auto;
}

.caption {
  position: absolute;
  left: 28px;
  bottom: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

.strip {
  border-block: 1px solid var(--line);
  padding: 28px 0;
}

.strip ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: beat;
}

.strip li {
  counter-increment: beat;
  padding-right: 12px;
}

.strip li::before {
  content: counter(beat, decimal-leading-zero);
  display: block;
  color: var(--cobalt);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.strip strong { display: block; font-size: 1.15rem; margin-bottom: 6px; }
.strip span { color: var(--muted); font-size: 0.98rem; }

.section { padding: 88px 0; }

.section h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 600;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  max-width: 14ch;
  margin-bottom: 14px;
}

.section .intro {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 36rem;
  margin-bottom: 40px;
}

.ledger {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.ledger article {
  display: grid;
  grid-template-columns: 140px 1fr 1.1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.num {
  color: var(--cobalt);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.4rem;
}

.ledger h3 {
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.ledger p { color: var(--muted); }

.world {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips span {
  background: var(--foam);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  box-shadow: inset 0 0 0 1px var(--line);
}

.note {
  margin-top: 18px;
  font-style: italic;
  color: var(--muted);
}

.cta-band {
  background: var(--ink);
  color: var(--foam);
  border-radius: 36px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: center;
}

.cta-band h2 { color: var(--foam); max-width: none; margin: 0 0 8px; }
.cta-band p { color: color-mix(in srgb, var(--foam) 72%, var(--steel)); margin: 0; }
.cta-band .btn-ink { background: var(--foam); color: var(--ink); }

.prose {
  max-width: 42rem;
  padding: 56px 0 96px;
}

.prose h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 12px;
}

.prose h2 {
  font-size: 1.6rem;
  margin: 2.2rem 0 0.7rem;
}

.prose p, .prose li {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 0.9rem;
}

.prose ul { padding-left: 1.2rem; margin-bottom: 1.2rem; }

.steps {
  display: grid;
  gap: 16px;
  margin: 28px 0 48px;
}

.step {
  background: var(--foam);
  border-radius: 24px;
  padding: 22px 24px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.site-footer a { color: var(--steel); text-decoration: none; }

.reveal { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.3s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .hero, .world, .cta-band, .ledger article {
    grid-template-columns: 1fr;
  }
  .strip ol { grid-template-columns: 1fr 1fr; }
  .pint-stage { min-height: 320px; }
  h1 { font-size: 3.2rem; }
  .cta-band { padding: 36px 24px; }
  nav .hide-sm { display: none; }
}
