/* Geestelijk Voedsel — design tokens */
:root {
  --paper: #faf7f2;
  --surface: #ffffff;
  --surface-sunk: #f4efe6;
  --ink: #23201c;
  --ink-soft: #4a453e;
  --muted: #837a6e;
  --line: #e8e1d5;
  --line-strong: #d8ccb8;
  --accent: #8a5834;
  --accent-deep: #6b4425;
  --accent-wash: #f3ebe0;
  --gold: #b3873c;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(35, 32, 28, .05), 0 2px 8px rgba(35, 32, 28, .04);
  --shadow: 0 2px 4px rgba(35, 32, 28, .04), 0 12px 28px rgba(35, 32, 28, .07);
  --shadow-lg: 0 4px 10px rgba(35, 32, 28, .05), 0 24px 60px rgba(35, 32, 28, .11);

  --shell: 1140px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 24px; }

/* Icons ------------------------------------------------------------------ */
.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.dish-icon { width: 44px; height: 44px; flex: none; }
.dish-icon--sm { width: 26px; height: 26px; }
.dish-icon--lg { width: 76px; height: 76px; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 247, 242, .85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: .01em; }
.brand__tagline { font-size: .74rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: .92rem; color: var(--ink-soft); transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--accent); background: var(--accent-wash); }
.site-nav a[aria-current="page"] { color: var(--accent-deep); background: var(--accent-wash); font-weight: 600; }
.site-nav__fav { display: inline-flex; align-items: center; gap: 7px; }
.site-nav__fav .icon { width: 16px; height: 16px; }

.fav-count {
  min-width: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center;
}

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); cursor: pointer;
}

/* Hero ------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(120% 100% at 50% 0%, #fdf9f2 0%, rgba(253, 249, 242, 0) 70%),
    linear-gradient(180deg, var(--accent-wash) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.hero__inner { padding-block: 76px 64px; text-align: center; max-width: 760px; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.1rem); margin: .18em 0 .22em; color: var(--accent-deep); }
.hero__lead { font-size: 1.1rem; color: var(--ink-soft); line-height: 1.7; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .76rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted);
}

/* Page head -------------------------------------------------------------- */
.page-head { padding-block: 56px 8px; max-width: 800px; }
.page-head__title { font-size: clamp(2rem, 4.4vw, 2.9rem); margin: .18em 0 .3em; color: var(--accent-deep); }
.page-head__lead { color: var(--ink-soft); font-size: 1.04rem; }

/* Sections --------------------------------------------------------------- */
.section { padding-block: 44px; }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.section__title { font-size: 1.5rem; }
.section__note { color: var(--muted); font-size: .9rem; }

/* Cards ------------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: .92rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.btn:disabled { opacity: .5; cursor: progress; transform: none; }
.btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn--quiet { background: transparent; border-color: transparent; color: var(--muted); }
.btn--quiet:hover { background: var(--accent-wash); color: var(--accent-deep); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); font-size: .9rem; font-weight: 600;
}
.link-arrow .icon { transition: transform .18s; }
a:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(3px); }

.badge {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-family: var(--font-body); font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.badge--new { background: var(--accent-wash); color: var(--accent-deep); margin-left: 8px; }

/* Meta list -------------------------------------------------------------- */
.meta-list { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .86rem; }
.meta-list li { display: inline-flex; align-items: center; gap: 7px; }
.meta-list .icon { color: var(--gold); }
.meta-list--lg { font-size: .95rem; gap: 10px 24px; }

