/* =========================================================================
   Eat Palestine — modern design system
   A warm, editorial identity celebrating Palestinian food.
   ========================================================================= */

/* ---- Design tokens --------------------------------------------------- */
:root {
  /* palette — warm, earthy, sun-lit Levant */
  --bg:         #FAF4E9;
  --surface:    #FFFDF8;
  --surface-2:  #F2E8D6;
  --ink:        #241F18;
  --ink-soft:   #6C6252;
  --line:       #E7DAC3;
  --line-soft:  #EFE6D5;

  --olive:      #5E6B3B;
  --olive-deep: #3F4A28;
  --sumac:      #A63A2A;   /* primary accent / links */
  --sumac-deep: #83291C;
  --terracotta: #C0603A;
  --gold:       #CE9A3D;
  --watermelon: #CE3B57;   /* used sparingly */

  --shadow-sm: 0 1px 2px rgba(63,45,20,.06), 0 1px 3px rgba(63,45,20,.05);
  --shadow-md: 0 6px 20px -8px rgba(63,45,20,.22), 0 2px 6px rgba(63,45,20,.06);
  --shadow-lg: 0 24px 60px -20px rgba(63,45,20,.30);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-arabic: "Amiri", "Newsreader", serif;

  --maxw: 1160px;
  --gap: clamp(1rem, 2vw, 1.75rem);
  --nav-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #26231F;
    --surface:    #302D28;
    --surface-2:  #3A362F;
    --ink:        #F3EBDB;
    --ink-soft:   #BDB19C;
    --line:       #47413A;
    --line-soft:  #3A362F;

    --olive:      #97A560;
    --olive-deep: #B4C07E;
    --sumac:      #E1795F;
    --sumac-deep: #EC8E77;
    --terracotta: #D98155;
    --gold:       #DEB35A;
    --watermelon: #E85E77;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow-md: 0 8px 24px -10px rgba(0,0,0,.55);
    --shadow-lg: 0 28px 64px -22px rgba(0,0,0,.7);
  }
}

/* ---- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle warm texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(206,154,61,.10), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(94,107,59,.08), transparent 55%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: var(--sumac); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--sumac-deep); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sumac);
  display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sumac); display: inline-block; border-radius: 2px; }

.arabic { font-family: var(--font-arabic); direction: rtl; }

/* ---- Skip link ------------------------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Header / nav ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: baseline; gap: .55rem; font-family: var(--font-display); }
.brand .brand-mark {
  font-size: 1.32rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink);
}
.brand .brand-mark b { color: var(--sumac); font-weight: 600; }
.brand .brand-ar { font-family: var(--font-arabic); color: var(--olive); font-size: 1.15rem; opacity: .9; }
.brand:hover .brand-mark { color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: .5rem .85rem; border-radius: var(--radius-pill);
  color: var(--ink); font-weight: 500; font-size: .97rem;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--sumac); font-weight: 600; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .5rem clamp(1.1rem, 4vw, 2.5rem) 1rem;
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: .8rem .4rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .7rem 1.25rem; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
  white-space: nowrap; line-height: 1.2;
}
.btn svg { flex: 0 0 auto; width: 18px; height: 18px; }
.btn-primary { background: var(--sumac); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--sumac-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

/* ---- Hero ------------------------------------------------------------ */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { margin: .6rem 0 0; }
.hero h1 .hl { color: var(--sumac); font-style: normal; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); margin: 1.1rem 0 1.6rem; max-width: 46ch; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 1.8rem; margin-top: 2rem; }
.hero-stats .num { font-family: var(--font-display); font-size: 1.7rem; color: var(--olive); font-weight: 600; line-height: 1; }
.hero-stats .lbl { font-size: .82rem; color: var(--ink-soft); letter-spacing: .02em; }

.hero-art { position: relative; }
.hero-art .frame {
  border-radius: 220px 220px 18px 18px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  aspect-ratio: 3/4;
}
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .badge {
  position: absolute; bottom: -14px; left: -14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .7rem 1rem; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .6rem;
  font-size: .9rem;
}
.hero-art .badge .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--olive); display: grid; place-items: center; color:#fff; }
.watermelon-tag { color: var(--watermelon); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin-inline: auto; }
  .hero-art .frame { aspect-ratio: 4/3; border-radius: 18px; }
}

