/* ==========================================================================
   Winnice Vogard — shared design system
   Used by: index.html, catalogue/index.html, shop/index.html
   ========================================================================== */

:root {
  /* Palette — warm, wine-cellar tones */
  --color-parchment: #ffffff;
  --color-parchment-deep: #ffffff;
  --color-cream: #ffffff;
  --color-wine: #a31f2b;
  --color-wine-dark: #7a1420;
  --color-wine-light: #c73b42;
  --color-gold: #bd9047;
  --color-gold-soft: #ddc190;
  --color-ink: #2c2118;
  --color-ink-soft: #5c4d3d;

  /* Top-photo fill colours — the exact pixel sampled from the bottom
     centre of each background photo, so if text content ever pushes a
     section taller than the image, the flat colour below continues the
     same tone with no visible seam. */
  --fill-history: #1b0306;
  --fill-shop: #f6f1dc;
  --fill-cat-white: #f5f0dc;
  --fill-cat-red: #1b0206;
  --fill-cat-rose: #fef0f0;
  --fill-cat-sparkling: #f7f1e1;

  /* Type */
  --font-heading: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', serif;
  --font-body: 'EB Garamond', 'Iowan Old Style', 'Palatino Linotype', serif;

  /* Layout */
  --container-width: 1140px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  --header-height: 3.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-parchment);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-wine-dark);
  margin: 0 0 var(--space-sm);
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.2rem); font-weight: 500; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 3vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.3rem, 1.5vw + 1rem, 1.6rem); }

p {
  margin: 0 0 var(--space-sm);
  max-width: 62ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

/* ---------- Site shell ----------
   Caps the whole page at 1800px so full-bleed section photos don't
   stretch or crop oddly on ultra-wide monitors. Purely a width cap —
   background colour matches the page so there's no visible frame. */
.site-shell {
  max-width: 1800px;
  margin: 0 auto;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-md); }
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
  /* The header is position:sticky, so an anchor-scrolled section (nav
     links, "#gallery" etc.) would otherwise land with its top edge
     hidden underneath it. This reserves that much space above the
     scroll target — see --header-height in :root. */
  scroll-margin-top: var(--header-height);
}

.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-md);
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head--center p {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ----------
   No fills, no frames — just bold text with a soft highlight that only
   appears on hover (mouse/trackpad devices). Touch devices get a
   permanent underline instead, since there's no hover to signal
   "clickable" with. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.5em 0.8em;
  border: none;
  border-radius: 3px;
  color: var(--color-wine-dark);
  background: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0.15em 0.2em;
  z-index: -1;
  border-radius: inherit;
  background: rgba(189, 144, 71, 0.22);
  opacity: 0;
}

.btn-arrow {
  display: inline-block;
}

@media (hover: hover) and (pointer: fine) {
  .btn {
    transition: transform 0.25s ease, color 0.25s ease;
  }

  .btn::before {
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: scale(0.9);
  }

  .btn:hover,
  .btn:focus-visible {
    transform: scale(1.1);
    color: var(--color-wine);
  }

  .btn:hover::before,
  .btn:focus-visible::before {
    opacity: 1;
    transform: scale(1);
  }

  .btn-arrow {
    transition: transform 0.25s ease;
  }

  .btn:hover .btn-arrow {
    transform: translateX(3px);
  }
}

@media (hover: none), (pointer: coarse) {
  .btn {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: min-height 0.35s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* The frosted background lives on a pseudo-element rather than directly on
   .site-header: backdrop-filter on the header itself would make it a
   containing block for its position:fixed descendants (the mobile .main-nav
   overlay), sizing that overlay against the header's own short box instead
   of the viewport. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-gold-soft);
  box-shadow: 0 4px 18px rgba(44, 33, 24, 0.06);
}

.site-header .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand-logo,
.brand-signet {
  width: 14%;
  min-width: 63px;
  max-width: 112px;
  height: auto;
}

.brand-signet {
  display: none;
}

/* The logo->signet swap on scroll is a desktop-only refinement (see the
   1000px breakpoint below) — on mobile the logo stays put regardless of
   .is-past-hero. */

