:root {
  --bg: #ffffff;
  --paper: #fffaf3;
  --ink: #30231d;
  --mute: #7d6c61;
  --line: rgba(48, 35, 29, 0.14);
  --accent: #a8493f;
  --sage: #65705b;
  --serif: "Cormorant Garamond", "Palatino", serif;
  --script: "Great Vibes", cursive;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow: 0 24px 70px rgba(66, 43, 30, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body {
  overflow-x: hidden;
  background: #ffffff;
}
::selection { background: var(--accent); color: #fff; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
img:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
a { color: inherit; }

.load { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; gap: 24px; background: #fff; text-align: center; font-family: var(--serif); font-style: italic; font-size: 22px; letter-spacing: .28em; }
.load-line { display: block; width: 64px; height: 1px; margin: 0 auto; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: load 1.3s ease forwards; }
@keyframes load { to { transform: scaleX(1); } }
.load.out { transform: translateY(-100%); transition: transform .85s cubic-bezier(.76,0,.24,1); }
.progress { position: fixed; top: 0; left: 0; z-index: 70; width: 0; height: 3px; background: var(--accent); }

.cover { position: relative; isolation: isolate; min-height: 100svh; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(340px,.8fr); align-items: center; gap: clamp(48px,7vw,110px); max-width: 1440px; margin: 0 auto; padding: clamp(74px,8vw,110px) clamp(36px,7vw,110px); }
.cover::before { content: ""; position: absolute; z-index: -1; width: min(38vw,540px); aspect-ratio: 1; right: -13%; top: -20%; border: 1px solid rgba(168,73,63,.14); border-radius: 50%; }
.cover-kicker { position: absolute; top: max(26px,env(safe-area-inset-top)); left: clamp(28px,7vw,110px); color: var(--mute); font-size: 10px; letter-spacing: .32em; text-transform: uppercase; }
.mosaic { display: grid; grid-template-columns: .92fr 1.22fr .92fr; gap: clamp(8px,1.1vw,16px); align-items: center; }
.mosaic figure, .pair img, .still { cursor: zoom-in; }
.mosaic figure { position: relative; overflow: hidden; border-radius: 190px 190px 16px 16px; box-shadow: var(--shadow); transition: transform .55s cubic-bezier(.22,1,.36,1); }
.mosaic figure:nth-child(1) { transform: rotate(-3deg) translateY(34px); }
.mosaic figure:nth-child(2) { z-index: 1; }
.mosaic figure:nth-child(3) { transform: rotate(3deg) translateY(34px); }
.mosaic img { height: auto; aspect-ratio: 3 / 4.35; filter: contrast(1.03) saturate(.92); transition: transform .8s ease; }
.mosaic figure:nth-child(1) img { object-position: center 72%; }
.mosaic figure:nth-child(2) img { object-position: center 40%; }
.mosaic figure:nth-child(3) img { object-position: center 28%; }
.mosaic figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg,rgba(28,18,13,.28),transparent 30%,transparent 75%,rgba(28,18,13,.18)); }
.mosaic figcaption { position: absolute; z-index: 2; top: 16px; left: 8px; right: 8px; color: #fff; text-align: center; font-family: var(--serif); font-size: clamp(7px,.75vw,11px); letter-spacing: .18em; text-transform: uppercase; pointer-events: none; }
.cover-copy { position: relative; text-align: left; }
.script { margin-left: -28px; color: var(--accent); font-family: var(--script); font-size: clamp(46px,5vw,78px); line-height: .85; transform: rotate(-6deg); }
h1 { max-width: 8ch; margin-top: 18px; font-family: var(--serif); font-weight: 300; font-size: clamp(58px,7vw,104px); line-height: .78; letter-spacing: -.055em; }
.date-lockup { display: flex; align-items: center; gap: 16px; margin-top: 40px; color: var(--sage); }
.date-lockup > span { font-family: var(--serif); font-size: 44px; font-weight: 300; line-height: 1; }
.date-lockup i { width: 42px; height: 1px; background: currentColor; }
.date-lockup p { font-family: var(--serif); font-size: 17px; font-style: italic; line-height: 1.05; }
.city, .hint { font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--mute); }
.city { margin-top: 14px; }
.hint { margin-top: 34px; }
.scroll-mark { position: absolute; bottom: 26px; left: 50%; width: 1px; height: 34px; background: var(--line); }

main { padding: 70px 20px 0; }
.hello, .letter, .block { width: min(100%,720px); margin: 0 auto; text-align: center; }
.hello { padding: 80px 40px 94px; }
.label { color: var(--accent); font-size: 10px; letter-spacing: .32em; text-transform: uppercase; }
.hello h2 { max-width: 12ch; margin: 24px auto 0; font-family: var(--serif); font-size: clamp(44px,6vw,70px); font-weight: 300; letter-spacing: -.045em; line-height: .95; }
.hello p:not(.label), .letter p:not(.label):not(.lead), .block > p:not(.label):not(.big):not(.hosts):not(.mono) { max-width: 46ch; margin: 24px auto 0; color: var(--mute); font-size: 15px; line-height: 1.85; }
.heart { display: grid; place-items: center; width: 54px; height: 54px; margin: 34px auto 0; border: 1px solid rgba(168,73,63,.35); border-radius: 50%; background: rgba(255,250,243,.65); color: var(--accent); font-size: 18px; cursor: pointer; transition: transform .25s ease,background .25s ease; }
.heart:active { transform: scale(1.12); }

.letter { width: min(100%,980px); padding: clamp(64px,8vw,110px); border-radius: 280px 280px 22px 22px; background: var(--paper); box-shadow: var(--shadow); }
.lead { max-width: 21ch; margin: 20px auto 0; font-family: var(--serif); font-style: italic; font-size: clamp(30px,4.4vw,50px); line-height: 1.15; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 46px auto 10px; max-width: 620px; }
.pair img { height: auto; aspect-ratio: 3 / 4; border-radius: 180px 180px 12px 12px; box-shadow: 0 16px 38px rgba(66,43,30,.13); }
.pair img:first-child { object-position: center 28%; }
.pair img:last-child { object-position: center 26%; }

.block { padding: 120px 20px; }
.big { margin-top: 20px; font-family: var(--serif); font-size: clamp(54px,8vw,84px); font-style: italic; font-weight: 300; line-height: .95; letter-spacing: -.04em; }
.sub { margin-top: 14px !important; font-size: 13px !important; }
.live { margin-top: 26px !important; font-size: 10px !important; letter-spacing: .18em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.live b { display: block; margin-bottom: 5px; color: var(--ink); font-family: var(--serif); font-size: 48px; font-style: italic; font-weight: 300; letter-spacing: -.04em; line-height: 1; text-transform: none; }
.times { display: grid; grid-template-columns: 1fr 1fr; margin-top: 52px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-align: left; background: rgba(255,250,243,.42); }
.times article { position: relative; padding: 36px 34px 40px; }
.times article + article { border-left: 1px solid var(--line); }
.clock { margin: 0; color: var(--accent); font-family: var(--serif); font-size: 42px; font-style: italic; }
.times h3 { margin: 8px 0 14px; font-family: var(--serif); font-size: 23px; font-style: italic; font-weight: 400; }
.times p { margin: 0; color: var(--mute); font-size: 13px; line-height: 1.65; }
.note { margin-top: 26px !important; font-size: 13px !important; }
.go { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 30px; padding: 14px 34px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: transform .25s ease,background .25s ease,color .25s ease; }
.go.ghost { background: transparent; color: var(--ink); }

.still { position: relative; width: min(100%,1080px); margin: 16px auto 0; padding: 12px; background: var(--paper); box-shadow: var(--shadow); transform: rotate(-1deg); }
.still img { height: clamp(340px,58vw,650px); object-position: center 48%; }
.still::after { content: "Бекмуза & Асель · 2026"; display: block; padding: 14px 6px 6px; color: var(--mute); font-family: var(--serif); font-size: 13px; font-style: italic; letter-spacing: .08em; }
.location { width: min(100%,840px); margin-top: 110px; padding: 86px 50px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,250,243,.46); }
.hosts { margin-top: 18px; font-family: var(--script); font-size: clamp(46px,7vw,72px); }
.hosts i { display: inline-block; margin: 0 10px; color: var(--accent); font-family: var(--serif); font-size: .35em; font-style: italic; vertical-align: middle; }
.mono { margin-top: 70px; color: var(--accent); font-family: var(--script); font-size: 72px; }
.end { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }

.petal { position: fixed; z-index: 85; color: var(--accent); font-size: 16px; pointer-events: none; animation: rise 1.1s ease forwards; }
@keyframes rise { from { opacity: 1; transform: translate(-50%,0) scale(.6); } to { opacity: 0; transform: translate(calc(-50% + var(--x)),-120px) scale(1.15); } }
.view { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 48px 56px; background: rgba(255,255,255,.97); }
.view[hidden] { display: none; }
.view img { width: auto; height: auto; max-width: min(92vw,820px); max-height: 84dvh; object-fit: contain; border-radius: 8px; box-shadow: var(--shadow); }
.view-x, .view-nav { position: absolute; border: 0; background: none; color: var(--ink); font-family: var(--serif); line-height: 1; cursor: pointer; }
.view-x { top: 16px; right: 20px; padding: 8px; font-size: 36px; }
.view-nav { top: 50%; padding: 12px; font-size: 48px; transform: translateY(-50%); }
.view-nav.prev { left: 8px; }
.view-nav.next { right: 8px; }
body.is-view { overflow: hidden; }

@media (hover:hover) and (pointer:fine) {
  .mosaic figure:hover { z-index: 3; transform: rotate(0) translateY(-10px); }
  .mosaic figure:hover img { transform: scale(1.025); }
  .go:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); }
  .go.ghost:hover { color: var(--paper); }
  .heart:hover { transform: translateY(-2px); background: var(--paper); }
}

