/* LEVDO — "Marani: clay, ink and ledger"
   Palette and type sampled from the winery's own 2025 labels.
   Every value below mirrors design-system/tokens.json. */

/* ---------------------------------------------------------------- tokens */
:root {
  /* Sampled from LEVDO_Saperavi_2025 / LEVDO_Rkatsiteli_2025 label artwork. */
  --parchment:      #E8E3D8;  /* page ground, one step above the label stock */
  --parchment-sunk: #DED9CB;  /* the label stock itself */
  --dust:           #D0C9B8;
  --ink:            #24090F;  /* dark ground */
  --ink-raised:     #2F1219;
  --wine-black:     #381018;  /* label text colour */
  --wine:           #702028;  /* SAPERAVI red — the accent */
  --amber:          #D07020;  /* RKATSITELI amber — that wine only */
  --amber-ink:      #8A4A10;  /* the same amber, darkened enough to set type in */
  --clay:           #B4623A;  /* marani brick — material, not accent */
  --clay-deep:      #8A462A;
  --clay-light:     #C97B4F;  /* clay legible as type on the ink ground */
  --vine:           #6E7248;
  --snow:           #D9DDE0;

  /* Ground-dependent roles, re-declared by .on-ink so one rule set serves both.
     Alpha steps are chosen so every level clears 4.5:1 on its own ground. */
  --bg:        var(--parchment);
  --t-primary: #381018;
  --t-second:  rgba(56, 16, 24, .88);
  --t-third:   rgba(56, 16, 24, .74);
  --t-muted:   rgba(56, 16, 24, .64);
  --accent:    var(--wine);
  --rule-hair:   rgba(56, 16, 24, .18);
  --rule-strong: rgba(56, 16, 24, .34);

  /* Cinzel carries Latin (it is the wordmark face), Prata carries Cyrillic,
     Noto Serif Georgian carries Georgian — the browser falls through per glyph,
     so each language version is set in one coherent face. */
  --font-display: Cinzel, Prata, 'Noto Serif Georgian', Georgia, serif;
  --font-body: 'Fira Sans', 'Noto Sans Georgian', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Noto Sans Georgian', ui-monospace, monospace;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 40px;
  --s5: 64px; --s6: 104px; --s7: 168px;

  --ease: cubic-bezier(.16, .84, .44, 1);
  --reveal: 900ms;
  --micro: 220ms;

  --page: 1440px;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 36em;
}

.on-ink {
  --bg:        var(--ink);
  --t-primary: #E8E3D8;
  --t-second:  rgba(232, 227, 216, .82);
  --t-third:   rgba(232, 227, 216, .60);
  --t-muted:   rgba(232, 227, 216, .52);
  --accent:    var(--clay-light);
  --rule-hair:   rgba(232, 227, 216, .20);
  --rule-strong: rgba(232, 227, 216, .38);
  background: var(--ink);
  color: var(--t-primary);
}

/* Rkatsiteli's own colour, dark enough to set type in on either ground. */
.on-amber { --accent: var(--amber-ink); }
.on-ink .on-amber, .on-ink.on-amber { --accent: #D9902F; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--t-primary);
  font: 300 16.5px/1.66 var(--font-body);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Lime-plaster grain. Fixed so it reads as the paper, not as content. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: var(--wine); color: var(--parchment); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--wine); color: #fff; padding: 12px 18px; text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

/* ------------------------------------------------------------ typography */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; }

/* Leading is set from the font's own line box so multi-line headings breathe. */
.h1 { font-size: clamp(42px, 7vw, 92px);   line-height: 1.12; letter-spacing: .005em; }
.h2 { font-size: clamp(30px, 4vw, 54px);   line-height: 1.16; letter-spacing: .005em; }
.h3 { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.28; }

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
  font-weight: 300;
  color: var(--t-second);
  max-width: 34em;
}

p { margin: 0 0 1.1em; max-width: var(--measure); color: var(--t-second); }
p:last-child { margin-bottom: 0; }

/* Letterspaced caps, the way the label sets its micro-type. */
.label,
.kicker {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.kicker { display: flex; align-items: baseline; gap: 14px; color: var(--t-third); max-width: none; }
.kicker .num { font-family: var(--font-mono); font-weight: 400; color: var(--accent); letter-spacing: .1em; }
.kicker::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule-hair);
  transform: translateY(-4px);
}

