:root {
  --paper: #f4efe6;
  --ink: #1c1a17;
  --ink-soft: #4a4540;
  --muted: #7a736a;
  --rule: #cdc3b4;
  --sand: #d9cfbe;
  --accent: #8a2a1e;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "EB Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; line-height: 1.1; }
h1 { font-size: 44px; }
h2 { font-size: 40px; }
p { margin: 0; }
[hidden] { display: none !important; }

.site-header, main, .site-footer {
  max-width: 1248px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav { display: flex; gap: 32px; font-size: 17px; letter-spacing: 0.04em; }
.nav a { border-bottom: 1px solid transparent; padding-bottom: 2px; }
.nav a:hover, .nav a.active { border-bottom-color: var(--accent); }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.accent { color: var(--accent); letter-spacing: 0.28em; font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Главная */
.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: end;
  padding: 120px 0 100px;
}
.hero-main { display: flex; flex-direction: column; gap: 24px; }
.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 8.5vw, 118px);
  line-height: 0.94;
  letter-spacing: -0.01em;
}
.lead { font-size: 22px; color: var(--ink-soft); max-width: 520px; text-wrap: pretty; }
.actions { display: flex; gap: 20px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; height: 52px; padding: 0 30px;
  background: var(--accent); color: var(--paper); font-size: 17px; letter-spacing: 0.06em;
}
.button:hover { color: var(--paper); background: var(--ink); }
.link-underline { border-bottom: 1px solid var(--ink); padding-bottom: 3px; font-size: 17px; }
.hero-aside {
  display: flex; flex-direction: column; gap: 18px;
  border-left: 1px solid var(--rule); padding-left: 40px;
}
.hero-quote { font-family: var(--display); font-style: italic; font-size: 30px; line-height: 1.35; }

.section { padding: 48px 0 96px; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--ink); padding-bottom: 16px; margin-bottom: 40px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.poem-card { display: flex; flex-direction: column; gap: 12px; }
.poem-card .poem-title { font-family: var(--display); font-size: 30px; line-height: 1.15; }
.poem-card:hover .poem-title { color: var(--accent); }
.poem-card .excerpt { color: var(--ink-soft); }

.section.dark {
  background: var(--ink); color: var(--paper);
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  padding: 96px calc(50vw - 624px);
}
.section.dark .muted { color: #bdb3a4; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding: 0 24px; }
.split h2 { margin-bottom: 20px; }
.books { display: flex; gap: 32px; justify-content: flex-end; flex-wrap: wrap; }
  display: flex; flex-direction: column; justify-content: space-between;
  width: 190px; height: 280px; padding: 22px 20px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 40px -20px rgba(0,0,0,.7);
}

.coll-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.coll-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--display); font-size: 26px;
}

/* Список стихов */
.filter {
  width: 100%; height: 52px; margin-bottom: 40px;
  font: inherit; font-size: 18px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink); outline: none;
}
.filter::placeholder { color: var(--muted); }
.year-group { margin-bottom: 48px; }
.year { font-size: 32px; color: var(--muted); margin-bottom: 8px; }
.rows { display: flex; flex-direction: column; }
.poem-row {
  display: grid; grid-template-columns: 1fr 200px 160px; gap: 24px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.poem-row-title { font-family: var(--display); font-size: 24px; }
.poem-row:hover .poem-row-title { color: var(--accent); }
.poem-row .date { text-align: right; }

/* Страница стихотворения */
.poem-page {
  display: grid; grid-template-columns: 3fr 7fr; gap: 64px;
  padding: 96px 0 72px;
}
.poem-meta { display: flex; flex-direction: column; gap: 22px; padding-top: 14px; }
.meta-row { display: flex; flex-direction: column; gap: 6px; }
.chips, .sources { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.chip { border-bottom: 1px solid var(--rule); }
.sources a { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.sources.big { margin-top: 28px; font-size: 17px; letter-spacing: 0.06em; }
.poem-h1 { font-size: 52px; margin-bottom: 36px; }
.poem-text { font-family: var(--display); font-size: 26px; line-height: 1.5; max-width: 640px; }
.stanza { margin: 0 0 1.4em; }
.pager-nav {
  display: flex; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--ink); padding: 32px 0 72px;
}
.pager { display: flex; flex-direction: column; gap: 6px; }
.pager.right { align-items: flex-end; text-align: right; }
.pager-title { font-family: var(--display); font-size: 24px; }

/* О поэте */
  aspect-ratio: 4 / 5; background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}

.site-footer {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--ink); padding-top: 40px; padding-bottom: 56px;
}
.site-footer .muted { font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; gap: 28px; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }

@media (max-width: 900px) {
  .hero, .split, .poem-page, .coll-list { grid-template-columns: 1fr; }
  .hero { padding: 64px 0; gap: 40px; }
  .hero-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
  .grid-3 { grid-template-columns: 1fr; gap: 36px; }
  .section.dark { padding: 64px 0; }
  .books { justify-content: flex-start; }
  .poem-row { grid-template-columns: 1fr; gap: 2px; }
  .poem-row .date { text-align: left; }
  .poem-page { padding-top: 48px; gap: 32px; }
  .poem-h1 { font-size: 40px; }
  .poem-text { font-size: 22px; }
  h1 { font-size: 36px; } h2 { font-size: 32px; }
}

/* Фото и книги */
img { max-width: 100%; display: block; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--sand); }
.portrait-link { display: block; max-width: 360px; }
.about-teaser { align-items: center; }
.about-teaser .portrait { max-width: 360px; }
.about-teaser h2 { margin-bottom: 20px; }
.about-teaser .link-underline { display: inline-block; margin-top: 24px; }
.prose-lead { font-size: 22px; line-height: 1.55; text-wrap: pretty; }

.book { display: flex; flex-direction: column; gap: 12px; width: 190px; }
.book.has-cover img { width: 190px; height: 280px; object-fit: cover; box-shadow: 0 30px 40px -20px rgba(0,0,0,.7); }
.book-plain {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 190px; height: 280px; padding: 22px 20px;
  background: var(--sand); color: var(--ink);
  box-shadow: 0 30px 40px -20px rgba(0,0,0,.7);
}
.book-plain .eyebrow { font-size: 11px; color: var(--ink-soft); }
.book-plain .muted { color: var(--ink-soft); }
.book-caption { font-family: var(--display); font-size: 18px; line-height: 1.2; }
.section.dark .book-caption { color: var(--paper); }
.books.light { justify-content: flex-start; margin-top: 8px; }
.books.light .book.has-cover img, .books.light .book-plain { box-shadow: 0 24px 36px -22px rgba(0,0,0,.45); }

/* О поэте */
.about { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; padding: 80px 0 96px; align-items: start; }
.about-side { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 28px; }
.facts { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dd { margin: 0; }
.about-main h1 { font-size: 64px; margin: 12px 0 32px; }
.about-main .sub { font-size: 32px; margin: 56px 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.prose { display: flex; flex-direction: column; gap: 20px; font-size: 20px; line-height: 1.6; text-wrap: pretty; }
.fact-list, .source-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fact-list li, .source-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.source-list a { border-bottom: 1px solid var(--rule); }
.event { margin: 48px 0 0; display: flex; flex-direction: column; gap: 12px; }
.event img { width: 100%; max-height: 560px; object-fit: cover; object-position: center 30%; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .about-side { position: static; }
  .about-side .portrait { max-width: 360px; }
  .about-main h1 { font-size: 44px; }
}

