/* ---------------------------------------------------------------
   Persona Vitae — brand tokens, from the supplied brand sheet.
   Two corrections applied for legibility, noted inline.
   --------------------------------------------------------------- */
:root {
  color-scheme: light;

  --ink:   #1C1810;   /* body text, dark ground */
  --vine:  #3A421E;   /* lede + links                 9.4:1 on paper */
  --earth: #625948;   /* secondary text               6.1:1 on paper */
  --grape: #4A2F35;   /* accent                      10.6:1 on paper */
  --gold:  #D3B678;   /* hairlines + text on ink ONLY (1.7:1 on paper) */
  --leaf:  #8F892F;   /* reserved: large display only (3.2:1 on paper) */
  --paper: #F5F0E6;   /* ground */
  --pulp:  #E8DFD0;   /* alternate ground */

  --measure: 34rem;   /* ~65 characters */
  --wide:    64rem;
  --gutter:  1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, li, figure, figcaption, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* --- shared containers ---------------------------------------- */
.measure { width: min(100% - (2 * var(--gutter)), var(--measure)); margin-inline: auto; }
.wide    { width: min(100% - (2 * var(--gutter)), var(--wide));    margin-inline: auto; }

.band { padding-block: clamp(4rem, 9vw, 7rem); }
.band--pulp { background: var(--pulp); }
.band--ink  { background: var(--ink); color: var(--paper); }

/* --- type ------------------------------------------------------ */
.display {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  text-wrap: balance;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--earth);
}
.band--ink .eyebrow { color: var(--gold); }

h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.25;
}

.lede { font-size: 1.15rem; color: var(--vine); }
.band--ink .lede { color: var(--paper); }

.prose { display: flex; flex-direction: column; gap: 1.1rem; }
.prose a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.prose a:hover { color: inherit; }
a:link, a:visited { color: inherit; }

.rule { width: 3rem; height: 1px; border: 0; background: var(--gold); }

.caption {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--earth);
}

/* --- skip link -------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 50;
}
.skip:focus { left: 0; }

/* --- site notice (Šipon 55 last update) ----------------------- */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--paper);
}
.site-notice {
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.45;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.site-notice__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  padding-block: 0.7rem;
  text-align: center;
}
.site-notice p {
  margin: 0;
  max-width: 42rem;
}
.site-notice__label {
  display: inline;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 72%, var(--gold));
  margin-right: 0.55rem;
}
.site-notice a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.site-notice a:hover {
  color: var(--gold);
}

/* --- header ----------------------------------------------------- */
.site-header {
  position: relative;
  top: auto;
  z-index: auto;
  background: var(--paper);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  position: relative;
}
.mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  line-height: 0;
}
.mark img {
  display: block;
  height: 1.35rem;
  width: auto;
}
.site-header .mark img {
  height: 1.4rem;
  width: auto;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
}
.nav-toggle__bar {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.is-nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-header.is-nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.site-header.is-nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0 1.35rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;              /* AA tap target */
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--earth);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--earth);
  text-decoration: none;
  flex-shrink: 0;
}
.social:hover { color: var(--ink); }
.social svg { display: block; }
.site-nav .social {
  width: auto;
  min-width: 44px;
  padding-inline: 0.15rem;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 767px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    min-height: 3.75rem;
  }
  .site-header .mark {
    grid-row: 1;
    grid-column: 2;
    justify-self: center;
    text-align: center;
  }
  .nav-toggle {
    display: inline-flex;
    grid-row: 1;
    grid-column: 3;
    justify-self: end;
  }
  .site-nav {
    display: none;
    grid-row: 2;
    grid-column: 1 / -1;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.35rem 0 1rem;
    border-top: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  }
  .site-header.is-nav-open .site-nav {
    display: flex;
  }
  .site-nav a {
    width: 100%;
    justify-content: center;
    letter-spacing: 0.12em;
  }
}

/* --- masthead --------------------------------------------------- */
.masthead {
  padding-block: clamp(3.5rem, 11vw, 7.5rem) clamp(3rem, 8vw, 5rem);
  text-align: center;
}
/* Wider than the reading measure so the wordmark holds one line on
   desktop and wraps to two only on small screens, by design. */
