/* RecipeDelish — Phase 1 styles
   Palette: forest #1B4332 (hero/titles), cream #FDF8F0 (bg),
   terracotta #E4572E (buttons/accents), charcoal #1F2937 (text) */
:root{
  --green:#1B4332; --green-dark:#123124; --green-soft:#D8EAD9;
  --cream:#FDF8F0; --cream-dark:#F5EAD9;
  --terra:#E4572E; --terra-dark:#C7431F;
  --ink:#1F2937; --mut:#5B6773; --line:#E7DCC8; --white:#FFFFFF;
  --radius:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;background:var(--cream);color:var(--ink);line-height:1.55}
h1,h2,h3{font-family:'Fraunces',Georgia,serif;color:var(--green);line-height:1.2;margin:0 0 .5rem}
a{color:var(--terra)}
.wrap{max-width:1720px;margin:0 auto;padding:0 28px}
.skip{position:absolute;left:-9999px}
.skip:focus{left:12px;top:12px;background:#fff;padding:8px;z-index:99}

/* Hero */
.hero{position:relative;background:url(../assets/hero-bg-dark.webp) center/cover;color:#fff;padding:64px 0 56px;text-align:center;overflow:hidden}
.hero video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.48),rgba(0,0,0,.28) 55%,rgba(0,0,0,.5))}
.hero .wrap{position:relative;z-index:1}
.hero h1{color:#fff;font-size:clamp(96px,28vw,150px);font-weight:900;letter-spacing:-.01em;margin:0;line-height:1;text-shadow:0 2px 18px rgba(0,0,0,.45)}
.hero h1 .h-serif{font-family:'Playfair Display',Georgia,serif;font-weight:900;color:#fff;display:block}.hero h1 .h-script{font-family:'Allura',cursive;font-weight:400;display:block;font-size:1.13em;margin-top:-.30em;background:linear-gradient(180deg,#9A6B1F 0%,#FFD700 28%,#FFF9D6 45%,#F0C75E 62%,#D4A437 100%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 14px rgba(255,215,0,.45))}
.hero .tag{font-size:clamp(17px,2.6vw,24px);opacity:.95;margin:8px 0 4px}
.hero .sub{opacity:.8;max-width:640px;margin:0 auto 22px}
.search{max-width:560px;margin:0 auto;display:flex;background:#fff;border-radius:999px;padding:6px 6px 6px 18px;box-shadow:0 8px 30px rgba(0,0,0,.25)}
.search input{flex:1;border:0;outline:0;font-size:16px;min-width:0}
.search button{border:0;background:var(--terra);color:#fff;border-radius:999px;padding:10px 22px;font-size:15px;font-weight:700;cursor:pointer}
.search button:hover{background:var(--terra-dark)}
.trust{margin-top:18px;font-size:13px;opacity:.75;display:flex;flex-wrap:wrap;gap:10px 20px;justify-content:center}.trust span{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.trust svg{width:17px;height:17px;flex:none}

/* Homepage hero v13: full-bleed video, black fade left, one-line name */
.hero-home{background:#000;text-align:left;padding:56px 0 24px} /* thinner black band under the trust badges on phones (was 56px bottom) */
.hero-home video{object-position:75% 50%}
.hero-home::after{background:linear-gradient(90deg,rgba(0,0,0,.85) 0%,rgba(0,0,0,.60) 50%,rgba(0,0,0,.28) 78%,rgba(0,0,0,.12) 100%)}
.hero-home .wrap{text-align:left}
.hero-home h1{font-size:clamp(48px,14.5vw,64px);white-space:nowrap} /* name must stay one line on phones: with the span padding below it can exceed the content box by a few px into the wrap padding instead of wrapping */
.hero-home h1 .h-serif{display:inline}
.hero-home h1 .h-script{display:inline;font-size:1.15em;margin-top:0;margin-left:-.08em;padding-right:.15em} /* same 'h' swash fix as desktop: background-clip:text hides ink outside the span box */
.hero-home .tag{font-size:clamp(16px,2.2vw,20px);margin:16px 0 4px}
.hero-home .sub{font-size:15px;max-width:560px;margin:0 0 20px}
.hero-home .search{margin:0;max-width:640px;padding:8px 8px 8px 22px}
.hero-home .search input{font-size:17px}
.hero-home .search button{padding:13px 28px;font-size:16px}
.hero-home .trust{justify-content:flex-start;font-size:15px}
.hero-home .trust svg{width:21px;height:21px;color:#FFD166}

/* Desktop hero v13: full-bleed video, black fade left, dish right */
@media(min-width:1021px){
.hero-home{padding:0}
.hero-home video{left:0;width:100%;object-position:50% 60%}
.hero-home::after{background:linear-gradient(90deg,rgba(0,0,0,.88) 0%,rgba(0,0,0,.72) 32%,rgba(0,0,0,.28) 58%,rgba(0,0,0,0) 78%)}
.hero-home .wrap{width:60%;max-width:1180px;margin:0;box-sizing:border-box;padding:76px 24px 32px 48px} /* thinner black band under the trust badges on desktop (was 68px bottom) */
.hero-home h1{font-size:clamp(64px,7vw,150px);padding-right:.18em}
.hero-home h1 .h-script{font-size:1.35em;padding-right:.15em} /* Allura's final 'h' swash overhangs its advance by ~.07em; with background-clip:text any ink outside the span box is invisible, so the span needs its own right padding (h1 padding does not cover it) */
.hero-home .tag{font-size:clamp(16px,1.6vw,21px)}
.hero-home .sub{font-size:15.5px}
}

/* Round-icon nav */
/* Big section cards: 6 across on desktop, fewer on smaller screens, never horizontal overflow */
.seccards{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.seccard{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;cursor:pointer;padding:0;text-align:left;display:flex;flex-direction:column;box-shadow:0 10px 26px rgba(27,67,50,.15);transition:transform .15s,box-shadow .15s}
.seccard:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(27,67,50,.20)}
.seccard.active{border-color:var(--terra);box-shadow:0 0 0 3px rgba(228,87,46,.25)}
.seccard img{width:100%;height:150px;object-fit:cover;display:block}
.seccard-body{display:flex;flex-direction:column;gap:4px;padding:14px}
.seccard-name{font-size:17px;font-weight:800;color:var(--green);line-height:1.2}
.seccard-blurb{font-size:13px;color:var(--mut);line-height:1.45}
.seccard-arrow{font-size:13px;font-weight:700;color:var(--terra);margin-top:4px}
@media(max-width:1020px){.seccards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){.seccards{grid-template-columns:repeat(2,1fr);gap:12px}.seccard img{height:120px}.seccard-body{padding:10px}.seccard-name{font-size:15px}}
/* Subscribe box (placeholder form — endpoint pending, see HTML comment) */
.subscribe{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:30px 24px;text-align:center;box-shadow:0 12px 30px rgba(27,67,50,.15)}
.subscribe h2{color:var(--green);margin-bottom:8px}
.subscribe p{color:var(--mut);margin:0 auto 16px;max-width:520px}
.subform{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.subform input[type="email"]{flex:1 1 260px;max-width:380px;padding:13px 16px;border:1px solid var(--line);border-radius:999px;font-size:15px;font-family:inherit;color:var(--ink);background:var(--cream)}
.subform input[type="email"]:focus{outline:2px solid var(--terra);border-color:var(--terra)}
.subsmall{font-size:13px;color:var(--mut);margin:14px auto 0}

/* Sections */
.section{padding:40px 0 8px}
.section h2{font-size:clamp(28px,4vw,40px)}
.section:not(.subscribe) h2::after{content:"";display:block;width:64px;height:4px;background:var(--terra);border-radius:2px;margin-top:10px}
section[aria-label="Kitchen tools"] h2{font-size:clamp(36px,4.5vw,52px)}
.section .lead{color:var(--mut);max-width:720px;margin:0 0 18px}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;box-shadow:0 12px 30px rgba(27,67,50,.16);transition:transform .15s,box-shadow .15s}
.card:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(27,67,50,.22)}
.card img.heroimg{width:100%;height:210px;object-fit:cover;background:var(--green-soft)}
.card-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:10px;flex:1}
.card-body h3{font-size:21px;margin:0}
.meta{display:flex;flex-wrap:wrap;gap:6px}
.pill{background:var(--green-soft);color:var(--green);font-size:12.5px;font-weight:700;border-radius:999px;padding:3px 10px}
.pill.warn{background:#FDEBD7;color:#8A4B08}
.btn{display:inline-block;border:0;border-radius:999px;padding:10px 18px;font-weight:700;font-size:14.5px;cursor:pointer;text-decoration:none;text-align:center}
.btn-terra{background:var(--terra);color:#fff}
.btn-terra:hover{background:var(--terra-dark)}
.btn-line{background:#fff;color:var(--green);border:2px solid var(--green)}
.btn-line:hover{background:var(--green-soft)}
.btnrow{display:flex;flex-wrap:wrap;gap:8px}
.pairing{background:var(--cream-dark);border-left:4px solid var(--terra);padding:10px 12px;border-radius:0 10px 10px 0;font-size:14.5px}
.pairing b{color:var(--green)}

/* Recipe detail */
.detail{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin-top:18px;box-shadow:0 12px 30px rgba(27,67,50,.14)}
.detail h3{font-size:26px}
.ing-steps{display:grid;grid-template-columns:1fr 1.4fr;gap:22px}
@media(max-width:760px){.ing-steps{grid-template-columns:1fr}}
.ing li{margin-bottom:6px}
.steps li{margin-bottom:12px;font-size:15.5px}
.steps li.done{opacity:.55;text-decoration:line-through}
.scalerbox{background:var(--cream-dark);border-radius:12px;padding:12px 14px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}
.scalerbox label{font-weight:700;color:var(--green)}
.scalerbox input{width:76px;padding:8px;border:1px solid var(--line);border-radius:8px;font-size:15px}
.scalerbox button{border:0;background:var(--green);color:#fff;border-radius:999px;padding:8px 14px;font-weight:700;cursor:pointer}
.note{font-size:13.5px;color:var(--mut)}
table{width:100%;border-collapse:collapse;font-size:14.5px;margin:10px 0}
th{background:var(--green);color:#fff;text-align:left;padding:8px 10px}
td{padding:8px 10px;border-bottom:1px solid var(--line)}
tr:nth-child(even) td{background:#FBF6EC}

/* Tools */
.toolgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;margin-bottom:18px}
.toolcard{background:#fff;border:2px solid var(--line);border-radius:var(--radius);padding:22px;cursor:pointer;text-align:left;display:flex;align-items:center;gap:16px}
.toolcard:hover,.toolcard.active{border-color:var(--terra)}
.toolcard h3{font-size:21px}
.toolcard p{margin:0;color:var(--mut);font-size:15px}
.toolicon{width:96px;height:96px;object-fit:cover;border-radius:12px;flex:none}
.tooltext{min-width:0}
.toolpanel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:0 10px 26px rgba(27,67,50,.12)}

/* Toolbox: strong border + shadow so the box stands out */
.toolbox{background:#fff;border:3px solid var(--green);border-radius:var(--radius);box-shadow:0 18px 44px rgba(27,67,50,.22);overflow:hidden}
/* Desktop tools: one box — tool list left, calculator right */
@media(min-width:1021px){
.toolbox{display:grid;grid-template-columns:340px minmax(0,1fr)}
.toolbox .toolgrid{grid-template-columns:1fr;gap:0;margin-bottom:0}
.toolbox .toolcard{border:0;border-bottom:1px solid var(--line);border-radius:0}
.toolbox .toolcard:last-child{border-bottom:0}
.toolbox .toolcard:hover,.toolbox .toolcard.active{background:var(--green-soft)}
.toolbox .toolpanel{border:0;border-left:1px solid var(--line);border-radius:0;min-width:0}
}
.field{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:10px 0}
.field label{font-weight:700;color:var(--green)}
.field input,.field select{padding:9px 12px;border:1px solid var(--line);border-radius:8px;font-size:15px;max-width:100%}
.result{background:var(--green-soft);border-radius:12px;padding:14px 16px;font-size:17px;margin:14px 0}
.result b{color:var(--green)}
.diagram{margin:14px 0}
.diagram svg{width:100%;max-width:520px;height:auto;display:block}
.faq{margin-top:16px}
.faq b{color:var(--green)}
.subsearch{width:100%;max-width:480px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;font-size:15px}

/* Timers */
.timer-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:var(--cream-dark);border-radius:12px;padding:10px 12px;margin:8px 0}
.timer-row .tname{font-weight:700;color:var(--green);min-width:110px}
.timer-row .tleft{font-family:ui-monospace,Menlo,monospace;font-size:20px;font-weight:700}
.timer-row button{border:0;border-radius:999px;padding:7px 13px;font-weight:700;cursor:pointer;background:var(--green);color:#fff}
.timer-row button.off{background:#fff;color:var(--green);border:2px solid var(--green)}

/* Filters + quick row */
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.chip{border:2px solid var(--green);background:#fff;color:var(--green);border-radius:999px;padding:7px 16px;font-weight:700;cursor:pointer}
.chip.active{background:var(--green);color:#fff}
.empty{background:#fff;border:1px dashed var(--line);border-radius:var(--radius);padding:18px;color:var(--mut)}

/* Reviews placeholder + ad slots */
.stars{color:#D9A441;letter-spacing:2px;font-size:17px}
.ad-slot{border:1px dashed #C9BFA9;background:#FBF3E3;color:#8A7A5C;text-align:center;padding:16px;border-radius:12px;font-size:12.5px;letter-spacing:.08em;margin:22px 0}
footer{background:var(--green-dark);color:#D8EAD9;padding:34px 0;margin-top:44px;font-size:14px}
footer a{color:#FFD166}
.cookmode{position:fixed;inset:0;background:rgba(18,49,36,.92);z-index:200;overflow:auto;display:none}
.cookmode.open{display:block}
.cookmode .inner{max-width:760px;margin:4vh auto;background:var(--cream);border-radius:18px;padding:26px}
.cookmode h2{font-size:30px}
.cookmode ol li{font-size:21px;line-height:1.6;margin-bottom:18px}
.cookmode .close{float:right;border:0;background:var(--terra);color:#fff;border-radius:999px;padding:9px 18px;font-weight:700;cursor:pointer}
.printonly{display:none}
@media print{
  body *{visibility:hidden}
  .printonly, .printonly *{visibility:visible}
  .printonly{position:absolute;inset:0;display:block;background:#fff;color:#000;padding:20px}
}

/* Seasonal group headings: bigger, colored by season */
.season-head{font-size:clamp(28px,7.5vw,36px);line-height:1.15;margin:30px 0 14px}
.season-head.thanks{color:#B45309}
.season-head.christ{color:#166534}

/* Recipe grids pinned so 12 stays even: 3 cols up to 1500px, 4 cols wider */
@media(min-width:1021px){.cards{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1500px){.cards{grid-template-columns:repeat(4,1fr)}}

/* v19: big photo on top of the recipe panel + "More to explore" box */
.detail-img{width:100%;height:300px;object-fit:cover;border-radius:12px;display:block;margin-bottom:16px;background:var(--green-soft)}
@media(max-width:760px){.detail-img{height:210px}}
.more-box{background:var(--cream-dark);border:1px solid var(--line);border-radius:var(--radius);padding:22px 18px;margin-top:24px;text-align:center}
.more-box h3{font-size:24px;margin-bottom:4px}
.more-box h3::after{content:"";display:block;width:48px;height:3px;background:var(--terra);border-radius:2px;margin:8px auto 0}
.more-box p{margin:0 0 16px}
.more-icons{display:flex;flex-wrap:wrap;gap:18px;justify-content:center}
.more-icon{display:flex;flex-direction:column;align-items:center;gap:7px;width:96px;text-decoration:none}
.more-icon img{width:84px;height:84px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 6px 16px rgba(27,67,50,.25);display:block}
.more-icon span{font-size:13.5px;font-weight:700;color:var(--green);line-height:1.25;text-align:center}
.more-icon:hover img{border-color:var(--terra)}
@media(max-width:640px){.more-icons{gap:12px}.more-icon{width:76px}.more-icon img{width:64px;height:64px}.more-icon span{font-size:12.5px}}
