/* =========================================================
   LoFi Eats
   Brand: black, white and LoFi yellow. Futura-style headings
   (Jost), Poppins body. Fun comes from photos, tilted
   "polaroids", sticker tags and yellow highlights.
   ========================================================= */

:root {
  --white: #ffffff;
  --black: #000000;
  --ink: #141414;            /* body text: a hair softer than pure black */
  --muted: #5c5c58;
  --accent: #ffc700;         /* the LoFi yellow, from the original theme */
  --accent-soft: #fff3c4;
  --cream: #f4f4f2;          /* the original theme's light accent */
  --line: rgba(0, 0, 0, .12);

  /* futura-pt was the Squarespace font (Adobe, paid). Jost is the closest free match. */
  --font-heading: "Jost", "Futura", "Trebuchet MS", sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;

  /* clamp(min, fluid, max): grows with the window but never gets silly */
  --h1: clamp(2.3rem, 1.5rem + 3.2vw, 4.2rem);
  --h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem);
  --h3: clamp(1.25rem, 1.1rem + .5vw, 1.55rem);

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --band: clamp(56px, 8vw, 104px);   /* vertical padding of a page section */
  --radius: 14px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }  /* so JS can hide cards that have display set */
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.3; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band); }
.band--cream { background: var(--cream); }
.band--black { background: var(--black); color: var(--white); }
.band--yellow { background: var(--accent); }
.band--flush-top { padding-top: 0; }
.band--compact { --band: clamp(40px, 5vw, 64px); }
.band--results { padding-top: 28px; }
.center { text-align: center; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 38em; }
.center .lede { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Yellow highlighter behind a word: <span class="hl">Cooking</span> */
.hl { background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%); padding-inline: .08em; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .75em 1.5em; border-radius: 99px;
  background: var(--black); color: var(--white); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 500; font-size: .95rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  padding: 1em 1.6em;
  border: 2px solid var(--black); border-radius: 99px;   /* huge radius = pill */
  background: var(--accent); color: var(--black);
  transition: transform .15s ease, box-shadow .15s ease;
}
/* "pressable" feel: the button lifts and casts a hard shadow on hover */
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--black); }
.btn:active { transform: none; box-shadow: none; }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { box-shadow: 3px 3px 0 var(--accent); }
.btn--ghost { background: transparent; }
.btn--small { font-size: .85rem; padding: .7em 1.15em; }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; flex-shrink: 0; }
.band--black .btn--ghost { border-color: var(--white); color: var(--white); }
.band--black .btn--ghost:hover { box-shadow: 3px 3px 0 var(--accent); }

.text-link { font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--accent); white-space: nowrap; }
.text-link:hover { background: var(--accent-soft); }

/* Sticker-style tags / category chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4em;
  font: 400 .9rem/1 var(--font-body);
  padding: .6em 1em;
  border: 1.5px solid var(--black); border-radius: 99px;
  background: var(--white); color: var(--black);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, transform .15s ease;
}
.chip:hover { background: var(--accent-soft); transform: rotate(-2deg); }
.chip[aria-pressed="true"] { background: var(--black); color: var(--white); }
.chips--center { justify-content: center; }
.chip small { font-size: .75em; opacity: .6; }
.tag { font-size: .78rem; font-weight: 400; padding: .3em .75em; border: 1px solid currentColor; border-radius: 99px; text-decoration: none; }
a.tag:hover { background: var(--accent); color: var(--black); border-color: var(--black); }

/* ---------- Announcement bar ---------- */
.announce { background: var(--accent); text-align: center; font-size: .85rem; font-weight: 400; padding: .55rem var(--gutter); }
.announce a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Header (sticks to the top while you scroll) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: .6rem; margin-right: auto; text-decoration: none; }
.logo img { width: 52px; height: 52px; transition: transform .3s ease; }
.logo:hover img { transform: rotate(-12deg); }
.logo span { font: 500 1.35rem/1 var(--font-heading); }
.nav { display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 400; padding-block: .3em; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--black); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.header-search { display: inline-flex; padding: .45rem; border-radius: 99px; text-decoration: none; }
.header-search:hover { background: var(--accent-soft); }
.header-search svg, .search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

.social { display: flex; align-items: center; gap: .9rem; }
.social a { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; color: inherit; }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.social a:hover { color: var(--accent); }
.site-header .social a:hover { color: var(--black); transform: rotate(-10deg); }