/* Today panel ------------------------------------------------------------ */
.today {
  display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center;
  padding: 30px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.today__art {
  display: grid; place-items: center;
  width: 116px; height: 116px; border-radius: 50%;
  background: var(--accent-wash);
}
.today__title { font-size: 1.85rem; margin: 6px 0 8px; }
.today__menu { color: var(--ink-soft); margin-bottom: 14px; }
.today__actions { display: flex; flex-direction: column; gap: 9px; min-width: 226px; }
.today__status { color: var(--muted); font-size: .8rem; text-align: center; min-height: 1.2em; }
.today.is-loading { opacity: .55; }
.today__body > * { transition: opacity .18s; }

/* Tiles ------------------------------------------------------------------ */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 28px 26px;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.tile h3 { font-size: 1.28rem; }
.tile p { color: var(--muted); font-size: .93rem; flex: 1; }

/* Upcoming --------------------------------------------------------------- */
.upcoming { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.upcoming__item { display: flex; flex-direction: column; gap: 5px; padding: 20px 22px; }
.upcoming__date {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.upcoming__name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.upcoming__blurb { color: var(--muted); font-size: .87rem; line-height: 1.5; }

/* Timeline --------------------------------------------------------------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px;
  width: 2px; background: linear-gradient(180deg, var(--line-strong), var(--line));
}
.timeline__item { position: relative; margin-bottom: 22px; }
.timeline__marker {
  position: absolute; left: -34px; top: 26px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--line-strong);
}
.timeline__item.is-now .timeline__marker { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-wash); }
.timeline__card { padding: 24px 26px; }
.timeline__item.is-now .timeline__card { border-color: var(--accent); box-shadow: var(--shadow); }
.timeline__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 6px;
}
.timeline__title { font-size: 1.35rem; }
.timeline__dates { display: inline-flex; align-items: center; gap: 7px; margin-top: 5px; color: var(--muted); font-size: .87rem; }
.timeline__dates .icon { color: var(--gold); }
.timeline__count { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.timeline__blurb { color: var(--ink-soft); font-size: .95rem; margin-bottom: 8px; }

/* Perioden waar nog geen gerecht bij hoort: wel in de kalender, maar ingetogen. */
.timeline__item.is-empty .timeline__card { background: var(--surface-sunk); border-style: dashed; box-shadow: none; }
.timeline__item.is-empty .timeline__marker { border-style: dashed; }
.timeline__none {
  display: flex; align-items: center; gap: 9px; margin-top: 14px;
  padding-top: 13px; border-top: 1px dashed var(--line);
  color: var(--muted); font-size: .9rem;
}
.timeline__none .icon { color: var(--accent); flex-shrink: 0; }
.timeline__none a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.timeline__none a:hover { color: var(--accent-deep); }

.dish-list { margin-top: 14px; border-top: 1px solid var(--line); }
.dish-list li + li { border-top: 1px solid var(--line); }
.dish-list__link {
  display: flex; align-items: center; gap: 14px; padding: 12px 10px;
  border-radius: var(--r-sm); transition: background .14s;
}
.dish-list__link:hover { background: var(--surface-sunk); }
.dish-list__text { display: flex; flex-direction: column; flex: 1; }
.dish-list__title { font-weight: 500; }
.dish-list__bible { color: var(--muted); font-size: .84rem; }
.dish-list__arrow { color: var(--accent); opacity: 0; transition: opacity .14s, transform .14s; }
.dish-list__link:hover .dish-list__arrow { opacity: 1; transform: translateX(3px); }

/* Filters ---------------------------------------------------------------- */
.filters { display: grid; grid-template-columns: 1fr 260px; gap: 14px; margin-bottom: 16px; }
.field { position: relative; display: flex; align-items: center; }
.field__icon { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.field__chevron { position: absolute; right: 14px; color: var(--muted); pointer-events: none; }
.field input, .field select {
  width: 100%; padding: 14px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 88, 52, .13);
}
.field--search input { padding-left: 46px; }
.field--select select { appearance: none; padding-right: 42px; cursor: pointer; }
.field input::placeholder { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink-soft);
  font: inherit; font-size: .87rem; cursor: pointer;
  transition: background .14s, color .14s, border-color .14s;
}
.chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.result-count { color: var(--muted); font-size: .86rem; margin-bottom: 18px; }

/* Grid & recipe cards ---------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 20px; }

.recipe-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .16s, box-shadow .16s, border-color .16s; }
.recipe-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.recipe-card[hidden] { display: none; }
.recipe-card__art {
  display: grid; place-items: center; height: 128px;
  background: linear-gradient(140deg, var(--accent-wash), var(--surface-sunk));
  border-bottom: 1px solid var(--line);
}
.recipe-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 16px; flex: 1; }
.recipe-card__title { font-size: 1.18rem; }
.recipe-card__title a:hover { color: var(--accent); }
.recipe-card__menu {
  color: var(--muted); font-size: .9rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.recipe-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 22px; border-top: 1px solid var(--line); background: #fdfbf8;
}

.fav-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--surface); color: var(--muted);
  cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.fav-btn:hover { color: var(--accent); border-color: var(--accent); }
.fav-btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-wash); }
.fav-btn[aria-pressed="true"] .icon { fill: currentColor; }
.fav-btn--labelled { width: auto; height: auto; padding: 11px 18px; border-radius: var(--r-sm); }

.empty {
  padding: 56px 24px; text-align: center; color: var(--muted);
  background: var(--surface-sunk); border-radius: var(--r); border: 1px dashed var(--line-strong);
}

/* Breadcrumb ------------------------------------------------------------- */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-top: 26px; color: var(--muted); font-size: .85rem;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .icon { width: 13px; height: 13px; opacity: .55; }

/* Recipe detail ---------------------------------------------------------- */
.recipe__head {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start;
  padding-block: 26px 34px; border-bottom: 1px solid var(--line);
}
.recipe__art {
  display: grid; place-items: center; width: 132px; height: 132px;
  border-radius: var(--r-lg); background: var(--accent-wash); border: 1px solid var(--line);
}
.recipe__title { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: .16em 0 .24em; color: var(--accent-deep); }
.recipe__menu { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 16px; }
.recipe__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.recipe__body {
  display: grid; grid-template-columns: 330px 1fr; gap: 44px;
  align-items: start; padding-block: 40px;
}
.recipe__aside { position: sticky; top: calc(var(--header-h) + 24px); }

.panel { padding: 24px 26px; }
.panel__title { display: flex; align-items: center; gap: 10px; font-size: 1.18rem; margin-bottom: 14px; }

.ingredients li + li { border-top: 1px solid var(--line); }
.ingredients label {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; cursor: pointer; font-size: .95rem; line-height: 1.5;
}
.ingredients input {
  appearance: none; flex: none;
  width: 18px; height: 18px; margin-top: 3px;
  border: 1.5px solid var(--line-strong); border-radius: 5px;
  background: var(--surface); cursor: pointer; transition: background .14s, border-color .14s;
}
.ingredients input:checked { background: var(--accent); border-color: var(--accent); }
.ingredients input:checked + span { color: var(--muted); text-decoration: line-through; }

.prose + .prose { margin-top: 40px; }
.prose__title {
  font-size: 1.5rem; margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}

.steps { counter-reset: step; }
.steps li { display: flex; gap: 18px; padding: 14px 0; }
.steps li + li { border-top: 1px solid var(--line); }
.steps__n {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-wash); color: var(--accent-deep);
  font-family: var(--font-display); font-size: .95rem; font-weight: 700;
}
.steps p { color: var(--ink-soft); }

.quote {
  margin: 0; padding: 24px 28px;
  background: var(--surface-sunk); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--font-display); font-size: 1.06rem; line-height: 1.75;
}
/* De betekenis loopt over meerdere alinea's; de eerste sluit aan op de
   verwijzing erboven en krijgt daarom geen extra witregel. */
