/* Northern Blvd Food Journal — main stylesheet (mobile first) */

@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --forest: #1d3a30;
  --forest-2: #25493c;
  --moss: #3e6b4f;
  --sage: #9db68c;
  --sage-soft: #e3ead8;
  --bark: #6e4a34;
  --cocoa: #3f281d;
  --wheat: #ecd9b6;
  --crust: #d4ae78;
  --cream: #f7f1e6;
  --paper: #fffaf2;
  --ink: #1f1b16;
  --ink-2: #4b433a;
  --ink-3: #6f665b;
  --line: #e2d6c1;
  --on-dark: #f5ecdb;
  --on-dark-2: #cfd9c8;
  --pill: linear-gradient(180deg, #f3d3ad 0%, #dcae7c 100%);

  --serif: "Young Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(31, 27, 22, .06), 0 12px 32px -12px rgba(31, 27, 22, .22);
  --shadow-soft: 0 10px 30px -18px rgba(31, 27, 22, .35);
  --gutter: 16px;
  --wrap: 1240px;
  --measure: 68ch;
  --step--1: clamp(.84rem, .82rem + .1vw, .9rem);
  --step-0: clamp(1.02rem, .98rem + .2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.12rem + .4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + .75vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.6vw, 3.9rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--bark); }
:focus-visible { outline: 3px solid #9a5b1f; outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .band-contour :focus-visible,
.featured-panel :focus-visible, .site-footer :focus-visible, .recipe-card__head :focus-visible, .card--bark :focus-visible { outline-color: #f3d3ad; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; }

.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  width: auto; height: auto; clip: auto;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 10px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 48px; padding: .7em 1.4em;
  border: 0; border-radius: 999px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn--pill { background: var(--pill); color: var(--cocoa); box-shadow: 0 8px 22px -10px rgba(63, 40, 29, .55), inset 0 1px 0 rgba(255,255,255,.6); }
.btn--pill:hover { color: var(--cocoa); transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(63, 40, 29, .6), inset 0 1px 0 rgba(255,255,255,.6); }
.btn--ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(245, 236, 219, .45); }
.btn--ghost:hover { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--on-dark); }
.btn--line { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--line:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--crust); }
.btn--small { min-height: 40px; padding: .55em 1.05em; font-size: .92rem; }

.kicker {
  display: inline-flex; align-items: center; gap: .45em;
  font: 700 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--moss); text-decoration: none;
}
a.kicker:hover { color: var(--bark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(29, 58, 48, .97);
  color: var(--on-dark);
  backdrop-filter: saturate(1.2) blur(8px);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; }
.brand:hover { color: var(--on-dark); }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 1.22rem; letter-spacing: .005em; }
.brand__tag { font: 700 .62rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--crust); margin-top: 5px; }

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .96rem;
}
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-category > a, .site-nav a[aria-current="page"] { background: rgba(245, 236, 219, .1); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 0; color: var(--on-dark); cursor: pointer;
}
.icon-btn:hover { background: rgba(245, 236, 219, .12); }
.icon-btn .icon { width: 22px; height: 22px; }

.search-panel { display: none; padding: 0 0 16px; }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid rgba(245, 236, 219, .35); background: rgba(255, 255, 255, .08); color: var(--on-dark);
  font: 500 1rem var(--sans);
}
.search-form input[type="search"]::placeholder { color: rgba(245, 236, 219, .7); }
.search-form--light input[type="search"] { border-color: var(--line); background: var(--paper); color: var(--ink); }
.search-form--light input[type="search"]::placeholder { color: var(--ink-3); }

.mobile-nav { display: none; border-top: 1px solid rgba(245, 236, 219, .12); padding: 8px 0 18px; }
.mobile-nav.is-open { display: block; max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid rgba(245, 236, 219, .08); }

@media (min-width: 960px) {
  .site-nav { display: block; }
  .menu-toggle { display: none; }
  .mobile-nav, .mobile-nav.is-open { display: none; }
}

/* ---------- Generic sections ---------- */
.section { padding-block: clamp(48px, 7vw, 92px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(22px, 3vw, 36px); }
.section-head h2 { font-size: var(--step-3); margin: .2em 0 0; }
.section-head p { margin: .4em 0 0; color: var(--ink-2); max-width: 56ch; }
.section-head__link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--bark); }
.section-head__link:hover { gap: .6em; }