/* Georgian is unicameral: uppercasing is meaningless and wide tracking breaks
   the connected shapes apart. */
html[lang="ka"] .label,
html[lang="ka"] .kicker,
html[lang="ka"] .nav a,
html[lang="ka"] .link,
html[lang="ka"] .kind,
html[lang="ka"] .ledger__c,
html[lang="ka"] .spec dt,
html[lang="ka"] .reg dt,
html[lang="ka"] .plate figcaption,
html[lang="ka"] .sheet figcaption,
html[lang="ka"] .medallion__cap,
html[lang="ka"] .foot__base,
html[lang="ka"] .foot .label,
html[lang="ka"] .hero__lines .two,
html[lang="ka"] .hero__place,
html[lang="ka"] .btn,
html[lang="ka"] .facets .num,
html[lang="ka"] .langs button[data-lang="ka"] {
  text-transform: none;
  letter-spacing: .04em;
}

/* Without capitals to carry it, Georgian micro-type needs a point more. */
html[lang="ka"] .label,
html[lang="ka"] .kicker,
html[lang="ka"] .kind,
html[lang="ka"] .ledger__c,
html[lang="ka"] .spec dt,
html[lang="ka"] .reg dt,
html[lang="ka"] .plate figcaption,
html[lang="ka"] .sheet figcaption,
html[lang="ka"] .medallion__cap,
html[lang="ka"] .foot__base,
html[lang="ka"] .hero__lines .two,
html[lang="ka"] .hero__place,
html[lang="ka"] .btn,
html[lang="ka"] .facets .num { font-size: 12.5px; }

.link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--t-primary);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-bottom: 5px;
  box-shadow: inset 0 -1px 0 0 var(--rule-strong);
  transition: box-shadow var(--micro) var(--ease), color var(--micro) var(--ease);
}
.link::before { content: '→'; color: var(--accent); transition: transform var(--micro) var(--ease); }
.link:hover { color: var(--accent); box-shadow: inset 0 -1px 0 0 var(--accent); }
.link:hover::before { transform: translateX(5px); }
.link:active { opacity: .7; }

/* --------------------------------------------------------------- header */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-hair);
  transition: background var(--micro) linear, color var(--micro) linear;
}

.masthead__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.mark { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; min-height: 44px; padding: 7px 0; }
.mark__lion { width: 30px; height: 30px; object-fit: contain; }
.mark__word { height: 17px; width: auto; }
.on-ink .mark__lion,
.on-ink .mark__word,
.on-ink .foot__brand { filter: brightness(0) invert(1) opacity(.9); }

.nav { display: flex; gap: clamp(14px, 2.2vw, 32px); margin-inline: auto; }
.nav a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--t-third);
  padding: 14px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--micro) var(--ease), border-color var(--micro) var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--t-primary); }
.nav a[aria-current="page"] { color: var(--t-primary); border-bottom-color: var(--accent); }

.langs { display: flex; gap: 4px; flex: none; }
.langs button {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--t-third);
  min-height: 44px;
  padding: 6px 14px;
  transition: color var(--micro) var(--ease);
}
.langs button:hover { color: var(--t-primary); }
/* The current language is marked by weight and a rule, not by colour alone. */
.langs button[aria-pressed="true"] {
  color: var(--t-primary);
  box-shadow: inset 0 -1px 0 0 var(--accent);
}
/* No dividers: an active button's underline between two rules reads as a box. */
.langs button[data-lang="ka"] { text-transform: none; letter-spacing: .06em; font-size: 13px; }

.burger {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--t-primary);
  width: 46px;
  height: 46px;
  padding: 0;
  margin-left: auto;
  position: relative;
}
.burger span {
  display: block;
  position: absolute;
  left: 12px;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform var(--micro) var(--ease), opacity var(--micro) var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 30px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------- hero
   The home page opens as a title page: the mark alone, centred, on paper. */
.hero {
  display: grid;
  place-items: center;
  text-align: center;
  /* Tall enough to hold the screen, capped so a big desktop is not empty. */
  min-height: clamp(540px, 74vh, 880px);
  padding-block: clamp(40px, 6vw, 96px) clamp(56px, 8vw, 120px);
}

.hero__text { max-width: 780px; }

.hero__lion { width: clamp(148px, 20vw, 264px); margin: 0 auto var(--s3); }

/* The wordmark is set from the artwork, not from a font: Cinzel draws Đ with a
   bar above the D, where the brand's letter is barred through the stem. */
.hero__word { display: block; width: min(100%, 560px); margin: 0 auto var(--s2); }

.hero__place { color: var(--t-muted); margin: 0 auto var(--s4); max-width: none; }

.hero__lines {
  border-top: 1px solid var(--rule-strong);
  padding-top: var(--s3);
  width: min(100%, 520px);
  margin: 0 auto;
}
.hero__lines .one {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
}
.hero__lines .two {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--t-third);
  margin-top: 14px;
}

