:root {
  --ink: #17201d;
  --ink-soft: #35403b;
  --paper: #eee7d8;
  --paper-light: #f8f4eb;
  --gold: #bd9662;
  --line: rgba(23, 32, 29, .18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__image {
  z-index: -3;
  background: url("assets/pushkin-monument.png") center center / cover no-repeat;
  transform: scale(1.015);
  animation: settle 1.8s cubic-bezier(.2,.7,.2,1) both;
}

.hero__veil {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10,17,15,.08) 0%, rgba(10,17,15,.16) 35%, rgba(10,17,15,.60) 68%, rgba(10,17,15,.82) 100%),
    linear-gradient(0deg, rgba(9,15,13,.60) 0%, transparent 42%);
}

.nav {
  width: min(1500px, calc(100% - 8vw));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav__link,
.eyebrow {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.nav__link { justify-self: end; text-decoration: none; }
.nav__link span { padding-left: 10px; color: var(--gold); }

.hero__content {
  width: min(1500px, calc(100% - 8vw));
  margin: 0 auto;
  padding: clamp(100px, 17vh, 180px) 0 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: left;
}

.hero__content > * { width: min(590px, 45vw); }
.eyebrow { margin: 0 0 24px; color: var(--gold); font-weight: 650; }

h1, h2 { font-family: var(--serif); font-weight: 400; }

h1 {
  margin: 0;
  font-size: clamp(76px, 9vw, 150px);
  line-height: .78;
  letter-spacing: -.055em;
}

h1 em { color: #d7b881; font-weight: 400; }

.hero__lead {
  margin: 48px 0 0;
  padding-left: 32px;
  border-left: 1px solid var(--gold);
  color: rgba(255,255,255,.78);
  font: italic clamp(16px, 1.3vw, 20px)/1.7 var(--serif);
}

.hero__button {
  width: auto;
  margin-top: 42px;
  padding: 15px 23px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}

.hero__button:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.hero__index {
  position: absolute;
  right: 4vw;
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.5);
  font-size: 10px;
}

.hero__index i { display: block; width: 54px; height: 1px; background: rgba(255,255,255,.4); }

.poem {
  min-height: 100vh;
  padding: clamp(90px, 12vw, 170px) max(4vw, 28px);
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(620px, 2.1fr) minmax(80px, .6fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
  background:
    radial-gradient(circle at 75% 15%, rgba(189,150,98,.18), transparent 25%),
    var(--paper);
}

.poem__aside { padding-top: 18px; }
.section-number { font: 72px/1 var(--serif); color: rgba(23,32,29,.12); }
.poem__aside p { margin: 28px 0 8px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.poem__aside time { color: var(--gold); font: italic 18px/1 var(--serif); }

.poem__card {
  position: relative;
  padding: clamp(50px, 7vw, 100px);
  background: var(--paper-light);
  box-shadow: 0 30px 80px rgba(32,28,20,.10);
}

.ornament { position: absolute; top: 36px; right: 42px; color: var(--gold); font-size: 18px; }
.eyebrow--dark { color: var(--gold); }

.poem__card h2 {
  margin: 0 0 48px;
  font-size: clamp(50px, 5.2vw, 86px);
  line-height: 1;
  letter-spacing: -.04em;
}

.poem__text {
  font: clamp(20px, 2vw, 30px)/1.75 var(--serif);
}

.poem__text p { margin: 0 0 34px; }
.poem__footer { margin-top: 58px; display: flex; align-items: center; gap: 16px; color: var(--ink-soft); font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.poem__line { flex: 1; height: 1px; background: var(--line); }

.legacy {
  position: relative;
  padding: clamp(100px, 14vw, 200px) max(4vw, 28px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--ink);
  color: var(--paper-light);
}

.legacy__mark {
  justify-self: center;
  color: transparent;
  font: clamp(230px, 30vw, 520px)/.7 var(--serif);
  -webkit-text-stroke: 1px rgba(215,184,129,.28);
}

.legacy__content { max-width: 620px; }
.legacy h2 { margin: 0 0 42px; font-size: clamp(48px, 5vw, 82px); line-height: .98; letter-spacing: -.04em; }
.legacy__content > p:last-child { max-width: 540px; color: rgba(248,244,235,.65); font: 18px/1.8 var(--serif); }

.footer {
  padding: 28px 4vw;
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.5);
  background: #101714;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer a { text-decoration: none; color: var(--gold); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes settle { from { opacity: .4; transform: scale(1.06); } to { opacity: 1; transform: scale(1.015); } }

@media (max-width: 900px) {
  .hero__image { background-position: 36% center; }
  .hero__veil { background: linear-gradient(0deg, rgba(9,15,13,.92), rgba(9,15,13,.08) 80%); }
  .hero__content { justify-content: flex-end; align-items: flex-start; min-height: calc(100svh - 110px); padding: 120px 0 70px; }
  .hero__content > * { width: min(100%, 630px); }
  h1 { font-size: clamp(68px, 17vw, 118px); }
  .hero__index { display: none; }
  .poem { grid-template-columns: 1fr; }
  .poem__aside { display: flex; gap: 24px; align-items: baseline; }
  .poem__aside p { margin: 0; }
  .poem__card { padding: 50px 34px; }
  .legacy { grid-template-columns: 1fr; overflow: hidden; }
  .legacy__mark { position: absolute; opacity: .45; transform: translateX(45vw); }
  .legacy__content { position: relative; z-index: 1; }
}

@media (max-width: 560px) {
  .nav { width: calc(100% - 40px); padding-top: 20px; }
  .nav__link { font-size: 0; }
  .nav__link span { font-size: 20px; }
  .hero__content { width: calc(100% - 40px); }
  h1 { font-size: clamp(58px, 15.5vw, 72px); }
  .hero__lead { margin-top: 32px; padding-left: 18px; font-size: 15px; }
  .hero__button { margin-top: 28px; }
  .poem { padding: 70px 20px; gap: 25px; }
  .section-number { font-size: 50px; }
  .poem__card h2 { margin-bottom: 34px; }
  .poem__text { font-size: 17px; line-height: 1.75; }
  .poem__footer { margin-top: 38px; }
  .legacy { padding: 100px 24px; }
  .legacy__content > p:last-child { font-size: 16px; }
  .footer { gap: 30px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