@media (max-width: 820px) {
  .cover { min-height: 100svh; grid-template-columns: 1fr; align-content: start; gap: 34px; padding: calc(88px + env(safe-area-inset-top)) 18px 52px; }
  .cover::before { width: 72vw; right: -35%; top: -8%; }
  .cover-kicker { top: calc(20px + env(safe-area-inset-top)); left: 20px; font-size: 8px; }
  .mosaic { grid-template-columns: .86fr 1.2fr .86fr; gap: 7px; width: min(100%,560px); margin: 0 auto; }
  .mosaic figure { border-radius: 120px 120px 10px 10px; }
  .mosaic figure:nth-child(1) { transform: rotate(-3deg) translateY(20px); }
  .mosaic figure:nth-child(3) { transform: rotate(3deg) translateY(20px); }
  .mosaic figcaption { top: 10px; font-size: clamp(5px,1.7vw,8px); }
  .cover-copy { width: min(100%,540px); margin: 0 auto; text-align: center; }
  .script { margin-left: 0; font-size: clamp(44px,13vw,64px); transform: rotate(-5deg); }
  h1 { max-width: none; margin-top: 12px; font-size: clamp(50px,16vw,78px); line-height: .82; }
  .date-lockup { justify-content: center; margin-top: 27px; }
  .date-lockup > span { font-size: 36px; }
  .date-lockup i { width: 32px; }
  .date-lockup p { text-align: left; font-size: 15px; }
  .city { margin-top: 10px; }
  .hint, .scroll-mark { display: none; }
  main { padding: 20px 14px 0; }
  .hello { padding: 74px 20px 84px; }
  .hello h2 { margin-top: 20px; font-size: clamp(42px,13vw,62px); }
  .letter { padding: 72px 24px 54px; border-radius: 160px 160px 18px 18px; }
  .lead { font-size: clamp(29px,8.5vw,42px); }
  .pair { gap: 8px; margin-top: 34px; }
  .pair img { border-radius: 100px 100px 8px 8px; }
  .block { padding: 94px 10px; }
  .big { font-size: clamp(48px,14vw,68px); }
  .times { margin-top: 40px; border-radius: 14px; }
  .times article { padding: 28px 20px 30px; }
  .clock { font-size: 36px; }
  .times h3 { font-size: 20px; }
  .still { width: calc(100% - 8px); padding: 8px; }
  .still img { height: min(112vw,540px); }
  .still::after { padding: 11px 4px 3px; }
  .location { margin-top: 74px; padding: 68px 24px; }
  .go { width: min(100%,320px); min-height: 54px; }
  .end { padding-bottom: calc(98px + env(safe-area-inset-bottom)); }
}

@media (max-width: 430px) {
  .cover { gap: 30px; }
  .mosaic img { aspect-ratio: 3 / 4.5; }
  .hello p:not(.label), .letter p:not(.label):not(.lead), .block > p:not(.label):not(.big):not(.hosts):not(.mono) { font-size: 14px; line-height: 1.75; }
  .times { grid-template-columns: 1fr; }
  .times article + article { border-left: 0; border-top: 1px solid var(--line); }
  .view { padding: 56px 18px; }
  .view-nav { top: auto; bottom: 14px; }
}

@media (max-width: 360px) {
  .cover { padding-left: 12px; padding-right: 12px; }
  h1 { font-size: 48px; }
  .date-lockup { margin-top: 20px; }
  .letter { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .load-line, .mosaic figure, .mosaic img, .petal { animation: none; transition: none; }
}