.site-footer .brand img {
  height: 4rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  position: absolute;
  top: 50%;
  right: var(--space-sm);
  transform: translateY(-50%);
  background: none;
  border: 1px solid var(--color-gold-soft);
  border-radius: 2px;
  cursor: pointer;
  color: var(--color-wine-dark);
}

.nav-toggle svg { width: 1.2rem; height: 1.2rem; }

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
}

.main-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-parchment);
  padding: var(--space-md) var(--space-sm);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow-y: auto;
}

.main-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-wine-dark);
}

.main-nav a:hover {
  color: var(--color-wine);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-top: var(--space-md);
}

.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-ink-soft);
  font-family: inherit;
  font-size: inherit;
  padding: 0.2em 0.5em;
}

.lang-switch button[aria-current="true"] {
  color: var(--color-wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 1000px) {
  :root {
    --header-height: 17rem;
  }

  .brand-logo {
    width: 42%;
    min-width: 189px;
    max-width: 336px;
  }

  .brand-signet {
    width: 8%;
    min-width: 36px;
    max-width: 64px;
  }

  .site-header.is-past-hero .brand-logo {
    display: none;
  }

  .site-header.is-past-hero .brand-signet {
    display: block;
  }

  /* Once the big logo gives way to the signet, the header itself no longer
     needs to reserve tall-logo space — collapse it to a slim bar so
     scrolled content isn't hidden behind a big slab of white. */
  .site-header.is-past-hero {
    min-height: 9rem;
  }

  .main-nav {
    position: static;
    inset: auto;
    background: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: visible;
    width: 100%;
  }

  .main-nav .container-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
  }

  .main-nav ul {
    flex-direction: row;
    gap: var(--space-md);
    font-size: 1.02rem;
  }

  .lang-switch {
    margin-top: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  background: var(--color-parchment);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}

.hero-art svg {
  width: 100%;
  height: 100%;
}

/* ---------- Hero slider ----------
   Simple crossfading photo slider behind the hero content. Slides are
   plain <img> elements toggled via .is-active by assets/js/hero-slider.js;
   the whole block degrades gracefully to the first slide if JS fails. */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: var(--space-md);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.6rem;
}

.hero-slider-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid rgba(92, 77, 61, 0.55);
  background: rgba(255, 255, 255, 0.3);
  padding: 0;
  cursor: pointer;
}

.hero-slider-dots button.is-active {
  background: rgba(255, 255, 255, 0.9);
}

.hero-intro {
  background: var(--color-parchment);
}

/* The hero content used to sit over the slider itself; it now lives in its
   own plain section below the slider (.hero-intro), so this is just a
   centred text block on a solid background — no halo needed. */
.hero-content {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--color-ink-soft);
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* Light-on-dark variant for sections sitting on a dark photo fill. */
.section--photo-dark {
  color: var(--color-cream);
}

.section--photo-dark h2,
.section--photo-dark .eyebrow {
  color: #f0cda3;
}

.section--photo-dark p {
  color: #efe0cb;
}

.section--photo-dark .info-card {
  background: rgba(255, 251, 240, 0.94);
}

/* ---------- Top-photo sections ----------
   Used by: History, Shop, and the 4 catalogue category sections
   (White/Red/Rosé/Sparkling).
   A single photo pinned to the top of the section, full width, centred,
   not repeated and not mirrored at the bottom. Three pre-rendered raster
   sizes are swapped by viewport width (mobile-first: a 400px image as
   the base, then 1366px, then 1920px) so the photo stays reasonably
   sharp rather than one file being stretched thin on a large screen or
   wastefully large on a small one. All three sizes share the source
   photo's aspect ratio, so a single width-relative ratio works for the
   padding-top calc at any breakpoint: enough space for the wave itself
   plus a comfortable margin, so body text always starts on the calm
   solid-colour part of the photo — never on or above the wave line, at
   any viewport width. background-color is the exact pixel colour
   sampled from the bottom centre of the source photo (see --fill-* in
   :root), so if text content ever pushes a section taller than the
   image, the flat colour below continues the same tone with no visible
   seam. */
