/* Entwurf 2 – Die Wirtshauskarte. System: design/2.md. Rules use only the tokens in :root. */
@font-face { font-family: "Gloock"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/gloock-normal-400.woff2") format("woff2"); }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/crimson-pro-normal-400-600.woff2") format("woff2"); }
@font-face { font-family: "Crimson Pro"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/crimson-pro-italic-400.woff2") format("woff2"); }

:root {
  --c-paper: #ffffff;
  --c-card: #eef2ee;
  --c-ink: #1f3d2c;
  --c-muted: #56655a;
  --c-red: #a8272c;
  --c-white: #ffffff;
  color-scheme: light;

  --font-display: "Gloock", Georgia, serif;
  --font-text: "Crimson Pro", Georgia, serif;

  --fs-n1: .938rem;
  --fs-0: 1.25rem;
  --fs-1: 1.666rem;
  --fs-2: 2.221rem;
  --fs-3: 2.96rem;
  --fs-4: 3.946rem;
  --fs-5: 5.26rem;
  --fs-mast: clamp(3.946rem, 15vw, 12.46rem);
  --fs-spread: clamp(2.96rem, 1.5rem + 5.5vw, 5.26rem);

  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 3rem;
  --s-7: 5rem;
  --s-8: 8rem;
  --gutter: 1.5rem;
  --side: var(--s-3);
  --max: 80rem;
  --radius: 0;
  --radius-pill: 999px;
}
@media (min-width: 48rem) { :root { --side: var(--s-5); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-text); font-size: var(--fs-0); line-height: 1.5; color: var(--c-ink); background: var(--c-paper); }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 var(--s-3); }
a { color: var(--c-ink); }
:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
.wrap { width: min(var(--max), 100% - 2 * var(--side)); margin-inline: auto; }
.sr { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s-3); top: calc(var(--s-8) * -1); padding: var(--s-2) var(--s-3); background: var(--c-ink); color: var(--c-white); z-index: 1; }
.skip:focus { top: var(--s-3); }

/* Spread type: masthead and chapter titles */
.spread { display: flex; justify-content: space-between; }
.mast__title { position: relative; margin: 0; padding-top: var(--s-4); font-family: var(--font-display); font-weight: 400; font-size: var(--fs-mast); line-height: .9; }
.spread--chapter { max-width: 40rem; font-size: var(--fs-spread); line-height: 1; }

/* Menu-card header: who + phone line, masthead, ruled table of contents */
.mast__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-3); border-bottom: 1px solid var(--c-ink); }
.mast__who { margin: 0; font-style: italic; color: var(--c-muted); }
.mast__toc { margin-top: var(--s-4); padding-block: var(--s-3); border-block: 1px solid var(--c-ink); }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1) var(--s-4); list-style: none; margin: 0; padding: 0; font-size: var(--fs-1); }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
@media (min-width: 48rem) { .nav { column-gap: var(--s-6); } }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: var(--s-2) var(--s-4); border-radius: var(--radius-pill); background: var(--c-red); color: var(--c-white); font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--c-ink); }
.link { font-weight: 600; text-underline-offset: .2em; }
.link:hover { color: var(--c-red); }

/* Opening: photo beside the welcome, like the first page of a menu card */
.opening { display: grid; gap: var(--s-6) var(--gutter); padding-top: var(--s-6); margin-bottom: var(--s-8); }
.lead { margin: 0; }
.lead img { width: 100%; }
figcaption { margin-top: var(--s-2); font-size: var(--fs-n1); font-style: italic; color: var(--c-muted); }
figure { margin: 0; }

/* Intro */
.intro { text-align: center; }
@media (min-width: 64rem) {
  .opening { grid-template-columns: repeat(12, 1fr); align-items: center; }
  .lead { grid-column: 1 / 9; }
  .intro { grid-column: 9 / 13; }
}
.intro__title { margin: 0 0 var(--s-4); font-family: var(--font-display); font-weight: 400; font-size: var(--fs-2); line-height: 1.1; }
.intro__text { font-size: var(--fs-1); line-height: 1.4; }
.intro__sign { font-style: italic; color: var(--c-muted); }