/* Contour texture: the journal's signature band. */
.band-contour {
  position: relative; isolation: isolate;
  background-color: #2b5243;
  color: var(--on-dark);
}
.band-contour::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='320' viewBox='0 0 520 320'%3E%3Cg fill='none' stroke='%23d9e4cc' stroke-opacity='.16' stroke-width='1.2'%3E%3Cpath d='M-20 60c60-30 120 30 180 0s120-50 180-10 120 40 200 0'/%3E%3Cpath d='M-20 90c60-30 120 30 180 0s120-50 180-10 120 40 200 0'/%3E%3Cpath d='M-20 120c60-30 120 30 180 0s120-50 180-10 120 40 200 0'/%3E%3Cpath d='M-20 170c70-40 130 20 190-10s110-30 170 0 120 30 200-10'/%3E%3Cpath d='M-20 200c70-40 130 20 190-10s110-30 170 0 120 30 200-10'/%3E%3Cpath d='M-20 250c50-20 140 30 200 5s120-40 180-5 100 20 160-5'/%3E%3Cpath d='M-20 280c50-20 140 30 200 5s120-40 180-5 100 20 160-5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 520px 320px;
}
.band-contour .section-head h2 { color: var(--on-dark); }
.band-contour .section-head p { color: var(--on-dark-2); }
.band-contour .section-head .kicker { color: var(--wheat); }
.band-contour .section-head__link { color: var(--wheat); }