.burger { display: none; width: 30px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 3px; border-radius: 2px; background: var(--black); transition: transform .25s ease, opacity .25s ease; }
.menu-open .burger span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
  background: var(--accent);
  opacity: 0; transition: opacity .25s ease;
}
.mobile-menu.is-visible { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.mobile-menu nav a { font: 500 2.2rem/1.3 var(--font-heading); text-decoration: none; }
.mobile-menu .social svg { width: 26px; height: 26px; }
body.menu-open { overflow: hidden; }

@media (max-width: 859px) {
  :root { --header-h: 64px; }
  .site-header .nav, .site-header .social { display: none; }
  .burger { display: flex; }
  .logo img { width: 44px; height: 44px; }
}

/* ---------- Lofi radio ---------- */
.radio-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  font: 400 .85rem/1 var(--font-body); color: var(--black);
  padding: .5rem .85rem; border: 1.5px solid var(--black); border-radius: 99px;
  background: var(--white); cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.site-header .radio-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.site-header .radio-toggle:hover { background: var(--accent-soft); transform: rotate(-3deg); }
.radio-toggle[aria-pressed="true"] { background: var(--accent); }
/* radio was playing on the previous page: nudge them to resume */
.radio-toggle.is-resume { animation: nudge 1.6s ease-in-out infinite; background: var(--accent-soft); }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: scale(1.08) rotate(-4deg); } }

.radio {
  position: fixed; z-index: 60;
  width: 340px;
  background: var(--black); color: var(--white);
  border: 2px solid var(--black); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--accent);
  overflow: hidden;
}
/* Which corner it's parked in. Drag the title bar, or tap the move button. */
.radio--br { right: 20px; bottom: 20px; }
.radio--bl { left: 20px; bottom: 20px; }
.radio--tr { right: 20px; top: calc(var(--header-h) + 20px); }
.radio--tl { left: 20px; top: calc(var(--header-h) + 20px); }
.radio__bar { display: flex; align-items: center; gap: .3rem; padding: .45rem .5rem .45rem .9rem; cursor: grab; touch-action: none; user-select: none; }
.radio.is-dragging { cursor: grabbing; box-shadow: 12px 12px 0 var(--accent); }
.radio.is-dragging .radio__bar { cursor: grabbing; }
.radio.is-dragging iframe { pointer-events: none; }   /* otherwise the video swallows the drag */
.radio__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.radio__title { flex: 1; display: flex; align-items: center; gap: .55rem; font: 500 .9rem/1 var(--font-heading); }
.radio__btn { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--white); font-size: 1rem; cursor: pointer; }
.radio__btn:hover { background: rgba(255, 255, 255, .15); }
.radio__screen iframe { display: block; width: 100%; height: 200px; border: 0; }   /* YouTube minimum: 200x200 */
.radio__hint { margin: 0; padding: .5rem .9rem; font-size: .8rem; background: var(--accent); color: var(--black); }
/* little dancing equalizer bars */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; background: var(--accent); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.35s; }
.eq i:nth-child(3) { animation-delay: -.7s; }
.radio:not(.is-playing) .eq i { animation-play-state: paused; }   /* bars only dance while music plays */
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@media (max-width: 859px) {
  .site-header .radio-toggle span { display: none; }   /* icon only in the phone header */
  .site-header .radio-toggle { padding: .45rem; border: 0; }
  /* phones: full width, parked at the top or the bottom */
  .radio { left: 12px; right: 12px; width: auto; }
  .radio--bl, .radio--br { bottom: 12px; }
  .radio--tl, .radio--tr { top: calc(var(--header-h) + 12px); }
  .radio__popout { display: none; }   /* pop-up windows don't exist on phones */
}

/* ---------- Page heading band (Recipes, Contact, ...) ---------- */
.page-head { background: var(--cream); padding-block: clamp(40px, 6vw, 72px); }
.page-head h1 { margin-bottom: .25em; }
.page-head .lede { margin-bottom: 0; }

