@font-face { font-family: 'Playfair'; src: url('fonts/playfair-cyr-normal.woff2') format('woff2'); font-weight: 300 900; font-stretch: 87.5% 112.5%; font-style: normal; font-display: swap; unicode-range: U+0401, U+0410-044F, U+0451, U+2116; }
@font-face { font-family: 'Playfair'; src: url('fonts/playfair-latin-normal.woff2') format('woff2'); font-weight: 300 900; font-stretch: 87.5% 112.5%; font-style: normal; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2026, U+2122, U+2190-2197; }
@font-face { font-family: 'Playfair'; src: url('fonts/playfair-cyr-italic.woff2') format('woff2'); font-weight: 300 900; font-stretch: 87.5% 112.5%; font-style: italic; font-display: swap; unicode-range: U+0401, U+0410-044F, U+0451, U+2116; }
@font-face { font-family: 'Playfair'; src: url('fonts/playfair-latin-italic.woff2') format('woff2'); font-weight: 300 900; font-stretch: 87.5% 112.5%; font-style: italic; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2026, U+2122, U+2190-2197; }
@font-face { font-family: 'Geologica'; src: url('fonts/geologica-cyr.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0401, U+0410-044F, U+0451, U+2116; }
@font-face { font-family: 'Geologica'; src: url('fonts/geologica-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2026, U+2122, U+2190-2197; }

:root {
  --wine: #2b0811;
  --night: #1a0409;
  --burgundy: #6a1526;
  --cream: #f3eadc;
  --sand: #d8c3a0;
  --brass: #c9a063;
  --f-display: 'Playfair', Georgia, serif;
  --f-text: 'Geologica', system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background:
    radial-gradient(70% 60% at 12% 0%, rgba(143, 29, 51, .55), transparent 70%),
    radial-gradient(60% 50% at 100% 100%, rgba(106, 21, 38, .45), transparent 70%),
    var(--wine);
  color: var(--cream); font: 400 16px/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 10;
  background: url('noise.png'); opacity: .07; mix-blend-mode: overlay;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px var(--pad); border-bottom: 1px solid rgba(243, 234, 220, .14);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo b { font: 600 30px/1 var(--f-display); font-stretch: 112.5%; letter-spacing: -.01em; }
.logo span, .top__note, .label {
  font-size: 11px; font-weight: 500; line-height: 1.35; letter-spacing: .16em; text-transform: uppercase;
}
.logo span { display: block; }
.top__note { color: var(--sand); text-align: right; }

.choose {
  flex: 1; width: 100%; max-width: 1480px; margin: 0 auto;
  display: grid; gap: clamp(28px, 4vw, 64px); align-items: end;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 2fr);
  padding: clamp(28px, 4vw, 64px) var(--pad) clamp(28px, 3vw, 44px);
}
.intro .label { color: var(--brass); margin: 0 0 22px; }
.intro h1 {
  margin: 0; font: 400 clamp(52px, 6.4vw, 104px)/.92 var(--f-display); font-stretch: 94%;
  letter-spacing: -.02em; text-wrap: balance;
}
.intro h1 em { font-style: italic; color: var(--sand); }
.intro p { margin: 26px 0 0; max-width: 30ch; color: rgba(243, 234, 220, .78); font-size: clamp(16px, 1.15vw, 18px); }

.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 48px); }

.door { --w: min(100%, min(54vh, 600px) * .8); display: flex; flex-direction: column; align-items: center; gap: 22px; outline: none; }
.door__arch {
  position: relative; aspect-ratio: 4 / 5; width: var(--w);
}
.door__arch::before {
  content: ''; position: absolute; inset: -11px; z-index: 1; pointer-events: none;
  border: 1px solid rgba(201, 160, 99, .45);
  border-radius: 50% 50% 0 0 / 40% 40% 0 0; border-bottom: 0;
  transition: border-color .5s, inset .7s var(--ease);
}
.door__img {
  position: absolute; inset: 0; overflow: hidden; background: var(--night);
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.door__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease); }
.door__img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(26, 4, 9, .55));
}
.door--journal img { object-position: 60% 30%; }
.door--house img { object-position: 46% 40%; }

.door__text { width: var(--w); display: grid; gap: 8px; padding-top: 6px; border-top: 1px solid rgba(243, 234, 220, .16); }
.door h2 { margin: 10px 0 0; font: 400 clamp(28px, 2.5vw, 40px)/1.05 var(--f-display); letter-spacing: -.01em; }
.door h2 em { font-style: italic; white-space: nowrap; }
.door p { margin: 0; color: var(--sand); font-size: 15px; max-width: 40ch; }
.door__go { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.door__go i {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(243, 234, 220, .35); font-style: normal; transition: background .4s, color .4s, border-color .4s, transform .6s var(--ease);
}

.door:hover .door__img img, .door:focus-visible .door__img img { transform: scale(1.07); }
.door:hover .door__arch::before, .door:focus-visible .door__arch::before { inset: -16px; border-color: var(--brass); }
.door:hover .door__go i, .door:focus-visible .door__go i { background: var(--cream); color: var(--wine); border-color: var(--cream); transform: translateX(4px); }
.door:focus-visible .door__text { outline: 2px solid var(--brass); outline-offset: 8px; border-radius: 2px; }

.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px var(--pad) 24px; color: rgba(216, 195, 160, .7); font-size: 12px; letter-spacing: .04em;
}

@media (prefers-reduced-motion: no-preference) {
  .intro > * { animation: rise 1s var(--ease) both; }
  .intro > :nth-child(2) { animation-delay: .08s; }
  .intro > :nth-child(3) { animation-delay: .16s; }
  .door__img { animation: open 1.3s var(--ease) both; animation-delay: .2s; }
  .door + .door .door__img { animation-delay: .34s; }
  .door__arch::before, .door__text { animation: rise 1s var(--ease) both; animation-delay: .5s; }
  .door + .door .door__arch::before, .door + .door .door__text { animation-delay: .62s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes open { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-width: 1080px) {
  .choose { grid-template-columns: 1fr; align-items: start; }
  .intro p { max-width: 46ch; }
}
@media (max-width: 680px) {
  .top__note { display: none; }
  .doors { grid-template-columns: 1fr; gap: 56px; }
  .door { --w: min(100%, 420px); }
  .door__arch { margin-top: 12px; }
  .foot { flex-direction: column; gap: 4px; }
}

/* 404 */
.lost { flex: 1; display: grid; place-content: center; gap: 22px; padding: 64px var(--pad); text-align: center; }
.lost h1 { margin: 0; font: 400 clamp(96px, 20vw, 240px)/.8 var(--f-display); font-stretch: 112.5%; }
.lost h1 em { font-style: italic; color: var(--sand); font-stretch: 87.5%; }
.lost p { margin: 0 auto; max-width: 36ch; color: rgba(243, 234, 220, .8); }
.lost nav { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.pill {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1px solid rgba(243, 234, 220, .35); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s, color .3s;
}
.pill:hover, .pill:focus-visible { background: var(--cream); color: var(--wine); outline: none; }
.pill--fill { background: var(--cream); color: var(--wine); border-color: var(--cream); }