.masthead .measure { width: min(100% - (2 * var(--gutter)), 52rem); }
.masthead .stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.wordmark {
  margin: 0;
  line-height: 0;
}
.wordmark img {
  display: block;
  width: min(100%, 30rem);
  height: auto;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .wordmark img {
    width: min(100%, 38rem); /* larger on desktop; assets sized for Retina at this max */
  }
}
.slogan {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  color: var(--grape);
}
.one-liner { max-width: 26rem; color: var(--earth); }

/* --- full-bleed photograph -------------------------------------- */
.plate { display: flex; flex-direction: column; gap: 0.7rem; }
.plate img { width: 100%; }
.plate .caption { width: min(100% - (2 * var(--gutter)), var(--wide)); margin-inline: auto; }

/* --- first bottle: photo + copy --------------------------------- */
.pair { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) {
  .pair { grid-template-columns: 22rem 1fr; gap: 4rem; }
}
.pair figure { display: flex; flex-direction: column; gap: 0.7rem; }
.pair img { width: 100%; }
.pair .copy { display: flex; flex-direction: column; gap: 1.1rem; max-width: var(--measure); }

.pair .copy .cta-photo {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.35rem;
}
.pair .copy .cta-photo img {
  width: 100%;
}


.aside {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--earth);
  border-left: 1px solid var(--gold);
  padding-left: 1.1rem;
}

/* --- in practice ------------------------------------------------ */
.practice { display: flex; flex-direction: column; gap: 1.5rem; }
.practice li { display: flex; flex-direction: column; gap: 0.15rem; }
.practice .lead {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--ink);
}
.practice .gloss { color: var(--earth); }

/* --- who it's for ----------------------------------------------- */
.quote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 4.4vw, 2.2rem);
  line-height: 1.22;
  text-wrap: balance;
  color: var(--paper);
}

/* --- placeholder (content Sašo still has to supply) ------------- */
.todo {
  border: 1px dashed color-mix(in srgb, var(--earth) 55%, transparent);
  background: color-mix(in srgb, var(--pulp) 70%, var(--paper));
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.todo .tag {
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grape);
  border: 1px solid color-mix(in srgb, var(--grape) 35%, transparent);
  padding: 0.2rem 0.5rem;
}
.todo p { color: var(--earth); }
.todo .field { color: var(--ink); }

/* --- footer ----------------------------------------------------- */

.actions { margin-top: 1.75rem; }
.button,
.more,
.prose a.button,
.prose a.more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  box-sizing: border-box;
}
.button:hover,
.more:hover,
.prose a.button:hover,
.prose a.more:hover {
  color: var(--ink);
  background: transparent;
  text-decoration: none;
}
.button:link,
.button:visited,
.more:link,
.more:visited,
.prose a.button:link,
.prose a.button:visited,
.prose a.more:link,
.prose a.more:visited {
  color: var(--paper);
  text-decoration: none;
}
.button:hover:link,
.button:hover:visited,
.more:hover:link,
.more:hover:visited,
.prose a.button:hover:link,
.prose a.button:hover:visited,
.prose a.more:hover:link,
.prose a.more:hover:visited {
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  padding-block: 3rem;
  text-align: left;
}
.site-footer .wide {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}
.site-footer__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}
.site-footer .social {
  margin-top: -0.15rem;
  color: var(--earth);
}
.site-footer a.social {
  text-decoration: none;
}
.site-footer a.social:hover {
  color: var(--ink);
  text-decoration: none;
}
.site-footer .mark {
  align-self: flex-start;
  margin-left: 0;
}
.site-footer .mark img {
  height: 1.125rem; /* ~18px; matches 1x/2x/3x footer assets */
  width: auto;
}
.site-footer p { font-size: 0.9375rem; color: var(--earth); }
.site-footer .fine { margin-top: 1rem; font-size: 0.8125rem; }
.site-footer a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer a:hover { color: inherit; }