/* The hero is above the fold, so its entrance is played on cue by site.js
   after the gate or the splash clears — not by the scroll observer. */
.hero-step { transition: opacity var(--reveal) var(--ease), transform var(--reveal) var(--ease); }
.js .hero-step { opacity: 0; transform: translateY(16px); }
.hero-step.is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------- sections */
.band { padding-block: clamp(64px, 9vw, 160px); }
.band--tight { padding-block: clamp(48px, 6vw, 96px); }
.rule-top { border-top: 1px solid var(--rule-hair); }

.ground-sunk { background: var(--parchment-sunk); }
.ground-dust { background: var(--dust); }

/* Page openers run title and lead as two columns so the measure never leaves
   half the page empty. */
.opener {
  padding-top: clamp(48px, 7vw, 112px);
  padding-bottom: clamp(36px, 4.5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
}
.opener .h1 { max-width: 9em; }
.opener .lead { margin-bottom: 6px; }

.statement {
  font-family: var(--font-display);
  font-size: clamp(27px, 4vw, 56px);
  line-height: 1.2;
  max-width: 16em;
  margin: 0;
  color: var(--t-primary);
}
.statement em { font-style: normal; color: var(--accent); }

.stack > * + * { margin-top: var(--s3); }
.stack--loose > * + * { margin-top: var(--s4); }

/* ---------------------------------------------------------------- ledger */
.ledger {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: clamp(20px, 4vw, 60px);
  margin-top: var(--s4);
}
.ledger__n {
  display: block;
  font-family: var(--font-mono);
  font-weight: 200;
  font-variant-numeric: tabular-nums;
  font-size: clamp(38px, 5.4vw, 82px);
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.ledger__c {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--t-third);
  max-width: 11em;
}
.ledger__arrow {
  font-family: var(--font-mono);
  font-weight: 200;
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1;
  color: var(--accent);
  align-self: flex-start;
  transform: translateY(.3em);
}

/* ---------------------------------------------------------------- qvevri */
/* The only round form on this site: a medallion cut out of a photograph and
   held in a thick ring. The ring colour says what is inside — clay for the
   marani's own vessels, the wine's own colour for a variety. */
.medallion {
  margin: 0 auto;
  width: min(100%, var(--size, 380px));
  aspect-ratio: 1;
  border-radius: 50%;
  border: clamp(9px, 1.1vw, 15px) solid var(--ring, var(--clay-deep));
  overflow: hidden;
  position: relative;
  transition: transform var(--reveal) var(--ease), opacity var(--reveal) var(--ease);
  background: var(--ink);
}
.js .medallion { transform: scale(.88); opacity: 0; }
.medallion.is-open { transform: scale(1); opacity: 1; }
.medallion img { width: 100%; height: 100%; object-fit: cover; }

.medallion--sap  { --ring: var(--wine); }
.medallion--rka  { --ring: var(--amber); }

.medallion--lg { --size: 400px; }
.medallion--md { --size: 300px; }

.medallion-holder { position: relative; display: inline-block; max-width: 100%; }
.medallion-holder .medallion__cap {
  display: block;
  margin-top: 18px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--t-third);
}

/* The two varieties, given equal standing. */
.wines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  text-align: center;
}
.wines h3 { margin-top: var(--s3); }
.kind {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--t-third);
}

/* ------------------------------------------------------------ split rows */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: center;
}
.split--wide { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); }
.split--narrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); }
.split--top { align-items: start; }
.split--flip > :first-child { order: 2; }

