/* =========================================================================
   SafeTaste Kitchen — editorial food-magazine styling.
   Warm terracotta on paper white, Poppins headings over Open Sans body.
   ========================================================================= */

/* Self-hosted Poppins + Open Sans (latin subsets) — no third-party font request. */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/open-sans-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/open-sans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/open-sans-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/open-sans-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/open-sans-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/open-sans-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/poppins-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/poppins-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/poppins-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/poppins-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/poppins-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/poppins-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --terracotta: #c65d3b;
  --terracotta-dark: #a8482a;
  --terracotta-soft: #f4e2da;
  --ink: #23201e;
  --ink-soft: #57504b;
  --ink-faint: #8a817b;
  --paper: #ffffff;
  --tint: #fbf7f4;
  --line: #ece5e0;
  --gold: #b8863b;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(35, 32, 30, .05), 0 4px 14px rgba(35, 32, 30, .05);
  --shadow-md: 0 10px 34px rgba(35, 32, 30, .11);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------- reset -- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; background: var(--tint); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.021em;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--terracotta-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.2rem;
  border-radius: 0 0 10px 10px; font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--ink); flex-shrink: 0;
}

.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; background: var(--terracotta); color: #fff;
  transition: transform .35s var(--ease);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }

.brand-text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.16rem;
  letter-spacing: -.02em; color: var(--ink);
}
.brand-text span { color: var(--terracotta); font-weight: 500; }

.primary-nav ul {
  display: flex; align-items: center; gap: .3rem; list-style: none;
}
.primary-nav a {
  display: block; padding: .55rem .85rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: .94rem;
  color: var(--ink-soft); text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.primary-nav a:hover { color: var(--terracotta-dark); background: var(--terracotta-soft); }
.primary-nav a[aria-current='page'] { color: var(--terracotta-dark); background: var(--terracotta-soft); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 11px; background: #fff; cursor: pointer; position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 50%; width: 19px; height: 2px; border-radius: 2px;
  background: var(--ink); transform: translateX(-50%); transition: transform .28s var(--ease), opacity .18s linear;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { content: ''; top: -6px; }
.nav-toggle-bar::after { content: ''; top: 6px; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bar { transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-bar::before { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bar::after { top: 0; transform: rotate(-90deg); }

/* --------------------------------------------------------------- shared -- */

.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: .76rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta);
  margin: 0 0 .7rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .88rem 1.65rem; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer;
  transition: transform .22s var(--ease), background-color .22s var(--ease),
              color .22s var(--ease), box-shadow .22s var(--ease);
}
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: 0 6px 18px rgba(198, 93, 59, .28); }
.btn--primary:hover { background: var(--terracotta-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(198, 93, 59, .34); }
.btn--ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--ghost:hover { border-color: var(--terracotta); color: var(--terracotta-dark); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 600; font-size: .94rem;
  text-decoration: none; color: var(--terracotta-dark);
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tint { background: var(--tint); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 2.6rem;
}
.section-head h2 { margin-bottom: .45rem; }
.section-blurb { color: var(--ink-soft); max-width: 54ch; margin: 0; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--ink-faint); margin-bottom: 1.4rem;
}
.breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta); text-decoration: underline; }
.breadcrumb span[aria-hidden] { color: var(--line); }
.breadcrumb [aria-current] { color: var(--ink); }

.page-head { padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; }
.page-head--center { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.page-head--center .page-lede { margin-inline: auto; }
.page-lede {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--ink-soft);
  max-width: 62ch; margin: 0;
}

/* ----------------------------------------------------------------- hero -- */

.hero { position: relative; isolation: isolate; color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(31, 21, 17, .9) 0%, rgba(31, 21, 17, .74) 42%, rgba(31, 21, 17, .28) 100%);
}
.hero-inner {
  padding: clamp(4.5rem, 13vw, 9.5rem) 0 clamp(4rem, 11vw, 8rem);
  max-width: 43rem;
}
.hero .eyebrow { color: #f3c4ae; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero-lede {
  font-size: clamp(1.05rem, 1.9vw, 1.24rem); color: rgba(255, 255, 255, .88);
  max-width: 50ch; margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------------------------------------------------------------- cards -- */

.grid { display: grid; gap: 1.85rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }

.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.card--article .card-media { aspect-ratio: 16 / 9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.055); }

.card-badge {
  position: absolute; top: .9rem; left: .9rem;
  background: rgba(255, 255, 255, .95); color: var(--terracotta-dark);
  font-family: var(--font-display); font-weight: 600; font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .36rem .72rem; border-radius: 999px;
}

