/* =========================================================
   The Quiet Table — shared styles
   Every colour and font lives in :root. Change once, applies everywhere.
   ========================================================= */
:root{
  --bg:#e8efd8;          /* pale sage green */
  --ink:#2f3b27;         /* deep forest green (headings, text) */
  --ink-soft:#3c472f;    /* body copy */
  --muted:#7e886a;       /* uppercase section labels */
  --accent:#c0704a;      /* terracotta (script labels) */
  --script-green:#5f7042;/* script accent words */
  --green-btn:#4c6140;   /* solid buttons / step numbers */
  --green-btn-dk:#3c5031;
  --line:#cdd9b6;        /* hairline */
  --radius:14px;
  --maxw:1180px;
  --script:"Caveat",cursive;
  --serif:"Lora",Georgia,serif;
  --sans:"Inter",system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:var(--serif);font-weight:600;line-height:1.12;color:var(--ink)}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 40px}
.center{text-align:center}

/* labels */
.eyebrow{font-family:var(--sans);text-transform:uppercase;letter-spacing:.24em;font-size:.74rem;font-weight:600;color:var(--muted);margin-bottom:1rem}
.label{font-family:var(--script);color:var(--accent);font-weight:600;line-height:1;display:block}
.script{font-family:var(--script);color:var(--script-green);font-weight:600}