/* ---------- Hero ---------- */
.hero { background: var(--forest); color: var(--on-dark); overflow: hidden; position: relative; }
.hero__grid { display: grid; gap: 28px; padding-block: 36px 52px; align-items: center; }
.hero__copy { position: relative; z-index: 2; }
.hero__copy .kicker { color: var(--crust); }
.hero__title { font-size: var(--step-4); color: var(--wheat); margin: .25em 0 .35em; line-height: 1.04; }
.hero__lede { font-size: var(--step-1); line-height: 1.5; color: var(--on-dark-2); max-width: 34ch; margin-bottom: 1.4em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; }
.hero__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); aspect-ratio: 4 / 3; background: var(--forest-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__leaf { position: absolute; width: clamp(90px, 16vw, 170px); pointer-events: none; }
.hero__leaf--a { right: -26px; top: -30px; transform: rotate(28deg); }
.hero__leaf--b { left: -34px; bottom: -28px; transform: rotate(-150deg); width: clamp(70px, 12vw, 130px); }
.hero__credit { margin-top: 10px; font-size: .78rem; color: rgba(245, 236, 219, .62); text-align: right; }
.hero__credit a { color: inherit; }
.hero__notes { display: grid; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.hero__notes li { display: flex; gap: 12px; align-items: center; color: var(--on-dark-2); font-size: .98rem; }
.hero__notes .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(236, 217, 182, .12); color: var(--wheat); flex: none; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.02fr 1fr; gap: 56px; padding-block: 64px 84px; }
  .hero__photo { aspect-ratio: 5 / 4.4; }
}

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 3 / 2; background: var(--wheat); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.card__title { font-size: var(--step-1); line-height: 1.22; margin: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__excerpt { margin: 0; color: var(--ink-2); font-size: .97rem; line-height: 1.55; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 6px; font-size: .82rem; color: var(--ink-3); }
.card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.card__meta .icon { width: 15px; height: 15px; }
.card .kicker { position: relative; z-index: 2; }

/* Tile variants echo the colored tiles of the journal's grid. */
.card--sage { background: #a9c095; }
.card--bark { background: var(--bark); }
.card--wheat { background: var(--wheat); }
.card--bark .card__title, .card--bark .card__excerpt, .card--bark .card__meta { color: var(--on-dark); }
.card--bark .card__title a:hover { color: var(--wheat); }
.card__title a:hover { color: var(--bark); }
.card--bark .kicker { color: #f3d3ad; }
.card--bark a.kicker:hover { color: #fff; }
.card--sage .kicker { color: var(--forest); }
.card--sage .card__excerpt, .card--sage .card__meta { color: #26392c; }
.card--wheat .card__excerpt, .card--wheat .card__meta { color: #4d3a29; }
.card--wheat .kicker { color: var(--bark); }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Featured: three editorial picks on a deep-green panel */
.featured-panel {
  background: var(--forest); color: var(--on-dark);
  border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 34px);
  box-shadow: var(--shadow);
  display: grid; gap: 18px;
}
.feature { position: relative; display: grid; gap: 14px; color: var(--on-dark); }
.feature__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--forest-2); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature h3 { font-size: var(--step-1); margin: 0; color: var(--wheat); }
.feature h3 a { color: inherit; text-decoration: none; }
.feature h3 a::after { content: ""; position: absolute; inset: 0; }
.feature p { margin: 0; color: var(--on-dark-2); font-size: .96rem; }
.feature .kicker { color: var(--crust); }
.feature--lead h3 { font-size: var(--step-2); }
@media (min-width: 900px) {
  .featured-panel { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 26px 34px; }
  .feature--lead { grid-row: span 2; }
  .feature--side { grid-template-columns: 170px 1fr; align-items: center; }
  .feature--side .feature__media { aspect-ratio: 1; }
  .feature--side + .feature--side { border-top: 1px solid rgba(245, 236, 219, .14); padding-top: 26px; }
}

/* Stories: big lead + list */
.stories { display: grid; gap: 24px; }
.story-list { display: grid; gap: 0; }
.story-row { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.story-row:first-child { padding-top: 0; }
.story-row__media { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--wheat); }
.story-row__media img { width: 100%; height: 100%; object-fit: cover; }
.story-row h3 { font-size: 1.15rem; margin: 4px 0 0; }
.story-row h3 a { color: inherit; text-decoration: none; }
.story-row h3 a::after { content: ""; position: absolute; inset: 0; }
@media (min-width: 900px) { .stories { grid-template-columns: 1.2fr 1fr; gap: 40px; } }

/* About the journal */
.about-panel {
  display: grid; gap: 24px; align-items: center;
  background: var(--wheat); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
}
.about-panel h2 { font-size: var(--step-3); }
.about-panel p { color: #4d3a29; }
.about-panel__facts { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.about-panel__facts li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 250, 242, .65); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--cocoa); }
.about-panel__facts .icon { color: var(--bark); margin-top: 3px; }
@media (min-width: 900px) { .about-panel { grid-template-columns: 1.2fr 1fr; gap: 48px; } }

/* Latest list */
.latest { display: grid; gap: 14px; }
.latest-item { position: relative; display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; background: var(--paper); border-radius: var(--radius-sm); box-shadow: 0 1px 0 var(--line); }
.latest-item h3 { font-size: 1.12rem; margin: 2px 0 0; }
.latest-item h3 a { color: inherit; text-decoration: none; }
.latest-item h3 a::after { content: ""; position: absolute; inset: 0; }
.latest-item time { font-size: .82rem; color: var(--ink-3); }
@media (min-width: 760px) { .latest { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .86rem; color: var(--ink-3); margin: 0 0 14px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "›"; color: var(--crust); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--bark); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink-3); }

/* ---------- Category & page headers ---------- */
.page-hero { background: var(--forest); color: var(--on-dark); padding-block: 34px 44px; }
.page-hero h1 { color: var(--wheat); font-size: var(--step-4); margin: .1em 0 .3em; }
.page-hero__intro { max-width: 70ch; color: var(--on-dark-2); font-size: var(--step-0); }
.page-hero__intro p:last-child { margin-bottom: 0; }
.page-hero .breadcrumbs, .page-hero .breadcrumbs a { color: var(--on-dark-2); }
.page-hero .breadcrumbs [aria-current] { color: rgba(245, 236, 219, .7); }
.page-hero .kicker { color: var(--crust); }
.category-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.category-pills a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(245, 236, 219, .3); }
.category-pills a:hover, .category-pills a[aria-current="page"] { background: var(--wheat); color: var(--cocoa); box-shadow: none; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line); }
.pagination .current { background: var(--forest); color: var(--on-dark); box-shadow: none; }

/* ---------- Article ---------- */
.article-head { padding-block: 26px 10px; }
.article-head__inner { max-width: 900px; }
.article-head h1 { font-size: var(--step-4); margin: .2em 0 .3em; }
.article-dek { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); margin: 0 0 18px; max-width: 46ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: .9rem; color: var(--ink-3); }
.byline a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.byline a:hover { text-decoration: underline; }
.byline span { display: inline-flex; align-items: center; gap: 6px; }
.byline .icon { width: 16px; height: 16px; }
.article-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.article-figure { margin: 22px 0 0; }
.article-figure__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--wheat); }
.article-figure__img img { width: 100%; height: 100%; object-fit: cover; }
figcaption, .credit { font-size: .8rem; color: var(--ink-3); margin-top: 8px; }
figcaption a, .credit a { color: inherit; }

