/* Masa Divus — the Divus shop as a restaurant table. Linen, warm ink, wine red. Cormorant Garamond / Manrope. */
@import url('../shared/fonts.css');

:root {
  --linen: #f5efe6;
  --linen-2: #ece3d6;
  --ink: #221b17;
  --ink-2: #5a4f47;
  --ink-3: #7a6e64;
  --wine: #6e1423;
  --wine-2: #8c1d30;
  --table: #2a1d16;
  --cream: #f3e9da;
  --rule: rgba(34, 27, 23, 0.14);
  --display: 'Cormorant Garamond', Georgia, serif;
  --ui: 'Manrope', system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --bar-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar-h) + 12px); scroll-padding-bottom: calc(110px + var(--concept-bar-h, 0px)); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--linen); color: var(--ink); font: 400 16.5px/1.6 var(--ui); }
body.is-gated { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--linen); padding: 10px 14px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { font: 600 12px/1.4 var(--ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--wine); margin: 0; }
.display { font-family: var(--display); font-weight: 500; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
h1.display { font-size: clamp(46px, 6vw, 88px); }
h2.display { font-size: clamp(34px, 4vw, 56px); }
.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 34em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font: 600 14px/1 var(--ui); text-decoration: none; cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s; }
.btn:hover { background: var(--ink); color: var(--linen); }
.btn--wine { background: var(--wine); border-color: var(--wine); color: #fff; }
.btn--wine:hover { background: var(--wine-2); border-color: var(--wine-2); color: #fff; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 13px; }

/* header */
.bar { position: sticky; top: 0; z-index: 40; height: var(--bar-h); background: rgba(245, 239, 230, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.bar .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 32px; width: auto; }
.brand span { font: italic 500 20px/1 var(--display); color: var(--wine); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font: 600 14px/1 var(--ui); text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--wine); }
.langs { display: flex; gap: 2px; }
.langs button { min-width: 40px; min-height: 40px; border: 0; background: none; font: 600 12px/1 var(--ui); letter-spacing: 0.06em; cursor: pointer; color: var(--ink-3); border-radius: 999px; }
.langs button[aria-pressed='true'] { color: var(--linen); background: var(--ink); }

/* hero: the pairing table */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.hero h1 { margin: 14px 0 16px; }
.hero h1 em { font-style: italic; color: var(--wine); }
.dishes { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dish { width: 100%; display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; min-height: 74px; border: 1px solid var(--rule); border-radius: 999px; background: rgba(255, 255, 255, 0.35); text-align: left; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.dish:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.dish[aria-pressed='true'] { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.dish img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.dish b { display: block; font: italic 600 19px/1.1 var(--display); }
.dish small { display: block; margin-top: 3px; font: 500 12px/1.3 var(--ui); color: var(--ink-3); }
.dish[aria-pressed='true'] small { color: #cbbcaa; }

.stage { position: sticky; top: calc(var(--bar-h) + 16px); display: grid; gap: 16px; }
.stage__player { aspect-ratio: 1000 / 760; width: 100%; border-radius: 28px; overflow: hidden; background: radial-gradient(120% 90% at 22% 18%, #4a3427 0%, var(--table) 58%, #140e0b 100%); box-shadow: 0 30px 60px -30px rgba(34, 27, 23, 0.6); }
.result { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: 18px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--rule); }
.result__bottle { grid-row: span 3; height: 120px; width: auto; align-self: center; }
.result__eyebrow { font: 600 11.5px/1.3 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.result__name { font: 600 30px/1.05 var(--display); margin: 0; }
.result__why { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.result__row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 12px; border-top: 1px solid var(--rule); margin-top: 6px; }
.price { font: 600 28px/1 var(--display); }
.price small { display: block; font: 500 11px/1.3 var(--ui); color: var(--ink-3); margin-top: 4px; }
.alt { font-size: 14px; color: var(--ink-2); }
.alt a { font-weight: 600; }

/* sticky buy dock (bottom right, above the concept notice) */
.buy-dock { position: fixed; z-index: 60; right: clamp(12px, 2vw, 24px); bottom: calc(14px + var(--concept-bar-h, 0px)); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 999px; background: var(--ink); color: var(--linen); box-shadow: 0 16px 36px -14px rgba(34, 27, 23, 0.6); max-width: calc(100vw - 24px); }
.buy-dock img { height: 46px; width: auto; }
.buy-dock__t { font: 500 13px/1.25 var(--ui); min-width: 0; }
.buy-dock__t b { display: block; font: italic 600 18px/1.1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.buy-dock .btn { flex: none; }

/* dessert banner */
.dessert { background: var(--table); color: var(--cream); }
.dessert .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 56px); align-items: center; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.dessert img { height: 300px; width: auto; filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.5)); }
.dessert .eyebrow { color: #e3b46c; }
.dessert h2 { color: #fff; }
.dessert p { color: #d8cbb8; max-width: 34em; }
.dessert .price { color: #fff; }
.dessert .price small { color: #bfae98; }

/* shop */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 26px; }
.section__head p { margin: 10px 0 0; color: var(--ink-2); max-width: 36em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; font: 600 13px/1 var(--ui); cursor: pointer; }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.card { position: relative; display: grid; grid-template-rows: 230px auto; border-radius: 20px; background: #fff; border: 1px solid var(--rule); overflow: hidden; transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.card:hover { box-shadow: 0 18px 36px -24px rgba(34, 27, 23, 0.45); transform: translateY(-2px); }
.card__img { display: grid; place-items: end center; padding-top: 16px; background: linear-gradient(180deg, var(--linen-2), #fff); }
.card__img img { height: 210px; width: auto; max-width: none; }
.card__body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.card__line { font: 600 10.5px/1.3 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.card__name { font: 600 22px/1.1 var(--display); margin: 0; }
.card__name button { all: unset; cursor: pointer; }
.card__name button::after { content: ''; position: absolute; inset: 0; }
.card__name button:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; position: relative; z-index: 1; }
.card__price { font: 600 20px/1 var(--display); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 9px; border-radius: 999px; background: var(--ink); color: #f3dca4; font: 700 10px/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; }

/* drawer: wine details open in place */
.drawer { position: fixed; inset: 0; z-index: 80; margin: 0 0 0 auto; width: min(460px, 100vw); height: 100%; max-height: none; max-width: none; border: 0; padding: 0; background: var(--linen); color: var(--ink); box-shadow: -20px 0 50px -20px rgba(0, 0, 0, 0.4); }
.drawer::backdrop { background: rgba(34, 27, 23, 0.45); }
.drawer[open] { animation: slide-in 0.35s var(--ease); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.drawer__in { display: grid; gap: 14px; padding: 22px 26px calc(110px + var(--concept-bar-h, 0px)); overflow-y: auto; height: 100%; }
.drawer__close { justify-self: end; min-width: 44px; min-height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: #fff; cursor: pointer; }
.drawer__img { height: 300px; display: grid; place-items: center; background: radial-gradient(closest-side, rgba(110, 20, 35, 0.12), transparent 70%); }
.drawer__img img { height: 300px; width: auto; max-width: none; }
.drawer dl { display: grid; grid-template-columns: 120px 1fr; margin: 0; border-top: 1px solid var(--rule); }
.drawer dt, .drawer dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.drawer dt { color: var(--ink-3); }
.drawer .pairs { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer .pairs button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; cursor: pointer; font: italic 600 16px/1 var(--display); }
.drawer .pairs img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* restaurant */
.resto { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.resto__pics { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.resto__pics img { width: 100%; height: clamp(260px, 32vw, 440px); object-fit: cover; border-radius: 22px; }
.facts { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; align-items: baseline; }
.facts li::before { content: '—'; color: var(--wine); }

.trust { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust div { padding: 22px 18px 22px 0; }
.trust div + div { padding-left: 18px; border-left: 1px solid var(--rule); }
.trust b { display: block; font: 600 24px/1.1 var(--display); }
.trust span { font-size: 13.5px; color: var(--ink-2); }

/* age gate */
.gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(34, 27, 23, 0.82); }
.gate[hidden] { display: none; }
.gate__box { width: min(420px, 100%); background: var(--linen); padding: 34px 28px 28px; text-align: center; border-radius: 26px; }
.gate__box img { height: 80px; margin: 0 auto 14px; }
.gate__box h2 { font: 600 32px/1.05 var(--display); margin: 0 0 10px; }
.gate__box p { margin: 0 0 20px; color: var(--ink-2); }
.gate__row { display: flex; gap: 10px; justify-content: center; }

.foot { background: var(--ink); color: #d4c6b4; padding: 48px 0 calc(120px + var(--concept-bar-h, 0px)); font-size: 14px; }
.foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.foot img { height: 28px; filter: invert(1); margin-bottom: 12px; }
.foot a { color: #f3e9da; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 16px; color: #a5978a; font-size: 12.5px; }

/* pinned tasting menu: the stage stays, scrolling serves the courses */
.pin { position: relative; height: 420vh; border-top: 1px solid var(--rule); }
.pin__sticky { position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h)); height: calc(100svh - var(--bar-h)); display: flex; align-items: center; overflow: hidden; }
.pin__grid > * { min-width: 0; }
.pin__grid { width: 100%; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.pin__stage { width: 100%; aspect-ratio: 1000 / 760; max-height: calc(100svh - var(--bar-h) - 60px); border-radius: 28px; overflow: hidden; background: var(--table); box-shadow: 0 30px 60px -30px rgba(34, 27, 23, 0.6); justify-self: center; }
.menu-card { padding: 26px 26px 22px; background: #fff; border: 1px solid var(--rule); border-radius: 26px; }
.menu-card h2 { font-size: clamp(30px, 3vw, 44px); margin: 8px 0 16px; }
.courses { list-style: none; padding: 0; margin: 0; counter-reset: c; }
.course { display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); opacity: 0.38; transition: opacity 0.35s var(--ease); }
.course.is-on { opacity: 1; }
.course__n { font: italic 600 30px/1 var(--display); color: var(--wine); }
.course__dish { font: italic 600 21px/1.1 var(--display); }
.course__wine { grid-column: 2; font-size: 14px; color: var(--ink-2); }
.course__buy { grid-row: 1 / span 2; grid-column: 3; text-align: right; }
.course__buy b { display: block; font: 600 20px/1 var(--display); margin-bottom: 6px; }
.menu-total { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.menu-total b { font: 600 24px/1 var(--display); }
@media (max-width: 980px) {
  .pin { height: 400vh; }
  .pin__sticky { align-items: flex-start; padding-top: 12px; }
  .pin__grid { grid-template-columns: 1fr; gap: 12px; }
  .pin__stage { order: -1; max-height: 42svh; border-radius: 20px; }
  .menu-card { padding: 14px 16px; }
  .menu-card .eyebrow, .menu-total { display: none; }
  .menu-card h2 { font-size: 24px; margin: 0 0 6px; }
  .course { display: none; border: 0; padding: 4px 0; }
  .course.is-on { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  .pin { height: auto; padding: 48px 0; }
  .pin__sticky { position: relative; top: 0; height: auto; }
  .course, .course.is-on { display: grid; opacity: 1; }
  .menu-total { display: flex; }
}

@media (max-width: 980px) {
  .hero .wrap, .resto { grid-template-columns: 1fr; }
  .stage { position: relative; top: 0; }
  .dessert .wrap { grid-template-columns: auto 1fr; }
  .dessert .wrap > :last-child { grid-column: 1 / -1; }
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .trust div:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 720px) {
  :root { --bar-h: 60px; }
  .nav { display: none; }
  .langs { margin-left: auto; }
  .brand span { display: none; }
  .hero { padding-top: 18px; }
  .hero h1 { font-size: 42px; margin: 8px 0 4px; }
  .hero .lede, .hero h2.eyebrow { display: none; }
  .dishes { display: flex; overflow-x: auto; gap: 8px; margin: 12px calc(-1 * var(--gut)) 0; padding: 0 var(--gut) 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .dishes::-webkit-scrollbar { display: none; }
  .dishes li { flex: none; scroll-snap-align: start; }
  .dish { grid-template-columns: 44px auto; min-height: 58px; padding: 6px 14px 6px 6px; }
  .dish img { width: 44px; height: 44px; }
  .dish b { font-size: 17px; white-space: nowrap; }
  .dish small { display: none; }
  .hero .wrap { gap: 16px; }
  .stage__player { border-radius: 20px; }
  .result { grid-template-columns: auto 1fr; padding: 14px 16px; }
  .result__bottle { height: 96px; }
  .result__name { font-size: 26px; }
  .buy-dock { left: 10px; right: 10px; bottom: calc(10px + var(--concept-bar-h, 0px)); justify-content: space-between; }
  .buy-dock__t b { max-width: 46vw; }
  .dessert .wrap { grid-template-columns: 1fr; text-align: left; }
  .dessert img { height: 220px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { grid-template-rows: 180px auto; }
  .card__img img { height: 165px; }
  .card__name { font-size: 19px; }
  .card__row { flex-direction: column; align-items: flex-start; }
  .foot .wrap { grid-template-columns: 1fr; }
  .resto__pics { grid-template-columns: 1fr; }
  .resto__pics img:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.hero .wrap > * { min-width: 0; }
