/* Design 2 – Ein Jahr am Hof. System: design/2.md */
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/marcellus-normal-400.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/mulish-normal-400-700.woff2") format("woff2"); }

:root {
  --c-paper: #fbfaf7;
  --c-ink: #261f18;
  --c-muted: #6b5f52;
  --c-tint: #f2d9be;
  --c-vine: #3f5a2a;
  --c-lime: #8cc63f;
  --c-vine-tint: color-mix(in srgb, var(--c-vine) 12%, var(--c-paper));
  --c-rule: color-mix(in srgb, var(--c-ink) 18%, transparent);

  --ff-display: "Marcellus", "Trajan Pro", Georgia, serif;
  --ff-body: "Mulish", "Segoe UI", Arial, 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: 3.242rem;
  --fs-6: 4.053rem;
  --fs-display: clamp(2.075rem, 1.2rem + 3vw, 4.053rem);
  --fs-chapter: clamp(1.66rem, 1rem + 2vw, 2.594rem);

  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4rem;
  --sp-8: 6rem;
  --sp-9: 9rem;
  --sp-margin: clamp(1.25rem, 3.5vw, 2.5rem);
  --sp-panel: clamp(2rem, 5vw, 4rem);
  --sp-edge: max(var(--sp-margin), calc((100vw - 80rem) / 2));

  --radius: 999px;
  --track-mark: .02em;
  --track-month: .08em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--c-paper); color: var(--c-ink); font: 400 var(--fs-0)/1.65 var(--ff-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--ff-display); font-weight: 400; line-height: 1.15; margin: 0; }
p { margin: 0 0 var(--sp-3); }
a { color: inherit; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--c-vine); outline-offset: 3px; }
.skip { position: absolute; left: var(--sp-3); top: calc(var(--sp-8) * -1); z-index: 10; padding: var(--sp-2) var(--sp-3); background: var(--c-paper); }
.skip:focus { top: var(--sp-3); }
.wrap { width: min(80rem, 100% - 2 * var(--sp-margin)); margin-inline: auto; }
.small { font-size: var(--fs--1); color: var(--c-muted); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); margin-top: var(--sp-4); }
.pill { display: inline-block; padding: var(--sp-3) var(--sp-5); border-radius: var(--radius); background: var(--c-vine); color: var(--c-paper); font-weight: 700; text-decoration: none; }
.pill:hover { background: var(--c-ink); }
.nowrap, .pill--small { white-space: nowrap; }
.pill--small { padding: var(--sp-2) var(--sp-4); font-size: var(--fs--1); }
.link { font-weight: 700; color: var(--c-vine); text-decoration-thickness: 1px; text-underline-offset: .25em; }
.link:hover { color: var(--c-ink); }

/* Top bar */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); padding-block: var(--sp-3); }
.top__name { margin: 0 auto 0 0; line-height: 1.3; font-size: var(--fs--1); color: var(--c-muted); }
.top__nav { display: flex; flex-wrap: wrap; order: 3; flex-basis: 100%; gap: 0 var(--sp-4); font-size: var(--fs--1); font-weight: 700; }
.top__nav a { text-decoration: none; padding-block: var(--sp-2); }
.top__nav a:hover { color: var(--c-vine); text-decoration: underline; }
@media (min-width: 900px) { .top__nav { order: 0; flex-basis: auto; } }

/* Hero: full-width wordmark, then split */
.hero__mark { display: block; color: var(--c-ink); padding-block: var(--sp-5) var(--sp-6); }
.hero__mark .logo { display: block; width: 100%; height: auto; }
.hero__mark .ring { stroke: var(--c-lime); }
.hero__title { font-size: var(--fs-display); margin-bottom: var(--sp-4); text-wrap: balance; }

/* Split blocks */
.split { display: grid; }
.panel { padding: var(--sp-panel) var(--sp-margin); display: flex; flex-direction: column; justify-content: center; }
.panel > * { max-width: 34rem; }
.panel--tint { background: var(--c-tint); }
.panel--vine { background: var(--c-vine-tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; min-height: 34rem; }
  .split--flip > .panel { order: 2; }
  .photo img { aspect-ratio: auto; min-height: 100%; }
  .panel { padding-inline: var(--sp-panel); }
  .split > .panel:first-child { padding-left: var(--sp-edge); }
  .split--flip > .panel { padding-left: var(--sp-panel); padding-right: var(--sp-edge); }
}