.article-layout { display: grid; gap: 32px; padding-block: 34px 64px; }
.article-layout > * { min-width: 0; }
@media (min-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; }
  .article-layout__aside { grid-column: 2; grid-row: 1; }
  .article-layout > .prose { grid-column: 1; grid-row: 1; }
  .toc { position: sticky; top: 96px; }
}

.toc { background: var(--paper); border-radius: var(--radius); padding: 6px 18px; box-shadow: 0 1px 0 var(--line); }
.toc summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-weight: 700; font-size: .95rem; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 1.3rem; color: var(--bark); }
.toc[open] summary::after { content: "–"; }
.toc ol { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 1.6em 1fr; gap: 4px; padding: 7px 0; color: var(--ink-2); text-decoration: none; font-size: .93rem; line-height: 1.4; border-top: 1px solid var(--line); }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--crust); font-weight: 700; font-size: .8rem; padding-top: 2px; }
.toc a:hover, .toc a.is-active { color: var(--bark); }

.prose { font-size: 1.1rem; line-height: 1.72; min-width: 0; }
.prose > * { max-width: var(--measure); }
.prose > .recipe-card, .prose > .table-wrap { max-width: none; }
.prose > * + h2 { margin-top: 1.9em; }
.prose h2 { font-size: var(--step-2); }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--bark); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--sage); font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); }
.prose .pending-link { text-decoration: none; }

.at-a-glance { background: var(--sage-soft); border-radius: var(--radius); padding: 20px 22px 8px; margin: 0 0 1.8em; }
.at-a-glance h2 { font-size: 1.05rem; font-family: var(--sans); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); margin: 0 0 .7em !important; }
.at-a-glance ul { margin: 0 0 12px; }

.callout { border-radius: var(--radius-sm); padding: 16px 18px 2px; margin: 1.5em 0; background: var(--paper); box-shadow: inset 4px 0 0 var(--sage); }
.callout--tip { box-shadow: inset 4px 0 0 var(--moss); }
.callout--note { box-shadow: inset 4px 0 0 var(--crust); }
.callout--warning { box-shadow: inset 4px 0 0 #b0563a; background: #fbefe6; }

.table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--line); background: var(--paper); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--forest); color: var(--on-dark); font-weight: 700; font-size: .86rem; letter-spacing: .03em; }
.prose tbody tr:nth-child(even) td { background: rgba(236, 217, 182, .22); }
.prose tbody tr:last-child td { border-bottom: 0; }

.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }

