:root {
  --paper: #ffffff;
  --ink: #1f2a24;
  --muted: #5c6b61;
  --leaf: #2f6b3a;
  --leaf-hover: #1d4a26;
  --butter: #f2c230;
  --butter-wash: #fff6d6;
  --rule: #dadfd8;
  --check: #8a968e;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --measure: 38rem;
}
:root:not([data-theme="light"]) {
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151b17;
    --ink: #e8ece6;
    --muted: #a3b0a7;
    --leaf: #8fcf98;
    --leaf-hover: #b9e6bf;
    --butter: #e0b52a;
    --butter-wash: #2a2614;
    --rule: #2e3832;
    --check: #6f7c74;
  }
}
:root[data-theme="dark"] {
  --paper: #151b17; --ink: #e8ece6; --muted: #a3b0a7; --leaf: #8fcf98; --leaf-hover: #b9e6bf;
  --butter: #e0b52a; --butter-wash: #2a2614; --rule: #2e3832; --check: #6f7c74;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--leaf); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--leaf-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 2px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--butter); color: #1f2a24; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

/* ---------- header ---------- */
.top { border-bottom: 1px solid var(--rule); }
.top-inner {
  max-width: 68rem; margin: 0 auto; padding: 0.75rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem;
}
@media (min-width: 48rem) { .top-inner { padding: 0.9rem 2rem; } }
.brand {
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink); text-decoration: none;
  background: linear-gradient(var(--butter), var(--butter)) 0 92% / 100% 0.32em no-repeat;
}
.brand:hover { color: var(--ink); }
.home .brand { display: none; }
.mainnav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: 1rem; }
.mainnav a { color: var(--ink); text-decoration: none; padding: 0.2rem 0; }
.mainnav a:hover, .mainnav a[aria-current] { color: var(--leaf); text-decoration: underline; text-decoration-color: var(--butter); text-decoration-thickness: 3px; }
.topsearch { flex: 1 1 100%; }
@media (min-width: 48rem) { .topsearch { margin-left: auto; flex: 1 1 12rem; max-width: 18rem; } }
.home .topsearch, .searchpage .topsearch { display: none; }
input[type="search"] {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--rule); border-radius: 6px; padding: 0.45rem 0.7rem;
}
input[type="search"]:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px var(--butter-wash); }
.topsearch input { font-size: 1rem; }

/* ---------- home ---------- */
.hero { padding: 3.5rem 0 2.5rem; }
@media (min-width: 48rem) { .hero { padding: 5.5rem 0 3.5rem; } }
.logo {
  font-family: var(--serif); font-weight: 400; margin: 0;
  font-size: clamp(3rem, 11vw, 6.75rem); line-height: 0.98; letter-spacing: -0.02em;
  display: inline;
  background: linear-gradient(var(--butter), var(--butter)) 0 88% / 100% 0.22em no-repeat;
  padding-right: 0.05em;
}
.slogan { font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--muted); margin: 1.1rem 0 2.5rem; }
.bigsearch { max-width: 36rem; }
.listpage .bigsearch { margin-top: 1.75rem; }
.bigsearch label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.bigsearch input { font-size: 1.15rem; padding: 0.75rem 0.95rem; border-width: 2px; }

.today { background: var(--butter-wash); border-block: 1px solid var(--rule); }
.today-inner { padding-block: 1.6rem; display: grid; gap: 0.2rem; }
@media (min-width: 48rem) { .today-inner { grid-template-columns: 14rem 1fr; align-items: baseline; column-gap: 2rem; } }
.today h2 { font-size: 1rem; font-weight: 700; margin: 0; color: var(--muted); }
.dag { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 2rem); line-height: 1.25; }
.dag-cat { margin: 0; color: var(--muted); font-size: 1rem; grid-column: 2; }
@media (max-width: 47.99rem) { .dag-cat { grid-column: auto; } }

.toc { padding-block: 3rem 4rem; }
.toc > h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin: 0 0 1.25rem; }
.toclist { list-style: none; padding: 0; margin: 0; columns: 1; column-gap: 3.5rem; }
@media (min-width: 40rem) { .toclist { columns: 2; } }
@media (min-width: 64rem) { .toclist { columns: 3; } }
.toclist li { break-inside: avoid; }
.toclist a {
  display: flex; align-items: baseline; gap: 0.4rem; padding: 0.42rem 0;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent;
}
.toclist .n { font-family: var(--serif); font-size: 1.2rem; }
.toclist .dots { flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-0.3em); min-width: 1rem; }
.toclist .c { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 1rem; }
.toclist a:hover .n { color: var(--leaf); text-decoration: underline; text-decoration-color: var(--butter); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.toclist a:hover .dots { border-color: var(--butter); }
.extras { list-style: none; padding: 1.5rem 0 0; margin: 2rem 0 0; border-top: 1px solid var(--rule); display: grid; gap: 0.6rem; }
.extras a { font-family: var(--serif); font-size: 1.2rem; }
.extras span { color: var(--muted); font-size: 1rem; margin-left: 0.4rem; }

/* ---------- list pages ---------- */
.listpage { padding-block: 2rem 4rem; }
.crumbs { font-size: 0.95rem; color: var(--muted); margin: 0 0 0.6rem; }
.crumbs a { color: var(--muted); }
.ptitle {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.1; margin: 0;
  display: inline; background: linear-gradient(var(--butter), var(--butter)) 0 90% / 100% 0.2em no-repeat;
}
.lede { color: var(--muted); margin: 0.9rem 0 1.75rem; }
.letters { display: flex; flex-wrap: wrap; gap: 0.15rem; margin: 0 0 2rem; position: sticky; top: 0; background: var(--paper); padding: 0.5rem 0; border-bottom: 1px solid var(--rule); z-index: 2; }
.letters a { min-width: 2.1rem; text-align: center; padding: 0.3rem 0; text-decoration: none; font-weight: 700; border-radius: 4px; }
.letters a:hover { background: var(--butter-wash); }
.lcols { columns: 1; column-gap: 3rem; }
@media (min-width: 44rem) { .lcols { columns: 2; } }
@media (min-width: 68rem) { .lcols { columns: 3; } }
.lgroup { break-inside: avoid-column; margin-bottom: 1.5rem; scroll-margin-top: 4rem; }
.lgroup h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 0 0 0.35rem; color: var(--muted); }
.lgroup ul { list-style: none; margin: 0; padding: 0; }
.lgroup li { padding: 0.22rem 0; line-height: 1.35; }
.pic { font-size: 0.75rem; color: var(--muted); border: 1px solid var(--rule); border-radius: 3px; padding: 0 0.3rem; margin-left: 0.35rem; vertical-align: 0.15em; }