/* ---- Section headers ------------------------------------------------- */
.section { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.section-head p { color: var(--ink-soft); margin: .4rem 0 0; }

/* ---- Recipe finder controls ------------------------------------------ */
.finder { position: relative; }
.finder-bar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow-sm); margin-bottom: 1.4rem;
}
.search-field { position: relative; display: flex; align-items: center; }
.search-field svg { position: absolute; left: 1rem; width: 20px; height: 20px; color: var(--ink-soft); pointer-events: none; }
.search-field input {
  width: 100%; font-family: var(--font-body); font-size: 1.05rem; color: var(--ink);
  padding: .85rem 1rem .85rem 2.9rem; border: 1px solid var(--line);
  border-radius: var(--radius-pill); background: var(--bg); transition: border-color .18s, box-shadow .18s;
}
.search-field input::placeholder { color: var(--ink-soft); }
.search-field input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 4px color-mix(in srgb, var(--olive) 18%, transparent); }

.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; align-items: center; }
.filter-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-right: .3rem; }
.chip {
  font-family: var(--font-body); font-size: .86rem; font-weight: 500;
  padding: .4rem .85rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.chip:hover { border-color: var(--olive); }
.chip[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: #fff; }
.chip.diet[aria-pressed="true"] { background: var(--sumac); border-color: var(--sumac); }
.filter-divider { width: 1px; align-self: stretch; background: var(--line); margin: 0 .3rem; }

.results-meta { font-size: .9rem; color: var(--ink-soft); margin: 0 0 1rem; }
.no-results { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.no-results h3 { color: var(--ink); }

/* ---- Recipe grid + cards --------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--gap);
}
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card a.card-link { position: absolute; inset: 0; z-index: 1; }
.card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card .cat-tag {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  background: rgba(58,25,18,.9); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 2px 10px rgba(20,12,6,.5);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.card .body { padding: 1.05rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.22rem; margin: 0; }
.card .sub { font-size: .9rem; color: var(--ink-soft); margin: .2rem 0 .55rem; }
.card .excerpt { font-size: .92rem; color: var(--ink-soft); margin: 0 0 .9rem; flex: 1; }
.card .card-meta { display: flex; align-items: center; gap: .9rem; font-size: .82rem; color: var(--ink-soft); border-top: 1px solid var(--line-soft); padding-top: .7rem; }
.card .card-meta .mi { display: inline-flex; align-items: center; gap: .3rem; }
.card .card-meta svg { width: 15px; height: 15px; color: var(--olive); }
.diet-dots { display: inline-flex; gap: .3rem; margin-left: auto; }
.diet-dots span { font-size: .68rem; font-weight: 700; padding: .12rem .4rem; border-radius: 5px; background: var(--surface-2); color: var(--olive-deep); }

.card.hidden { display: none; }

/* ---- Recipe article -------------------------------------------------- */
.recipe-hero { position: relative; }
.recipe-hero .hero-img { aspect-ratio: 16/7; width: 100%; object-fit: cover; }
@media (max-width: 700px){ .recipe-hero .hero-img { aspect-ratio: 4/3; } }
.recipe-hero .hero-img-wrap { position: relative; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.recipe-hero .hero-img-wrap::after { content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(36,31,24,.5), transparent 45%); }

.crumbs { font-size: .88rem; color: var(--ink-soft); padding: 1.1rem 0 0; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--sumac); }

.recipe-title-block { padding: 1.3rem 0 .5rem; }
.recipe-title-block h1 { margin: .4rem 0 .3rem; }
.recipe-title-block .subtitle { font-family: var(--font-display); font-style: normal; font-weight: 500; font-size: clamp(1.1rem,2vw,1.5rem); color: var(--olive); margin: 0; }

.meta-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }
.meta-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .55rem .85rem; font-size: .9rem; box-shadow: var(--shadow-sm);
}
.meta-chip svg { width: 17px; height: 17px; color: var(--sumac); }
.meta-chip b { font-weight: 600; }
.meta-chip .k { color: var(--ink-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; display:block; }

.diet-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; }
.diet-badge { font-size: .8rem; font-weight: 600; padding: .3rem .7rem; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--olive) 14%, var(--bg)); color: var(--olive-deep); border: 1px solid color-mix(in srgb, var(--olive) 30%, transparent); }

.recipe-intro { font-size: 1.12rem; line-height: 1.7; color: var(--ink); max-width: 68ch; }
.recipe-intro p { margin: 0 0 1rem; }

.recipe-body { display: grid; grid-template-columns: 320px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: 2rem; }
@media (max-width: 860px){ .recipe-body { grid-template-columns: 1fr; } }