/* --- focus + motion --------------------------------------------- */
a:focus-visible {
  outline: 2px solid var(--vine);
  outline-offset: 3px;
}
.band--ink a:focus-visible { outline-color: var(--gold); }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------
   Šipon 55 — page-specific
   --------------------------------------------------------------- */

.site-nav a[aria-current="page"] { color: var(--ink); }

/* Subpage masthead: same family as the home masthead, one step down,
   so the wordmark stays the largest type on the site. */
.page-head { padding-block: clamp(3rem, 8vw, 5rem) clamp(2.25rem, 5vw, 3.25rem); }
.page-head--contact {
  padding-block: clamp(3rem, 8vw, 5rem) clamp(3.5rem, 8vw, 5.5rem);
}
.page-head--contact .stack {
  gap: 1rem;
}
.page-head--contact .contact-form {
  margin-top: 0.75rem;
  width: 100%;
}
.page-head--contact .mailto-line {
  margin-top: 0.25rem;
}
.form-status[hidden] {
  display: none !important;
}
.page-head .stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.standfirst { font-size: 1.15rem; color: var(--vine); max-width: 30rem; }

/* Full-width photo gallery: 3-up on desktop, swipe slider + arrows on mobile. */
.photo-gallery {
  position: relative;
}
.photo-gallery__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.photo-gallery__track > li {
  margin: 0;
  padding: 0;
  min-width: 0;
}
.photo-gallery figure {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
}
.photo-gallery img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.photo-gallery__nav {
  display: none;
}
@media (max-width: 779px) {
  .photo-gallery__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-inline: 0.15rem;
  }
  .photo-gallery__track::-webkit-scrollbar { display: none; }
  .photo-gallery__track > li {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }
  .photo-gallery__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: calc(50% - 1.75rem);
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
    border-radius: 2px;
    background: color-mix(in srgb, var(--ink) 78%, transparent);
    color: var(--paper);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
  }
  .photo-gallery__nav--prev { left: 0.35rem; }
  .photo-gallery__nav--next { right: 0.35rem; }
  .photo-gallery__nav:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }
}
@media (min-width: 780px) {
  .photo-gallery__track {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

/* Keep legacy .triptych if referenced elsewhere */
.triptych { display: grid; gap: 1.5rem; }
@media (min-width: 780px) {
  .triptych { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}
.triptych figure { display: flex; flex-direction: column; gap: 0.6rem; }
.triptych img { width: 100%; }

/* Spec list — the numbers, set as data rather than prose. */
.spec { display: flex; flex-direction: column; }
.spec > div {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding-block: 0.85rem;
  border-top: 1px solid color-mix(in srgb, var(--earth) 22%, transparent);
}
.spec > div:last-child { border-bottom: 1px solid color-mix(in srgb, var(--earth) 22%, transparent); }
@media (min-width: 620px) {
  .spec > div { grid-template-columns: 11rem 1fr; align-items: baseline; }
}
.spec dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--earth);
}
.spec dd { margin: 0; font-variant-numeric: tabular-nums; }
.spec .unit { color: var(--earth); }


/* Round portrait under the closing quote (Šipon 55). */
.portrait {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0.25rem 0 0.35rem;
}
.portrait img {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
}
.band--ink .portrait img {
  border-color: color-mix(in srgb, var(--gold) 65%, transparent);
}
.portrait .attrib {
  margin: 0;
  width: 7.5rem;
  text-align: center;
}

/* Cellar status log under the portrait. */
.cellar-log {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.cellar-log > li {
  margin: 0;
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  padding-top: 1rem;
  scroll-margin-top: 5.5rem;
}
.cellar-log time {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.cellar-log p {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  color: var(--paper);
}
.cellar-log .when {
  display: inline-block;
  min-width: 3.25rem;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--paper) 70%, var(--gold));
  margin-right: 0.35rem;
}

.cellar-log figure {
  margin: 0.9rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cellar-log figure img {
  width: 100%;
  border-radius: 2px;
}
.cellar-log .caption {
  color: color-mix(in srgb, var(--paper) 65%, var(--gold));
  font-size: 0.875rem;
}

/* Compact thumbnail strip under a cellar-log day (28 Sep gallery). */
.cellar-gallery {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
@media (max-width: 420px) {
  .cellar-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cellar-gallery > li {
  margin: 0;
  padding: 0;
  border: 0;
}
.cellar-log .cellar-gallery figure {
  margin: 0;
  gap: 0.3rem;
}
.cellar-log .cellar-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
}
.cellar-log .cellar-gallery .caption {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin: 0;
}

.cellar-now {
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

/* Attribution under the closing quote. */
.attrib {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.backlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--earth);
  text-decoration: none;
}
.backlink:hover { color: var(--ink); }

/* .more shares the .button styles above (uniform CTAs). */

/* ---------------------------------------------------------------
   Contact form
   --------------------------------------------------------------- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-top: 0.25rem;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-form label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--earth);
}

.contact-form .req {
  color: var(--grape);
  letter-spacing: 0;
}

.contact-form .optional {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
  color: color-mix(in srgb, var(--earth) 75%, var(--paper));
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--earth) 35%, transparent);
  border-radius: 0;
  padding: 0.7rem 0.85rem;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 10rem;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: color-mix(in srgb, var(--earth) 55%, transparent);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--vine);
  outline-offset: 2px;
  border-color: var(--vine);
}

.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  margin: 0.5rem 0 0;
}

button.button {
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

button.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mailto-line {
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--earth);
}

.mailto-line a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.form-status {
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  background: color-mix(in srgb, var(--pulp) 55%, var(--paper));
}

.form-status--ok {
  border-color: color-mix(in srgb, var(--vine) 40%, transparent);
}

.form-status--err {
  border-color: color-mix(in srgb, var(--grape) 45%, transparent);
  background: color-mix(in srgb, var(--grape) 6%, var(--paper));
}

.form-status p { margin: 0; }
.form-status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}


/* Gallery open buttons + full-size lightbox */
.cellar-gallery__open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 2px;
  line-height: 0;
}
.cellar-gallery__open:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.cellar-log .cellar-gallery__open img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
}
.cellar-log > li > figure > .cellar-gallery__open img {
  aspect-ratio: auto;
  object-fit: contain;
}

html.lightbox-open {
  overflow: hidden;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  box-sizing: border-box;
}
.lightbox[hidden] {
  display: none !important;
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 2.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 12px 40px color-mix(in srgb, #000 45%, transparent);
}
.lightbox__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: 2px;
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  color: var(--paper);
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  margin: 0;
  padding: 0.35rem 0.65rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 2px;
  background: color-mix(in srgb, var(--ink) 75%, transparent);
  color: var(--paper);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.lightbox__nav--prev { left: 0.5rem; }
.lightbox__nav--next { right: 0.5rem; }
@media (max-width: 540px) {
  .lightbox {
    padding: 0.5rem;
  }
  .lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 1rem);
  }
  .lightbox__nav {
    padding: 0.5rem 0.7rem;
    font-size: 1.5rem;
    background: color-mix(in srgb, var(--ink) 85%, transparent);
  }
}

/* --- cookie banner (minimal, bottom) ------------------------- */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.85rem var(--gutter) calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--ink) 96%, transparent);
  color: var(--paper);
  border-top: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  box-shadow: 0 -8px 24px color-mix(in srgb, var(--ink) 18%, transparent);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-inline: auto;
}
.cookie-banner p {
  margin: 0;
  flex: 1 1 14rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--paper) 88%, var(--gold));
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.cookie-banner__accept {
  appearance: none;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border-radius: 2px;
  cursor: pointer;
}
.cookie-banner__accept:hover {
  filter: brightness(1.05);
}
.cookie-banner__accept:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}
.cookie-banner__essential {
  appearance: none;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--paper) 70%, var(--gold));
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  padding: 0.35rem 0.15rem;
}
.cookie-banner__essential:hover {
  color: var(--paper);
}
.cookie-banner__essential:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