.plate { position: relative; margin: 0; }
.plate img { width: 100%; height: auto; }
.plate--tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.plate--wide img { aspect-ratio: 4 / 3; object-fit: cover; }
.plate--pano img { aspect-ratio: 16 / 9; object-fit: cover; }
.plate--hero img { aspect-ratio: 21 / 9; object-fit: cover; width: 100%; }
.plate figcaption {
  margin-top: 12px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--t-muted);
}

/* The label's inset hairline frame, reused as a page device. */
.framed { position: relative; padding: clamp(20px, 3vw, 40px); }
.framed::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--rule-strong); pointer-events: none; }
.framed::after { content: ''; position: absolute; inset: 7px; border: 1px solid var(--rule-hair); pointer-events: none; }

/* ----------------------------------------------------------- wine entries */
.wine-band { padding-block: clamp(64px, 9vw, 152px); }

.wine-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; }
/* Sized so the longest name, Ркацители, still keeps its vintage beside it in the
   narrower (mirrored) column at 1440. */
.wine-head h2 { font-size: clamp(38px, 5.4vw, 78px); line-height: 1.1; }
.wine-head .vintage {
  font-family: var(--font-mono);
  font-weight: 200;
  font-size: clamp(20px, 2.3vw, 32px);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
/* Name and vintage share a line; the style sits beneath, for both wines alike. */
.wine-head .kind { margin-top: 0; flex-basis: 100%; }

.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--rule-hair);
  margin: var(--s4) 0 0;
  column-gap: var(--s3);
}
/* Label, then figure, on a shared baseline whatever the label's line count. */
.spec div {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: var(--s3) var(--s2) var(--s3) 0;
  border-bottom: 1px solid var(--rule-hair);
}
.spec dt {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--t-muted);
  margin-bottom: 10px;
  /* Two lines of label, so a wrapped label never pushes its figure off the
     baseline its neighbours sit on. */
  line-height: 1.4;
  min-height: 3.1em;
}
.spec dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 200;
  font-variant-numeric: tabular-nums;
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.15;
}
.spec dd small { display: block; margin-top: 5px; font-size: .58em; letter-spacing: .06em; color: var(--t-third); }

.label-plate {
  /* A light surface can sit inside a dark band, so it re-declares the light
     text roles rather than inheriting ink-on-ink. */
  background: var(--parchment-sunk);
  padding: clamp(16px, 2.4vw, 32px);
  --t-second: rgba(56, 16, 24, .88);
  --t-third:  rgba(56, 16, 24, .74);
  --t-muted:  rgba(56, 16, 24, .64);
  color: var(--wine-black);
  max-width: 640px;
}
.label-plate img { width: 100%; }

/* ------------------------------------------------------------- filmstrip */
.strip {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: var(--s3);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}
.strip:focus-visible { outline-offset: -2px; }
.strip figure { margin: 0; flex: none; scroll-snap-align: start; position: relative; line-height: 0; }
.strip img { height: clamp(200px, 25vw, 340px); width: auto; object-fit: cover; }
/* ----------------------------------------------------- contact-sheet grid */
.sheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1px;
  background: var(--rule-hair);
  border: 1px solid var(--rule-hair);
}
.sheet figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
/* One ratio for every frame, so the captions line up across a row. */
.sheet img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sheet figcaption {
  margin-top: auto;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t-muted);
  padding: 10px 11px 13px;
}

/* ------------------------------------------------------------- documents */
.reg { border-top: 1px solid var(--rule-strong); max-width: 940px; }
.reg div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule-hair); }
.reg dt {
  flex: 0 0 clamp(150px, 26%, 260px);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--t-muted);
  padding-top: 3px;
}
.reg dd { margin: 0; font-size: 17px; color: var(--t-primary); }
.reg dd.mono { font-family: var(--font-mono); font-weight: 300; font-variant-numeric: tabular-nums; }

/* Placeholder for data the winery still has to supply. */
/* Links inside the company table are underlined the way the footer does it. */
/* Padded out to a 44px target, then pulled back by the same amount so the
   table keeps its row rhythm. */
