@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f7f3ea;
  --paper-deep: #efe8da;
  --ink: #2b2622;
  --muted: #6d655b;
  --line: #e2d9c8;
  --wine: #730523;
  --serif: "Playfair Display", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; }
.brand span { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: .04em; }
.site-nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.site-nav a { text-decoration: none; font-size: .95rem; color: var(--muted); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }

/* Hero */
.hero { position: relative; min-height: clamp(440px, 78vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 16, 12, .72) 0%, rgba(20, 16, 12, .25) 45%, rgba(20, 16, 12, 0) 70%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(36px, 8vh, 72px); }
.hero .eyebrow { font-size: .85rem; letter-spacing: .28em; text-transform: uppercase; opacity: .9; margin: 0 0 6px; }
.hero h1 { font-size: clamp(3rem, 11vw, 6.5rem); font-weight: 600; letter-spacing: .02em; }
.hero .tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 3.4vw, 1.9rem); margin: 4px 0 0; }
.hero .place { margin: 18px 0 0; font-size: .95rem; opacity: .9; }

/* Sections */
section.block { padding: clamp(56px, 9vw, 104px) 0; }
.section-head { margin-bottom: clamp(28px, 5vw, 48px); }
.section-head h2 { font-size: clamp(2rem, 5vw, 2.9rem); }
.section-head p { margin: 6px 0 0; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }

/* Wines */
.wines { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); }
.wine {
  --stripe: var(--wine);
  --tint: var(--paper-deep);
  position: relative;
  display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center;
  padding: 18px 26px 18px 18px;
  background: var(--tint);
  border-radius: 4px;
  overflow: hidden;
}
.wine::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 8px; background: var(--stripe); }
.wine img { width: 84px; height: 84px; border-radius: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.wine h3 { font-size: 1.25rem; font-weight: 600; hyphens: auto; overflow-wrap: break-word; }
.wine .notes { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.wine .price { margin: 6px 0 0; font-weight: 600; color: color-mix(in srgb, var(--stripe) 80%, #000); }
.wine.w-rose { --stripe: #d0254a; --tint: #fbe6e4; }
.wine.w-sauvignon { --stripe: #5b5748; --tint: #efedd6; }
.wine.w-satz { --stripe: #696c03; --tint: #e3edcf; }
.wine.w-chardonnay { --stripe: #223754; --tint: #eeebe4; }
.wine.w-muskateller { --stripe: #faba09; --tint: #fdf3dc; }
.wine.w-welschriesling { --stripe: #5eb14a; --tint: #eef5dc; }
.wine.w-zweigelt { --stripe: #730523; --tint: #f8e6d8; }
.wine.light .price { color: color-mix(in srgb, var(--stripe) 62%, #000); }

/* Gallery */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); grid-auto-flow: dense; }
.gallery a { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--paper-deep); }
.gallery a.wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); }
@media (max-width: 560px) { .gallery a.wide { grid-column: auto; aspect-ratio: 4 / 3; } }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(16, 13, 10, .92); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; padding: 56px 12px 40px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.lightbox figcaption { position: fixed; left: 0; right: 0; bottom: 12px; text-align: center; color: #d8d0c2; font-size: .9rem; }
.lightbox button { position: fixed; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, .22); }
.lightbox .close { top: 12px; right: 12px; }
.lightbox .prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox .next { right: 12px; top: 50%; translate: 0 -50%; }

/* Contact */
.contact { background: var(--ink); color: #f1ebe0; }
.contact .section-head p { color: #bfb5a6; }
.contact-grid { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: center; }
.contact address { font-style: normal; font-size: 1.1rem; }
.contact address strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 4px; }
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(241, 235, 224, .35); }
.contact-list a:hover, .contact-list a:focus-visible { border-bottom-color: currentColor; }
.contact-list .label { display: inline-block; min-width: 5.5em; color: #bfb5a6; font-size: .9rem; }
.contact img { border-radius: 3px; }

/* Reversed in the markup so scrapers get it backwards; rendered right way round. */
.rev { unicode-bidi: bidi-override; direction: rtl; }

/* Footer */
.site-footer { background: #1f1b18; color: #a89f92; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.site-footer img { width: 54px; opacity: .8; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #f1ebe0; }

/* Plain pages (Impressum, 404) */
.page { padding: clamp(48px, 8vw, 96px) 0; min-height: 60vh; }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin-bottom: 28px; }
.page address { font-style: normal; }
.page address strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.page p { max-width: 62ch; }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.contact :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: #f1ebe0; }

@media (max-width: 480px) {
  .brand span { display: none; }
  .wine { grid-template-columns: 72px 1fr; }
  .wine img { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
