/* Hora Ielelor — the painted Domeniile Vorniceni line as a folk dance. Unbounded / Yeseva One / Manrope. */
@import url('../shared/fonts.css');

:root {
  --ink: #1c1410;
  --cream: #fff6e6;
  --paper: #fbf1df;
  --red: #b3262e;
  --flood: #e2b92c;
  --display: 'Unbounded', system-ui, sans-serif;
  --tale: 'Yeseva One', Georgia, serif;
  --ui: 'Manrope', system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-bottom: calc(110px + var(--concept-bar-h, 0px)); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.55 var(--ui); }
body.is-gated { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); 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(--cream); padding: 10px 14px; }
.skip:focus { top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--cream); font: 700 15px/1 var(--ui); text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--red); transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--red); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--red); }
.btn--ghost { background: var(--cream); color: var(--ink); }
.btn--small { min-height: 42px; padding: 0 16px; font-size: 14px; }

/* header over the stage */
.bar { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 16px; padding: 14px var(--gut); pointer-events: none; }
.bar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 8px 14px 8px 10px; background: var(--cream); border: 2px solid var(--ink); border-radius: 999px; }
.brand img { height: 26px; width: auto; }
.brand span { font: 400 15px/1 var(--tale); }
.langs { margin-left: auto; display: flex; gap: 4px; padding: 4px; background: var(--cream); border: 2px solid var(--ink); border-radius: 999px; }
.langs button { min-width: 40px; min-height: 36px; border: 0; border-radius: 999px; background: none; font: 700 12px/1 var(--ui); cursor: pointer; }
.langs button[aria-pressed='true'] { background: var(--ink); color: var(--cream); }

