/* P20 Tichá pivnica — Luxury quiet, label column. Tokens OKLCH only. */
:root {
  --bone: oklch(0.94 0.01 70);
  --bone-2: oklch(0.9 0.012 70);
  --ink: oklch(0.22 0.02 30);
  --muted: oklch(0.45 0.02 30);
  --oxblood: oklch(0.42 0.15 20);
  --accent: var(--oxblood);
  --accent-fg: oklch(0.94 0.01 70);
  --line: oklch(0.6 0.02 40);
  --bg: var(--bone);
  --fg: var(--ink);

  --serif: "EB Garamond", "Garamond", "Times New Roman", serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;

  --step-0: 1.125rem;
  --step-1: 1.5rem;
  --display-1: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);
  --display-2: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --year: clamp(3rem, 2rem + 4vw, 5rem);

  --col: 720px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section-y: clamp(5rem, 4rem + 5vw, 10rem);
  --hh: 72px;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 16px); }
html.motion { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--serif);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip {
  position: absolute; left: 50%; top: 8px; z-index: 50; transform: translate(-50%, -200%);
  background: var(--ink); color: var(--bone); padding: 12px 20px;
  font: 500 0.75rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { transform: translate(-50%, 0); }

/* ---------- type ---------- */
.caps {
  font: 500 0.75rem/1.6 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.display-1 { font: 400 var(--display-1)/1.12 var(--serif); letter-spacing: -0.005em; }
.display-2 { font: 400 var(--display-2)/1.2 var(--serif); }
.rule { display: block; width: 40px; height: 1px; background: var(--line); margin-inline: auto; }
.center { text-align: center; }

.link {
  display: inline-block;
  padding-block: 13px;
  font: 500 0.75rem/1.6 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: underline 1px var(--line);
  text-underline-offset: 6px;
  transition: text-decoration-color 0.4s, color 0.5s;
}
.link:hover { text-decoration-color: currentColor; }

.btn, .btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px; border-radius: 0;
  font: 500 0.8125rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.btn { background: var(--oxblood); color: var(--accent-fg); border: 1px solid var(--oxblood); transition: background-color 0.4s; }
.btn:hover { background: oklch(0.36 0.14 20); }
.btn-line { border: 1px solid currentColor; background: transparent; transition: color 0.5s, background-color 0.4s; }

/* ---------- header (label header) ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: var(--bone);
  padding-inline: var(--gutter);
}
.head-row { height: 32px; display: flex; align-items: flex-end; justify-content: center; }
.wordmark {
  font: 400 1.125rem/1 var(--serif); letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; padding-block: 4px;
}
.menu-btn { display: none; }
.nav { max-width: var(--col); margin: 6px auto 0; border-block: 1px solid var(--line); }
.nav ul { display: flex; justify-content: center; flex-wrap: wrap; }
.nav li { display: flex; align-items: center; }
.nav li + li::before { content: "·" / ""; color: var(--muted); padding-inline: 0.6em; font: 500 0.75rem/1 var(--sans); }
.nav a {
  display: block; padding: 10px 2px 9px;
  font: 500 0.75rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) 50% calc(100% - 8px) / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="true"] { background-size: 100% 1px; }
@media (pointer: coarse) and (min-width: 720px) {
  .nav a { padding-block: 15px 14px; background-position: 50% calc(100% - 12px); }
  .wordmark { padding-block: 12px; }
  .head-row { height: auto; }
}

@media (max-width: 719px) {
  :root { --hh: 56px; }
  .head-row { height: 56px; justify-content: space-between; align-items: center; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
    margin-right: -8px; padding: 0 8px; background: none; border: 0; cursor: pointer;
    font: 500 0.75rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  }
  .nav { display: none; margin: 0 calc(var(--gutter) * -1); border-bottom: 0; padding: 4px var(--gutter) 12px; }
  .site-head.is-open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav li + li::before { content: none; }
  .nav a { padding: 13px 0; min-height: 44px; border-bottom: 1px solid var(--bone-2); background: none; }
  .site-head { border-bottom: 1px solid var(--line); }
}

/* ---------- hero: pour fill ---------- */
.hero {
  position: relative;
  height: max(calc(100svh - var(--hh)), 640px);
  overflow: clip;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  row-gap: clamp(1rem, 3svh, 2rem);
  padding: clamp(1.75rem, 5svh, 3.5rem) var(--gutter) clamp(1.25rem, 3.5svh, 2.25rem);
  text-align: center;
}
.liquid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: var(--oxblood);
  z-index: 0;
  will-change: transform;
}
.liquid svg { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: 8px; fill: var(--oxblood); }
html.motion .liquid { transform: translateY(calc(100% + 10px)); }
.hero > :not(.liquid) { position: relative; z-index: 1; }

.hero-top { display: grid; gap: clamp(0.75rem, 2svh, 1.25rem); justify-items: center; max-width: var(--col); }
.hero-top .caps { color: var(--muted); max-width: var(--col); }
.hero h1 { max-width: 22ch; text-wrap: balance; }
.hero h1 span { display: block; white-space: nowrap; }
.hero-lead { max-width: 54ch; color: var(--ink); }

.hero-slot { container-type: size; width: 100%; min-height: 0; display: flex; justify-content: center; align-items: flex-end; }
.hero-photo {
  height: min(100cqh, 578px, calc(min(438px, 70vw) * 4 / 3));
  aspect-ratio: 3 / 4;
  padding: 8px;
  background: var(--bone);
  border: 1px solid var(--line);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-under { display: grid; justify-items: center; gap: 12px; color: var(--accent-fg); }
.hero-under .caps { margin-bottom: 2px; }
@media (min-width: 900px) {
  .hero-under { width: min(100%, var(--col)); grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 32px; }
  .hero-under .caps { justify-self: end; margin: 0; }
  .hero-under .link { justify-self: start; }
}
.hero-under .link { text-decoration-color: oklch(0.94 0.01 70 / 0.55); padding-block: 13px; }
html.motion .hero-under .link:not(.is-wet) { text-decoration-color: var(--line); }
.hero-under .btn-line:hover { background: oklch(0.94 0.01 70 / 0.1); }
.hero-under :focus-visible { outline-color: var(--accent-fg); }
[data-wet] { transition: color 0.35s ease, border-color 0.35s ease, text-decoration-color 0.35s ease; }
html.motion [data-wet]:not(.is-wet) { color: var(--ink); }

/* ---------- sections ---------- */
.section {
  position: relative;
  padding: var(--section-y) var(--gutter);
  display: grid; justify-items: center; gap: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section + .section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--col), calc(100% - 2 * var(--gutter))); height: 1px; background: var(--line);
}
.sec-head { display: grid; gap: 16px; justify-items: center; text-align: center; max-width: var(--col); }
.sec-head .caps { color: var(--muted); }
.sec-head h2 { max-width: 24ch; text-wrap: balance; }
.sec-lead { max-width: 44ch; color: var(--muted); }