.section--top-photo {
  position: relative;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

#history.section--top-photo {
  background-color: var(--fill-history);
  background-image: url('../img/backgrounds/bg-main-darkred-400.jpg');
  padding-top: calc(100% * 0.1355 + var(--space-lg));
}

#shop.section--top-photo {
  background-color: var(--fill-shop);
  background-image: url('../img/backgrounds/bg-main-white-400.jpg');
  padding-top: calc(100% * 0.1291 + var(--space-lg));
}

.section--cat-white {
  background-color: var(--fill-cat-white);
  background-image: url('../img/backgrounds/bg-cat-white-400.jpg');
  padding-top: calc(100% * 0.0642 + var(--space-lg));
}

.section--cat-red {
  background-color: var(--fill-cat-red);
  background-image: url('../img/backgrounds/bg-cat-red-400.jpg');
  padding-top: calc(100% * 0.1013 + var(--space-lg));
}

.section--cat-rose {
  background-color: var(--fill-cat-rose);
  background-image: url('../img/backgrounds/bg-cat-rose-400.jpg');
  padding-top: calc(100% * 0.0442 + var(--space-lg));
}

.section--cat-sparkling {
  background-color: var(--fill-cat-sparkling);
  background-image: url('../img/backgrounds/bg-cat-sparkling-400.jpg');
  padding-top: calc(100% * 0.087 + var(--space-lg));
}

/* "below 720p to 400p" */
@media (min-width: 400px) {
  #history.section--top-photo { background-image: url('../img/backgrounds/bg-main-darkred-1366.jpg'); }
  #shop.section--top-photo { background-image: url('../img/backgrounds/bg-main-white-1366.jpg'); }
  .section--cat-white { background-image: url('../img/backgrounds/bg-cat-white-1366.jpg'); }
  .section--cat-red { background-image: url('../img/backgrounds/bg-cat-red-1366.jpg'); }
  .section--cat-rose { background-image: url('../img/backgrounds/bg-cat-rose-1366.jpg'); }
  .section--cat-sparkling { background-image: url('../img/backgrounds/bg-cat-sparkling-1366.jpg'); }
}

/* "720p and higher" (1280px viewport width) */
@media (min-width: 1280px) {
  #history.section--top-photo { background-image: url('../img/backgrounds/bg-main-darkred-1920.jpg'); }
  #shop.section--top-photo { background-image: url('../img/backgrounds/bg-main-white-1920.jpg'); }
  .section--cat-white { background-image: url('../img/backgrounds/bg-cat-white-1920.jpg'); }
  .section--cat-red { background-image: url('../img/backgrounds/bg-cat-red-1920.jpg'); }
  .section--cat-rose { background-image: url('../img/backgrounds/bg-cat-rose-1920.jpg'); }
  .section--cat-sparkling { background-image: url('../img/backgrounds/bg-cat-sparkling-1920.jpg'); }
}

/* ---------- Gallery teaser (main page) ---------- */
.gallery-teaser-strip {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-md);
}

.gallery-teaser-strip img {
  flex: 0 0 auto;
  width: 9rem;
  height: 6.5rem;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--color-gold-soft);
}

@media (min-width: 768px) {
  .gallery-teaser-strip {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .gallery-teaser-strip img {
    width: 11rem;
    height: 8rem;
  }
}

/* ---------- Gallery popup ----------
   A modal (opened via [data-gallery-open]) holding a thumbnail grid plus a
   tree menu (Beginnings / Present / Events, Events expanding into tagged
   sub-galleries). Content is entirely manifest-driven — see
   assets/js/gallery.js and README.md ("Gallery"). On mobile the tree sits
   above the grid as a horizontal strip; on desktop (1000px+) it becomes a
   sidebar on the right, per column ordering, not a swapped flex-direction,
   to match where it visually needs to land at each size. */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 33, 24, 0.55);
}

.gallery-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 68rem;
  height: 92vh;
  max-height: 92vh;
  background: var(--color-cream);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(44, 33, 24, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-gold-soft);
}

.gallery-modal-header h3 {
  margin: 0;
}

.gallery-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  background: none;
  border: none;
  color: var(--color-ink-soft);
  cursor: pointer;
}