.sources { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.sources h2 { font-size: 1.1rem !important; font-family: var(--sans); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-top: 0 !important; }
.sources ol { padding-left: 1.2em; }
.sources li { margin-bottom: .5em; }

.article-footer-note { margin-top: 2.4em; padding: 18px 20px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 1px 0 var(--line); font-size: .93rem; color: var(--ink-2); }
.article-footer-note p { margin: 0; }

/* ---------- Recipe card ---------- */
.recipe-card {
  margin: 2.2em 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow);
  font-size: 1rem; line-height: 1.6;
}
.recipe-card__head { background: var(--forest); color: var(--on-dark); padding: 24px clamp(18px, 3vw, 30px) 22px; }
.recipe-card__head .kicker { color: var(--crust); }
.recipe-card__title { color: var(--wheat); font-size: var(--step-2); margin: .3em 0 .3em !important; }
.recipe-card__summary { color: var(--on-dark-2); margin: 0; }
.recipe-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.recipe-facts { display: flex; flex-wrap: wrap; margin: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.recipe-facts div { flex: 1 1 150px; padding: 14px 18px; box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line); }
.recipe-facts dt { font: 700 .7rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.recipe-facts dd { margin: 4px 0 0; font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.recipe-card__body { display: grid; gap: 8px 40px; padding: 24px clamp(18px, 3vw, 30px) 8px; }
@media (min-width: 860px) { .recipe-card__body { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.recipe-card h3 { font-size: var(--step-1); margin: 0 0 .6em; }
.ingredients-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; margin-bottom: .6em; }
.ingredients-head h3 { margin: 0; }
.recipe-card h4 { font: 800 .78rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--bark); margin: 1.2em 0 .5em; }
.units { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.units button { border: 0; background: transparent; min-height: 34px; padding: 0 14px; border-radius: 999px; font: 700 .8rem var(--sans); color: var(--ink-2); cursor: pointer; }
.units button[aria-pressed="true"] { background: var(--forest); color: var(--on-dark); }
.ingredients { list-style: none; margin: 0 0 1em; padding: 0; }
.ingredients li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.ingredients input { margin: 5px 0 0; width: 18px; height: 18px; accent-color: var(--moss); flex: none; }
.ingredients label { cursor: pointer; }
.ingredients .amt { font-weight: 700; }
.ingredients .alt { color: var(--ink-3); }
.ingredients .note { color: var(--ink-3); }
.ingredients input:checked + label { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--crust); }
.recipe-card[data-units="metric"] .u-us, .recipe-card[data-units="us"] .u-metric, .recipe-card[data-units="metric"] .paren { display: none; }
.recipe-card[data-units="metric"] .u-metric { color: var(--ink); font-weight: 700; }
.steps { list-style: none; margin: 0 0 1em; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 18px 50px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--wheat); color: var(--cocoa); display: grid; place-items: center; font-weight: 800; font-size: .92rem; }
.steps strong { display: block; margin-bottom: 2px; }
.recipe-card__notes { padding: 6px clamp(18px, 3vw, 30px) 24px; }
.recipe-card__notes ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.equipment { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 1em; padding: 0; }
.equipment li { background: var(--cream); border-radius: 999px; padding: 4px 12px; font-size: .88rem; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Related ---------- */
.related { background: var(--sage-soft); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 640px; }
.form label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--paper); font: 500 1rem var(--sans); color: var(--ink);
}
.form textarea { min-height: 170px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--moss); outline: none; box-shadow: 0 0 0 3px rgba(62, 107, 79, .18); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--sage-soft); color: var(--forest); font-weight: 600; }
.notice--error { background: #fbe9e1; color: #7d2f19; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cocoa); color: #e9dccb; padding-block: 56px 28px; margin-top: 0; }
.site-footer a { color: #f3e7d4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand p { color: #d2c0a8; max-width: 40ch; margin-top: 14px; font-size: .95rem; }
.footer-col h2 { font: 800 .76rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--crust); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { display: inline-flex; min-height: 36px; align-items: center; }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(233, 220, 203, .16); display: grid; gap: 8px; font-size: .84rem; color: #c8b59b; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
  .footer-legal { grid-template-columns: 1fr auto; }
}

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 40px 0; color: var(--ink-2); }
.error-page { padding-block: clamp(56px, 10vw, 120px); }
.error-page h1 { font-size: var(--step-4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print: recipe card only ---------- */
@media print {
  *, *::before, *::after { color: #000 !important; background: transparent !important; box-shadow: none !important; text-shadow: none !important; }
  body { background: #fff; font-size: 11pt; }
  body.printing-recipe > *:not(.site-main) { display: none !important; }
  body.printing-recipe .site-main > *:not(.print-target) { display: none !important; }
  body.printing-recipe .print-target > *:not(.article-layout) { display: none !important; }
  body.printing-recipe .article-layout__aside { display: none !important; }
  body.printing-recipe .prose > *:not(.recipe-card) { display: none !important; }
  .site-header, .site-footer, .toc, .article-actions, .recipe-card__actions, .units, .related, .breadcrumbs { display: none !important; }
  .recipe-card { box-shadow: none; border: 1px solid #ccc; }
  .recipe-card__head { background: #fff; color: #000; }
  .recipe-card__title, .recipe-card__summary { color: #000 !important; }
  .ingredients input { display: none; }
  a { color: #000; text-decoration: none; }
}

.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.site-nav a.is-section { box-shadow: inset 0 -2px 0 var(--crust); border-radius: 999px 999px 6px 6px; }
.page-hero__intro a, .page-hero .breadcrumbs a { color: var(--wheat); }
.page-hero__intro a:hover, .page-hero .breadcrumbs a:hover { color: #fff; }