.recipe-aside { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 860px){ .recipe-aside { position: static; } }
.ingredients-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm);
}

/* nutrition disclosure */
.nutrition { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.nutrition > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1rem 1.4rem; font-family: var(--font-display); }
.nutrition > summary::-webkit-details-marker { display: none; }
.nutrition > summary .nt { font-weight: 600; font-size: 1.15rem; }
.nutrition > summary .nt::before { content: ""; display: inline-block; width: 8px; height: 8px; border-right: 2px solid var(--sumac); border-bottom: 2px solid var(--sumac); transform: rotate(-45deg); margin-right: .6rem; transition: transform .2s ease; vertical-align: middle; }
.nutrition[open] > summary .nt::before { transform: rotate(45deg); }
.nutrition > summary .nk { font-family: var(--font-body); font-size: .9rem; color: var(--ink-soft); }
.nutrition > summary .nk small { opacity: .8; }
.nutri-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding: 0 1.4rem 1rem; }
@media (max-width: 520px){ .nutri-grid { grid-template-columns: repeat(2, 1fr); } }
.nutri-grid > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: .6rem .4rem; text-align: center; }
.nutri-grid b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.nutri-grid span { font-size: .72rem; color: var(--ink-soft); letter-spacing: .02em; }
.nutri-note { margin: 0; padding: 0 1.4rem 1.2rem; font-size: .78rem; color: var(--ink-soft); font-style: italic; }
.ingredients-card h2 { font-size: 1.35rem; margin: 0 0 .3rem; }
.ingredients-card .yield-note { font-size: .88rem; color: var(--ink-soft); margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-soft); }
.ingredient-list { list-style: none; margin: 0; padding: 0; }
.ingredient-list li { display: flex; gap: .7rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px dashed var(--line-soft); }
.ingredient-list li:last-child { border-bottom: 0; }
.ingredient-list .chk { flex: none; width: 18px; height: 18px; margin-top: .18rem; border: 1.5px solid var(--olive); border-radius: 5px; cursor: pointer; transition: background .15s; position: relative; }
.ingredient-list .chk.on { background: var(--olive); }
.ingredient-list .chk.on::after { content:"✓"; position:absolute; inset:0; color:#fff; font-size:12px; display:grid; place-items:center; }
.ingredient-list .name { font-weight: 500; }
.ingredient-list .name.struck { text-decoration: line-through; color: var(--ink-soft); }
.ingredient-list .qty { margin-left: auto; text-align: right; color: var(--ink-soft); font-size: .9rem; flex: none; max-width: 45%; }

.steps h2 { font-size: 1.55rem; margin: 0 0 1.1rem; }
.step-list { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.step-list li { position: relative; padding: 0 0 1.5rem 3.4rem; }
.step-list li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -.1rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--sumac); color: #fff; font-family: var(--font-display); font-weight: 600;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.step-list li:not(:last-child)::after {
  content:""; position:absolute; left: 1.13rem; top: 2.4rem; bottom: .3rem; width: 2px;
  background: linear-gradient(var(--line), transparent);
}
.step-list li p { margin: 0; padding-top: .25rem; }

/* tips */
.tips {
  margin-top: 1.5rem; background: color-mix(in srgb, var(--gold) 12%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  border-radius: var(--radius); padding: 1.2rem 1.4rem;
}
.tips h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-size: 1.1rem; }
.tips h3 svg { width: 20px; height: 20px; color: var(--gold); }
.tips ul { margin: 0; padding-left: 1.1rem; }
.tips li { margin: .35rem 0; color: var(--ink); }