.media { position: relative; background: var(--bone-2); }
.media.is-missing { background: var(--bone-2); outline: 1px solid var(--line); outline-offset: -9px; }
.media img { width: 100%; height: auto; }

/* ---------- dial (signature) ---------- */
.dial-sec { padding-bottom: calc(var(--section-y) * 0.8); }
.dial-wrap {
  --d: 320px;
  display: grid; grid-template-columns: 44px var(--d) 44px; align-items: center; gap: clamp(1rem, 3vw, 3rem);
}
.dial-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent;
  cursor: pointer; border-radius: 0; transition: border-color 0.4s, color 0.4s;
}
.dial-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.dial-btn:hover { border-color: var(--ink); }
.dial-btn:disabled { color: var(--line); cursor: default; border-color: var(--bone-2); }

.dial {
  position: relative; width: var(--d); height: var(--d); border-radius: 50%;
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
.dial.is-drag { cursor: grabbing; }
.dial:focus-visible { outline: none; }
.dial:focus-visible .dial-ring { stroke: var(--ink); stroke-width: 2; }
.dial-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial-ring { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dial-ticks line { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke 0.3s; }
.dial-ticks line.is-sold { stroke: var(--muted); stroke-dasharray: 1 1.2; }
.dial-ticks line.is-on { stroke: var(--oxblood); stroke-width: 2; }
.needle { transform-box: view-box; transform-origin: 50% 50%; }
.needle line { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.needle circle { fill: var(--oxblood); }

.dial-years { position: absolute; inset: 0; pointer-events: none; }
.dial-years li {
  position: absolute; left: 50%; top: 50%;
  font: 500 0.75rem/1 var(--sans); letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--d) * -0.468)) rotate(calc(var(--a) * -1));
  transition: color 0.3s;
}
.dial-years li:nth-child(1) { --a: -140deg; }
.dial-years li:nth-child(2) { --a: -105deg; }
.dial-years li:nth-child(3) { --a: -70deg; }
.dial-years li:nth-child(4) { --a: -35deg; }
.dial-years li:nth-child(5) { --a: 0deg; }
.dial-years li:nth-child(6) { --a: 35deg; }
.dial-years li:nth-child(7) { --a: 70deg; }
.dial-years li:nth-child(8) { --a: 105deg; }
.dial-years li:nth-child(9) { --a: 140deg; }
.dial-years li.is-sold { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.dial-years li.is-on { color: var(--oxblood); }

.dial-now { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.dial-now span {
  grid-area: 1 / 1; font: 400 var(--year)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums;
  color: var(--oxblood); opacity: 0; transition: opacity 0.6s ease;
}
.dial-now span.is-on { opacity: 1; }

.vintage { width: 100%; max-width: 560px; text-align: center; }
.v-card { display: grid; justify-items: center; gap: 14px; transition: opacity 0.15s ease; }
.v-card.is-out { opacity: 0; }
.v-name { font: 400 var(--step-1)/1.2 var(--serif); }
.v-meta { color: var(--muted); }
.spark { width: min(100%, 320px); display: grid; gap: 6px; margin-block: 6px; }
.spark svg { width: 100%; height: 44px; overflow: visible; border-bottom: 1px solid var(--bone-2); }
.spark-line { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark-line.is-draw { transition: stroke-dashoffset 0.9s var(--ease-out); }
.spark figcaption { font-size: 0.6875rem; color: var(--muted); }
.v-note { max-width: 44ch; }
.v-price { display: flex; align-items: baseline; gap: 10px; }
.v-price-num { font: 500 var(--step-1)/1 var(--serif); color: var(--oxblood); font-variant-numeric: lining-nums; }
.v-price-sub { font: 400 0.8125rem/1.4 var(--sans); color: var(--muted); }
.vintage.is-sold .v-price-num { color: var(--ink); font-size: var(--step-0); font-weight: 400; }
.vintage.is-sold .v-price { max-width: 36ch; display: block; }

/* ---------- wines ---------- */
.bottle { width: min(240px, 60vw); aspect-ratio: 2 / 3; padding: 8px; background: var(--bone); border: 1px solid var(--line); }
.bottle img { height: 100%; object-fit: cover; }
.wines { width: 100%; max-width: var(--col); display: grid; gap: clamp(2rem, 1.5rem + 1.5vw, 3rem); text-align: center; }
.wines li { display: grid; justify-items: center; gap: 8px; }
.w-name { font: 400 var(--step-1)/1.2 var(--serif); }
.w-meta { color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.wines .rule { margin-block: 4px; }
.w-price { font: 400 1.25rem/1.2 var(--serif); font-variant-numeric: lining-nums; transition: color 0.4s; }
.wines li.is-picked .w-price { color: var(--oxblood); }
.wines li.is-picked .w-name::after { content: " · vo voliči"; font: 500 0.6875rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); vertical-align: middle; }
.box-line { text-align: center; color: var(--muted); max-width: 40ch; }
.box-line .caps { color: var(--ink); margin-right: 8px; }

/* ---------- vineyard / production ---------- */
.photo-wide { width: min(560px, 100%); aspect-ratio: 3 / 2; padding: 8px; background: var(--bone); border: 1px solid var(--line); }
.photo-wide img { height: 100%; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; color: var(--ink); }
.facts li + li::before { content: "·" / ""; color: var(--muted); padding-inline: 0.8em; }
.prose { width: 100%; max-width: 30em; display: grid; gap: 1.1em; }
.prose-center { text-align: center; }
.address { color: var(--muted); }
.drop p::first-letter {
  float: left; font: 400 4.6em/0.8 var(--serif); margin: 0.07em 0.08em -0.1em 0; color: var(--ink);
}
@supports (initial-letter: 3) {
  .drop p::first-letter { float: none; initial-letter: 3; font-size: inherit; line-height: inherit; margin: 0 0.12em 0 0; }
}

/* ---------- tastings, people ---------- */
.label-rows { width: 100%; max-width: var(--col); display: grid; text-align: center; border-top: 1px solid var(--line); }
.label-rows li { padding-block: 24px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.lr-main { font: 400 clamp(1.125rem, 1rem + 0.6vw, 1.5rem)/1.35 var(--serif); }
.label-rows .caps { color: var(--muted); }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); max-width: var(--col); width: 100%; text-align: center; }
.person { display: grid; gap: 8px; justify-items: center; }
.p-name { font: 600 var(--step-1)/1.2 var(--serif); }
.person .caps { color: var(--muted); }
.person p:last-child { max-width: 28ch; }

/* ---------- FAQ ---------- */
.faq { width: 100%; max-width: 600px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px; padding: 14px 0;
  display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; gap: 12px; text-align: center;
  font: 400 1.1875rem/1.35 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { grid-column: 2; }
.faq summary svg { grid-column: 3; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.5; transition: transform 0.4s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 36px 22px; text-align: center; color: var(--muted); }

/* ---------- form ---------- */
.form { width: 100%; max-width: 560px; display: grid; gap: 24px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { color: var(--muted); padding: 0; }
.field > legend { margin-bottom: 8px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.group { display: grid; gap: 24px; }
.group[hidden], .form [hidden] { display: none !important; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--muted); border-radius: 0;
  background: var(--bone); font: 400 1.0625rem/1.3 var(--serif); appearance: none; -webkit-appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
input::placeholder { color: oklch(0.52 0.02 30); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--oxblood) !important; }
.hint { font: 400 0.8125rem/1.5 var(--sans); color: var(--muted); }
.err { font: 500 0.8125rem/1.5 var(--sans); color: var(--oxblood); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--muted); font: 500 0.75rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
}
.chip-num span { min-width: 64px; font: 400 1.25rem/1 var(--serif); letter-spacing: 0; font-variant-numeric: lining-nums; }
.chip input:checked + span { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.checks { display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 1rem; line-height: 1.5; min-height: 44px; padding-top: 2px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.form .btn { justify-self: center; margin-top: 8px; width: min(100%, 360px); }
.form-ok { text-align: center; font: 400 var(--step-1)/1.35 var(--serif); padding: 24px 0; border-block: 1px solid var(--line); }
.visit { display: grid; gap: 6px; text-align: center; }
.visit .caps { color: var(--muted); margin-bottom: 4px; }
.link-mail { text-transform: none; letter-spacing: 0.02em; font-size: 0.9375rem; }

/* ---------- footer ---------- */
.foot {
  background: var(--ink); color: var(--bone);
  padding: clamp(4rem, 3rem + 4vw, 6rem) var(--gutter) 3rem;
  display: grid; justify-items: center; gap: 10px; text-align: center;
  font: 400 0.9375rem/1.6 var(--sans);
}
.foot .wordmark { margin-bottom: 12px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; margin-block: 8px; }
.foot .link { text-decoration-color: oklch(0.6 0.02 40); }
.foot :focus-visible { outline-color: var(--bone); }
.foot-legal { margin-top: 12px; }
.foot-demo { color: oklch(0.8 0.01 70); font-size: 0.8125rem; }

/* ---------- reveal (only with motion) ---------- */
html.motion .rise { opacity: 0; transform: translateY(12px); }
html.motion .reveal { opacity: 0; transform: translateY(12px); transition: opacity 1.4s var(--ease-out), transform 1.4s var(--ease-out); }
html.motion .reveal.is-in, html.motion .rise.is-in { opacity: 1 !important; transform: none !important; }
html.motion .liquid.is-in { transform: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 899px) {
  .dial-wrap { --d: 240px; width: 100%; grid-template-columns: minmax(0, 1fr) 44px 44px minmax(0, 1fr); gap: 16px 24px; }
  .dial { grid-column: 1 / -1; grid-row: 1; justify-self: center; margin: 6px 0 4px; }
  .dial-prev { grid-column: 2; grid-row: 2; }
  .dial-next { grid-column: 3; grid-row: 2; }
  .dial-years li { font-size: 0.6875rem; letter-spacing: 0.04em; }
}
@media (max-width: 719px) {
  .hero { height: auto; min-height: calc(100svh - var(--hh)); grid-template-rows: auto 1fr auto; }
  .hero-slot { container-type: normal; }
  .hero-photo { height: clamp(240px, calc(100svh - 540px), calc(70vw * 4 / 3)); }
  .liquid { height: 36%; }
  .hero-top .caps { max-width: 30ch; }
  .k-region { display: none; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .row-2 { grid-template-columns: minmax(0, 1fr); }
  .faq details p { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .dial-now span, .v-card, .spark-line.is-draw { transition: none !important; }
}
