:root {
  --ink: #22201d;
  --muted: #66615c;
  --line: #9b9690;
  --paper: #fffdf9;
  --panel: #f0ebe6;
  --butter: #f3ca54;
  --tomato: #cc5c45;
  --herb: #527356;
  --blue: #456c86;
  --shadow: 0 18px 40px rgba(34, 32, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.25;
}

a {
  color: inherit;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

button,
input,
select {
  font: inherit;
}

.skip-link {
  left: 16px;
  padding: 10px 12px;
  position: absolute;
  top: -50px;
  z-index: 20;
}

.skip-link:focus {
  background: var(--ink);
  color: var(--paper);
  top: 12px;
}

.site-header {
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid rgba(155, 150, 144, 0.25);
  padding: 20px 28px 18px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.wordmark {
  display: inline-block;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  margin-bottom: 18px;
  text-decoration: none;
}

.nav-row {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.nav-cats {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(6, minmax(105px, 1fr));
  width: min(1260px, 100%);
}

.nav-cat {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-grid;
  gap: 4px;
  justify-items: start;
  min-width: 0;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.nav-cat .icon,
.nav-more-btn {
  font-size: 28px;
  line-height: 1;
}

.nav-cat.is-active {
  color: var(--tomato);
}

.nav-cat:focus-visible,
.inline-tab-link:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 4px;
}

.nav-more {
  position: relative;
}

.nav-more-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  padding: 4px 0 8px;
}

.more-menu {
  background: var(--paper);
  border: 1px dashed var(--line);
  box-shadow: var(--shadow);
  display: none;
  min-width: 220px;
  padding: 12px;
  position: absolute;
  right: 0;
  top: 34px;
}

.more-menu.is-open {
  display: grid;
  gap: 10px;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31vw;
  min-height: calc(100vh - 138px);
}

.main-col {
  padding: 32px 30px 72px;
}

.side-col {
  align-self: stretch;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: calc(100vh - 138px);
  padding: 25vh 34px 28px;
}

.dash-rule,
.side-divider,
.section-rule {
  border: 0;
  border-top: 2px dashed var(--line);
  margin: 0 0 28px;
}

.side-divider {
  margin: 4px 0 0;
}

.side-eyebrow {
  align-items: baseline;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.side-eyebrow h2,
.side-eyebrow span,
.tag {
  font-size: 18px;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}

.side-col p {
  font-weight: 800;
  margin: 0;
}

.side-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-links li {
  font-weight: 800;
}

.inline-tab-link {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-weight: 800;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.side-footer {
  color: #98918a;
  font-weight: 900;
  margin-top: auto;
}

.notice {
  background: var(--butter);
  border: 2px solid var(--ink);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
  padding: 16px;
}

.notice strong {
  font-size: 22px;
}

.cat-section {
  scroll-margin-top: 160px;
}

.tab-panel[hidden] {
  display: none;
}

.cat-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  margin: 0 0 8px;
}

.cat-heading .icon {
  font-size: 34px;
}

.cat-heading h2 {
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1;
  margin: 0;
  text-transform: lowercase;
}

.cat-intro {
  color: var(--muted);
  font-weight: 800;
  margin: 0 0 24px;
  max-width: 760px;
}

.hero-band {
  background: linear-gradient(180deg, #f2c94f 0%, #d99c71 56%, #ad6e8f 100%);
  color: #2d2514;
  min-height: 48vh;
  padding: 40px 26px;
}

.hero-band p {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  margin: 0 0 10px;
}

.hero-band p + p {
  padding-left: min(24vw, 360px);
}

.recipe {
  border-top: 2px dashed var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
  padding: 28px 0 32px;
}

.recipe-photo {
  aspect-ratio: 4 / 3;
  background: #eceae6;
  border-radius: 4px;
  overflow: hidden;
}

.recipe-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.recipe-head {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 110px;
}

.recipe h3 {
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

.recipe-number {
  display: inline-block;
  font-weight: 900;
  margin-right: 7px;
}

.recipe-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  margin: 10px 0 18px;
  text-transform: uppercase;
}

.recipe-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
}

.blurb {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 20px;
  max-width: 680px;
}

.recipe-icon {
  font-size: 36px;
  text-align: center;
}

.read-more-btn,
.button-link,
.filter-btn {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-weight: 900;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.button-link {
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 6px;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  text-decoration: none;
}

.button-link:hover {
  background: var(--ink);
  color: var(--paper);
}

.recipe-detail {
  display: none;
  gap: 24px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  margin-top: 22px;
}

.recipe-detail.is-open {
  display: grid;
}

.recipe-detail h4 {
  border-top: 2px dashed var(--line);
  font-size: 17px;
  margin: 0 0 12px;
  padding-top: 14px;
  text-transform: uppercase;
}

.recipe-detail li {
  margin-bottom: 8px;
}

.content-page {
  padding: 34px 30px 72px;
}

.page-title {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  max-width: 980px;
}

.page-title h1 {
  font-size: clamp(38px, 7vw, 92px);
  line-height: 0.93;
  margin: 0;
  text-transform: lowercase;
}

.page-title p {
  color: var(--muted);
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  max-width: 790px;
}

.resource-grid,
.resources-tab-grid,
.store-layout {
  display: grid;
  gap: 22px;
}

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

.resource-card,
.store-card,
.map-panel {
  border-top: 2px dashed var(--line);
  padding-top: 16px;
}

.resource-card h2,
.store-card h2,
.map-panel h2 {
  font-size: 22px;
  line-height: 1.1;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.resource-card p,
.store-card p,
.map-panel p {
  font-weight: 750;
  margin: 0 0 14px;
}

.resource-card ul,
.store-card ul {
  margin: 0;
  padding-left: 20px;
}

.resource-card li,
.store-card li {
  margin-bottom: 9px;
}

.source-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin-top: 12px;
}

.source-note a {
  font-weight: 900;
}

.store-layout {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.map-wrap {
  aspect-ratio: 4 / 3;
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
}

.map-resource-card {
  grid-row: span 2;
}

.map-wrap iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.filter-btn {
  border: 1px solid var(--ink);
  border-radius: 999px;
  min-height: 36px;
  padding: 5px 12px;
  text-decoration: none;
}

.filter-btn.is-active {
  background: var(--ink);
  color: var(--paper);
}

.store-list {
  display: grid;
  gap: 14px;
}

.mini-store-list {
  margin-top: 22px;
}

.store-card {
  display: grid;
  gap: 6px;
}

.store-card[hidden] {
  display: none;
}

.store-card h3 {
  font-size: 20px;
  margin: 0;
}

.store-card p {
  margin: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  background: var(--panel);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  padding: 4px 8px;
  text-transform: uppercase;
}

.compact-header .wordmark {
  margin-bottom: 10px;
}

.home-hero {
  border-bottom: 2px dashed var(--line);
  margin-bottom: 26px;
  padding-bottom: 26px;
}

.home-hero h1 {
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.88;
  margin: 8px 0 18px;
  max-width: 980px;
}

.home-hero p {
  color: var(--muted);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  max-width: 900px;
}

.recipe-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recipe-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  display: grid;
  grid-template-columns: minmax(150px, 38%) minmax(0, 1fr);
  min-height: 260px;
  overflow: hidden;
}

.recipe-card-image {
  background: var(--panel);
  border-right: 2px solid var(--ink);
  display: block;
  min-height: 100%;
}

.recipe-card-image img {
  display: block;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  width: 100%;
}

.recipe-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.recipe-card h2 {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 0.95;
  margin: 0;
}

.recipe-card p {
  color: var(--muted);
  font-weight: 800;
}

.recipe-card .button-link {
  margin-top: auto;
  width: fit-content;
}

.secondary {
  background: transparent;
  color: var(--ink);
}

.resource-strip {
  align-items: center;
  background: var(--butter);
  border: 2px solid var(--ink);
  border-radius: 6px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 30px;
  padding: 18px;
}

.resource-strip h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.95;
  margin-bottom: 8px;
}

.resource-strip p {
  font-weight: 800;
  margin: 0;
}

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

.back-link {
  display: inline-block;
  margin-bottom: 20px;
}

.recipe-page {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.recipe-page-copy {
  align-self: end;
}

.recipe-page h1 {
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.88;
  margin: 10px 0 18px;
}

.recipe-dek {
  color: var(--muted);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
}

.recipe-page-photo {
  border: 2px solid var(--ink);
  border-radius: 6px;
  min-height: 420px;
  overflow: hidden;
}

.recipe-page-photo img {
  display: block;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  width: 100%;
}

.recipe-panel {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 20px;
}

.recipe-panel h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 0.95;
}

.recipe-panel li {
  margin-bottom: 10px;
}

.caption-panel {
  background: var(--panel);
}

.note-panel {
  background: var(--butter);
}

@media (max-width: 1050px) {
  .page {
    display: block;
  }

  .side-col {
    min-height: 0;
    padding: 34px 30px;
  }

  .nav-cats {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }

  .resource-grid,
  .resources-tab-grid,
  .store-layout,
  .recipe-grid,
  .recipe-page {
    grid-template-columns: 1fr;
  }
}

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

  .site-header,
  .main-col,
  .content-page,
  .side-col {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header {
    position: static;
  }

  .nav-row {
    gap: 10px;
  }

  .nav-cats {
    gap: 13px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-cat .icon,
  .nav-more-btn {
    font-size: 24px;
  }

  .nav-cat .label {
    font-size: 15px;
  }

  .recipe {
    grid-template-columns: 1fr;
  }

  .recipe-card {
    grid-template-columns: 1fr;
  }

  .recipe-card-image {
    border-bottom: 2px solid var(--ink);
    border-right: 0;
  }

  .resource-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .recipe-head {
    grid-template-columns: 1fr 56px;
  }

  .recipe-detail {
    grid-template-columns: 1fr;
  }

  .hero-band {
    min-height: 360px;
  }

  .hero-band p + p {
    padding-left: 0;
  }

  .side-eyebrow {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* =====================================================================
   Refinements: receipt/ticket meta (the signature), hero lede,
   recipe-page layout, numbered steps, print styles
   ===================================================================== */

:root {
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* Hero intro reads as calm body copy, not a heavy tagline */
.home-hero .hero-lede {
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  margin: 4px 0 20px;
  max-width: 820px;
}

/* Receipt-style meta strip (used on cards and recipe pages) */
.ticket {
  border-top: 2px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding-top: 12px;
}

.ticket > div {
  border-right: 1px dotted var(--line);
  flex: 1 1 auto;
  min-width: 64px;
  padding: 0 12px;
}

.ticket > div:first-child {
  padding-left: 0;
}

.ticket > div:last-child {
  border-right: 0;
}

.ticket dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.ticket dd {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  margin: 2px 0 0;
}

/* Card tweaks */
.recipe-card-image {
  position: relative;
}

.card-cat {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  left: 10px;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  position: absolute;
  text-transform: uppercase;
}

.recipe-card p {
  flex: 1 0 auto;
}

.recipe-card .ticket {
  padding-top: 10px;
}

.recipe-card .ticket dd {
  font-size: 15px;
}

.recipe-card .button-link {
  margin-top: 4px;
}

/* Recipe page: header meta + layout */
.recipe-page-copy .tag {
  color: var(--tomato);
  display: block;
  margin-bottom: 6px;
}

.recipe-page-copy .ticket {
  margin-top: 20px;
}

.ticket-lg {
  border-top-width: 2px;
  padding-top: 16px;
}

.ticket-lg dd {
  font-size: clamp(18px, 2.4vw, 22px);
}

.print-btn {
  margin-top: 18px;
}

/* Full-width reading panels below the fold */
.ingredients-panel,
.steps-panel,
.note-panel {
  grid-column: 1 / -1;
}

/* Ingredients as a tidy two-column checklist on wide screens */
.check-list {
  columns: 2;
  column-gap: 40px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.check-list li {
  break-inside: avoid;
  padding-left: 26px;
  position: relative;
}

.check-list li::before {
  border: 2px solid var(--ink);
  border-radius: 4px;
  content: "";
  height: 14px;
  left: 0;
  position: absolute;
  top: 4px;
  width: 14px;
}

/* Numbered steps with receipt-style hanging numerals */
.step-list {
  counter-reset: step;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.step-list li {
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 48px 1fr;
  padding: 16px 0;
}

.step-list li:first-child {
  border-top: 0;
}

.step-list li::before {
  color: var(--tomato);
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.step-body {
  align-self: center;
  font-weight: 600;
  line-height: 1.4;
}

.cooknote-panel {
  background: var(--panel);
}

.cooknote-panel p,
.story-panel p {
  font-weight: 600;
  line-height: 1.4;
  margin: 6px 0 0;
}

@media (max-width: 700px) {
  .check-list {
    columns: 1;
  }

  .step-list li {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }
}

/* Clean print output so a page is genuinely cook-from-able */
@media print {
  .site-header,
  .back-link,
  .print-btn,
  .cooknote-panel,
  .story-panel {
    display: none !important;
  }

  body {
    font-size: 12pt;
  }

  .content-page {
    padding: 0;
  }

  .recipe-page {
    display: block;
  }

  .recipe-page-photo {
    border: 1px solid #000;
    max-height: 240px;
    margin-bottom: 16px;
  }

  .recipe-panel {
    border: 1px solid #000;
    break-inside: avoid;
    box-shadow: none;
    margin-bottom: 12px;
  }

  .ticket dt,
  .ticket dd {
    font-family: monospace;
  }
}
