@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/source-sans-3-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3ead8;
  --paper-deep: #e7dcc6;
  --elev: #fff8ea;
  --ink: #1b1610;
  --muted: #4d453b;
  --line: rgba(27, 22, 16, 0.14);
  --accent: #b42318;
  --accent-ink: #fff8ea;
  --herb: #1f5a36;
  --mustard: #8f6c0c;
  --cheese: #d7a214;
  --patty: #6b3a22;
  --tomato: #c2311a;
  --bun: #c9893a;
  --shadow: 0 1px 0 rgba(27, 22, 16, 0.04), 0 22px 48px rgba(60, 36, 16, 0.1);
  --radius: 4px;
  --max: 72rem;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --header-h: 4.6rem;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #110e0b;
  --paper-deep: #0b0907;
  --elev: #1c1712;
  --ink: #f4ead8;
  --muted: #c9bba6;
  --line: rgba(244, 234, 216, 0.14);
  --accent: #ef6a45;
  --accent-ink: #1a120c;
  --herb: #8fbf9a;
  --mustard: #e4b84a;
  --cheese: #e4b84a;
  --patty: #d4a07a;
  --tomato: #ef6a45;
  --bun: #e0b36a;
  --shadow: 0 1px 0 rgba(255, 248, 234, 0.04), 0 22px 48px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--bun) 16%, transparent), transparent 34%),
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--herb) 12%, transparent), transparent 32%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      color-mix(in srgb, var(--ink) 2.4%, transparent) 2px,
      color-mix(in srgb, var(--ink) 2.4%, transparent) 3px
    );
  line-height: 1.65;
  letter-spacing: 0.01em;
}

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

html[data-theme="dark"] body::before {
  mix-blend-mode: soft-light;
  opacity: 0.28;
}

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

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

a:hover {
  color: color-mix(in srgb, var(--accent) 78%, var(--ink));
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 90;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(calc(100% - 2.4rem), var(--max));
  margin-inline: auto;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 6px;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-kicker {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.nav-toggle,
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--elev);
  color: var(--ink);
  border-radius: 999px;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.nav-toggle {
  display: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--accent);
}

.site-nav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  background: var(--accent);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hero {
  padding: 4.8rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
}

.hero h1,
h2,
h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.6rem, 7vw, 5.1rem);
  max-width: 16ch;
  text-wrap: balance;
}

.ornament {
  width: 12rem;
  margin: 0 0 1.2rem;
  color: var(--ink);
  opacity: 0.7;
}

.lede {
  font-size: 1.22rem;
  color: var(--muted);
  max-width: 38rem;
}

.hero-art {
  margin: 0;
  color: var(--ink);
  filter: drop-shadow(var(--shadow));
}

.hero-art img {
  width: min(100%, 34rem);
  margin-inline: auto;
}

.hero-art figcaption {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 34rem;
  margin-inline: auto;
  font-style: italic;
}

.note {
  margin-top: 1.6rem;
  padding: 0.95rem 1.05rem;
  border-left: 3px solid var(--mustard);
  background: color-mix(in srgb, var(--elev) 86%, transparent);
  color: var(--muted);
  font-size: 0.96rem;
}

.stack-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}

.stack-key a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--elev);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

.stack-key a:hover {
  color: var(--accent);
}

.swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  display: inline-block;
}

.swatch-leaf { background: #2f6a42; }
.swatch-tomato { background: #c2311a; }
.swatch-patty { background: #6b3a22; }
.swatch-cheese { background: #d7a214; }
.swatch-pickle { background: #3d7a4d; }
.swatch-bun { background: #c9893a; }

.chapter {
  position: relative;
  padding: 4.4rem 0 4.6rem;
}

.chapter::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
}

.chapter-leaf::before {
  background: linear-gradient(90deg, #2f6a42, #7dba8a 40%, transparent);
}

.chapter-tomato::before {
  background: linear-gradient(90deg, #c2311a, #ef6a45 40%, transparent);
}

.chapter-patty::before {
  background: linear-gradient(90deg, #6b3a22, #c9893a 40%, transparent);
}

.chapter-cheese::before {
  background: linear-gradient(90deg, #d7a214, #f0c14b 40%, transparent);
}

.chapter-pickle::before {
  background: linear-gradient(90deg, #1f5a36, #8fbf9a 40%, transparent);
}

.chapter-bun::before {
  background: linear-gradient(90deg, #c9893a, #e0b36a 40%, transparent);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 3.15rem);
}

h2 {
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.32rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.05rem;
}

.card,
.claim,
.style-card,
.timeline-card,
.pull {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.style-card {
  padding: 1.4rem 1.35rem 1.2rem;
}

.card {
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.18;
}

.kicker {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--herb);
}

.claim-grid {
  display: grid;
  gap: 0.9rem;
}

.claim {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 1.4rem;
  padding: 1.25rem 1.35rem 1.15rem;
}

.claim-meta {
  border-right: 1px solid var(--line);
  padding-right: 1.1rem;
}

.claim-no {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.65rem;
  color: var(--accent);
}

.claim-place {
  font-weight: 700;
  font-size: 0.98rem;
}

.claim-year,
.claim-status {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.claim-status {
  margin-top: 0.5rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

.diner-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.75fr);
  gap: 1.6rem;
  align-items: start;
}

.prose-wide {
  max-width: 46rem;
}

.pull {
  padding: 1.5rem 1.4rem 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.pull p:first-child {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.pull-src {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.tile-band {
  height: 1.35rem;
  background-color: var(--paper-deep);
  background-image:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(-45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--ink) 75%),
    linear-gradient(-45deg, transparent 75%, var(--ink) 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  opacity: 0.12;
}

.styles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.05rem;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0.4rem 0 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11.15rem;
  top: 0.2rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 9.6rem 1fr;
  gap: 2.4rem;
  list-style: none;
  position: relative;
  padding: 0 0 1.35rem;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 10.72rem;
  top: 1.15rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent);
}

.when {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.03em;
  padding-top: 0.7rem;
  line-height: 1.1;
}

.when sup {
  font-size: 0.55em;
  color: var(--accent);
}

.timeline-card {
  padding: 1.1rem 1.2rem 0.95rem;
}

.timeline-card p:last-child,
.card p:last-child,
.style-card p:last-child,
.claim p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2.8rem;
  color: var(--muted);
  font-size: 0.95rem;
  background: color-mix(in srgb, var(--paper-deep) 70%, var(--paper));
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-grid strong {
  display: block;
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.lost {
  min-height: calc(100vh - 12rem);
  display: grid;
  align-content: center;
  padding-top: 3rem;
}

.lost-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero-grid,
  .cards,
  .styles,
  .diner-split,
  .claim {
    grid-template-columns: 1fr;
  }

  .claim-meta {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 0.85rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--elev);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.85rem 1.2rem 1.1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav a[aria-current="true"]::after {
    display: none;
  }

  .timeline::before {
    left: 0.55rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding-left: 1.9rem;
  }

  .timeline-item::after {
    left: 0.22rem;
    top: 0.95rem;
  }

  .when {
    padding-top: 0.55rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero h1 {
    max-width: none;
  }

  .pull {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-art img {
    animation: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art img {
    animation: plate-in 1.1s ease-out both;
  }
}

@keyframes plate-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