/* Month ruler */
.ruler { padding-block: var(--sp-6) var(--sp-7); }
.ruler__title { font-size: var(--fs-1); margin-bottom: var(--sp-4); }
.ruler__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sp-1); row-gap: var(--sp-2); }
.m { padding-top: var(--sp-2); border-top: 2px solid var(--c-rule); font-size: var(--fs--1); color: var(--c-muted); text-align: center; letter-spacing: var(--track-month); overflow: hidden; }
.m.is-on { border-top: 6px solid var(--c-lime); color: var(--c-ink); font-weight: 700; }
.m__long { display: none; }
.ev { font-weight: 700; font-size: var(--fs--1); color: var(--c-vine); text-underline-offset: .25em; line-height: 1.3; padding-left: var(--sp-1); border-left: 2px solid var(--c-lime); }
.ev--mai { grid-row: 2; grid-column: 5 / -1; }
.ev--jun { grid-row: 3; grid-column: 6 / -1; }
.ev--aug { grid-row: 4; grid-column: 8 / -1; }
.ev--all { grid-row: 5; grid-column: 1 / -1; margin-top: var(--sp-3); color: var(--c-muted); border-left: 0; padding-left: 0; }
@media (min-width: 640px) {
  .m__long { display: inline; }
  .m__short { display: none; }
  .ev--mai { grid-column: 5 / 9; }
  .ev--jun { grid-column: 6 / 10; }
  .ev--aug { grid-column: 8 / 12; }
}

/* Featured wine */
.feature { display: grid; gap: var(--sp-6); padding-block: var(--sp-8); border-top: 1px solid var(--c-rule); }
.feature__wine { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.feature__bottle { max-width: 7rem; }
.feature__bottle { width: 100%; }
.eyebrow { font-weight: 700; color: var(--c-vine); margin-bottom: var(--sp-2); }
.feature__title { font-size: var(--fs-chapter); margin-bottom: var(--sp-2); }
.feature__medal { font-family: var(--ff-display); font-size: var(--fs-1); color: var(--c-vine); }
.feature__price { font-weight: 700; font-size: var(--fs-1); margin-top: var(--sp-4); }
.feature__people img { width: 100%; }
.feature__people figcaption { margin-top: var(--sp-4); font-family: var(--ff-display); font-size: var(--fs-1); line-height: 1.4; max-width: 34rem; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 6fr 5fr; gap: var(--sp-7); align-items: center; }
  .feature__wine { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: var(--sp-5); align-items: center; }
  .feature__bottle { max-width: 15rem; }
}

/* Chapters */
.chapter + .chapter { margin-top: var(--sp-1); }
.chapter__month { font-family: var(--ff-display); font-size: var(--fs-2); color: var(--c-vine); letter-spacing: var(--track-mark); margin-bottom: var(--sp-2); }
.chapter__title { font-size: var(--fs-chapter); margin-bottom: var(--sp-4); text-wrap: balance; }

/* Guest house collage */
.stay { display: grid; gap: var(--sp-4); padding-block: var(--sp-8); }
.stay img { width: 100%; height: 100%; object-fit: cover; }
.stay__a img { aspect-ratio: 3 / 2; }
.stay__b img { aspect-ratio: 2 / 3; }
.stay__c img { aspect-ratio: 3 / 2; }
@media (min-width: 900px) {
  .stay { grid-template-columns: 5fr 4fr 3fr; grid-template-rows: auto auto; gap: var(--sp-5); align-items: start; }
  .stay__text { grid-column: 1; grid-row: 1 / 3; padding-right: var(--sp-4); }
  .stay__a { grid-column: 2 / 4; grid-row: 1; }
  .stay__b { grid-column: 3; grid-row: 2; }
  .stay__c { grid-column: 2; grid-row: 2; }
  .stay__b img, .stay__c img { aspect-ratio: 3 / 4; }
}

/* Lists */
.list { padding-block: var(--sp-8); border-top: 1px solid var(--c-rule); }
.list__title { font-size: var(--fs-chapter); margin-bottom: var(--sp-6); }
.list__cols { display: grid; gap: var(--sp-6); }
.list h3 { font-size: var(--fs-1); margin-bottom: var(--sp-3); }
.rows { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--sp-4); padding-block: var(--sp-3); border-bottom: 1px solid var(--c-rule); }
.rows li > span:first-child { font-weight: 700; }
.rows__data { grid-column: 1; grid-row: 2; color: var(--c-muted); font-size: var(--fs--1); }
.rows__price { grid-column: 2; grid-row: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.list__ship { margin-top: var(--sp-6); max-width: 60ch; }
@media (min-width: 900px) { .list__cols { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } }

/* Contact */
.contact { display: grid; gap: var(--sp-4); max-width: 40rem; }
.contact h3 { font-size: var(--fs-1); margin-bottom: var(--sp-2); }
@media (min-width: 640px) { .contact { grid-template-columns: 1fr 1fr; } }

/* Footer */
.foot { padding-block: var(--sp-7) var(--sp-6); font-size: var(--fs--1); }
.impressum h2 { font-size: var(--fs-2); margin-bottom: var(--sp-3); }
.impressum dl { display: grid; gap: var(--sp-1) var(--sp-5); margin: 0 0 var(--sp-5); }
.impressum dt { font-weight: 700; }
.impressum dd { margin: 0 0 var(--sp-2); overflow-wrap: anywhere; }
@media (min-width: 760px) { .impressum dl { grid-template-columns: 13rem 1fr; } .impressum dd { margin: 0; } }
.foot__note { color: var(--c-muted); max-width: 70ch; }