.reg dd a {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 0 var(--rule-strong);
}
.reg dd a:hover { color: var(--accent); box-shadow: inset 0 -1px 0 0 var(--accent); }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--rule-hair); padding-block: var(--s5) var(--s4); }
.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s4);
  align-items: start;
}
.foot__brand { display: block; width: 190px; max-width: 60%; }
.foot__tag { font-family: var(--font-display); font-size: 19px; color: var(--t-second); margin-top: 16px; }
.foot address { font-style: normal; color: var(--t-second); white-space: pre-line; }
.foot .label { display: block; color: var(--t-muted); margin-bottom: 14px; }
.foot a {
  display: inline-block;
  padding: 11px 0;
  color: var(--t-second);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 0 var(--rule-hair);
}
.foot a:hover { color: var(--accent); box-shadow: inset 0 -1px 0 0 var(--accent); }
.foot__links { display: grid; gap: 6px; justify-items: start; }
.foot__base {
  margin-top: var(--s5);
  padding-top: var(--s2);
  border-top: 1px solid var(--rule-hair);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--t-muted);
}
.foot__base .age { margin-left: auto; border: 1px solid var(--rule-strong); padding: 3px 9px; color: var(--t-third); letter-spacing: .1em; }

/* ------------------------------------------------------------- reveal fx */
.rise { transition: opacity var(--reveal) var(--ease), transform var(--reveal) var(--ease); }
.js .rise { opacity: 0; transform: translateY(18px); }
.rise.is-in { opacity: 1; transform: none; }
/* Reveals are an enhancement: without JS every section is simply visible. */

/* ------------------------------------------------------------ responsive */
@media (max-width: 1040px) {
  .split, .split--wide, .split--narrow { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .opener { grid-template-columns: 1fr; align-items: start; }
  .opener .h1 { max-width: none; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  /* One row on phones: mark, languages, burger. */
  .masthead__inner { flex-wrap: wrap; padding-block: 6px; gap: var(--s1); }
  .masthead { background: color-mix(in srgb, var(--bg) 97%, transparent); }
  .langs { order: 1; margin-left: auto; }
  .burger { display: block; order: 2; margin-left: 0; }
  .nav {
    order: 3;
    width: 100%;
    margin: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--rule-hair);
    padding-top: 4px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 0; font-size: 12px; }
  .wines { grid-template-columns: 1fr; }
  .ledger { flex-wrap: wrap; gap: var(--s3) var(--s4); }
  .ledger__arrow { display: none; }
  .ledger > .ledger__cell { flex: 1 1 40%; }
  .ledger__c { max-width: 9em; }
  /* A 21:9 sliver throws away the mountains it exists to show. */
  .plate--hero img { aspect-ratio: 3 / 2; }
  .foot__grid { grid-template-columns: 1fr; gap: var(--s3); }
  .foot__base .age { margin-left: 0; }
  .reg div { flex-direction: column; gap: 4px; }
  .reg dt { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .js .rise,
  .medallion, .js .medallion,
  .hero-step, .js .hero-step { transition: none; opacity: 1; transform: none; }
  .splash__lion, .splash__word, .splash__rule { animation: none; }
  .js .qvevri-draw .ln { stroke-dashoffset: 0; }
  .js .qvevri-draw .fill { transform: none; }
}


/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 15px 28px;
  font: 400 11.5px/1 var(--font-body);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--t-second);
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  cursor: pointer;
  transition: color var(--micro) var(--ease),
              border-color var(--micro) var(--ease),
              background var(--micro) var(--ease);
}
.btn:hover { color: var(--t-primary); border-color: var(--accent); }
.btn:active { opacity: .8; }
.btn--solid {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--parchment);
}
.btn--solid:hover { background: var(--wine-black); border-color: var(--wine-black); color: var(--parchment); }

/* -------------------------------------------------------------- age gate */
/* Shown by site.js only, so a visitor without JavaScript is never locked out
   behind an overlay that nothing can dismiss. */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  text-align: center;
  background: var(--parchment);
  transition: opacity 600ms var(--ease);
}
.gate[hidden] { display: none; }
.gate.is-going { opacity: 0; pointer-events: none; }