/* Chapters */
.chapter { margin-bottom: var(--s-8); }
.chapter__title { position: relative; margin: 0 0 var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--c-ink); font-weight: 400; font-family: var(--font-display); }

/* Menu card */
.card { max-width: 44rem; margin: 0 auto var(--s-7); padding: var(--s-6) var(--s-4); background: var(--c-card); border-radius: var(--radius); text-align: center; }
.card__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-2); line-height: 1.1; }
@media (min-width: 48rem) { .card__title { font-size: var(--fs-3); } }
.card__note { margin-bottom: var(--s-5); font-style: italic; color: var(--c-muted); }
.card__list { margin: 0; padding: var(--s-3); }
.card__list dt { font-family: var(--font-display); font-size: var(--fs-2); line-height: 1.2; }
.card__list dd { margin: 0 0 var(--s-5); font-style: italic; font-size: var(--fs-1); line-height: 1.3; }
.card__list dd:last-child { margin-bottom: 0; }

/* The year */
.year__title { margin: 0 0 var(--s-4); font-family: var(--font-display); font-weight: 400; font-size: var(--fs-2); line-height: 1.1; }
.year { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: grid; gap: var(--s-4) var(--gutter); }
.year li { padding-top: var(--s-3); border-top: 1px solid var(--c-ink); }
.year strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-2); line-height: 1.15; margin-bottom: var(--s-2); }
@media (min-width: 40rem) { .year { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .year { grid-template-columns: repeat(4, 1fr); } }

.birthday { max-width: 44rem; }
.birthday__title { margin: 0 0 var(--s-2); font-family: var(--font-display); font-weight: 400; font-size: var(--fs-1); }

/* Two-column chapters */
.cols { display: grid; gap: var(--s-6) var(--gutter); align-items: start; }
.cols__photos { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.cols__photos img, .cols__photo img { width: 100%; }
.cols__text p { max-width: 36rem; }
.big { font-size: var(--fs-1); line-height: 1.35; }
.price { font-family: var(--font-display); font-size: var(--fs-2); line-height: 1.2; }
.note { font-size: var(--fs-n1); color: var(--c-muted); }
@media (min-width: 48rem) {
  .cols { grid-template-columns: repeat(12, 1fr); }
  .cols__photos { grid-column: 1 / 7; }
  .cols__text { grid-column: 8 / 13; }
  .cols--flip .cols__text { grid-column: 1 / 7; }
  .cols--flip .cols__photo { grid-column: 8 / 13; }
}

/* Visit */
.visit { display: grid; gap: var(--s-6) var(--gutter); }
.visit__addr { font-style: normal; font-family: var(--font-display); font-size: var(--fs-2); line-height: 1.1; margin-bottom: var(--s-4); }
@media (min-width: 48rem) { .visit__addr { font-size: var(--fs-3); } }
.visit p { max-width: 36rem; }
.visit__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-4); }
.hours { padding: var(--s-5); background: var(--c-card); align-self: start; }
.hours__title { margin: 0 0 var(--s-3); font-family: var(--font-display); font-weight: 400; font-size: var(--fs-2); }
.hours__line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); font-size: var(--fs-1); }
@media (min-width: 48rem) {
  .visit { grid-template-columns: repeat(12, 1fr); }
  .visit > :first-child { grid-column: 1 / 8; }
  .hours { grid-column: 9 / 13; }
}

/* Footer */
.foot { padding-block: var(--s-5) var(--s-6); border-top: 1px solid var(--c-ink); font-size: var(--fs-n1); }
.foot__title { margin: 0 0 var(--s-3); font-family: var(--font-display); font-weight: 400; font-size: var(--fs-1); }
.foot__dl { display: grid; grid-template-columns: 1fr; margin: 0 0 var(--s-4); }
.foot__dl dt { font-weight: 600; }
.foot__dl dd { margin: 0 0 var(--s-2); overflow-wrap: anywhere; }
@media (min-width: 48rem) { .foot__dl { grid-template-columns: auto 1fr; gap: 0 var(--s-5); } .foot__dl dd { margin: 0; } }