/* buttons */
.btn{display:inline-block;border-radius:999px;font-size:.95rem;font-weight:500;padding:.75em 1.6em;transition:.2s;cursor:pointer;border:none}
.btn-solid{background:var(--green-btn);color:#fff}
.btn-solid:hover{background:var(--green-btn-dk)}
.btn-ghost{color:var(--ink)}
.btn-ghost:hover{color:var(--accent)}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:18px 44px;background:var(--bg);border-bottom:1px solid var(--line)}
.site-header.over{position:absolute;left:0;right:0;background:transparent;border:none;padding:22px 44px}
.brand-wrap{display:flex;align-items:baseline;gap:14px}
.brand{font-family:var(--script);font-size:1.9rem;font-weight:600;color:var(--ink);line-height:1}
.tagline{font-size:.68rem;letter-spacing:.24em;text-transform:uppercase;color:var(--ink);opacity:.7}
.nav-right{display:flex;align-items:center;gap:28px}
nav{display:flex;align-items:center;gap:28px}
nav a{font-size:.95rem;color:var(--ink)}
nav a:hover{color:var(--accent)}
.subscribe{border:1px solid var(--green-btn);color:var(--green-btn);border-radius:999px;padding:.5em 1.4em;font-size:.92rem;transition:.2s}
.subscribe:hover{background:var(--green-btn);color:#fff}
.subscribe.fill{background:var(--green-btn);color:#fff}
.subscribe.fill:hover{background:var(--green-btn-dk)}
.lang-toggle{display:inline-flex;border:1px solid var(--green-btn);border-radius:999px;overflow:hidden}
.lang-toggle button{font-family:var(--sans);font-size:.78rem;font-weight:600;padding:.42em 1em;background:transparent;color:var(--green-btn);border:none;cursor:pointer;transition:.2s}
.lang-toggle button:last-child{font-family:"Hind Siliguri",sans-serif}
.lang-toggle button.active{background:var(--green-btn);color:#fff}

/* ---------- home hero ---------- */
.hero{position:relative;background:var(--bg)}
.hero-art{width:100%;height:auto;display:block;max-height:92vh;object-fit:cover}

/* ---------- about (home + page) ---------- */
.about{padding:120px 0}
.about-grid{display:grid;grid-template-columns:.8fr 1fr;gap:72px;align-items:center}
.about-grid img{width:100%;border-radius:18px;aspect-ratio:1/1;object-fit:cover}
.about h2{font-size:clamp(2rem,4.4vw,3.1rem)}
.about h2 .script{font-size:1.25em;display:inline-block;line-height:.9}
.about p{color:var(--ink-soft);max-width:48ch;margin:1.5rem 0 2rem}
.about .actions{display:flex;gap:14px;flex-wrap:wrap;align-items:center}

/* ---------- this week (bento) ---------- */
.week{padding:40px 0 120px;text-align:center}
.week h2{font-size:clamp(2rem,4.4vw,3rem);margin-bottom:56px}
.bento{display:grid;grid-template-columns:1.55fr 1fr;gap:24px;text-align:left}
.ccard{position:relative;border-radius:var(--radius);overflow:hidden;display:block;min-height:270px}
.ccard.feat{grid-row:span 2;min-height:564px}
.ccard img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s}
.ccard:hover img{transform:scale(1.04)}
.ccard .cap{position:absolute;left:0;right:0;bottom:0;padding:54px 28px 26px;
  background:linear-gradient(transparent,rgba(232,239,216,0) 8%,rgba(232,239,216,.92) 62%,rgba(232,239,216,.99))}
.ccard .cat{font-family:var(--script);color:var(--accent);font-size:1.4rem;font-weight:600;line-height:1;display:block;margin-bottom:.1rem}
.ccard h3{font-size:1.5rem;line-height:1.15}
.ccard.feat h3{font-size:1.9rem}
.ccard .desc{color:var(--ink-soft);margin-top:.5rem;font-size:.98rem}
.more{margin-top:48px}
.more a{font-family:var(--script);font-size:1.5rem;color:var(--script-green);font-weight:600}
.more a:hover{color:var(--accent)}

/* ---------- generic page intro ---------- */
.page-intro{padding:90px 0 60px;text-align:center}
.page-intro h1{font-size:clamp(2.4rem,5vw,3.6rem)}
.page-intro h1 .script{font-size:1.2em;line-height:.9}
.page-intro p{color:var(--ink-soft);max-width:54ch;margin:1.1rem auto 0;font-size:1.05rem}

/* recipes index grid */
.recipe-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding-bottom:120px}
.recipe-grid .ccard{min-height:340px}

/* ---------- about page ---------- */
.about-page{padding:80px 0 120px;display:grid;grid-template-columns:.8fr 1fr;gap:70px;align-items:center}
.about-page img{width:100%;border-radius:18px;aspect-ratio:1/1;object-fit:cover}
.about-page h1{font-size:clamp(3rem,6vw,4.4rem);margin:.3rem 0 0}
.about-page h1 .script{font-size:1.1em}
.about-page p{color:var(--ink-soft);margin:1.2rem 0;max-width:52ch}
.about-page .actions{display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin-top:1.4rem}

/* ---------- newsletter ---------- */
.news{position:relative;padding:130px 0;text-align:center;overflow:hidden}
.news::before,.news::after{content:"";position:absolute;border-radius:50%;filter:blur(60px);opacity:.5;z-index:0}
.news::before{width:340px;height:340px;background:#d7e6b8;right:-60px;top:40px}
.news::after{width:300px;height:300px;background:#e7d9c0;left:-40px;bottom:20px}
.news .wrap{position:relative;z-index:1}
.news h2{font-size:clamp(2.2rem,4.8vw,3.4rem);margin-bottom:1.2rem}
.news h2 .script{font-size:1.2em;line-height:.9}
.news p{color:var(--ink-soft);max-width:44ch;margin:0 auto 2.4rem}
.subform{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;max-width:520px;margin:0 auto}
.subform input{flex:1;min-width:240px;padding:.95em 1.3em;border:1px solid var(--line);background:#f2f6e8;border-radius:999px;font-family:inherit;font-size:.95rem;color:var(--ink)}
.subform input:focus{outline:none;border-color:var(--green-btn)}
.fineprint{margin-top:1.3rem;font-size:.85rem;color:var(--ink-soft);opacity:.8}
.coming{padding:30px 0 90px}
.coming ul{list-style:none;max-width:560px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.coming li{padding-left:26px;position:relative;color:var(--ink-soft)}
.coming li::before{content:"";position:absolute;left:0;top:.6em;width:7px;height:7px;border-radius:50%;background:var(--accent)}

/* ---------- recipe article ---------- */
.article{max-width:840px;margin:0 auto;padding:56px 32px 0}
.back{font-size:.95rem;color:var(--ink-soft);display:inline-block;margin-bottom:40px;transition:.2s}
.back:hover{color:var(--accent)}
.article .cat{font-family:var(--script);font-size:1.6rem;color:var(--accent);font-weight:600;line-height:1;display:block;margin-bottom:.3rem}
.article h1{font-size:clamp(2.4rem,5.5vw,4.1rem);margin:.2rem 0 1.2rem;letter-spacing:-.01em}
.lede{font-family:var(--serif);font-style:italic;font-weight:600;font-size:clamp(1.2rem,2.4vw,1.5rem);color:var(--ink);margin-bottom:2rem}
.meta{display:flex;gap:48px;padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.meta .row{display:flex;align-items:baseline;gap:10px}
.meta .k{font-family:var(--script);font-size:1.3rem;color:var(--accent);font-weight:600;line-height:1}
.meta .v{font-family:var(--sans);font-size:1.1rem;color:var(--ink)}
.recipe-hero{max-width:1120px;margin:48px auto;border-radius:var(--radius);overflow:hidden;aspect-ratio:16/10}
.recipe-hero img{width:100%;height:100%;object-fit:cover}
.article-body{max-width:840px;margin:0 auto;padding:0 32px 64px}
.article-body h2{font-size:2rem;margin:.2rem 0 1.2rem}
.article-body p{color:var(--ink-soft);margin-bottom:1.1rem}
.block{margin-bottom:58px}
.block .label{font-size:1.7rem;margin-bottom:.2rem}
.ingredients{list-style:none}
.ingredients li{padding:13px 0 13px 26px;position:relative;border-bottom:1px dashed var(--line);color:var(--ink-soft)}
.ingredients li::before{content:"";position:absolute;left:0;top:1.35em;width:7px;height:7px;border-radius:50%;background:var(--accent)}
.steps{list-style:none;counter-reset:step}
.steps li{counter-increment:step;position:relative;padding:3px 0 28px 58px;color:var(--ink-soft)}
.steps li::before{content:counter(step);position:absolute;left:0;top:-4px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--green-btn);color:#fff;font-family:var(--serif);font-size:1.05rem;font-weight:600}
.related{padding:20px 0 40px;text-align:center}
.related .bento{grid-template-columns:repeat(3,1fr)}
.related .ccard{min-height:300px}

/* ---------- footer ---------- */
footer.site-footer{padding:48px 0 56px;text-align:center}
footer.site-footer p{font-family:var(--script);font-size:1.4rem;color:var(--ink-soft)}

/* ---------- Bengali typography (recipe pages, when body.bn) ---------- */
body.bn{font-family:"Hind Siliguri",sans-serif;line-height:1.85}
body.bn h1,body.bn h2,body.bn h3,body.bn .lede,body.bn .meta .v{font-family:"Noto Serif Bengali",serif;font-style:normal}
/* script can't render Bengali — fall back but keep colour/role */
body.bn .cat,body.bn .meta .k,body.bn .block .label{font-family:"Hind Siliguri",sans-serif;font-weight:600;font-size:1rem}

/* ---------- responsive ---------- */
@media(max-width:860px){
  .site-header{padding:14px 22px}
  .site-header.over{padding:16px 22px}
  .tagline{display:none}
  .about-grid,.about-page{grid-template-columns:1fr;gap:40px}
  .about-grid img,.about-page img{max-width:380px}
  .bento,.recipe-grid,.related .bento{grid-template-columns:1fr;max-width:440px;margin-left:auto;margin-right:auto}
  .ccard.feat{grid-row:auto;min-height:300px}
  .about,.week,.news,.about-page{padding-top:80px;padding-bottom:80px}
}
@media(max-width:540px){
  nav .navlink{display:none}
  .meta{gap:28px}
}

/* newsletter signup confirmation message */
.sub-msg{margin-top:1.2rem;font-family:var(--script);font-size:1.35rem;color:var(--script-green);min-height:1.2em}

/* =======================================================================
   VINTAGE THEME — aged, warm "grandmother's kitchen" layer.
   Loaded last so it overrides the base palette. Tweak here freely.
   ======================================================================= */
:root{
  --bg:#ece1cb;          /* aged parchment */
  --bg-alt:#e4d6bb;
  --ink:#3b3226;         /* dark sepia */
  --ink-soft:#6a5c46;
  --muted:#8c7d64;
  --accent:#b0653f;      /* faded terracotta */
  --script-green:#6c7350;/* dusty olive */
  --green-btn:#6f5f3d;   /* aged olive-brown */
  --green-btn-dk:#564930;
  --line:#cdba97;
  --serif:"Lora",Georgia,serif;
  --sans:"EB Garamond","Lora",Georgia,serif;   /* body now an old-style serif */
  --script:"Caveat",cursive;
}
body{font-family:var(--sans);font-size:18px;line-height:1.72}
nav a,.subscribe,.lang-toggle button,.meta .v,.card .tag,.eyebrow{font-family:"EB Garamond",serif}

/* stronger aged paper + a soft vignette + a framed-page feel */
body::before{opacity:.07}
body::after{content:"";position:fixed;inset:0;z-index:9998;pointer-events:none;
  background:radial-gradient(ellipse at center, rgba(0,0,0,0) 52%, rgba(74,54,32,.20) 100%);
  box-shadow:inset 0 0 0 1px rgba(80,62,40,.25), inset 0 0 0 9px rgba(236,225,203,.0);}

/* age the photography */
.hero-art,.ccard img,.about-grid img,.about-page img,.recipe-hero img,.marquee img{
  filter:sepia(.30) saturate(.82) contrast(.95) brightness(1.02);
}
/* old-photo frames */
.about-grid img,.about-page img,.recipe-hero img{
  border:1px solid var(--line);border-radius:6px;
  box-shadow:0 1px 0 rgba(255,255,255,.4), 0 10px 24px -16px rgba(60,42,24,.5);
}
.ccard{box-shadow:0 10px 26px -18px rgba(60,42,24,.55)}

/* ornamented section labels */
.eyebrow{letter-spacing:.2em}
.center .eyebrow::before,.center .eyebrow::after{content:"❧";color:var(--accent);opacity:.8;
  font-size:.9em;margin:0 .7em;vertical-align:middle;-webkit-text-fill-color:var(--accent)}

/* warm the newsletter glow */
.news::before{background:#d8c79c}
.news::after{background:#d9b48f}

/* slightly softer, book-like headings */
h1,h2,h3{letter-spacing:0}

/* =======================================================================
   GREEN + GOLD — forest-green & gold identity over the vintage layer.
   ======================================================================= */
:root{
  --ink:#26311d;            /* deep green ink (headings/text) */
  --ink-soft:#4f5940;       /* olive body copy */
  --muted:#8a7d5f;
  --accent:#9c7a2e;         /* gold-brown: labels, categories, meta, ornaments */
  --script-green:#3f5a34;   /* forest-green script accent words */
  --gold:#b8934e;
  --green-btn:#2f4026;      /* forest-green buttons */
  --green-btn-dk:#22301c;
  --line:#c9b489;           /* gold-tinted hairline */
}
h1,h2,h3{color:var(--ink)}

/* logo in the header, beside the name */
.brand-wrap{align-items:center;gap:13px}
.brand-logo{display:flex;align-items:center}
.logo{height:46px;width:auto;display:block}
.site-header{border-bottom:1px solid var(--line)}
@media(max-width:540px){.logo{height:38px}}

/* gentle vintage on photos so the green + gold stays true */
.hero-art,.ccard img,.about-grid img,.about-page img,.recipe-hero img,.marquee img{
  filter:saturate(.93) contrast(.97) brightness(1.03) sepia(.06);
}

/* dark-green footer */
footer.site-footer{background:#22301c}
footer.site-footer p{color:#cbb684}

/* dark-green newsletter band with gold */
.news{background:#1f2c1b;color:#e6dcc2}
.news .eyebrow{color:#b79a63}
.news h2{color:#f0e7cf}
.news h2 .script{color:#c6a86a}
.news p{color:#cdbf9f}
.news .fineprint{color:#b3a780}
.news::before{background:#39492a}
.news::after{background:#5a4a2a}
.news .subform input{background:#ece1cb;border-color:#3a4a2c;color:var(--ink)}
.news .btn-solid{background:#c6a86a;color:#22301c}
.news .btn-solid:hover{background:#d8bd82}

/* ============================================================
   PRINT — clean recipe printouts. Show only the recipe itself:
   title, category, lede, time/serves, story, ingredients, steps.
   Hide chrome and ink-heavy elements.
   ============================================================ */
@media print {
  /* Hide site chrome, navigation, newsletter, related grid, hero photo */
  .site-header,
  .site-footer,
  .lang-toggle,
  .subscribe,
  .back,
  nav,
  .news,
  .subform,
  .related,
  .recipe-hero,
  .cook-start,
  .cookmode,
  .tqt-toggle,
  .candle {
    display: none !important;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-family: "EB Garamond", Georgia, "Times New Roman", serif !important;
    font-size: 12pt !important;
    line-height: 1.5 !important;
  }

  /* Strip decorative backgrounds, shadows, and pseudo-element bars */
  *,
  *::before,
  *::after {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    color: #000 !important;
  }
  .news::before, .news::after { display: none !important; }

  /* Let the article use the full page width */
  .article,
  .article-body,
  .wrap {
    max-width: 100% !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Keep list markers visible when printed */
  ul.ingredients,
  ol.steps {
    padding-left: 1.4em !important;
  }
  ul.ingredients { list-style: disc outside !important; }
  ol.steps { list-style: decimal outside !important; }
  ul.ingredients li,
  ol.steps li {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Avoid orphaned headings */
  h1, h2 { page-break-after: avoid; }

  a { text-decoration: none !important; }
}

/* ============================================================
   CHARM LAYER — gentle motion in keeping with "enjoy the serenity".
   All effects respect prefers-reduced-motion (see the very end).
   ============================================================ */

/* Petal canvas sits behind everything, never intercepts clicks */
#petals{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
body>header,body>section,body>footer,body>main,body>article{position:relative;z-index:1}

/* --- Page-load arrival: quiet fade-up --- */
@keyframes tqt-arrive{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.tqt-arrive{animation:tqt-arrive .9s cubic-bezier(.22,.61,.36,1) both}

/* --- Scroll reveal: elements start slightly down + faded, ease in when seen --- */
.reveal{opacity:0;transform:translateY(22px);
  transition:opacity .8s cubic-bezier(.22,.61,.36,1),transform .8s cubic-bezier(.22,.61,.36,1)}
.reveal.is-in{opacity:1;transform:none}
/* stagger children (e.g. cards in a grid) */
.reveal.d1{transition-delay:.08s}
.reveal.d2{transition-delay:.16s}
.reveal.d3{transition-delay:.24s}
.reveal.d4{transition-delay:.32s}

/* --- Living recipe cards --- */
.ccard{transition:transform .5s cubic-bezier(.22,.61,.36,1),box-shadow .5s ease}
.ccard img{transition:transform 1.2s cubic-bezier(.22,.61,.36,1)}
.ccard:hover{transform:translateY(-6px)}
.ccard:hover img{transform:scale(1.05)}
/* soft shadow only if the card has a frame; harmless otherwise */
.ccard:hover{box-shadow:0 18px 40px -24px rgba(47,59,39,.45)}

/* --- Nav links: underline grows from the left --- */
.navlink{position:relative}
.navlink::after{content:"";position:absolute;left:0;bottom:-4px;height:2px;width:100%;
  background:var(--script-green);transform:scaleX(0);transform-origin:left;
  transition:transform .4s cubic-bezier(.22,.61,.36,1)}
.navlink:hover::after{transform:scaleX(1)}

/* --- Script accent words: a hand-drawn underline that draws in when revealed --- */
.script{background-image:linear-gradient(var(--accent),var(--accent));
  background-repeat:no-repeat;background-position:0 92%;background-size:0% 2px;
  transition:background-size 1.1s cubic-bezier(.22,.61,.36,1) .3s}
.reveal.is-in .script,.tqt-arrive .script{background-size:100% 2px}

/* --- Buttons: gentle press feedback --- */
.btn{transition:transform .25s ease,background .3s ease,box-shadow .3s ease}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(0)}

/* --- Hero image: very slow, barely-there breathing zoom (Ken Burns) --- */
@keyframes tqt-breathe{0%{transform:scale(1)}100%{transform:scale(1.06)}}
.hero-art{animation:tqt-breathe 24s ease-in-out infinite alternate;will-change:transform}

/* Respect users who prefer no motion: freeze everything gracefully */
@media (prefers-reduced-motion: reduce){
  #petals{display:none}
  .tqt-arrive,.hero-art{animation:none}
  .reveal{opacity:1;transform:none;transition:none}
  .script{background-size:100% 2px;transition:none}
  .ccard,.ccard img,.btn,.navlink::after{transition:none}
}

/* ============================================================
   CHARM v2 additions — steam wisps over recipe photos
   ============================================================ */
.recipe-hero{position:relative}
.steam{position:absolute;top:6%;width:44px;height:110px;pointer-events:none;
  background:radial-gradient(ellipse 50% 50% at 50% 50%,rgba(255,255,255,.55),rgba(255,255,255,0) 70%);
  filter:blur(7px);opacity:0;border-radius:50%;
  animation:tqt-steam 6s ease-in-out infinite}
.steam.s1{left:38%;animation-delay:0s}
.steam.s2{left:50%;animation-delay:2s;height:130px}
.steam.s3{left:60%;animation-delay:4s;width:36px}
@keyframes tqt-steam{
  0%{opacity:0;transform:translateY(28px) scaleX(1)}
  25%{opacity:.7}
  60%{opacity:.35;transform:translateY(-46px) scaleX(1.25) rotate(4deg)}
  100%{opacity:0;transform:translateY(-95px) scaleX(1.5) rotate(-4deg)}
}
@media (prefers-reduced-motion: reduce){.steam{display:none}}

/* ============================================================
   COOKING MODE — full-screen, one step at a time, kitchen-proof.
   ============================================================ */
.cook-start{margin-top:22px;cursor:pointer;border:none;font-family:var(--sans);
  font-size:.95rem;display:inline-flex;align-items:center;gap:.5em}

.cookmode{position:fixed;inset:0;z-index:9999;background:var(--bg);
  display:none;flex-direction:column;padding:26px clamp(18px,5vw,64px)}
.cookmode.open{display:flex}
body.cooking{overflow:hidden}

.cookmode .cm-top{display:flex;justify-content:space-between;align-items:center;gap:16px}
.cookmode .cm-title{font-family:var(--serif);font-size:1.05rem;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cookmode .cm-close{border:none;background:transparent;cursor:pointer;
  font-size:1.9rem;line-height:1;color:var(--ink);padding:4px 10px}
.cookmode .cm-close:hover{color:var(--accent)}

.cookmode .cm-stage{flex:1;display:flex;flex-direction:column;justify-content:center;
  max-width:820px;width:100%;margin:0 auto;min-height:0;overflow-y:auto}
.cookmode .cm-eyebrow{font-family:var(--script);color:var(--accent);
  font-size:clamp(1.3rem,3vw,1.7rem);margin-bottom:.6em}
.cookmode .cm-text{font-family:var(--serif);color:var(--ink);
  font-size:clamp(1.45rem,3.4vw,2.3rem);line-height:1.45}

/* ingredients checklist screen */
.cookmode .cm-ings{list-style:none;padding:0;margin:.5em 0 0}
.cookmode .cm-ings li{font-family:var(--serif);font-size:clamp(1.1rem,2.4vw,1.5rem);
  color:var(--ink);padding:.5em .2em;border-bottom:1px solid var(--line);
  cursor:pointer;display:flex;gap:.65em;align-items:baseline;
  transition:opacity .35s ease}
.cookmode .cm-ings li::before{content:"○";color:var(--green-btn);font-size:.85em}
.cookmode .cm-ings li.done{opacity:.38;text-decoration:line-through}
.cookmode .cm-ings li.done::before{content:"●"}

/* timer chip */
.cookmode .cm-timer{margin-top:1.4em;display:inline-flex;align-items:center;gap:14px;
  background:#f2ecd9;border:1px solid var(--line);border-radius:999px;
  padding:10px 20px;font-family:var(--sans)}
.cookmode .cm-timer .t-read{font-variant-numeric:tabular-nums;font-weight:600;
  font-size:1.35rem;color:var(--ink);min-width:4.5ch;text-align:center}
.cookmode .cm-timer button{border:none;cursor:pointer;border-radius:999px;
  padding:8px 16px;font-family:var(--sans);font-weight:600;font-size:.85rem}
.cookmode .t-go{background:var(--green-btn);color:#fff}
.cookmode .t-go:hover{background:var(--green-btn-dk)}
.cookmode .t-reset{background:transparent;color:var(--muted)}
.cookmode .cm-timer.ringing{animation:tqt-ring .6s ease-in-out infinite alternate}
@keyframes tqt-ring{from{box-shadow:0 0 0 0 rgba(192,112,74,.0)}
  to{box-shadow:0 0 0 8px rgba(192,112,74,.25)}}

/* bottom bar */
.cookmode .cm-bar{display:flex;justify-content:space-between;align-items:center;
  gap:18px;padding-top:18px}
.cookmode .cm-dots{display:flex;gap:9px}
.cookmode .cm-dots i{width:9px;height:9px;border-radius:50%;
  background:var(--line);transition:background .3s,transform .3s}
.cookmode .cm-dots i.on{background:var(--green-btn);transform:scale(1.25)}
.cookmode .cm-nav{display:flex;gap:12px}

/* step slide-in */
@keyframes cm-slide{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.cookmode .cm-stage.slide{animation:cm-slide .45s cubic-bezier(.22,.61,.36,1)}

@media (prefers-reduced-motion: reduce){
  .cookmode .cm-stage.slide{animation:none}
  .cookmode .cm-timer.ringing{animation:none;box-shadow:0 0 0 4px rgba(192,112,74,.3)}
}

/* ============================================================
   EVENING MODE — after sunset the table is lit by candlelight.
   Toggled by mood.js (auto by hour, manual override, remembered).
   ============================================================ */
body{transition:background-color .8s ease,color .8s ease}
body.evening{
  --bg:#262119;            /* warm candlelit dark */
  --ink:#ede4cf;           /* warm cream text */
  --ink-soft:#d9cfb6;
  --muted:#9a8f76;
  --accent:#e09a6a;        /* terracotta glows brighter at night */
  --script-green:#b3c391;
  --green-btn:#6b7d54;
  --green-btn-dk:#7e9265;  /* hover lightens at night */
  --line:#463d2e;
}
/* Keep the header in its daytime look at night so the logo stays legible.
   Re-scoping the day palette onto the header means everything inside it
   (background, nav links, tagline, the ☾/♪ toggles) renders in day colours. */
body.evening .site-header{
  --bg:#e8efd8; --ink:#2f3b27; --ink-soft:#3c472f; --muted:#7e886a;
  --accent:#c0704a; --script-green:#5f7042; --green-btn:#4c6140;
  --green-btn-dk:#3c5031; --line:#cdd9b6;
  background:#e8efd8; border-bottom:1px solid #cdd9b6;
}
/* The logo image is exempt from the evening image-dimming filter */
body.evening .site-header img{filter:none}

body.evening img{filter:brightness(.88) saturate(.92);transition:filter .8s ease}
body.evening .ccard .cap{
  background:linear-gradient(transparent,rgba(38,33,25,0) 8%,rgba(38,33,25,.92) 62%,rgba(38,33,25,.99))}
body.evening .subform input{background:#332c20;color:var(--ink)}
body.evening .cm-timer{background:#332c20}
body.evening .ccard{box-shadow:0 10px 26px -18px rgba(0,0,0,.8)}
body.evening .ccard:hover{box-shadow:0 18px 40px -22px rgba(0,0,0,.9)}

/* --- header toggle buttons (mood + sound) --- */
.tqt-toggle{background:transparent;border:1px solid var(--line);border-radius:999px;
  width:34px;height:34px;cursor:pointer;color:var(--ink);font-size:.95rem;
  display:inline-flex;align-items:center;justify-content:center;line-height:1;
  transition:border-color .3s,color .3s,transform .25s}
.tqt-toggle:hover{border-color:var(--accent);color:var(--accent);transform:translateY(-1px)}
.tqt-toggle.on{border-color:var(--accent);color:var(--accent)}

/* --- the candle: appears only in the evening, bottom corner --- */
.candle{position:fixed;right:26px;bottom:24px;z-index:5;pointer-events:none;
  opacity:0;transition:opacity 1.2s ease}
body.evening .candle{opacity:1}
.candle .flame{width:10px;height:16px;margin:0 auto;border-radius:50% 50% 50% 50%/62% 62% 38% 38%;
  background:radial-gradient(ellipse at 50% 70%,#ffd98a 0%,#f4a950 55%,rgba(224,132,64,0) 100%);
  animation:tqt-flicker 2.8s ease-in-out infinite;transform-origin:50% 100%}
.candle .glow{position:absolute;inset:-46px;border-radius:50%;
  background:radial-gradient(circle,rgba(244,169,80,.28),rgba(244,169,80,0) 70%);
  animation:tqt-glow 2.8s ease-in-out infinite}
.candle .wax{width:14px;height:20px;margin:-2px auto 0;border-radius:3px 3px 5px 5px;
  background:linear-gradient(#efe6d0,#cabfa4)}
@keyframes tqt-flicker{
  0%,100%{transform:scaleY(1) rotate(0deg)}
  25%{transform:scaleY(1.12) rotate(-2.5deg)}
  50%{transform:scaleY(.94) rotate(1.8deg)}
  75%{transform:scaleY(1.06) rotate(-1.2deg)}}
@keyframes tqt-glow{
  0%,100%{opacity:.85;transform:scale(1)}
  50%{opacity:1;transform:scale(1.08)}}

@media (prefers-reduced-motion: reduce){
  .candle .flame,.candle .glow{animation:none}
  body,body.evening img{transition:none}
}

/* ============================================================
   RECIPE SPLIT — sticky ingredient notes (left) + scrolling method (right)
   ============================================================ */
.recipe-split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,5vw,72px);
  align-items:start;max-width:1180px;margin:0 auto;padding:0 clamp(18px,4vw,40px)}

/* Left column sticks in view while the right column scrolls past it */
.ing-panel{position:sticky;top:96px;align-self:start;
  max-height:calc(100vh - 120px);overflow-y:auto;padding:4px 6px 20px}
.ing-panel .block{margin:0}

/* The ingredients list becomes a scatter of little sticky notes */
.ing-panel ul.ingredients{list-style:none;padding:0;margin:.4em 0 0;
  display:flex;flex-wrap:wrap;gap:16px}
.ing-panel ul.ingredients li{
  --note:#fff7c9;                       /* default pale-butter note */
  position:relative;background:var(--note);color:#43391f;
  font-family:var(--serif);font-size:1rem;line-height:1.35;
  width:calc(50% - 8px);min-height:96px;padding:18px 16px 16px;
  box-shadow:2px 5px 14px -6px rgba(60,42,24,.5);
  border-radius:2px 2px 3px 3px;cursor:default;
  transition:transform .3s cubic-bezier(.22,.61,.36,1),box-shadow .3s ease}
/* a torn strip of "tape" at the top of each note */
.ing-panel ul.ingredients li::before{content:"";position:absolute;
  top:-9px;left:50%;transform:translateX(-50%) rotate(-3deg);
  width:52px;height:18px;background:rgba(198,168,106,.42);
  border:1px solid rgba(198,168,106,.25);border-radius:1px}
/* alternate the tints + hand-pinned rotations for a scattered feel */
.ing-panel ul.ingredients li:nth-child(4n+1){--note:#fff7c9;transform:rotate(-1.6deg)}
.ing-panel ul.ingredients li:nth-child(4n+2){--note:#dcefd6;transform:rotate(1.4deg)}
.ing-panel ul.ingredients li:nth-child(4n+3){--note:#ffe0d4;transform:rotate(1deg)}
.ing-panel ul.ingredients li:nth-child(4n+4){--note:#e3ecff;transform:rotate(-1.2deg)}
.ing-panel ul.ingredients li:hover{transform:rotate(0deg) translateY(-4px) scale(1.03);
  box-shadow:3px 9px 20px -6px rgba(60,42,24,.55);z-index:2}

/* evening: warm the notes so they still read like paper by candlelight */
body.evening .ing-panel ul.ingredients li{color:#3a3117;filter:brightness(.96)}
body.evening .ing-panel ul.ingredients li:nth-child(4n+1){--note:#efe3ad}
body.evening .ing-panel ul.ingredients li:nth-child(4n+2){--note:#c3d6bd}
body.evening .ing-panel ul.ingredients li:nth-child(4n+3){--note:#e6c3b4}
body.evening .ing-panel ul.ingredients li:nth-child(4n+4){--note:#c6d0e6}

/* Right column just flows normally and scrolls with the page */
.recipe-flow{min-width:0}
.recipe-flow .block:first-child{margin-top:0}

/* Stack on narrow screens: notes on top, then the method; nothing sticky */
@media(max-width:820px){
  .recipe-split{grid-template-columns:1fr;gap:32px}
  .ing-panel{position:static;max-height:none;overflow:visible}
  .ing-panel ul.ingredients li{min-height:84px}
}
@media(max-width:420px){
  .ing-panel ul.ingredients li{width:100%}
}
@media (prefers-reduced-motion: reduce){
  .ing-panel ul.ingredients li{transition:none}
}
/* ============================================================
   INSTAGRAM — footer sign-off + compact header link
   ============================================================ */
/* Footer: a handwritten invitation above the handle */
.site-footer .ig-link{display:inline-flex;flex-direction:column;align-items:center;
  gap:6px;text-decoration:none;color:var(--ink);margin-bottom:14px;
  transition:color .3s ease,transform .3s ease}
.site-footer .ig-invite{font-family:var(--script);color:var(--accent);
  font-size:1.5rem;line-height:1}
.site-footer .ig-link .ig-glyph{transition:transform .4s cubic-bezier(.22,.61,.36,1)}
.site-footer .ig-handle{font-family:var(--sans);font-size:.95rem;letter-spacing:.02em}
.site-footer .ig-link:hover{color:var(--accent);transform:translateY(-2px)}
.site-footer .ig-link:hover .ig-glyph{transform:rotate(-8deg) scale(1.12)}
/* put the glyph + handle on one row, invite above */
.site-footer .ig-link{position:relative}
.site-footer .ig-invite{order:-1}
.site-footer .ig-glyph,.site-footer .ig-handle{display:inline-block}
.site-footer .ig-link{gap:2px}
.site-footer .ig-glyph{margin-bottom:2px}

/* Header: compact icon + handle, tucked in the nav */
.ig-nav{display:inline-flex;align-items:center;gap:6px}
.ig-nav .ig-nav-handle{font-size:.9rem}
.ig-nav .ig-glyph{transition:transform .35s ease}
.ig-nav:hover .ig-glyph{transform:rotate(-8deg) scale(1.1)}
/* the nav underline animation already applies via .navlink */

/* Hide header handle text on small screens (keep just the glyph) */
@media(max-width:720px){
  .ig-nav .ig-nav-handle{display:none}
}

/* Evening mode: links follow the warm palette automatically via var(--ink)/--accent.
   Header stays in day palette (already handled), so nothing extra needed. */

/* Print: no social chrome */
@media print{ .ig-link,.ig-nav{display:none !important} }

/* Evening footer is dark (#22301c) — keep the IG link warm & legible on it */
body.evening .site-footer .ig-link{color:#e7dcc0}
body.evening .site-footer .ig-invite{color:#e0a06a}
body.evening .site-footer .ig-link:hover{color:#f0b884}
