:root {
  color-scheme: light dark;
  --bg: #f5f0e8;
  --bg-soft: #ebe2d5;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --text: #1d1b17;
  --muted: #6d675f;
  --faint: #8c8376;
  --line: rgba(29, 27, 23, 0.13);
  --accent: #9b4f2f;
  --accent-strong: #6d2f19;
  --green: #344d3a;
  --plum: #4d3442;
  --gold: #b98845;
  --shadow: 0 28px 80px rgba(65, 45, 28, 0.16);
  --radius: 8px;
  font-family: Inter, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100f0e;
    --bg-soft: #181614;
    --surface: #1e1a17;
    --surface-strong: #26211d;
    --text: #f4eee4;
    --muted: #beb1a1;
    --faint: #968a7b;
    --line: rgba(244, 238, 228, 0.14);
    --accent: #d18a54;
    --accent-strong: #f0b77a;
    --green: #8ea77f;
    --plum: #bf8aa6;
    --gold: #ddb05f;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f0e8;
  --bg-soft: #ebe2d5;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --text: #1d1b17;
  --muted: #6d675f;
  --faint: #8c8376;
  --line: rgba(29, 27, 23, 0.13);
  --accent: #9b4f2f;
  --accent-strong: #6d2f19;
  --green: #344d3a;
  --plum: #4d3442;
  --gold: #b98845;
  --shadow: 0 28px 80px rgba(65, 45, 28, 0.16);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #100f0e;
  --bg-soft: #181614;
  --surface: #1e1a17;
  --surface-strong: #26211d;
  --text: #f4eee4;
  --muted: #beb1a1;
  --faint: #968a7b;
  --line: rgba(244, 238, 228, 0.14);
  --accent: #d18a54;
  --accent-strong: #f0b77a;
  --green: #8ea77f;
  --plum: #bf8aa6;
  --gold: #ddb05f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34rem),
    linear-gradient(180deg, var(--surface) 0, var(--bg) 22rem);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1;
}

h1 {
  max-width: 52rem;
  margin-bottom: 1rem;
  font-size: clamp(3.25rem, 8vw, 7.5rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.45rem, 5.4vw, 5.4rem);
}

h3 {
  line-height: 1.1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand,
nav,
.hero-actions,
.archive-tools,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-strong);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
}