.card-body { padding: 1.35rem 1.45rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-eyebrow { font-size: .8rem; color: var(--ink-faint); margin: 0 0 .5rem; }
.card-title { font-size: 1.2rem; margin: 0 0 .5rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card:hover .card-title a { color: var(--terracotta-dark); }
.card-text { color: var(--ink-soft); font-size: .94rem; margin: 0 0 1.15rem; }

.card-meta {
  list-style: none; display: flex; flex-wrap: wrap; gap: .45rem 1rem;
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-faint);
}
.card-meta li { display: inline-flex; align-items: center; gap: .35rem; }
.card-meta svg { width: 15px; height: 15px; color: var(--terracotta); flex-shrink: 0; }

/* ------------------------------------------------------------ categories -- */

.category-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.category-media { aspect-ratio: 1; overflow: hidden; }
.category-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.category-card:hover .category-media img { transform: scale(1.06); }
.category-body { padding: 1.15rem 1.2rem 1.3rem; }
.category-body h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.category-body p { font-size: .87rem; color: var(--ink-soft); margin: 0 0 .7rem; }
.category-count {
  font-family: var(--font-display); font-size: .74rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--terracotta);
}

/* --------------------------------------------------------------- recipe -- */

.recipe-head { padding: clamp(2.2rem, 4vw, 3.2rem) 0 1.8rem; max-width: 46rem; }