.gate__panel { max-width: 620px; }
.gate__panel:focus { outline: none; }
.gate .langs { justify-content: center; margin-bottom: var(--s4); }
.gate__lion { width: clamp(104px, 15vw, 168px); margin: 0 auto var(--s3); }
.gate__word { width: min(100%, 320px); margin: 0 auto var(--s4); }
.gate__q {
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: clamp(23px, 3.2vw, 38px);
  line-height: 1.24;
  color: var(--t-primary);
  max-width: none;
  margin: 0 0 var(--s4);
}
.gate__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.gate__fine {
  margin: var(--s4) auto 0;
  max-width: 44em;
  font-size: 13px;
  line-height: 1.65;
  color: var(--t-muted);
}
.gate__deny { display: none; max-width: 30em; margin: 0 auto; }
.gate__deny:focus { outline: none; }
.gate__deny .gate__q { margin-bottom: 0; }
.gate.is-denied .gate__ask { display: none; }
.gate.is-denied .gate__deny { display: block; }

/* On "yes" the question leaves and the mark grows into the splash, so the
   entrance is one continuous move rather than two waits in a row. */
.gate.is-going .gate__lion { transform: scale(1.08); transition: transform 700ms var(--ease); }

body.is-locked { overflow: hidden; }

/* ---------------------------------------------------------------- splash */
.splash {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--parchment);
  transition: opacity 750ms var(--ease), visibility 750ms;
}
.splash[hidden] { display: none; }
.splash.is-out { opacity: 0; visibility: hidden; }

.splash__lion { width: clamp(120px, 17vw, 200px); animation: markIn 1000ms var(--ease) both; }
.splash__word { width: min(70vw, 340px); margin-top: var(--s3); animation: wipeIn 1100ms var(--ease) 260ms both; }
.splash__rule {
  width: min(56vw, 300px);
  height: 1px;
  margin-top: var(--s4);
  background: var(--rule-strong);
  animation: ruleIn 900ms var(--ease) 700ms both;
}

@keyframes markIn { from { opacity: 0; transform: scale(.9) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes wipeIn { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes ruleIn { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------- the drawn qvevri */
/* Not a photograph: the vessel as the label would draw it — one clay line,
   the ground it is buried in, and the wine rising inside. */
.qvevri-draw { display: block; width: min(100%, 320px); margin: 0 auto; overflow: visible; }
.qvevri-draw .ln {
  fill: none;
  stroke: var(--clay-deep);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qvevri-draw .ln--hair   { stroke-width: 2; opacity: .45; }
.qvevri-draw .ln--ground { stroke-width: 2.4; opacity: .6; }
.qvevri-draw .fill { fill: var(--wine); opacity: .88; }
/* On ink the clay line lightens the way clay type does; the wine stays wine. */
.on-ink .qvevri-draw .ln { stroke: var(--clay-light); }
.on-ink .qvevri-draw .fill { opacity: 1; }

/* pathLength="100" on every path lets one dash rule drive all of them. */
.js .qvevri-draw .ln { stroke-dasharray: 100; stroke-dashoffset: 100; }
.qvevri-draw.is-drawn .ln {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1700ms var(--ease);
}
.js .qvevri-draw .fill { transform: translateY(240px); }
.qvevri-draw.is-drawn .fill {
  transform: none;
  transition: transform 1500ms var(--ease) 800ms;
}

/* ------------------------------------------------------ terroir factors */
.facets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px) clamp(32px, 5vw, 88px);
  margin-top: var(--s5);
}
.facets > div { border-top: 1px solid var(--rule-strong); padding-top: var(--s2); }
.facets .num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--accent);
}
.facets h3 { font-size: clamp(21px, 2.3vw, 29px); margin-bottom: 12px; }
.facets p { max-width: none; }

@media (max-width: 760px) {
  .facets { grid-template-columns: 1fr; gap: var(--s4); }
  .wines { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .medallion { border-width: 7px; }
  /* The variety names have to fit their own half of the row. */
  .wines h3 { font-size: clamp(21px, 6.2vw, 30px); }
  /* Stacked under the sentence, the drawing is an illustration, not a poster. */
  .qvevri-draw { width: min(56%, 220px); }
  .gate__row .btn { width: 100%; }
  .hero__word { width: min(84%, 560px); }
  .gate__word { width: min(78%, 320px); }
}

.splash > div { display: grid; place-items: center; }

/* ------------------------------------------------------- not found */
/* The 404 borrows the title page's composition, at half its height. */
.hero--slim { min-height: clamp(420px, 56vh, 620px); }
.hero--slim .h1 { font-size: clamp(34px, 5vw, 64px); margin-top: var(--s2); }
.nf__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px clamp(20px, 3vw, 40px);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--rule-strong);
}