/* ---------- Home: hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 3.8vw, 4.8rem); line-height: 1.05; }
.hero .lede { margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* three tilted "polaroid" photos with a yellow circle behind */
.collage { position: relative; aspect-ratio: 1 / .92; }
.collage::before {
  content: ""; position: absolute; inset: 8% 6% 6% 10%;
  border-radius: 50%; background: var(--accent);
}
.polaroid {
  position: absolute; width: 52%;
  padding: 10px 10px 34px; background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  text-decoration: none;
  transition: transform .25s ease;
}
.polaroid img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.polaroid span { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; font: 400 .85rem/1.2 var(--font-heading); }
.polaroid:nth-child(1) { left: 0; top: 4%; transform: rotate(-7deg); }
.polaroid:nth-child(2) { right: 0; top: 0; transform: rotate(5deg); }
.polaroid:nth-child(3) { left: 26%; bottom: 0; transform: rotate(-2deg); z-index: 1; }
.polaroid:hover { transform: rotate(0) scale(1.04); z-index: 2; }
.sticker {
  position: absolute; right: 2%; bottom: 6%; z-index: 3;
  width: 22%; aspect-ratio: 1;
  border-radius: 50%; background: var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  transform: rotate(12deg);
}

@media (max-width: 799px) {
  .hero { grid-template-columns: 1fr; }
  .collage { max-width: 440px; width: 100%; margin-inline: auto; }
}

/* ---------- Section heading row ("Fresh out of the kitchen   See all →") ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.section-head h2 { margin: 0; }

/* ---------- Recipe cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.5vw, 32px) clamp(14px, 2vw, 24px); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1023px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 699px)  { .card-grid, .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }

.card { display: block; text-decoration: none; color: var(--ink); }
.card__img {
  position: relative; overflow: hidden;
  aspect-ratio: 1; border-radius: var(--radius);
  background: var(--cream);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__img { transform: translateY(-4px) rotate(-1.2deg); box-shadow: 6px 6px 0 var(--accent); }
.card:nth-child(even):hover .card__img { transform: translateY(-4px) rotate(1.2deg); }
.card:hover .card__img img { transform: scale(1.05); }
.card h3 { font-size: clamp(1rem, .95rem + .35vw, 1.2rem); margin: .7em 0 .2em; }
.card__tags { font-size: .8rem; color: var(--muted); margin: 0; }

/* ---------- Home: "Meet Joseph" ---------- */
.meet { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 900px; margin-inline: auto; }
.meet img { width: clamp(140px, 18vw, 220px); aspect-ratio: 1; object-fit: cover; object-position: center 30%; border-radius: 50%; border: 4px solid var(--accent); }
.meet p { color: rgba(255, 255, 255, .82); font-size: 1.05rem; }
.meet h2 { color: var(--white); }
@media (max-width: 599px) { .meet { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ---------- Newsletter strip ---------- */
.newsletter { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 4vw, 56px); align-items: center; }
.newsletter h2 { margin-bottom: .3em; }
.newsletter p { margin: 0; font-weight: 400; max-width: 30em; }
.newsletter iframe { width: 420px; max-width: 100%; height: 320px; border: 2px solid var(--black); border-radius: var(--radius); background: var(--white); }
@media (max-width: 859px) { .newsletter { grid-template-columns: 1fr; } .newsletter iframe { width: 100%; } }

/* ---------- Home: Instagram row ---------- */
.insta-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.insta-row a { display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 1; }
.insta-row img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.insta-row a:hover img { transform: scale(1.08); }
@media (max-width: 699px) { .insta-row { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Recipes index ---------- */
.finder { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.search {
  display: flex; align-items: center; gap: .7rem;
  max-width: 560px; height: 54px; padding: 0 1.2rem;
  border: 2px solid var(--black); border-radius: 99px; background: var(--white);
}
.search:focus-within { box-shadow: 3px 3px 0 var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-weight: 400; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
/* chips scroll sideways on phones instead of wrapping into a tall block */
@media (max-width: 699px) {
  .finder .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
  .finder .chips::-webkit-scrollbar { display: none; }
}
/* Netflix-style collection rows. Each row scrolls sideways and always shows part of the
   next card at the edge: that cut-off card is the cue that there's more to swipe. */
.shelves { padding-block: clamp(28px, 4vw, 48px) var(--band); }
.shelf { --peek: 5.4; --gap: clamp(14px, 2vw, 22px); margin-bottom: clamp(28px, 4vw, 48px); }
@media (max-width: 1023px) { .shelf { --peek: 4.3; } }
@media (max-width: 699px)  { .shelf { --peek: 2.2; } }
.shelf__head { display: flex; align-items: baseline; gap: .4rem 1rem; flex-wrap: wrap; }
.shelf__head h2 { font-size: var(--h3); margin: 0; }
.shelf__all { font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.shelf__arrows { margin-left: auto; display: flex; gap: .4rem; align-self: center; }
.shelf__arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--black); background: var(--white); color: var(--black);
  font: 500 1.4rem/1 var(--font-heading); cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}
.shelf__arrow:hover:not(:disabled) { background: var(--accent); }
.shelf__arrow:disabled { opacity: .25; cursor: default; }
.shelf--fits .shelf__arrows { visibility: hidden; }
/* swiping is the natural move on touch screens, so the arrows are a mouse thing */
@media (hover: none) { .shelf__arrows { display: none; } }

.shelf__track {
  display: grid; grid-auto-flow: column; gap: var(--gap);
  grid-auto-columns: calc((100% - (var(--peek) - 1) * var(--gap)) / var(--peek));
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 8px;
  /* room inside the scroll box for the card hover tilt + yellow shadow, which would otherwise be clipped */
  padding: 12px 8px 14px; margin-inline: -8px;
  scrollbar-width: none;
}
.shelf__track::-webkit-scrollbar { display: none; }
.shelf__track .card { scroll-snap-align: start; }
/* on phones the row runs to the screen edge, so it reads as "swipe me" */
@media (max-width: 699px) {
  .shelf__track { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    grid-auto-columns: calc((100% - 2 * var(--gutter) - (var(--peek) - 1) * var(--gap)) / var(--peek)); }
}
.shelves__more { text-align: center; padding-top: 1rem; }

.results-count { font-size: .9rem; color: var(--muted); margin: 0 0 1.2rem; }
.no-results { text-align: center; padding: 3rem 1rem; }
.no-results p { font-size: 1.1rem; }

/* ---------- Single recipe ---------- */
.recipe-hero { padding-top: clamp(20px, 3vw, 40px); }
.crumbs { font-size: .9rem; margin-bottom: 1.4rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.recipe-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.recipe-photo { position: relative; }
.recipe-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); transform: rotate(-1.5deg); box-shadow: 10px 10px 0 var(--accent); }
.recipe-top h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.6rem); margin-bottom: .2em; }
.recipe-top .tagline { font: 400 clamp(1.15rem, 1rem + .5vw, 1.45rem)/1.35 var(--font-heading); margin-bottom: 1rem; }
.recipe-top .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.4rem; }