nav {
  justify-content: center;
  gap: clamp(0.7rem, 2vw, 1.4rem);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

nav a {
  padding: 0.6rem 0;
}

nav a:hover,
nav a[aria-current="page"],
.text-link {
  color: var(--accent-strong);
}

.theme-toggle,
.button,
.filter-toggle {
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  padding: 0 1rem;
}

.theme-toggle {
  justify-self: end;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff8ee;
}

.button.quiet {
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.hero,
.page-hero,
.section,
.learning-path,
.finder-layout,
.archive-tools {
  padding-left: clamp(1rem, 5vw, 5rem);
  padding-right: clamp(1rem, 5vw, 5rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.78fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(2.4rem, 5vw, 4.75rem);
  padding-bottom: clamp(2rem, 5vw, 4.5rem);
}

.hero-copy {
  max-width: 54rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lede {
  max-width: 39rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.8vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.creator-mini {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  max-width: 44rem;
  margin-top: 1.6rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.creator-mini img {
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.creator-mini p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.creator-mini a {
  display: inline-block;
  margin-top: 0.3rem;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1fr 0.56fr;
  grid-template-rows: repeat(2, minmax(9rem, 1fr));
  gap: 0.75rem;
}

.gallery-shot,
.recipe-card button,
.starter-card button,
.learning-card button,
.feature-row button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.gallery-shot {
  position: relative;
  overflow: hidden;
  min-height: 12rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-shot.featured {
  grid-row: 1 / 3;
}

.gallery-shot img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.gallery-shot::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.62));
}

.gallery-shot span {
  position: absolute;
  right: 0.9rem;
  bottom: 0.85rem;
  left: 0.9rem;
  z-index: 1;
  color: #fff8ee;
  font-size: 0.8rem;
  font-weight: 800;
}

.section p,
.round-copy p,
.round-copy small,
.recipe-card p,
.starter-card p,
.learning-card p,
.feature-row p,
.notes-grid p,
.story-copy,
.recipe-detail p,
footer {
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding-top: clamp(3.8rem, 8vw, 7rem);
  padding-bottom: clamp(3.8rem, 8vw, 7rem);
}

.section-kicker,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(18rem, 0.56fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: end;
}

.section-kicker {
  margin-bottom: 1.4rem;
}

.section-kicker > * {
  grid-column: 1;
}

.section-lede {
  max-width: 48rem;
  margin-bottom: 1.4rem;
}

.split-copy {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.split-copy p {
  max-width: 46rem;
}

.text-link {
  flex: 0 0 auto;
  font-weight: 800;
}

.starter-preview,
.round-recipes,
.recipe-grid,
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.starter-card,
.learning-card,
.recipe-card,
.notes-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.starter-card img,
.learning-card img,
.recipe-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.starter-card button,
.learning-card button,
.recipe-card button {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
}

.starter-card span,
.learning-card span,
.recipe-card span,
.feature-row span,
.notes-grid span,
.dialog-meta span,
.tags span {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.starter-card span,
.starter-card h3,
.starter-card p,
.starter-card small,
.learning-card span,
.learning-card h3,
.learning-card p,
.learning-card small,
.recipe-card span,
.recipe-card h3,
.recipe-card p,
.recipe-card small {
  margin-left: 1rem;
  margin-right: 1rem;
}

.starter-card span,
.learning-card span,
.recipe-card span {
  margin-top: 1rem;
}

.starter-card h3,
.learning-card h3,
.recipe-card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.55rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
}

.starter-card small,
.learning-card small,
.recipe-card small {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 800;
}

.archive-band {
  display: grid;
  grid-template-columns: minmax(16rem, 0.4fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.archive-copy {
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 70%, var(--green));
  color: #fff8ee;
}

.archive-copy p {
  color: var(--text);
}

:root[data-theme="dark"] .archive-copy {
  background: #2a201a;
}

:root[data-theme="dark"] .archive-copy p {
  color: #f4eee4;
}

.archive-copy .button {
  width: fit-content;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-row {
  border-bottom: 1px solid var(--line);
}

.feature-row button {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  grid-template-areas:
    "image label"
    "image title"
    "image meta";
  gap: 0.15rem 1rem;
  align-items: center;
  padding-bottom: 1rem;
}

.feature-row img {
  grid-area: image;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: var(--radius);
  object-fit: cover;
}

.feature-row span {
  grid-area: label;
}

.feature-row h3 {
  grid-area: title;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
}

.feature-row p {
  grid-area: meta;
  margin: 0;
}

.notes-grid article {
  padding: clamp(1.15rem, 3vw, 1.5rem);
}

.venue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notes-grid h3 {
  margin: 0.55rem 0 0.7rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
}

.page-hero {
  padding-top: clamp(2.6rem, 6vw, 5.5rem);
  padding-bottom: clamp(2.2rem, 5vw, 4.5rem);
}

.page-hero h1 {
  margin-bottom: 0;
}

.learning-path {
  display: grid;
  gap: 1.2rem;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.learning-round {
  display: grid;
  grid-template-columns: minmax(14rem, 0.34fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.round-copy {
  padding: 1.2rem 0;
}

.round-copy h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.15rem, 4vw, 4rem);
}

.round-copy small {
  display: block;
  margin-top: 1rem;
  color: var(--accent-strong);
  font-weight: 800;
}

.confidence-note {
  border-top: 1px solid var(--line);
}

.confidence-note > p {
  max-width: 52rem;
  font-size: 1.08rem;
}

.archive-hero {
  align-items: end;
}

.search {
  display: grid;
  gap: 0.45rem;
}

.search span {
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search input {
  width: 100%;
  min-height: 3.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0 1rem;
}

.archive-tools {
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.archive-tools p {
  margin: 0;
}

.archive-tools p:first-child {
  color: var(--text);
  font-weight: 800;
}

.archive-tools p:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}

.finder-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 0.24fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  padding-top: 1.2rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.filter-drawer {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.filter-summary p {
  margin: 0;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.filter-summary button {
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 800;
}

.filter-group {
  display: grid;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.filter-group h3 {
  margin: 0;
  font-size: 0.92rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filters button {
  min-height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0 0.78rem;
}

.filters button.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent-strong);
}

.load-more-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.load-more-row p {
  margin: 0;
  color: var(--muted);
}

.load-more-row button[hidden] {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 3rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

dialog {
  width: min(68rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

#dialogContent {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(20rem, 1fr);
}

.dialog-media img {
  width: 100%;
  height: 100%;
  min-height: 34rem;
  object-fit: cover;
}

.dialog-body {
  overflow: auto;
  padding: clamp(1.25rem, 4vw, 2.4rem);
}

.dialog-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--faint);
  font-size: 0.78rem;
}

.dialog-body h2 {
  margin: 0.55rem 0 1rem;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

.spec-strip,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.spec-strip {
  margin-bottom: 1.25rem;
}

.spec-strip span {
  display: grid;
  gap: 0.12rem;
  min-width: min(9rem, 100%);
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.78rem;
}

.spec-strip strong {
  color: var(--text);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.recipe-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 1.4rem;
  margin: 1.4rem 0;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.recipe-detail h3 {
  margin-bottom: 0.7rem;
}

.recipe-detail ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.tags {
  margin-top: 1rem;
}

.dialog-back-button {
  width: 100%;
  margin-top: 1.25rem;
}

footer {
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
}

footer strong {
  color: var(--text);
}

footer a {
  color: var(--accent-strong);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .theme-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .hero,
  .section-kicker,
  .page-hero,
  .archive-band,
  .learning-round,
  .finder-layout,
  #dialogContent {
    grid-template-columns: 1fr;
  }

  .starter-preview,
  .round-recipes,
  .recipe-grid,
  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-drawer {
    position: static;
  }

  .dialog-media img {
    max-height: 34rem;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: clamp(2.65rem, 12vw, 4.2rem);
  }

  .home-hero h1,
  .page-hero h1 {
    font-size: clamp(2.45rem, 10.8vw, 3.65rem);
  }

  .hero,
  .page-hero {
    padding-top: 2rem;
    padding-bottom: 2.15rem;
  }

  .home-hero {
    padding-bottom: 1.5rem;
  }

  .section {
    padding-top: 3.2rem;
    padding-bottom: 3.2rem;
  }

  .lede {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-gallery,
  .split-copy,
  .feature-list,
  .starter-preview,
  .round-recipes,
  .recipe-grid,
  .recipe-detail,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .split-copy,
  .archive-tools,
  .load-more-row,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-gallery {
    display: grid;
    grid-template-rows: 1fr;
  }

  .gallery-shot.featured {
    grid-row: auto;
  }

  .gallery-shot {
    min-height: auto;
    max-height: 19rem;
    aspect-ratio: 16 / 10;
  }

  .gallery-shot:not(.featured) {
    display: none;
  }

  .feature-row button {
    grid-template-columns: 5.25rem 1fr;
  }

  .feature-row img {
    width: 5.25rem;
    height: 5.25rem;
  }

  .filter-drawer {
    display: none;
  }

  .filter-drawer.open {
    display: grid;
  }

  .compact-grid .recipe-card button,
  .round-recipes .learning-card button,
  .starter-preview .starter-card button {
    grid-template-columns: 6.25rem 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.1rem 0.9rem;
    align-items: center;
    padding: 0.75rem;
  }

  .compact-grid .recipe-card img,
  .round-recipes .learning-card img,
  .starter-preview .starter-card img {
    grid-row: 1 / 4;
    width: 6.25rem;
    height: 6.25rem;
    border-radius: var(--radius);
  }

  .compact-grid .recipe-card span,
  .compact-grid .recipe-card h3,
  .compact-grid .recipe-card p,
  .compact-grid .recipe-card small,
  .round-recipes .learning-card span,
  .round-recipes .learning-card h3,
  .round-recipes .learning-card p,
  .round-recipes .learning-card small,
  .starter-preview .starter-card span,
  .starter-preview .starter-card h3,
  .starter-preview .starter-card p,
  .starter-preview .starter-card small {
    margin-left: 0;
    margin-right: 0;
  }

  .compact-grid .recipe-card span,
  .round-recipes .learning-card span,
  .starter-preview .starter-card span {
    margin-top: 0;
  }

  .compact-grid .recipe-card h3,
  .round-recipes .learning-card h3,
  .starter-preview .starter-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.35rem;
  }

  .compact-grid .recipe-card p,
  .round-recipes .learning-card p,
  .starter-preview .starter-card p {
    display: none;
  }

  .compact-grid .recipe-card small,
  .round-recipes .learning-card small,
  .starter-preview .starter-card small {
    margin-top: 0;
    margin-bottom: 0;
  }

  .creator-mini {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .creator-mini img {
    width: 3rem;
    height: 3rem;
  }
}
