@font-face {
  font-family: Outfit;
  src: url('fonts/outfit.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --forest: #073c29;
  --deep: #032a1d;
  --green: #13603b;
  --leaf: #79bd49;
  --lime: #d8efaa;
  --gold: #ffc337;
  --berry: #a41d53;
  --paper: #fff8e9;
  --cream: #fffcf5;
  --ink: #173e2b;
  --muted: #4b5c4b;
  --rule: #e2ddce;
  font-family: Outfit, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, summary { font: inherit; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 4px; }
.pattern :focus-visible { outline-color: var(--gold); }
h1, h2, h3, p { margin: 0; }
h1, h2 { line-height: .96; letter-spacing: -.055em; font-weight: 850; }
.wrap { width: min(calc(100% - 36px), 1212px); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 10px; left: 10px; padding: 10px; background: white; transform: translateY(-170%); }
.skip:focus { transform: translateY(0); }
.site-header { background: var(--cream); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { width: 65px; }
.brand { flex: none; }
.header-inner nav { display: flex; align-items: center; gap: clamp(9px, 2vw, 26px); }
.header-inner nav a, .footer-recipes { font-weight: 650; font-size: clamp(.79rem, 2.4vw, 1rem); text-decoration: none; }
.header-inner nav a:hover, .footer-recipes:hover { text-decoration: underline; text-underline-offset: .23em; }
.header-inner nav .nav-feature { background: #e9f3d9; border-radius: 8px; padding: 9px 11px; }
.pattern {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 85% 45%, #145534, var(--forest) 54%, #063421 88%);
  color: var(--cream);
}
.pattern::before {
  position: absolute;
  content: '';
  z-index: -1;
  pointer-events: none;
  inset: -20%;
  background: repeating-radial-gradient(
    ellipse at 93% 77%,
    transparent 0 39px,
    #b4e38410 42px 52px,
    transparent 56px 68px
  );
  mask-image: linear-gradient(105deg, #0003, #0007 45%, #000);
}
.hero { border-bottom: 5px solid var(--leaf); }
.hero-inner { display: grid; padding: 36px 0 28px; min-height: 0; }
.hero-copy { z-index: 1; }
.hero h1 { font-size: clamp(3.3rem, 14vw, 6.35rem); font-weight: 900; line-height: .87; }
.hero h1 span { display: block; color: var(--gold); margin-top: .03em; }
.hero-description { margin-top: 15px; max-width: 37ch; color: #f2f7e6; font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.45; }
.hero-description strong { font-weight: 720; }
.hero-actions { margin-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 17px; }
.button, .hero-secondary, .back { display: inline-flex; align-items: center; min-height: 44px; }
.button { background: var(--gold); color: #203621; border-radius: 7px; text-decoration: none; padding: 10px 15px; font-weight: 800; font-size: .94rem; box-shadow: 0 4px 0 #00180f6b; }
.button:hover { background: #ffda73; }
.hero-secondary { text-underline-offset: .26em; font-weight: 650; font-size: .94rem; }
.hero-art { position: relative; width: min(100%, 610px); display: grid; margin: 11px auto 0; aspect-ratio: 1.46; }
.hero-art::before {
  content: '';
  position: absolute;
  inset: 8% 8% 8% 10%;
  border-radius: 56% 13% 57% 15%;
  background: radial-gradient(ellipse at 52% 30%, #8dc64c, #68af42 64%, #4c9637);
  transform: rotate(-13deg);
  box-shadow: 0 20px 40px #001e1160, inset 0 0 0 1px #b2de7450;
}
.hero-pot { z-index: 1; position: absolute; width: 83%; left: -2%; bottom: 2%; max-width: none; filter: drop-shadow(0 10px 9px #00170ec9) drop-shadow(8px 20px 20px #01271991); }
.hero-pot.fallback img { aspect-ratio: 1.5; object-fit: cover; border-radius: 40%; }
.pack { z-index: 2; position: absolute; display: block; width: 35%; right: 1%; bottom: 4%; filter: drop-shadow(3px 8px 4px #011b14b0) drop-shadow(7px 15px 14px #011b14a1); transform: rotate(9deg); }
.collection, .related { padding-block: clamp(39px, 6vw, 84px); }
.collection-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; margin-bottom: 24px; gap: 10px 24px; }
.collection h2, .related h2 { font-size: clamp(2.6rem, 6vw, 5.5rem); }
.collection-head h2 span { color: var(--berry); }
.collection-head p { color: var(--muted); line-height: 1.4; font-size: 1.06rem; }
.grid, .related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(11px, 2.4vw, 27px); }
.card { background: var(--cream); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; box-shadow: 0 5px 0 #e8dfcd; }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card a:focus-visible { outline-offset: -4px; }
.card-photo { overflow: hidden; background: #e7e5d7; }
.card-photo img { width: 100%; object-fit: cover; transition: transform .25s ease-out; }
.card a:hover img { transform: scale(1.045); }
.card-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: clamp(11px, 2vw, 23px); }
.card h3 { font-size: clamp(1.13rem, 2.5vw, 1.75rem); line-height: 1.04; font-weight: 790; letter-spacing: -.028em; }
.card p { color: var(--muted); font-size: clamp(.82rem, 1.4vw, 1rem); line-height: 1.4; }
.card-link { margin-top: auto; width: fit-content; color: var(--green); font-weight: 730; font-size: .86rem; padding-top: 3px; border-bottom: 2px solid #b7d895; }
.card a:hover .card-link { border-color: var(--green); }
.site-footer { background: var(--cream); border-top: 1px solid var(--rule); }
.footer-inner { min-height: 91px; padding-block: 16px; flex-wrap: wrap; }
.footer-recipes { margin-right: auto; }
.footer-socials p { font-weight: 750; font-size: .88rem; }
.footer-socials ul { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.social-icon { flex: none; width: 19px; height: 19px; fill: currentColor; }
.footer-socials a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 10px; border: 1px solid #d5e6c4; border-radius: 7px; background: #e9f3d9; color: var(--forest); font-size: .88rem; font-weight: 700; text-decoration: none; }
.footer-socials a:hover { background: #d8ebbd; }
.footer-notices { flex: 0 0 100%; border-top: 1px solid var(--rule); padding-top: 8px; }
.footer-notices ul { display: flex; flex-wrap: wrap; gap: 0 18px; list-style: none; margin: 0; padding: 0; }
.footer-notices a { display: inline-flex; align-items: center; min-height: 40px; font-size: .86rem; font-weight: 620; text-underline-offset: .2em; }
@media (max-width: 540px) { .footer-socials { flex-basis: 100%; } }

.recipe-masthead { padding: 9px 0 27px; border-bottom: 5px solid var(--leaf); }
.back { font-weight: 700; text-underline-offset: .24em; }
.recipe-masthead .back { color: #e8f3d6; }
.recipe-heading { display: grid; align-items: center; gap: 22px; padding-top: 5px; }
.recipe-intro { min-width: 0; }
.recipe-heading h1 { font-size: clamp(1.9rem, 10vw, 4.1rem); }
.recipe-heading h1 span { display: block; white-space: nowrap; }
.recipe-heading h1 .title-accent { color: var(--gold); }
.recipe-side { margin-top: 12px; color: #e5f1dd; font-size: clamp(1.07rem, 2vw, 1.3rem); line-height: 1.38; max-width: 31ch; }
.recipe-photo { position: relative; isolation: isolate; margin-right: 10px; }
.recipe-photo::before { content: ''; position: absolute; inset: 7% -9px -7px 8%; z-index: -1; background: var(--leaf); border-radius: 15px 24% 15px 25%; }
.recipe-photo-frame { border-radius: 12px 23% 12px 22%; overflow: hidden; box-shadow: 0 13px 26px #04231563; }
.recipe-photo img:not(.pack) { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.recipe-photo .pack { right: -2.5%; bottom: -2%; width: min(29%, 144px); }
.metadata { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 0; }
.metadata > div { background: #002b1d85; border-radius: 8px; padding: 7px 12px 8px; border: 1px solid #b4dd8460; }
.metadata dt { font-size: .79rem; color: #e7f3d5; }
.metadata dd { margin: 2px 0 0; font-size: .93rem; font-weight: 700; }
.recipe-jumps { position: sticky; top: 0; z-index: 4; background: var(--cream); box-shadow: 0 3px 12px #18362010; border-bottom: 1px solid var(--rule); }
.recipe-nav { display: flex; gap: 7px; padding-block: 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #aacd84 var(--cream); }
.recipe-nav a { flex: none; display: inline-flex; align-items: center; min-height: 42px; padding: 7px 12px; background: #e9f2d9; border-radius: 7px; font-weight: 650; font-size: .9rem; text-decoration: none; }
.recipe-nav a:hover, .recipe-nav a:focus-visible { background: #d9ebc2; outline-offset: -3px; }
.review-note { margin-top: 25px; padding: 13px 15px; background: #fff0ca; border-left: 4px solid #d58908; border-radius: 4px; font-size: .94rem; line-height: 1.5; }
.component { padding-block: clamp(29px, 5vw, 63px); border-bottom: 1px solid var(--rule); scroll-margin-top: 67px; }
.component h2 { font-size: clamp(2.25rem, 5vw, 4.65rem); margin-bottom: clamp(17px, 3vw, 32px); }
.component:target h2 { color: var(--berry); }
.component-columns { display: grid; gap: 19px; align-items: start; }
.ingredients { background: var(--cream); border: 1px solid #dbe5ce; border-radius: 13px; overflow: hidden; box-shadow: 0 5px 0 #e8dfcd; }
.ingredients summary { list-style: none; cursor: pointer; color: #fafff4; background: var(--green); display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; font-size: 1.27rem; font-weight: 750; }
.ingredients summary::-webkit-details-marker { display: none; }
.ingredients summary::after { content: '+'; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 4px; font-size: 1.15rem; background: #ffffff22; }
.ingredients[open] summary::after { content: '−'; }
.ingredients summary:focus-visible { outline: 3px solid var(--gold); outline-offset: -5px; }
.ingredients ul { margin: 0; padding: 0 15px; list-style: none; }
.ingredients li + li { border-top: 1px solid #e5e9db; }
.ingredients label { display: grid; grid-template-columns: 18px minmax(0, 1fr) minmax(0, max-content); align-items: center; min-height: 45px; padding: 9px 0; gap: 9px; cursor: pointer; line-height: 1.35; }
.ingredients input { width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
.ingredients input:checked ~ span { text-decoration: line-through; color: var(--muted); }
.amount { max-width: 15ch; text-align: right; font-size: .88rem; font-weight: 680; color: #285239; }
.method { border-radius: 13px; background: #fffdf8; border: 1px solid var(--rule); padding: 16px; }
.method h3 { color: var(--green); font-size: 1.35rem; line-height: 1; margin-bottom: 11px; }
.method ol { counter-reset: step; margin: 0; padding: 0; list-style: none; }
.method li { counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 10px; line-height: 1.5; padding: 11px 0; }
.method li + li { border-top: 1px solid #eeeadf; }
.method li:last-child { padding-bottom: 3px; }
.method li::before { content: counter(step); background: #ffdc71; color: #393922; border-radius: 7px; width: 30px; height: 30px; display: grid; place-items: center; font-weight: 800; line-height: 1; }
.method p { padding-top: 3px; }
.method strong { color: var(--green); }
.related { padding-top: 34px; }
.related h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
@media (min-width: 740px) {
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related-grid > :nth-child(4) { display: none; }
}
.missing { min-height: 52vh; padding-block: 60px; }
.missing h1 { font-size: clamp(2.75rem, 5vw, 4rem); margin-bottom: 18px; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); white-space: nowrap; overflow: hidden; }

.guide-start { margin-top: 17px; border: 0; cursor: pointer; }
.recipe-share { position: relative; z-index: 2; display: grid; justify-items: center; margin-block: -21px 12px; }
.share-options { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 100%; padding: 3px 6px; background: var(--forest); color: var(--cream); border: 2px solid #9ccb79; border-radius: 24px; box-shadow: 0 3px 0 #133b2320; }
.share-options a, .share-options button, .share-label { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 0; border-radius: 20px; background: transparent; color: inherit; font: inherit; text-decoration: none; }
.share-options a, .share-options button { cursor: pointer; }
.share-options a, .share-options [data-copy-recipe] { min-width: 42px; padding: 6px; }
.share-options a:hover, .share-options button:hover { background: #ffffff22; }
.share-options :focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.share-options .share-label { padding: 0 9px; font-size: .94rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 355px) { .share-label .social-icon { display: none; } }
.share-address { display: grid; gap: 4px; width: min(100%, 360px); margin-top: 7px; font-size: .87rem; }
.share-address input { width: 100%; min-width: 0; padding: 7px; border: 1px solid var(--rule); color: var(--ink); }
.share-status:not(:empty) { margin-top: 6px; font-size: .87rem; }
.method-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 7px; }
.method-head h3 { margin: 0; }
.guide-link, .step-timer button, .ingredient-tools button, .timer-shelf button, .cook-dialog button {
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  padding: 7px 12px;
}
.guide-link, .step-timer button { background: #e8f2d9; color: var(--ink); font-size: .9rem; }
.guide-link:hover, .step-timer button:hover { background: #d8ebbd; }
.step-timers { display: grid; gap: 5px; margin-top: 8px; }
.step-timer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.step-timer span { color: var(--muted); font-size: .88rem; }
.ingredient-count { font-size: .86rem; font-weight: 600; margin-left: auto; margin-right: 8px; }
.ingredients input:checked ~ .amount { text-decoration: none; color: var(--muted); }
.ingredient-note { grid-column: 2 / -1; color: var(--muted); font-size: .84rem; }
.ingredient-tools { margin-inline: 15px; border-top: 1px solid #e5e9db; padding-block: 7px; }
.ingredient-tools button { background: transparent; color: var(--green); padding-inline: 0; min-height: 40px; text-decoration: underline; text-underline-offset: .16em; }
button:disabled { cursor: default; opacity: .47; }
.timers-dock { position: fixed; z-index: 7; bottom: max(10px, env(safe-area-inset-bottom)); right: max(10px, env(safe-area-inset-right)); left: 10px; pointer-events: none; }
.timer-shelf { width: min(100%, 354px); margin-left: auto; padding: 11px; border-radius: 13px; background: var(--forest); color: var(--cream); box-shadow: 0 6px 24px #00211750; pointer-events: auto; }
.timer-shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.timer-shelf h2 { font-size: 1.12rem; letter-spacing: -.02em; margin: 4px 0; }
.timer-shelf-head button { min-height: 34px; background: #ffffff19; color: white; font-size: .78rem; }
.timer-cards { display: grid; gap: 6px; max-height: min(235px, 31dvh); overflow-y: auto; margin-top: 6px; }
.timer-card { background: #f1f7e8; color: var(--ink); border-radius: 8px; padding: 8px 10px; }
.timer-card.timer-done { background: #fff0af; }
.timer-info { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 7px; }
.timer-name { font-size: .86rem; }
.timer-info [role="timer"] { font-size: 1.55rem; font-variant-numeric: tabular-nums; line-height: 1; }
.timer-finished { width: 100%; font-size: .88rem; font-weight: 760; }
.timer-actions { display: flex; gap: 4px; margin-top: 3px; flex-wrap: wrap; }
.timer-actions button { background: transparent; color: var(--green); min-height: 36px; padding: 5px 9px; font-size: .87rem; }
.timer-actions [data-timer-control="toggle"] { color: white; background: var(--green); }

.cook-dialog { padding: 0; width: min(100% - 22px, 685px); height: min(calc(100dvh - 22px), 770px); max-width: none; max-height: none; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper); color: var(--ink); }
.cook-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.cook-dialog::backdrop { background: #03271bcc; }
.cook-header, .cook-controls { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px clamp(12px, 4vw, 25px); }
.cook-header { background: var(--forest); color: var(--cream); }
.cook-header :focus-visible { outline-color: var(--gold); }
.cook-header h2 { font-size: clamp(1.2rem, 5vw, 1.55rem); letter-spacing: -.02em; }
.cook-header button { background: #ffffff1e; color: var(--cream); font-size: .87rem; white-space: nowrap; }
.cook-body { overflow: auto; overscroll-behavior: contain; padding: clamp(14px, 5vw, 28px); }
.cook-position { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 11px; font-weight: 740; }
.cook-progress-text { font-size: .89rem; color: var(--green); }
.cook-progress { display: block; width: 100%; height: 6px; margin-top: 9px; accent-color: var(--green); }
.cook-step { margin-block: 14px; padding: clamp(13px, 4vw, 25px); border-radius: 12px; border: 1px solid var(--rule); background: var(--cream); }
.cook-step:focus { outline: none; }
.cook-step p { font-size: clamp(1.14rem, 4vw, 1.63rem); line-height: 1.44; }
.cook-step .step-timer button { min-height: 44px; background: #f9df83; }
.cook-step .step-timer button:hover { background: #fceaa4; }
.cook-controls { background: var(--cream); border-top: 1px solid var(--rule); }
.cook-controls button { background: #e8f2d9; color: var(--ink); }
.cook-controls [data-next-step] { background: var(--gold); }
.cook-timers-dock .timer-shelf { border-radius: 0; width: 100%; padding-inline: clamp(12px, 4vw, 25px); }
.cook-timers-dock .timer-cards { max-height: min(190px, 27dvh); }
@media (max-width: 480px) {
  .cook-dialog { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .cook-controls { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (min-width: 740px) {
  .header-inner { min-height: 77px; }
  .logo { width: 74px; }
  .hero-inner { grid-template-columns: .87fr 1.13fr; align-items: center; gap: 9px; min-height: clamp(425px, 51vw, 610px); padding-block: 44px; }
  .hero h1 { font-size: clamp(3.35rem, 6.8vw, 6.8rem); }
  .hero-description { margin-top: 23px; }
  .hero-actions { margin-top: 25px; gap: 11px 24px; }
  .hero-art { margin: 0; width: 109%; max-width: 700px; transform: translateX(-2%); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recipe-masthead { padding-block: 15px 44px; }
  .recipe-heading { grid-template-columns: .95fr 1.05fr; gap: clamp(29px, 5vw, 70px); min-height: 330px; }
  .recipe-heading h1 { font-size: clamp(2.6rem, 5.6vw, 5.1rem); }
  .component-columns { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(23px, 4vw, 51px); }
  .ingredients summary, .ingredients ul, .method { padding-inline: 22px; }
  .method { padding-block: 21px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .site-header, .site-footer, .back, .recipe-jumps, .recipe-photo, .related, .guide-start, .recipe-share, .guide-link, .step-timers, .ingredient-tools, .timers-dock, .cook-dialog { display: none; }
  .wrap { width: 100%; }
  .recipe-masthead, .ingredients summary { background: white; color: black; border-color: #bbb; }
  .recipe-masthead h1 span, .recipe-side, .metadata dt, .metadata dd { color: black; }
  .pattern::before { display: none; }
  .metadata > div { background: white; }
  .component-columns, .recipe-heading { display: block; }
  .method li, .ingredients li { break-inside: avoid; }
  .component { break-before: page; }
}

.recipe-heading h1 span { white-space: normal; overflow-wrap: anywhere; }
.recipe-heading h1 .title-accent { white-space: nowrap; }
.recipe-notes { margin-block: 1.5rem; }
.ingredients[data-checklist="off"] label { grid-template-columns: minmax(0, 1fr) minmax(0, max-content); cursor: default; }
.ingredients[data-checklist="off"] .ingredient-note { grid-column: 1 / -1; }
.admin-bar .recipe-jumps { top: 32px; }
@media (max-width: 782px) { .admin-bar .recipe-jumps { top: 46px; } }
@media (max-width: 600px) { .admin-bar .recipe-jumps { top: 0; } }
