/* Entwurf 1 – „Vier Generationen“. System: design/1.md */
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/eb-garamond-normal-400-700.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/eb-garamond-italic-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-normal-400-600.woff2") format("woff2");
}

:root {
  --c-paper: #eef3f6;
  --c-white: #ffffff;
  --c-ink: #1c262e;
  --c-sky: #1b6890;
  --c-copper: #8a4720;
  --c-line: #b9c9d4;

  --f-serif: "EB Garamond", Georgia, serif;
  --f-sans: "IBM Plex Sans", system-ui, sans-serif;

  --fs--1: .85rem;
  --fs-0: 1.0625rem;
  --fs-1: 1.328rem;
  --fs-2: 1.66rem;
  --fs-3: 2.075rem;
  --fs-4: 2.594rem;
  --fs-5: clamp(2.075rem, 4.6vw, 3.242rem);
  --fs-6: clamp(2.594rem, 6vw, 4.053rem);
  --track-tight: -.01em;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;

  --gutter: 1.5rem;
  --radius: 0;
  --radius-focus: 2px;
  --index-h: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--index-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font: 400 var(--fs-0)/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-sky); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--c-copper); outline-offset: 3px; border-radius: var(--radius-focus); }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-serif); font-weight: 600; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }

.wrap { width: min(75rem, 100% - var(--gutter) * 2); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-3); top: calc(var(--space-8) * -1); padding: var(--space-2) var(--space-3); background: var(--c-ink); color: var(--c-white); z-index: 10; }
.skip:focus { top: var(--space-3); }

/* Kapitel-Index */
.index {
  position: sticky; top: 0; z-index: 5;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
}
.index__in {
  width: min(75rem, 100% - var(--gutter) * 2); margin-inline: auto;
  min-height: var(--index-h);
  display: flex; align-items: center; gap: var(--space-4);
}
.mark { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--c-ink); text-decoration: none; flex: none; }
.mark__emblem { width: 2rem; height: 2rem; }
.mark__hammer { fill: var(--c-sky); }
.mark__word { font: italic 400 var(--fs-2)/1 var(--f-serif); letter-spacing: var(--track-tight); }
.index__nav { flex: 1; overflow-x: auto; scrollbar-width: none; }
.index__nav ol { display: flex; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.index__nav a {
  display: block; padding-block: var(--space-3);
  font: 500 var(--fs--1)/1 var(--f-sans);
  color: var(--c-ink); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.index__nav a:hover, .index__nav a[aria-current="true"] { border-bottom-color: var(--c-copper); }

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-4);
  background: var(--c-sky); color: var(--c-white);
  font: 600 var(--fs-0)/1 var(--f-sans);
  text-decoration: none;
  border-radius: var(--radius);
}
.btn:hover { background: var(--c-ink); }
.btn--small { padding: var(--space-3) var(--space-3); font-size: var(--fs--1); flex: none; }
.link { font-weight: 500; }

/* Hero */
.hero { padding-block: var(--space-7) var(--space-8); }
.hero__grid { display: grid; gap: var(--space-6) var(--gutter); grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
.hero__text { grid-column: 1 / -1; }
.hero__fig { grid-column: 1 / -1; margin: 0; }
.hero__kicker { font-size: var(--fs--1); font-weight: 500; color: var(--c-copper); margin-bottom: var(--space-4); }
.hero h1 { font-size: var(--fs-6); font-weight: 500; letter-spacing: var(--track-tight); max-width: 16ch; }
.hero__lede { margin-top: var(--space-5); max-width: 52ch; font-size: var(--fs-1); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-5); }
.hero__fig figcaption, .archive figcaption, .plate p { margin-top: var(--space-2); font-size: var(--fs--1); line-height: 1.45; }

.ribbon {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0 var(--gutter); margin: var(--space-7) 0 0; padding: 0; list-style: none;
  border-top: 2px solid var(--c-ink);
}
.ribbon a {
  display: block; padding-block: var(--space-3);
  border-bottom: 1px solid var(--c-line);
  font: 500 var(--fs-1)/1.25 var(--f-serif); color: var(--c-ink); text-decoration: none;
}
.ribbon a:hover { color: var(--c-sky); }
.ribbon__year { display: block; margin-bottom: var(--space-1); font: 500 var(--fs--1)/1 var(--f-sans); color: var(--c-copper); }

