:root { color-scheme: light; background: #f8f7ee; color: #26322a; }
* { box-sizing: border-box; }
body { margin: 0 auto; font: 1rem/1.8 system-ui, sans-serif; }
main, .site-header { width: min(calc(100% - 2rem), 65rem); margin-inline: auto; }
.site-header { padding: .9rem 0; border-bottom: 1px solid #c8d1c2; }
a { color: #1d6449; text-underline-offset: .2em; }
main { margin-block: 2.5rem 4rem; }
h1, h2, h3 { line-height: 1.35; }
h1 { font-size: clamp(1.85rem, 4vw, 3.25rem); }
.summary { font-size: 1.1rem; color: #415449; }
section { margin-block: 2rem; }
.notes { max-width: 43rem; margin-inline: auto; }
.notes section { border-top: 1px solid #c8d1c2; }
dt { font-weight: 650; } dd { margin: 0 0 .75rem; }
.step-intro { background: #e0ecda; padding: clamp(1rem, 4vw, 2.5rem); border-radius: .8rem; }
.step-list { display: grid; gap: 1rem; padding: 0 0 0 1.75rem; }
.step-list li { background: #fffef8; border: 1px solid #c8d1c2; border-radius: .65rem; padding: 1rem; }
.step-list li::marker { color: #1d6449; font-weight: 700; }
summary { cursor: pointer; }
.reference nav { align-self: start; padding: .5rem 1rem; border: 1px solid #c8d1c2; }
.reference nav ul { padding-left: 1.2rem; }
@media (min-width: 52rem) {
  .step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .reference-grid { display: grid; grid-template-columns: 15rem 1fr; gap: 2.5rem; }
  .reference nav { position: sticky; top: 1rem; }
  .reference-grid section:first-child { margin-top: 0; }
}

.recipe-page {
  --paper: #f8f6ec;
  --ink: #21342a;
  --soft: #466052;
  --accent: #266248;
  --line: #cbd3bf;
  --panel: #fffdf4;
  --hero: #e3ecd6;
  --radius: 1rem;
  --section-space: 2.8rem;
  min-height: 100vh;
  padding-bottom: 2rem;
  background: var(--paper);
  color: var(--ink);
}
.recipe-page.theme-clear {
  --paper: #f3f8fa;
  --ink: #152c39;
  --soft: #36536a;
  --accent: #135e76;
  --line: #c6dbe1;
  --panel: #fff;
  --hero: #d8edf4;
  --radius: .55rem;
  --section-space: 2rem;
}
.recipe-page.theme-reference {
  --paper: #f5f4f1;
  --ink: #242a37;
  --soft: #505b70;
  --accent: #354f85;
  --line: #d4d8e2;
  --panel: #fff;
  --hero: #e8ebf5;
  --radius: .25rem;
  --section-space: 1.6rem;
}
.recipe-page.theme-daylight {
  --paper: #eff9f5;
  --ink: #182d37;
  --soft: #365460;
  --accent: #086d62;
  --line: #c9dfdb;
  --panel: #fff;
  --hero: #deefe9;
  --radius: 1rem;
  background: linear-gradient(120deg, #edf9f2, #eff5fd 68%, #f5f0fc);
}
.theme-daylight main, .theme-daylight .site-header { width: min(calc(100% - 2rem), 78rem); }
.theme-daylight main { margin-top: 0; }
.theme-daylight .hero-showcase {
  background: transparent;
  border: 0;
  padding: clamp(1.5rem, 5vw, 4.4rem) 0 .2rem;
}
.hero-showcase h1 { max-width: 28ch; font-size: clamp(1.8rem, 4vw, 3.65rem); }
.hero-showcase h1 em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(95deg, #087a6a, #5143a3);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.showcase-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.6rem, 1.7vw, 1.25rem);
  list-style: none;
  padding: 0;
  margin: 1.65rem 0 0;
}
.showcase-cards li {
  min-width: 0;
  border: 1px solid #e7efef;
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(.9rem, 2vw, 1.45rem);
  box-shadow: 0 .8rem 1.8rem #38716c14;
}
.showcase-cards h2 { font-size: 1.15rem; margin-block: .6rem .3rem; }
.showcase-cards p { margin: 0; color: var(--soft); }
.showcase-badge { display: inline-block; border-radius: 2rem; padding: .1rem .55rem; background: #d8f1e9; color: #215b51; font-weight: 700; }
.showcase-summary { background: linear-gradient(100deg, #dcf4ef, #edf1fc); border-inline-start: .25rem solid var(--accent); border-radius: var(--radius); padding: 1rem 1.25rem; }
.showcase-summary p { margin-bottom: 0; }
@media (max-width: 42rem) {
  .showcase-cards { grid-template-columns: 1fr; gap: .65rem; }
  .showcase-cards h2 { display: inline; margin-inline-start: .45rem; }
  .showcase-cards p { margin-top: .4rem; }
}
.recipe-page a { color: var(--accent); }
.recipe-page .site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 1.25rem;
  border-color: var(--line);
}
.recipe-page .site-header nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.recipe-page .site-header a:first-child { font-weight: 700; }
.recipe-page .site-footer { border-top: 1px solid var(--line); border-bottom: 0; }
.shell-compact .site-header { justify-content: center; }
.hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--hero);
  padding: clamp(1.1rem, 5vw, 3.75rem);
}
.hero h1 { margin-block: .45em .3em; max-width: 22ch; overflow-wrap: anywhere; }
.hero .summary { max-width: 38rem; color: var(--soft); margin-bottom: 0; }
.hero-center { text-align: center; }
.hero-center h1, .hero-center .summary { margin-inline: auto; }
.hero-index, .module-grid { list-style: none; padding: 0; }
.hero-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: 0; }
.hero-index li, .module-grid li, .recipe-checklist li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.hero-index li { padding: .5rem; overflow-wrap: anywhere; }
.hero-index strong { display: block; color: var(--accent); font-size: 1.15rem; }
.eyebrow { color: var(--accent); font-weight: 720; margin: 0; }
.recipe-block { margin-block: var(--section-space); }
.recipe-block h2 { margin-bottom: .7rem; }
.recipe-block p { margin-top: .45rem; }
.module-grid { display: grid; gap: .8rem; }
.module-grid li { padding: 1rem; }
.module-grid h3 { margin-block: .45rem; }
.photo-gallery figure { margin: 0; }
.photo-gallery img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.photo-gallery figcaption { padding-top: .5rem; color: var(--soft); }
.diagram-mark { display: grid; place-items: center; background: var(--hero); color: var(--accent); font-size: 2rem; font-weight: 730; }
.diagram .diagram-mark { min-height: 5.25rem; }
.markers .diagram-mark { width: 2.7rem; height: 2.7rem; font-size: 1rem; border-radius: 50%; }
.recipe-checklist { padding: 0; display: grid; gap: .55rem; list-style: none; }
.recipe-checklist li { padding: .55rem .85rem; border-inline-start: 3px solid var(--accent); }
.table-scroll { overflow-x: auto; }
.table-scroll table { width: 100%; min-width: 24rem; border-collapse: collapse; background: var(--panel); }
.table-scroll th, .table-scroll td { text-align: left; border: 1px solid var(--line); padding: .55rem .7rem; }
.table-scroll thead { background: var(--hero); }
.reading-items section, .recipe-steps li { margin: 0; }
.mode-story .reading-items { max-width: 43rem; }
.mode-story section + section { border-top: 1px solid var(--line); margin-top: 1.35rem; }
.mode-cards .reading-items { display: grid; gap: .8rem; }
.mode-cards .reading-items section, .recipe-steps li {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
}
.recipe-steps { display: grid; gap: 1rem; padding-left: 1.45rem; }
.recipe-steps li::marker { color: var(--accent); font-weight: 750; }
.recipe-toc { display: grid; gap: .4rem; align-self: start; margin-top: 1.6rem; padding: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.recipe-page details { border-bottom: 1px solid var(--line); padding: .65rem 0; }
.action a { display: inline-block; background: var(--accent); color: #fff; padding: .5rem .9rem; border-radius: var(--radius); }
@media (min-width: 48rem) {
  .hero-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: 1rem; }
  .hero-split .hero-index { grid-template-columns: 1fr; }
  .hero-split .hero-index strong { display: inline-block; min-width: 2.2rem; }
  .module-grid, .mode-cards .reading-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recipe-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .with-toc { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; }
  .recipe-toc { position: sticky; top: 1rem; }
}