/* stage */
.stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: var(--flood); transition: background 0.4s; overflow: hidden; }
.stage__player { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; }
.stage__player:focus-visible { outline-offset: -6px; }
.stage h1 { position: absolute; z-index: 5; left: var(--gut); top: 84px; margin: 0; font: 400 clamp(15px, 1.4vw, 18px)/1.25 var(--tale); max-width: 22em; padding: 8px 14px; background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; }
.card { position: absolute; z-index: 5; left: var(--gut); bottom: calc(24px + var(--concept-bar-h, 0px)); width: min(420px, calc(100vw - 2 * var(--gut))); padding: 18px 20px 18px; background: var(--cream); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); }
.card__eyebrow { margin: 0; font: 700 11.5px/1.3 var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.card h2 { margin: 6px 0 4px; font: 400 clamp(28px, 2.6vw, 38px)/1.05 var(--tale); }
.card p { margin: 0; }
.card__claim { color: #4a3b31; font-size: 15px; }
.card__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.card__price { font: 900 26px/1 var(--display); }
.card__price small { display: block; margin-top: 4px; font: 600 11px/1.2 var(--ui); color: #6b5a4c; letter-spacing: 0; }
.ctrl { position: absolute; z-index: 5; right: var(--gut); bottom: calc(96px + var(--concept-bar-h, 0px)); display: flex; gap: 10px; align-items: center; }
.ctrl button { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); background: var(--cream); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); display: grid; place-items: center; }
.ctrl button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.hint { font: 700 12px/1.2 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; background: var(--ink); color: var(--cream); border-radius: 999px; }
.dots { position: absolute; z-index: 5; left: 50%; translate: -50% 0; bottom: calc(40px + var(--concept-bar-h, 0px)); display: flex; gap: 8px; padding: 10px 14px; background: var(--cream); border: 2px solid var(--ink); border-radius: 999px; }
.dots button { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid var(--ink); background: var(--cream); cursor: pointer; }
.dots button[aria-current='true'] { background: var(--ink); width: 34px; border-radius: 999px; }
.dots button::before { content: ''; display: block; margin: -15px; width: 44px; height: 44px; }

/* sticky buy dock */
.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: 7px 7px 7px 10px; border-radius: 999px; background: var(--cream); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); max-width: calc(100vw - 24px); }
.buy-dock img { height: 44px; width: auto; }
.buy-dock__t { font: 600 13px/1.25 var(--ui); min-width: 0; }
.buy-dock__t b { display: block; font: 400 17px/1.1 var(--tale); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

/* tale */
.tale { padding: clamp(64px, 9vw, 120px) 0; background: var(--paper); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.big { font: 900 clamp(40px, 7vw, 108px)/0.95 var(--display); letter-spacing: -0.03em; margin: 0; text-transform: uppercase; }
.big em { font-style: normal; color: var(--red); }
.tale__intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.tale__intro p { font-size: clamp(17px, 1.4vw, 19px); margin: 0 0 12px; }
.labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.label { margin: 0; border: 2px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--cream); box-shadow: 6px 6px 0 var(--ink); }
.label:nth-child(2) { translate: 0 28px; rotate: 1.2deg; }
.label:nth-child(1) { rotate: -1.4deg; }
.label img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-bottom: 2px solid var(--ink); }
.label figcaption { padding: 14px 16px 16px; }
.label b { display: block; font: 400 24px/1.1 var(--tale); }
.label span { font-size: 14.5px; color: #4a3b31; }

/* the whole line */
.line { padding: clamp(64px, 9vw, 120px) 0 clamp(64px, 8vw, 100px); background: var(--ink); color: var(--cream); }
.line .big { color: var(--cream); }
.line .big em { color: #f0b23a; }
.line__lede { max-width: 40em; color: #e6d8c2; margin: 16px 0 34px; }
table.dv { width: 100%; border-collapse: collapse; }
.dv th { text-align: left; font: 700 11px/1.2 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: #bba890; padding: 12px 8px; border-bottom: 2px solid var(--cream); }
.dv td { padding: 10px 8px; border-bottom: 1px solid rgba(255, 246, 230, 0.18); vertical-align: middle; }
.dv .w { display: flex; align-items: center; gap: 12px; }
.dv .w img { height: 58px; width: auto; flex: none; }
.dv .w b { font: 400 22px/1.1 var(--tale); }
.dv .sw { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--cream); display: inline-block; vertical-align: -2px; margin-right: 6px; }
.dv .num { font: 900 18px/1 var(--display); white-space: nowrap; }
.dv .act { text-align: right; }
.dv .btn { background: var(--cream); color: var(--ink); border-color: var(--cream); box-shadow: 3px 3px 0 #f0b23a; }
.dv tr.row-dance td { background: rgba(255, 246, 230, 0.06); }
.dv button.spin { all: unset; cursor: pointer; text-decoration: underline; text-decoration-color: #f0b23a; text-underline-offset: 4px; }
.cross { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; padding: 22px; border: 2px dashed rgba(255, 246, 230, 0.4); border-radius: 22px; }
.cross p { margin: 0; flex: 1 1 320px; color: #e6d8c2; }
.cross .btn { background: var(--cream); color: var(--ink); border-color: var(--cream); box-shadow: 3px 3px 0 #f0b23a; }

/* gate */
.gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(28, 20, 16, 0.8); }
.gate[hidden] { display: none; }
.gate__box { width: min(420px, 100%); background: var(--cream); border: 2px solid var(--ink); border-radius: 26px; box-shadow: 8px 8px 0 var(--red); padding: 32px 26px 26px; text-align: center; }
.gate__box h2 { font: 400 30px/1.1 var(--tale); margin: 0 0 10px; }
.gate__box p { margin: 0 0 20px; }
.gate__row { display: flex; gap: 10px; justify-content: center; }

.foot { background: var(--paper); border-top: 2px solid var(--ink); padding: 40px 0 calc(120px + var(--concept-bar-h, 0px)); font-size: 14px; }
.foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.foot img { height: 28px; margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(28, 20, 16, 0.2); padding-top: 14px; color: #6b5a4c; font-size: 12.5px; }

@media (max-width: 760px) {
  .stage { min-height: 620px; }
  .stage h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .dots { bottom: auto; top: 80px; left: var(--gut); translate: 0 0; padding: 8px 10px; gap: 6px; }
  .card { bottom: calc(80px + var(--concept-bar-h, 0px)); padding: 14px 16px; box-shadow: 4px 4px 0 var(--ink); }
  .card h2 { font-size: 26px; }
  .card__claim { font-size: 14px; }
  .card__row .btn { display: none; }
  .ctrl { right: var(--gut); bottom: auto; top: 74px; }
  .ctrl button { width: 48px; height: 48px; }
  .hint { display: none; }
  .brand span { display: none; }
  .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; }
  .tale__intro, .labels { grid-template-columns: 1fr; }
  .label:nth-child(2) { translate: 0 0; }
  .dv thead { display: none; }
  .dv tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid rgba(255, 246, 230, 0.18); }
  .dv td { border: 0; padding: 0; }
  .dv td.w-cell { grid-column: 1 / -1; }
  .dv td.hide-sm { display: none; }
  .foot .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