/* Kapitel */
.chapter { padding-block: var(--space-7); border-top: 1px solid var(--c-line); }
.opener { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2) var(--gutter); padding-bottom: var(--space-5); margin-bottom: var(--space-5); border-bottom: 1px solid var(--c-line); }
.opener__year, .opener__title { grid-column: 1 / -1; font: 500 var(--fs-5)/1.05 var(--f-serif); letter-spacing: var(--track-tight); }
.opener__year { color: var(--c-copper); font-variant-numeric: lining-nums; }
.opener__title { color: var(--c-sky); max-width: 22ch; }

.chapter__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-5) var(--gutter); }
.archive { margin: 0; max-width: 14rem; }
.chapter__body .archive { grid-column: 1 / -1; }
.archive--wide { max-width: 22rem; }
.archive img { filter: grayscale(1) contrast(1.05); }
.archive--colour img { filter: none; }
.prose { grid-column: 1 / -1; max-width: 64ch; }
.prose p + p { margin-top: var(--space-3); }

.plates__title { margin-top: var(--space-7); margin-bottom: var(--space-4); font-size: var(--fs-2); font-weight: 500; }
.plates { display: grid; gap: var(--space-5) var(--gutter); grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.plate img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--c-line); }
.plate strong { display: block; font: 600 var(--fs-0)/1.3 var(--f-serif); }

/* Heute */
.today { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
.today__lede { font: 400 var(--fs-2)/1.35 var(--f-serif); max-width: 34ch; }
.today__h { font-size: var(--fs-3); font-weight: 500; margin-bottom: var(--space-4); color: var(--c-sky); }
.today__intro { margin-bottom: var(--space-5); }
.services { display: grid; gap: var(--space-5) var(--gutter); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.service { border-top: 2px solid var(--c-ink); padding-top: var(--space-3); }
.service h3 { font-size: var(--fs-1); margin-bottom: var(--space-2); }
.brands { border-block: 1px solid var(--c-line); padding-block: var(--space-4); display: grid; gap: var(--space-2) var(--gutter); }
.brands h3 { font-size: var(--fs-1); font-weight: 400; font-style: italic; }
.brands p { font-size: var(--fs--1); line-height: 1.8; max-width: 90ch; }

.people { display: grid; gap: var(--space-5) var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.person img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: top; }
.person h4 { margin-top: var(--space-3); font-size: var(--fs-1); }
.person p { font-size: var(--fs--1); }
.note { margin-top: var(--space-4); font-size: var(--fs--1); }
.jobs { margin-top: var(--space-4); max-width: 64ch; }

.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6) var(--gutter); background: var(--c-white); padding: var(--space-4); }
.facts { display: grid; align-content: start; grid-template-columns: 1fr; gap: var(--space-1) var(--space-4); margin: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0 0 var(--space-3); overflow-wrap: anywhere; }
@media (min-width: 30rem) {
  .facts { grid-template-columns: minmax(7rem, max-content) 1fr; row-gap: var(--space-3); }
  .facts dd { margin: 0; }
}
.contact__way { display: grid; gap: var(--space-4); align-content: start; }
.contact__way .hero__actions { margin-top: 0; }

/* Impressum */
.foot { background: var(--c-ink); color: var(--c-paper); padding-block: var(--space-7); }
.foot a { color: var(--c-paper); }
.foot h2 { font-size: var(--fs-2); font-weight: 500; margin-bottom: var(--space-4); }
.imp { display: grid; grid-template-columns: 1fr; gap: var(--space-1) var(--space-5); margin: 0; font-size: var(--fs--1); }
.imp dt { font-weight: 600; margin-top: var(--space-2); }
.imp dd { margin: 0; }
.foot__note { margin-top: var(--space-5); font-size: var(--fs--1); max-width: 70ch; }

@media (min-width: 48rem) {
  .hero__text { grid-column: 1 / 8; }
  .hero__fig { grid-column: 8 / -1; }
  .opener__year { grid-column: 1 / 4; }
  .opener__title { grid-column: 4 / -1; }
  .chapter__body .archive { grid-column: 1 / 4; }
  .prose { grid-column: 4 / -1; }
  .chapter__body--text .prose { grid-column: 4 / -1; }
  .contact__grid { padding: var(--space-6); }
  .imp { grid-template-columns: minmax(12rem, max-content) 1fr; }
  .imp dt { margin-top: 0; }
}
@media (min-width: 72rem) {
  .today { padding-left: calc((100% + var(--gutter)) / 4); }
  .contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose { columns: 2; column-gap: var(--gutter); max-width: none; }
  .prose p { break-inside: avoid; }
  .today .prose { columns: 1; max-width: 64ch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