.quote p + p { margin-top: 15px; }
.quote__ref {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--accent);
}

/* Het rechtenvrije kunstwerk bij de uitleg. Het beeld staat bij het museum in
   portret of in landschap; een vaste hoogte zou het ene of het andere bederven,
   dus we begrenzen alleen de hoogte en laten de breedte zich schikken. */
.artwork { margin: 22px 0 0; }
.artwork img {
  display: block; width: 100%; max-height: 420px; object-fit: contain;
  background: var(--surface-sunk); border-radius: var(--r);
}
.artwork__credit {
  margin-top: 9px; color: var(--muted);
  font-size: .8rem; line-height: 1.55; font-style: italic;
}
.artwork__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.artwork__credit a:hover { color: var(--accent); }

.source-note {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 14px;
  color: var(--muted); font-size: .85rem; line-height: 1.6;
}
.source-note .icon { flex: none; margin-top: 3px; color: var(--accent); }
.source-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Footer ----------------------------------------------------------------- */
.site-footer { margin-top: 60px; border-top: 1px solid var(--line); background: var(--surface-sunk); }
.site-footer__inner { padding-block: 44px; text-align: center; color: var(--muted); font-size: .9rem; }
.site-footer__brand { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); margin-bottom: 4px; }
.site-footer__nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.site-footer__nav a:hover { color: var(--accent); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px; background: var(--surface);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; border-radius: var(--r-sm); }

  .today { grid-template-columns: 1fr; text-align: center; padding: 26px 22px; }
  .today__art { margin-inline: auto; }
  .today .meta-list { justify-content: center; }
  .today__actions { min-width: 0; }

  .recipe__body { grid-template-columns: 1fr; gap: 32px; }
  .recipe__aside { position: static; }
  .filters { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .shell { padding-inline: 18px; }
  .hero__inner { padding-block: 52px 44px; }
  .recipe__head { grid-template-columns: 1fr; gap: 18px; }
  .timeline { padding-left: 26px; }
  .timeline__marker { left: -26px; }
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Print ------------------------------------------------------------------ */
@media print {
  .site-header, .site-footer, .breadcrumb, .recipe__actions, .section, .fav-btn { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .recipe__body { grid-template-columns: 1fr; gap: 20px; padding-block: 16px; }
  .recipe__aside { position: static; }
  .card, .quote { box-shadow: none; border: 1px solid #ccc; }
  a { color: inherit; }
}