.menus { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem 2.5rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.menu { border-top: 3px solid var(--butter); padding-top: 0.7rem; }
.menu ol { list-style: none; padding: 0; margin: 0; }
.menu li { padding: 0.15rem 0; line-height: 1.4; }

.results { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.results li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.results a { font-family: var(--serif); font-size: 1.2rem; }
.results .rc { display: block; color: var(--muted); font-size: 0.95rem; }
.results mark { background: var(--butter-wash); color: inherit; padding: 0 0.1em; }
.count { color: var(--muted); margin: 1.5rem 0 0.5rem; }

/* ---------- recipe ---------- */
.recipe { max-width: 68rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
@media (min-width: 48rem) { .recipe { padding: 3rem 2rem 5rem; } }
.r-head { margin-bottom: 2.25rem; max-width: 48rem; }
.r-head h1 {
  font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.12;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  display: inline; background: linear-gradient(var(--butter), var(--butter)) 0 92% / 100% 0.22em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.serves { color: var(--muted); margin: 0.9rem 0 0; }
.dish { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.dish img { border-radius: 4px; max-height: 14rem; width: auto; }

.r-body { display: grid; gap: 2rem; }
@media (min-width: 56rem) {
  .r-body { grid-template-columns: minmax(15rem, 20rem) minmax(0, var(--measure)); gap: 3.5rem; }
  .r-ingr { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow: auto; }
}
.r-body.single { grid-template-columns: minmax(0, var(--measure)); }
.r-ingr { background: var(--butter-wash); border-radius: 6px; padding: 1.1rem 1.25rem 0.6rem; }
.r-ingr h2, .r-steps h2 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin: 0 0 0.6rem; }
.r-ingr h2 ~ h2 { margin-top: 1.25rem; }
.r-steps h2 { margin-top: 1.75rem; }
.r-steps > h2:first-child { margin-top: 0; }
.r-steps p { margin: 0 0 1rem; overflow-wrap: anywhere; }
.r-steps, .r-ingr { min-width: 0; }
.ingr { list-style: none; padding: 0; margin: 0; }
.ingr li { border-bottom: 1px solid color-mix(in srgb, var(--butter) 35%, transparent); }
.ingr li:last-child { border-bottom: 0; }
.ingr label { display: flex; gap: 0.65rem; align-items: baseline; padding: 0.4rem 0; cursor: pointer; line-height: 1.4; }
.ingr input { accent-color: var(--leaf); width: 1.05rem; height: 1.05rem; flex: none; transform: translateY(0.12em); }
.ingr input:checked + span { color: var(--check); text-decoration: line-through; text-decoration-color: var(--check); }
.ingr span { transition: color 0.2s; }
.hint { font-size: 0.9rem; color: var(--muted); margin: 0.6rem 0 0.5rem; }
.plain { padding-left: 1.2rem; margin: 0 0 1rem; }
.plain li { margin-bottom: 0.3rem; }
.thanks { color: var(--muted); font-style: italic; }
.smakelijk { font-family: var(--serif); font-size: 1.5rem; margin: 2rem 0 0 !important; }
.smakelijk::before { content: ""; display: block; width: 4.5rem; height: 0.28rem; background: var(--butter); margin-bottom: 1rem; border-radius: 2px; }
.more { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.more h2 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 0 0 0.6rem; }
.more ul { list-style: none; padding: 0; margin: 0 0 0.8rem; display: grid; gap: 0.35rem 2rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.95rem; }
.foot-inner { max-width: 68rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
@media (min-width: 48rem) { .foot-inner { padding: 2rem 2rem 3rem; } }
.foot-brand { font-family: var(--serif); color: var(--ink); font-size: 1.15rem; margin: 0 0 0.3rem; }
.foot-brand span { color: var(--muted); font-size: 1rem; margin-left: 0.4rem; }
.foot p { margin: 0 0 0.3rem; max-width: 40rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }

@media print {
  .top, .foot, .more, .hint, .skip, .letters { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .r-body { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; }
  .r-ingr { background: none; border: 1px solid #999; position: static; max-height: none; }
  .ingr input { display: none; }
  .ingr input:checked + span { text-decoration: none; color: #000; }
  a { color: #000; text-decoration: none; }
}
