/* Novak — "Punctul pe A" (B2C). Warm label paper, graphite ink, and one live colour: the dot of
   the wine you are looking at (--dot, set by the picker). Jost for display (geometric like the
   wordmark), Onest for text. */
:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --card: #fbfaf6;
  --ink: #17171b;
  --ink-2: #3c3a35;
  --muted: #6a665e;
  --line: #ddd7ca;
  --dot: #8a9a2c;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Jost", system-ui, sans-serif;
  --text: "Onest", system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 48px);
  --maxw: 1280px;
  --bar: var(--concept-bar-h, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--dot); color: #fff; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.2vw, 6.6rem); font-weight: 300; letter-spacing: -.035em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.9rem); font-weight: 300; letter-spacing: -.03em; }
h3 { font-size: 1.45rem; font-weight: 500; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--ink-2); max-width: 46ch; }
.eyebrow { font: 500 .8rem/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: .7em; margin: 0 0 1.1rem; }
.eyebrow i { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand svg { height: 24px; width: auto; }
.brand svg circle { fill: var(--dot); }
.top nav { display: flex; gap: 2px; margin-left: auto; }
.top nav a { text-decoration: none; padding: 10px 14px; border-radius: 99px; font-weight: 500; font-size: .95rem; }
.top nav a:hover { background: var(--paper-2); }
.langs { display: flex; gap: 2px; }
.langs button { border: 0; background: none; cursor: pointer; font: 500 .8rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; min-width: 38px; min-height: 38px; border-radius: 99px; color: var(--muted); }
.langs button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (max-width: 860px) { .top nav { display: none; } .langs { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: 0 26px; border-radius: 99px; background: var(--ink); color: var(--paper); border: 0; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-1px); background: #2b2b31; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn .d { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); flex: none; }
.btn svg { width: 18px; height: 18px; }

/* sticky buy (bottom right) */
.buy { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + var(--bar)); z-index: 40; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 10px 8px 8px; border-radius: 99px; background: var(--ink); color: var(--paper); text-decoration: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 14px 34px -14px rgba(23, 23, 27, .6); max-width: calc(100vw - 32px); transition: transform .25s var(--ease); }
.buy:hover { transform: translateY(-2px); }
.buy img { height: 44px; width: auto; border-radius: 0; background: var(--paper); border-radius: 99px; padding: 3px 9px; }
.buy .t { display: grid; line-height: 1.15; min-width: 0; }
.buy .t b { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy .t span { font-size: .78rem; color: #c9c4b8; white-space: nowrap; }
.buy .go { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); color: var(--ink); border-radius: 99px; padding: 10px 16px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.buy .go i { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
@media (max-width: 420px) { .buy .t span { display: none; } .buy img { height: 38px; } }

section { padding: clamp(64px, 9vw, 128px) 0; }

/* hero */
.hero { padding: clamp(16px, 3vw, 40px) 0 clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(16px, 3vw, 48px); align-items: center; }
.hero .stage { position: relative; aspect-ratio: 11 / 10; }
.hero .stage .player { position: absolute; inset: 0; }
.hero h1 em { font-style: normal; position: relative; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .src { font-size: .78rem; color: var(--muted); margin-top: 18px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .stage { aspect-ratio: 78 / 90; order: -1; margin: 0 calc(var(--gut) * -1); }
}

/* picker */
.picker { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.picker .head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: 28px; }
@media (max-width: 860px) { .picker .head { grid-template-columns: 1fr; } }
.picker .board { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) {
  .picker .board { grid-template-columns: 1fr; gap: 0; }
  .picker .board > div:first-child { display: contents; }
  .picker .mark { order: 1; }
  .picker .card { order: 2; position: relative; top: 0; display: grid; grid-template-columns: 42% 1fr; align-items: center; margin-top: 8px; }
  .picker .card .pv { aspect-ratio: 4 / 5.4; }
  .picker .card .info { padding: 16px 16px 16px 0; }
  .picker .card h3 { font-size: 1.5rem; }
  .picker .card p { font-size: .92rem; }
  .picker .kinds { order: 3; }
  .picker .dots { order: 4; }
}
.mark { position: relative; aspect-ratio: 1600 / 560; width: 100%; }
.mark .player { position: absolute; inset: 0; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 18px; }
.kind { border: 0; background: var(--paper-2); border-radius: 99px; min-height: 40px; padding: 0 16px; font-weight: 500; font-size: .92rem; cursor: pointer; }
.kind[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.dots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.dotbtn { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px 8px 10px; border-radius: 16px; border: 1.5px solid transparent; background: var(--paper); cursor: pointer; text-align: left; line-height: 1.2; transition: border-color .2s, background .2s; }
.dotbtn:hover { border-color: var(--line); }
.dotbtn[aria-checked="true"] { border-color: var(--ink); background: #fff; }
.dotbtn i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.dotbtn b { display: block; font-weight: 600; font-size: .93rem; }
.dotbtn span { font-size: .78rem; color: var(--muted); }
.card { position: sticky; top: 92px; background: var(--paper); border-radius: 26px; overflow: hidden; border: 1px solid var(--line); }
.card .pv { position: relative; aspect-ratio: 4 / 4.2; }
.card .pv .player { position: absolute; inset: 0; }
.card .info { padding: 4px 24px 24px; }
.card .line { font: 500 .76rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 2rem; font-weight: 400; margin: 6px 0 4px; }
.card .g { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.price { font: 500 1.6rem/1 var(--display); letter-spacing: -.01em; }
.price small { display: block; font: 400 .72rem/1.3 var(--text); color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.chip { font-size: .78rem; padding: 4px 10px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); }
.chip.local { background: color-mix(in srgb, var(--dot) 18%, #fff); color: var(--ink); }

/* shelf */
.shelf .line-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--ink); padding-top: 16px; margin-top: 48px; }
.shelf .line-head h3 { font-size: 1.6rem; font-weight: 400; }
.shelf .line-head p { margin: 0; color: var(--muted); max-width: 52ch; }
.row-bottles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 8px; overflow-x: auto; padding: 18px 2px 8px; scroll-snap-type: x mandatory; }
.bottle { scroll-snap-align: start; border: 0; background: none; padding: 12px 8px 10px; border-radius: 18px; cursor: pointer; text-align: center; display: grid; justify-items: center; gap: 4px; transition: background .2s; }
.bottle:hover { background: var(--card); }
.bottle .im { height: 240px; display: flex; align-items: flex-end; }
.bottle img { height: 230px; width: auto; transition: transform .35s var(--ease); }
.bottle:hover img { transform: translateY(-6px); }
.bottle b { font-weight: 600; font-size: .95rem; line-height: 1.25; margin-top: 8px; }
.bottle span { font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.bottle span i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.shelf .src { font-size: .8rem; color: var(--muted); margin-top: 18px; }

/* story */
.story { background: var(--ink); color: var(--paper); }
.story .lead { color: #d8d3c8; }
.story .eyebrow { color: #b9b4a8; }
.grapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.grape { border: 1px solid #36363d; border-radius: 22px; padding: 26px; }
.grape svg { width: 104px; height: 104px; margin: -8px 0 14px -8px; }
.grape h3 { font-size: 1.5rem; }
.grape p { color: #cbc6ba; margin: 10px 0 0; font-size: .98rem; }
@media (max-width: 860px) { .grapes { grid-template-columns: 1fr; } }
.gens-line { margin-top: 48px; padding-top: 22px; border-top: 1px solid #36363d; color: #cbc6ba; font-size: 1.05rem; max-width: 70ch; }

/* visit */
.visit .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .visit .wrap { grid-template-columns: 1fr; } }
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.facts svg { width: 22px; height: 22px; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select { width: 100%; min-height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; padding: 0 14px; font-size: 1rem; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field .err { display: none; color: #a3233a; font-size: .82rem; margin-top: 4px; }
.field.invalid .err { display: block; }
.field.invalid input { border-color: #a3233a; }
.ok { grid-column: 1 / -1; background: #fff; border-radius: 16px; padding: 16px; border: 1.5px solid var(--ink); }
.ok[hidden] { display: none; }

/* where to buy */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.where article { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.where h3 { font-size: 1.35rem; }
.where p { color: var(--ink-2); margin: 10px 0 18px; }
@media (max-width: 760px) { .where { grid-template-columns: 1fr; } }

/* drawer (opens in place) */
dialog.sheet { border: 0; padding: 0; margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(560px, 100vw); background: var(--paper); color: var(--ink); }
dialog.sheet::backdrop { background: rgba(23, 23, 27, .45); backdrop-filter: blur(4px); }
dialog.sheet .in { display: grid; grid-template-rows: auto 1fr; height: 100%; }
dialog.sheet .bar { display: flex; justify-content: flex-end; padding: 12px; }
dialog.sheet .close { border: 0; background: var(--paper-2); border-radius: 99px; min-width: 48px; min-height: 48px; cursor: pointer; font-size: 1.1rem; }
dialog.sheet .body { overflow-y: auto; padding: 0 24px calc(28px + var(--bar)); }
dialog.sheet .pv { position: relative; aspect-ratio: 1 / 1; margin: -8px -24px 0; }
dialog.sheet .pv .player { position: absolute; inset: 0; }
dialog.sheet dl { display: grid; grid-template-columns: 120px 1fr; gap: 0; margin: 18px 0; border-top: 1px solid var(--line); }
dialog.sheet dt, dialog.sheet dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
dialog.sheet dt { color: var(--muted); font-size: .88rem; }

/* footer */
.foot { background: var(--paper-2); padding: 48px 0 calc(40px + var(--bar)); font-size: .9rem; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.foot svg { height: 20px; width: auto; }

/* age gate */
.gate { position: fixed; inset: 0; z-index: 100; background: var(--paper); display: grid; place-items: center; padding: 16px; }
.gate[hidden] { display: none; }
.gate .box { max-width: 440px; text-align: center; }
.gate .box svg { height: 34px; width: auto; margin: 0 auto 26px; }
.gate .box svg circle { fill: #8a9a2c; }
.gate .row { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
body.is-gated { overflow: hidden; }

