@font-face {
  font-family: Geist;
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --night: #0b0a08;
  --carbon: #14120e;
  --soot: #1c1914;
  --rule: #2a261f;
  --smoke: #8c8577;
  --ash: #b9b2a4;
  --bone: #f3efe6;
  --paper: #f3efe6;
  --paper-deep: #e8e2d4;
  --ink: #0b0a08;
  --sat: #ffc431;
  --sat-soft: #ffe29a;
  --sat-ink: #87620e;

  --alpi: #f0b447;
  --arca: #7fb893;
  --money: #ffc94d;
  --splitpass: #f46a3a;

  --bg: var(--night);
  --raised: var(--carbon);
  --fg: var(--bone);
  --muted: var(--smoke);
  --soft: var(--ash);
  --line: var(--rule);
  --accent: var(--sat);
  --accent-text: var(--sat);

  --sans: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 80px);
  --measure: 34rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

.theme-paper {
  --bg: var(--paper);
  --raised: var(--paper-deep);
  --fg: var(--ink);
  --muted: #6f685a;
  --soft: #3d382f;
  --line: #d9d2c2;
  --accent-text: var(--sat-ink);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img,
svg,
canvas {
  display: block;
}

::selection {
  background: var(--sat);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--sat);
  outline-offset: 3px;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker b {
  font-weight: 400;
  color: var(--accent-text);
}

.display {
  font-size: clamp(52px, 8.6vw, 148px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.h2 {
  font-size: clamp(36px, 5.2vw, 84px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.042em;
}

.h3 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display em,
.h2 em,
.h3 em {
  font-style: normal;
  color: var(--accent-text);
}

.lede {
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.5;
  color: var(--soft);
  max-width: var(--measure);
}

.mono {
  font-family: var(--mono);
}

.sat {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  background: var(--sat);
  vertical-align: baseline;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--fg);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.button:hover {
  border-color: var(--fg);
}

.button.primary {
  background: var(--sat);
  border-color: var(--sat);
  color: var(--ink);
}

.button.primary:hover {
  background: var(--sat-soft);
  border-color: var(--sat-soft);
}

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  pointer-events: none;
}

.masthead > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  height: 20px;
  width: auto;
}



.brand span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.masthead nav {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.masthead nav a {
  text-decoration: none;
  color: var(--soft);
  transition: color 0.3s var(--ease);
}

.masthead nav a:hover {
  color: var(--fg);
}

.chapter-meter {
  position: fixed;
  right: var(--gutter);
  bottom: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chapter-meter i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--muted);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.chapter-meter i.on {
  background: var(--sat);
  border-color: var(--sat);
}

.site-footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding: 64px var(--gutter) 96px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.site-footer h4 {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

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

.site-footer a:hover {
  color: var(--fg);
}

.site-footer address {
  font-style: normal;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .masthead nav {
    display: none;
  }

  .chapter-meter {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