.gallery-modal-close svg {
  width: 1.2rem;
  height: 1.2rem;
}

.gallery-modal-close:hover {
  color: var(--color-wine);
}

.gallery-modal-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  min-height: 0;
}

.gallery-tree {
  border-top: 1px solid var(--color-gold-soft);
  padding: var(--space-sm);
  overflow-x: auto;
}

.gallery-tree-list,
.gallery-tree-sublist {
  display: flex;
  gap: var(--space-sm);
}

.gallery-tree-sublist {
  gap: var(--space-xs);
}

.gallery-tree-list > li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.gallery-tree-leaf,
.gallery-tree-branch {
  display: flex;
  align-items: center;
  gap: 0.35em;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-ink-soft);
  cursor: pointer;
  padding: 0.3em 0.5em;
  white-space: nowrap;
}

.gallery-tree-leaf.is-active,
.gallery-tree-leaf:hover,
.gallery-tree-branch:hover {
  color: var(--color-wine);
}

.gallery-tree-sublist .gallery-tree-leaf {
  font-size: 0.85rem;
}

.gallery-tree-branch::after {
  content: '▾';
  font-size: 0.7em;
  transition: transform 0.2s ease;
}

.gallery-tree-branch[aria-expanded="false"]::after {
  transform: rotate(-90deg);
}

.gallery-tree-empty {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-ink-soft);
  opacity: 0.7;
  padding: 0.3em 0.5em;
  white-space: nowrap;
}

.gallery-grid {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: var(--space-xs);
  align-content: start;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-ink-soft);
  margin: var(--space-md) 0;
}

.gallery-thumb {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-thumb img {
    transition: transform 0.3s ease;
  }

  .gallery-thumb:hover img {
    transform: scale(1.06);
  }
}

.gallery-lightbox {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 14, 9, 0.92);
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox-img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
}

.gallery-lightbox-close svg {
  width: 1.4rem;
  height: 1.4rem;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  font-size: 2.5rem;
  line-height: 1;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox-close {
  top: var(--space-sm);
  right: var(--space-sm);
}

.gallery-lightbox-prev { left: var(--space-sm); }
.gallery-lightbox-next { right: var(--space-sm); }

@media (min-width: 1000px) {
  .gallery-modal-body {
    flex-direction: row;
  }

  .gallery-tree {
    flex: 0 0 14rem;
    border-top: none;
    border-left: 1px solid var(--color-gold-soft);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .gallery-tree-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-tree-list > li {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .gallery-tree-sublist {
    flex-direction: column;
    align-items: flex-start;
    padding-left: var(--space-sm);
    margin-top: 0.3rem;
  }

  /* The sidebar has a fixed width and no horizontal scroll (unlike the
     mobile chip strip), so long labels — event names especially — need
     to wrap onto a second line instead of overflowing and getting
     clipped by .gallery-tree's overflow-x: hidden. */
  .gallery-tree-leaf,
  .gallery-tree-branch {
    width: 100%;
    white-space: normal;
    text-align: left;
  }
}

/* ---------- Contact card ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-md);
}

.location-map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-gold-soft);
  border-radius: 4px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.info-card {
  background: var(--color-cream);
  border: 1px solid var(--color-gold-soft);
  border-radius: 4px;
  padding: var(--space-md);
}

.info-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem var(--space-sm);
  margin: 0;
}

.info-card dt {
  font-family: var(--font-heading);
  color: var(--color-wine);
  font-size: 0.95rem;
  white-space: nowrap;
}

.info-card dd {
  margin: 0;
  color: var(--color-ink-soft);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.social-links a {
  display: inline-flex;
  color: var(--color-ink-soft);
  transition: color 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--color-wine);
}

.social-links svg {
  width: 1.4rem;
  height: 1.4rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--space-md) 0;
  text-align: center;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
  border-top: 1px solid var(--color-gold-soft);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer .brand {
  margin-bottom: var(--space-xs);
}

/* ---------- i18n ---------- */
[data-i18n-en],
[data-i18n-pl] {
  transition: none;
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-decoration: none;
  color: var(--color-ink-soft);
}

.back-link:hover {
  color: var(--color-wine);
}