/* Joseph's note — looks like a taped-on index card */
.note {
  position: relative; margin: 0 0 1.6rem; padding: 1.1rem 1.3rem;
  background: var(--accent-soft); border-radius: 4px;
  font-size: .95rem; font-weight: 400;
  transform: rotate(-.6deg);
}
.note::before {
  content: ""; position: absolute; top: -10px; left: 50%;
  width: 72px; height: 20px; margin-left: -36px;
  background: rgba(255, 199, 0, .55); transform: rotate(-3deg);
}
.note strong { font-weight: 400; }

.meta { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 0 0 1.4rem; padding: 0; list-style: none; font-size: .9rem; }
.meta b { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.recipe-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.wake-toggle[aria-pressed="true"] { background: var(--black); color: var(--white); }

.recipe-body { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.75fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ingredients-card {
  position: sticky; top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto;
  padding: 1.5rem; border-radius: var(--radius);
  background: var(--cream);
}
.ingredients-card h2, .steps-col > h2 { font-size: var(--h3); }
.ingredients-card h4 { font-size: 1rem; margin: 1.2em 0 .4em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.ingredients { list-style: none; margin: 0; padding: 0; }
.ingredients li { margin: 0; }
.ingredients label { display: flex; gap: .7rem; align-items: flex-start; padding: .35rem 0; cursor: pointer; font-size: .93rem; line-height: 1.5; }
/* custom checkbox: a round yellow tick */
.ingredients input {
  appearance: none; flex-shrink: 0; margin: .1rem 0 0;
  width: 1.2rem; height: 1.2rem; border: 1.5px solid var(--black); border-radius: 50%;
  background: var(--white) center / 70% no-repeat; cursor: pointer;
}
.ingredients input:checked {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ingredients input:checked + span { text-decoration: line-through; color: var(--muted); }
.ingredients-reset, .steps-reset { margin-top: .8rem; font: inherit; font-size: .8rem; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: var(--muted); }

.steps-col h4 { font-size: 1.15rem; margin: 1.8em 0 .8em; }
.steps-col h4:first-of-type { margin-top: .4em; }
.steps { list-style: none; counter-reset: step; margin: 0 0 1.5rem; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.4rem 3.4rem; min-height: 2.4rem; }
/* big yellow step numbers */
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.15rem;
  display: grid; place-items: center;
  width: 2.3rem; height: 2.3rem;
  border: 2px solid var(--black); border-radius: 50%;
  background: var(--accent);
  font: 500 1.05rem/1 var(--font-heading);
}
.steps li:nth-child(even)::before { transform: rotate(-8deg); }
/* tap a step to mark it done */
.steps-hint { margin: -.3rem 0 1.2rem; font-size: .85rem; color: var(--muted); }
.steps li { cursor: pointer; border-radius: 8px; transition: color .15s ease; }
.steps li:hover::before { box-shadow: 2px 2px 0 var(--black); }
.steps li:focus-visible { outline-offset: 4px; }
.steps li.is-done { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .35); }
.steps li.is-done::before { content: "✓"; background: var(--black); color: var(--accent); }
.steps-col ul { padding-left: 1.2em; }

.video { position: relative; aspect-ratio: 16 / 9; max-width: 900px; margin-inline: auto; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--black); box-shadow: 8px 8px 0 var(--accent); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 859px) {
  .recipe-top, .recipe-body { grid-template-columns: 1fr; }
  .recipe-photo { max-width: 520px; }
  .recipe-photo img { aspect-ratio: 4 / 3; }  /* shorter on phones so the title shows sooner */
  .ingredients-card { position: static; max-height: none; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); transform: rotate(1.5deg); box-shadow: -10px 10px 0 var(--accent); }
.about p { font-size: 1.08rem; }
.why { max-width: 760px; margin-inline: auto; }
.why p { font: 400 clamp(1.15rem, 1rem + .5vw, 1.4rem)/1.6 var(--font-heading); }
@media (max-width: 799px) { .about { grid-template-columns: 1fr; } .about img { max-width: 420px; } }

/* ---------- Contact form ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact .social { margin-top: 1rem; }
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: block; font-size: .9rem; font-weight: 400; margin: 0 0 .35rem; }
.form label small { color: var(--muted); }
.form input, .form textarea {
  width: 100%; font: inherit; font-weight: 300;
  padding: .8rem 1rem;
  border: 2px solid var(--black); border-radius: 10px; background: var(--white);
}
.form input:focus, .form textarea:focus { outline: 0; box-shadow: 3px 3px 0 var(--accent); }
.form textarea { min-height: 9rem; resize: vertical; }
.form .btn { justify-self: start; }
.form-hidden { display: none; }
@media (max-width: 799px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 499px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding-block: clamp(48px, 6vw, 72px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-brand img { width: 64px; height: 64px; }
.footer-brand p { margin: 0; color: rgba(255, 255, 255, .7); font-size: .9rem; }
.footer-brand strong { display: block; font: 500 1.4rem/1.2 var(--font-heading); color: var(--white); }
.site-footer h3 { font-size: .8rem; font-family: var(--font-body); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-links a { text-decoration: none; color: rgba(255, 255, 255, .85); }
.footer-links a:hover { color: var(--accent); }
.site-footer .social { margin-bottom: 1rem; }
.footer-email { color: rgba(255, 255, 255, .85); font-size: .9rem; word-break: break-all; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .8rem; color: rgba(255, 255, 255, .55); }
@media (max-width: 699px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Print: just the recipe ---------- */
@media print {
  .announce, .site-header, .site-footer, .crumbs, .recipe-actions, .more, .ingredients-reset, .steps-reset, .steps-hint, #video, .radio { display: none !important; }
  .recipe-top, .recipe-body { grid-template-columns: 1fr 2fr; }
  .recipe-photo img { transform: none; box-shadow: none; }
  .ingredients-card { position: static; max-height: none; background: none; padding: 0; }
  .note { transform: none; }
  .band { padding-block: 16px; }
}

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