/* gallery carousel */
.gallery { margin-top: 2.5rem; }
.gallery h2 { font-size: 1.4rem; margin: 0 0 1rem; }
.carousel { position: relative; }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: center; }
.carousel-slide .cslide-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.carousel-slide img { width: 100%; height: clamp(260px, 44vw, 540px); object-fit: cover; display: block; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid var(--line); color: var(--ink);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md); z-index: 2;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .15s, opacity .15s;
}
.carousel-btn:hover { background: var(--surface); }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn.prev { left: .8rem; }
.carousel-btn.next { right: .8rem; }
.carousel-btn[disabled] { opacity: .3; cursor: default; }
.carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: .9rem; }
.cdot { width: 8px; height: 8px; border-radius: 999px; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: background .18s ease, width .18s ease; }
.cdot.active { background: var(--sumac); width: 22px; }
.carousel-hint { display: none; text-align: center; margin: .6rem 0 0; font-size: .82rem; color: var(--ink-soft); }
.carousel-hint span { display: inline-flex; align-items: center; gap: .4rem; }
.carousel-hint svg { width: 16px; height: 16px; animation: swipeNudge 1.6s ease-in-out infinite; }
@keyframes swipeNudge { 0%,100% { transform: translateX(-2px); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .carousel-hint svg { animation: none; } }

/* On mobile: hide arrows, use full-width slides with a peek of the next photo to signal swipe */
@media (max-width: 700px) {
  .carousel-btn { display: none; }
  .carousel-track { gap: .5rem; scroll-padding-left: 4%; }
  .carousel-slide { flex: 0 0 92%; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; }
  .carousel-slide img { height: clamp(240px, 66vw, 360px); border-radius: var(--radius); }
  .carousel-hint { display: block; }
}

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20,16,11,.9); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox .close { position: absolute; top: 1.2rem; right: 1.4rem; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }

/* recipe footer nav */
.recipe-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 0; }

.more-strip { border-top: 1px solid var(--line); margin-top: 3rem; }

/* ---- Prose (about / pantry) ------------------------------------------ */
.prose { max-width: 72ch; }
.prose p { margin: 0 0 1.1rem; color: var(--ink); }
.prose h2 { margin: 2rem 0 .6rem; }
.prose h3 { margin: 1.8rem 0 .4rem; font-size: 1.25rem; color: var(--sumac); }
.prose h4 { margin: 1.4rem 0 .3rem; font-size: 1.05rem; }
.prose .lede { font-size: 1.2rem; color: var(--ink-soft); }

.pantry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1rem; margin-top: 1.5rem; }
.pantry-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm); }
.pantry-item h3 { margin: 0 0 .4rem; font-size: 1.15rem; color: var(--sumac); }
.pantry-item p { margin: 0; font-size: .95rem; color: var(--ink-soft); line-height: 1.6; }

/* ---- Callout band ---------------------------------------------------- */
.band { background: var(--olive-deep); color: #F6F1E4; border-radius: var(--radius); padding: clamp(1.6rem,4vw,2.6rem); position: relative; overflow: hidden; }
.band h2 { color: #fff; }
.band p { color: rgba(246,241,228,.85); max-width: 60ch; }
.band .band-ar { font-family: var(--font-arabic); font-size: 2.4rem; color: rgba(206,154,61,.5); position:absolute; top:.6rem; right:1.2rem; }

/* ---- Footer (fixed colors, theme-independent for guaranteed contrast) - */
.site-footer { background: #384529; color: #ECE6D6; margin-top: 4rem; padding: 3rem 0 2rem; }
.site-footer a { color: #ECE6D6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; }
.footer-brand .brand-ar { font-family: var(--font-arabic); color: #E7C36B; display:block; font-size: 1.5rem; margin-top:.2rem; }
.footer-tag { color: rgba(236,230,214,.82); max-width: 34ch; margin: .6rem 0 0; font-size: .95rem; }
.footer-nav { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav h4 { color: #E7C36B; font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .7rem; }
.footer-nav li { margin: .3rem 0; }
.footer-bottom { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(236,230,214,.2); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: rgba(236,230,214,.72); }
.site-footer .watermelon-tag { color: #F0A6B4; }
.social { display: flex; gap: .6rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(233,226,210,.3); display: grid; place-items: center; transition: all .18s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--olive-deep); transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; }

/* ---- Reveal animation (progressive enhancement) ---------------------- */
/* A gentle on-load fade-up. It always ENDS visible (animation-fill-mode: both),
   so content is never stuck hidden — safe without JS and for crawlers. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { animation: revealUp .7s cubic-bezier(.2,.7,.2,1) both; }
  .js .reveal:nth-child(2) { animation-delay: .06s; }
  .js .reveal:nth-child(3) { animation-delay: .12s; }
}
@keyframes revealUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---- Print ----------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .recipe-actions, .gallery, .more-strip, .nav-toggle, .crumbs, body::before, .tips { break-inside: avoid; }
  .site-header, .site-footer, .recipe-actions, .gallery, .more-strip, .hero-art .badge { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .recipe-body { grid-template-columns: 1fr 2fr; gap: 1.5rem; }
  .ingredients-card { position: static; box-shadow: none; border-color: #ccc; }
  .step-list li::before { background: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #000; }
  .recipe-hero .hero-img { max-height: 240px; }
}