.recipe-hero {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.recipe-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.recipe-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 1px; margin: 2.2rem 0 0; padding: 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.recipe-stats > div { background: var(--tint); padding: 1.05rem 1.1rem; }
.recipe-stats dt {
  font-family: var(--font-display); font-size: .7rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: .3rem;
}
.recipe-stats dd {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: 1.02rem; color: var(--ink);
}
.stat-note {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: .78rem; color: var(--ink-faint); line-height: 1.4; margin-top: .15rem;
}

.recipe-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 21.5rem;
  gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.recipe-intro { font-size: 1.09rem; color: var(--ink-soft); }
.recipe-intro p:first-child::first-letter {
  float: left; font-family: var(--font-display); font-weight: 700;
  font-size: 3.4rem; line-height: .82; color: var(--terracotta);
  padding: .1em .12em 0 0;
}

.recipe-section { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.recipe-section h2 { padding-bottom: .7rem; border-bottom: 2px solid var(--terracotta-soft); }

/* Steps */
.steps { list-style: none; counter-reset: none; margin-top: 1.8rem; }
.step { margin-bottom: 1.9rem; scroll-margin-top: 90px; }
.step-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.step-number {
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; flex-shrink: 0;
  border-radius: 50%; background: var(--terracotta-soft); color: var(--terracotta-dark);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
}
.step p { margin: 0; padding-top: .18rem; color: var(--ink-soft); }

.step-figure { margin: 1.4rem 0 0 3.1rem; }
.step-figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.step-figure figcaption {
  margin-top: .65rem; font-size: .86rem; color: var(--ink-faint);
  font-style: italic; padding-left: .85rem; border-left: 2px solid var(--terracotta-soft);
}

/* Tips */
.tips .tip-list { list-style: none; margin-top: 1.5rem; }
.tip-list li {
  position: relative; padding: 0 0 0 2rem; margin-bottom: 1rem;
  color: var(--ink-soft);
}
.tip-list li::before {
  content: ''; position: absolute; left: 0; top: .58em;
  width: .62rem; height: .62rem; border-radius: 50%;
  background: var(--terracotta); opacity: .85;
}

/* Ingredients */
.recipe-aside { position: sticky; top: 96px; }
.ingredients {
  background: var(--tint); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.7rem 1.6rem;
}
.ingredients h2 { font-size: 1.4rem; margin-bottom: .35rem; }
.ingredients-note { font-size: .84rem; color: var(--ink-faint); margin-bottom: 1.3rem; }
.ingredient-group + .ingredient-group { margin-top: 1.5rem; }
.ingredient-group h3 {
  font-size: .76rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: .75rem;
}
.ingredient-group ul { list-style: none; }
.ingredient-group li { border-bottom: 1px dashed var(--line); }
.ingredient-group li:last-child { border-bottom: 0; }
.ingredient-group label {
  display: flex; gap: .7rem; align-items: flex-start; cursor: pointer;
  padding: .62rem 0; font-size: .93rem; color: var(--ink-soft);
}
.ingredient-group input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 1.05rem; height: 1.05rem; margin-top: .3rem;
  border: 1.5px solid #cbbfb7; border-radius: 4px; background: #fff;
  cursor: pointer; transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.ingredient-group input:checked {
  background: var(--terracotta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / .72rem no-repeat;
  border-color: var(--terracotta);
}
.ingredient-group input:checked + span { color: var(--ink-faint); text-decoration: line-through; }

/* ----------------------------------------------------------------- prose -- */

.prose { max-width: 70ch; }
.prose--narrow { max-width: 68ch; margin-inline: auto; padding-block: clamp(2.2rem, 4vw, 3.2rem); }
.prose p { color: var(--ink-soft); }
.prose h2 { margin-top: 2.4rem; font-size: 1.55rem; }
.prose em { color: var(--ink); }
.about-media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-top: 1rem;
}
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-body .btn { margin-right: .5rem; margin-top: .6rem; }

/* --------------------------------------------------------------- contact -- */

.contact-layout {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.contact-form {
  background: var(--tint); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem);
}
.field { margin-bottom: 1.35rem; }
.field label {
  display: block; margin-bottom: .45rem;
  font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--ink);
}
.field input, .field textarea {
  width: 100%; padding: .82rem 1rem; font: inherit; font-size: 1rem;
  color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 11px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(198, 93, 59, .13);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #c0432f; }

.form-status { margin: 1.1rem 0 0; font-size: .92rem; min-height: 1.4em; }
.form-status[data-state='success'] { color: #2f7a4f; }
.form-status[data-state='error'] { color: #c0432f; }

.contact-aside h2 { font-size: 1.12rem; margin-top: 1.8rem; }
.contact-aside h2:first-child { margin-top: 0; }
.contact-aside p { color: var(--ink-soft); font-size: .96rem; }
.plain-list { list-style: none; }
.plain-list li {
  position: relative; padding-left: 1.3rem; margin-bottom: .55rem;
  color: var(--ink-soft); font-size: .96rem;
}
.plain-list li::before {
  content: ''; position: absolute; left: 0; top: .68em;
  width: .42rem; height: .42rem; border-radius: 50%; background: var(--terracotta);
}
.muted { color: var(--ink-faint); font-size: .9rem; }

/* ------------------------------------------------------------ newsletter -- */

.newsletter { background: var(--ink); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.newsletter-inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center;
}
.newsletter h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: .6rem; }
.newsletter-copy p { color: rgba(255, 255, 255, .72); margin: 0; max-width: 46ch; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: .7rem; }
.newsletter-form input {
  flex: 1 1 15rem; padding: .88rem 1.1rem; font: inherit; font-size: 1rem;
  color: #fff; background: rgba(255, 255, 255, .09);
  border: 1.5px solid rgba(255, 255, 255, .22); border-radius: 999px;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter-form input:focus {
  outline: none; border-color: var(--terracotta); background: rgba(255, 255, 255, .14);
}
.newsletter-note {
  flex-basis: 100%; margin: .3rem 0 0; font-size: .82rem;
  color: rgba(255, 255, 255, .55); line-height: 1.55;
}
.newsletter-note a { color: rgba(255, 255, 255, .8); }
.newsletter-note a:hover { color: #fff; }

/* --------------------------------------------------------------- footer -- */

.site-footer { background: var(--tint); border-top: 1px solid var(--line); }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 2.5rem; padding: clamp(3rem, 5vw, 4rem) 0 2.5rem;
}
.footer-brand p { margin-top: .8rem; color: var(--ink-soft); font-size: .92rem; max-width: 34ch; }
.footer-nav h2, .footer-social h2 {
  font-size: .76rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: .55rem; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; font-size: .94rem; }
.footer-nav a:hover { color: var(--terracotta-dark); text-decoration: underline; }

.social-list { list-style: none; display: flex; gap: .6rem; margin-bottom: 1.1rem; }
.social-list a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: #fff; border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.social-list svg { width: 17px; height: 17px; }
.social-list a:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); transform: translateY(-3px); }
.footer-email a { color: var(--ink-soft); font-size: .92rem; text-decoration: none; }
.footer-email a:hover { color: var(--terracotta-dark); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid var(--line); padding: 1.4rem 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.footer-bottom p { margin: 0; font-size: .86rem; color: var(--ink-faint); }

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 1000px) {
  .recipe-layout { grid-template-columns: 1fr; }
  .recipe-aside { position: static; order: -1; }
  .contact-layout { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.1rem;
    display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
    transition: grid-template-rows .3s var(--ease), opacity .25s var(--ease), visibility .3s;
    box-shadow: var(--shadow-sm);
  }
  .primary-nav ul { overflow: hidden; flex-direction: column; align-items: stretch; gap: 0; }
  .site-header.nav-open .primary-nav { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
  .primary-nav a { padding: .85rem .6rem; border-radius: 10px; font-size: 1rem; }

  .section-head { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .step-figure { margin-left: 0; }
  .recipe-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .grid { gap: 1.4rem; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .newsletter-form .btn { width: 100%; }
  .recipe-intro p:first-child::first-letter { font-size: 2.9rem; }
}

@media print {
  .site-header, .site-footer, .newsletter, .section--tint, .hero-actions, .step-figure { display: none; }
  body { font-size: 11pt; }
  .recipe-layout { grid-template-columns: 1fr; display: block; }
}

/* Emphasis applied when someone submits the presentational newsletter form. */
.newsletter-note.is-highlighted {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-left: 2px solid var(--terracotta);
  padding: .7rem .9rem;
  border-radius: 0 8px 8px 0;
}
