﻿:root {
  --paper: #fbf8f3;
  --paper-2: #f3eee5;
  --ink: #1f2328;
  --muted: #6b6f76;
  --line: #e4ddd1;
  --accent: #2b5d7c;
  --accent-soft: #dfe9ef;
  --nacre: radial-gradient(circle at 30% 30%, #ffffff 0%, #f1ece4 45%, #d9cfc2 75%, #bfb3a4 100%);
  --serif-display: "Cormorant Garamond", "Times New Roman", serif;
  --serif-text: "Literata", Georgia, serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(31, 35, 40, 0.04), 0 8px 28px rgba(31, 35, 40, 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15171a;
    --paper-2: #1c1f23;
    --ink: #ebe6dd;
    --muted: #9aa0a6;
    --line: #2c3036;
    --accent: #8fbcd6;
    --accent-soft: #1f2d36;
    --nacre: radial-gradient(circle at 30% 30%, #ffffff 0%, #d9d2c6 40%, #8f877c 80%, #5d564d 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #15171a;
  --paper-2: #1c1f23;
  --ink: #ebe6dd;
  --muted: #9aa0a6;
  --line: #2c3036;
  --accent: #8fbcd6;
  --accent-soft: #1f2d36;
  --nacre: radial-gradient(circle at 30% 30%, #ffffff 0%, #d9d2c6 40%, #8f877c 80%, #5d564d 100%);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }

:root { --head-h: 64px; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 3rem); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); font-family: var(--serif-display); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.pearl { width: 22px; height: 22px; border-radius: 50%; background: var(--nacre); box-shadow: inset -2px -3px 6px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.15); flex: none; }
.brand small { display: block; font-family: var(--sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 1.25rem; margin-left: auto; font-size: 0.92rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); text-decoration: none; }
.tools { display: flex; gap: 0.5rem; align-items: center; }
.chip {
  font: 500 0.8rem/1 var(--sans);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 2.5rem; }
.hero .wrap { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); filter: grayscale(1) contrast(1.05); box-shadow: var(--shadow); display: block; }
.portrait figcaption { margin-top: 0.6rem; font-size: 0.8rem; color: var(--muted); }
.portrait.poet { max-width: 240px; justify-self: center; }
.portrait.poet img { aspect-ratio: auto; filter: grayscale(0.2); }
.hero .wrap.no-portrait { grid-template-columns: 1fr; }
.lede p { margin: 0 0 0.8rem; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.hero h1 { font-family: var(--serif-display); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; margin: 0; letter-spacing: -0.01em; }
.hero .alt { font-family: var(--serif-display); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--muted); margin: 0.6rem 0 1.4rem; }
.lede { font-family: var(--serif-text); font-size: 1.08rem; line-height: 1.7; max-width: 38rem; margin: 0 0 1.6rem; }
.facts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.8rem; padding: 0; list-style: none; }
.facts li { font-size: 0.85rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font: 600 0.92rem/1 var(--sans); padding: 0.85rem 1.25rem; border-radius: 12px; border: 1px solid var(--accent); }
.btn.primary { background: var(--accent); color: var(--paper); }
.btn.ghost { color: var(--accent); }
.btn:hover { text-decoration: none; filter: brightness(1.08); }

/* Sections */
.section { padding: 3rem 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { font-family: var(--serif-display); font-size: 2rem; font-weight: 600; margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Contents */
.toc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; counter-reset: poem; }
.toc li { counter-increment: poem; display: grid; grid-template-columns: 2.2rem 1fr 1fr; gap: 1rem; align-items: baseline; padding: 0.6rem 0.25rem; border-bottom: 1px solid var(--line); }
.toc li::before { content: counter(poem, decimal-leading-zero); font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc .ru { font-family: var(--serif-text); color: var(--ink); }
.toc .en { font-family: var(--serif-display); font-style: italic; font-size: 1.05rem; color: var(--muted); }
.toc li:hover { background: var(--paper-2); }
.toc li.here .ru::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 0.45rem; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.legend { margin-top: 1rem; font-size: 0.82rem; color: var(--muted); }
.legend i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 0.35rem; vertical-align: middle; }

/* Reading mode */
.reader-bar { position: sticky; top: var(--head-h); z-index: 10; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.reader-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.reader-bar span { font-size: 0.85rem; color: var(--muted); }
.segmented { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); }
.segmented button { font: 500 0.85rem/1 var(--sans); border: 0; background: transparent; color: var(--muted); padding: 0.55rem 0.9rem; border-radius: 9px; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }

/* Poems */
.poem { padding: 3.5rem 0; border-bottom: 1px solid var(--line); }
.poem-head { margin-bottom: 2rem; }
.poem-head h2 { font-family: var(--serif-display); font-weight: 600; font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.1; margin: 0; }
.poem-up, .poem-copy, .poem-nav { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; margin-left: 0.6rem; padding: 0; vertical-align: 0.35em; background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.poem-nav.prev { margin-left: 0; margin-right: 0.6rem; }
.poem-nav + .poem-up { margin-left: 0.35rem; }
.label .poem-copy { width: 1.6rem; height: 1.6rem; margin-left: 0.5rem; vertical-align: middle; }
.label .poem-copy svg { width: 0.85rem; height: 0.85rem; }
.poem-up:hover, .poem-copy:hover, .poem-nav:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.poem-copy.done { color: #2e8b57; border-color: #2e8b57; }
.poem-up svg, .poem-copy svg, .poem-nav svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.poem-head .en-title { font-family: var(--serif-display); font-style: italic; font-size: 1.3rem; color: var(--muted); margin: 0.3rem 0 0; }
.parallel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.col .label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.verse { font-family: var(--serif-text); font-size: 1.08rem; line-height: 1.75; }
.col-en .verse { font-family: var(--serif-display); font-size: 1.22rem; line-height: 1.6; }
.stanza { white-space: pre-line; margin: 0 0 1.3em; }
.stanza.indent { padding-left: 1.75em; }
.verse .subtitle { font-style: italic; color: var(--muted); margin: 0 0 1.2em; }
.parallel.single { grid-template-columns: minmax(0, 36rem); }
main[data-mode="ru"] .parallel.single .col-en,
main[data-mode="en"] .parallel.single .col-ru { display: block; }
.verse .part { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 1.8em 0 0.6em; }
.verse .note { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.6rem; margin-top: 1.5rem; }
.illus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 820px; margin: -0.5rem 0 2.5rem; }
.illus img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
.credit { margin-top: 1.25rem; font-size: 0.85rem; color: var(--muted); }
.credit b { color: var(--ink); font-weight: 600; }
.verse .credit.mid { margin: 0 0 2.4rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }

main[data-mode="ru"] .col-en,
main[data-mode="en"] .col-ru { display: none; }
main[data-mode="ru"] .parallel,
main[data-mode="en"] .parallel { grid-template-columns: minmax(0, 36rem); justify-content: center; }

/* Biography */
.bio { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.bio p { font-family: var(--serif-text); font-size: 1.05rem; line-height: 1.75; margin: 0 0 1.1rem; }
.timeline { list-style: none; padding: 0; margin: 1.5rem 0 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1rem 1.25rem; font-size: 0.95rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--nacre); box-shadow: 0 0 0 3px var(--paper); }
.timeline b { font-variant-numeric: tabular-nums; margin-right: 0.4rem; }
.bio figure { margin: 0; }
.bio figure img { width: 100%; border-radius: var(--radius); filter: grayscale(0.4); box-shadow: var(--shadow); display: block; }
.bio figcaption { margin-top: 0.5rem; font-size: 0.8rem; color: var(--muted); }

.bio-text { max-width: 46rem; }
.bio-text p, .bio-text li { font-family: var(--serif-text); font-size: 1.05rem; line-height: 1.75; }
.bio-text h3, .bio-text h4 { font-family: var(--serif-display); font-size: 1.35rem; font-weight: 600; margin: 1.6rem 0 0.4rem; }

.video { margin: 1.25rem 0 0; max-width: 46rem; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #111; box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: 0.55rem; font-size: 0.85rem; color: var(--muted); }
#video { scroll-margin-top: 4rem; }

/* Poets index */
.section.first { border-top: 0; }
.poets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.75rem; }
.poets a { display: flex; flex-direction: column; gap: 0.15rem; height: 100%; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--paper); }
.poets a:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); }
.poets b { font-family: var(--serif-text); font-weight: 500; font-size: 1.05rem; }
.poets .en { font-family: var(--serif-display); font-style: italic; color: var(--muted); }
.poets .meta { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }

/* Catalog */
[hidden] { display: none !important; }
.nav a[aria-current="page"] { color: var(--ink); }
.cat-bar { position: sticky; top: var(--head-h); z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding: 0.75rem 0; margin-bottom: 1.75rem; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.cat-tabs { flex-wrap: wrap; }
.cat-search { flex: 0 1 280px; min-width: 0; font: 400 0.95rem/1.2 var(--sans); padding: 0.6rem 0.9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.cat-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cat-today { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 1.25rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); font-size: 0.95rem; }
.cat-empty { color: var(--muted); }
.letters { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 2rem; }
.letters a { min-width: 2.1rem; height: 2.1rem; padding: 0 0.55rem; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); font: 500 0.85rem/1 var(--sans); color: var(--ink); }
.letters a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.cat-group { margin: 0 0 2.25rem; scroll-margin-top: 10rem; }
.cat-group h3 { font-family: var(--serif-display); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--accent); margin: 0 0 0.4rem; padding-bottom: 0.45rem; border-bottom: 1px solid var(--line); }
.cat-group h3 small { font-family: var(--sans); font-size: 0.8rem; font-weight: 500; color: var(--muted); margin-left: 0.4rem; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); column-gap: 2.5rem; }
.cat-list a { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 0.85rem; align-items: center; padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.cat-list a:hover { background: var(--paper-2); text-decoration: none; }
.cat-list .ph { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: top; filter: grayscale(0.35); background: var(--nacre); display: grid; place-items: center; font: 600 1.1rem/1 var(--serif-display); color: #6b6f76; box-shadow: 0 0 0 1px var(--line); }
.cat-list .nm { min-width: 0; }
.cat-list .nm b { display: block; font-family: var(--serif-text); font-weight: 500; font-size: 1.02rem; line-height: 1.3; }
.cat-list .nm i { display: block; font-family: var(--serif-display); font-size: 1rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-list .yrs { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.cat-list .yrs small { display: block; font-size: 0.72rem; opacity: 0.8; }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.month { margin: 0; padding: 1.1rem 1.2rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.month h3 { font-size: 1.6rem; }
.month ul { list-style: none; margin: 0; padding: 0; }
.month li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 0.6rem; align-items: baseline; padding: 0.45rem 0.3rem; border-bottom: 1px solid var(--line); }
.month li:last-child { border-bottom: 0; }
.month .day { font: 600 0.95rem/1 var(--sans); color: var(--accent); font-variant-numeric: tabular-nums; }
.month a { font-family: var(--serif-text); color: var(--ink); }
.month .yrs { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.month li.today { background: var(--accent-soft); border-radius: 8px; }
.prizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; align-items: start; }
.prize > p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.88rem; }
.prize ol { list-style: none; margin: 0; padding: 0; }
.prize li { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 0.75rem; padding: 0.45rem 0.25rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.prize li.on { color: var(--ink); }
.prize li.on .yr::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 0.45rem; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.prize .yr { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.prize .what { font-family: var(--serif-display); font-size: 1.08rem; line-height: 1.35; }
.prize .what small, .prize .what .site { display: block; font-family: var(--sans); font-size: 0.8rem; }
.prize .what small { color: var(--muted); }
.prize .site a { font-weight: 500; }
.legend { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.85rem; }
.legend i { display: inline-block; width: 6px; height: 6px; margin-right: 0.5rem; border-radius: 50%; background: var(--accent); vertical-align: middle; }

/* Articles */
.art-head { max-width: 46rem; margin: 0 auto 2.25rem; }
.art-head.wide { max-width: none; margin: 0 0 2.25rem; }
.art-head .eyebrow a { color: inherit; }
.art-head h1 { font-family: var(--serif-display); font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.06; letter-spacing: -0.01em; margin: 0; }
.art-head h1 .num { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-right: 0.4em; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 0.5em/1 var(--sans); vertical-align: 0.3em; }
.art-head .alt { font-family: var(--serif-display); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--muted); margin: 0.6rem 0 0; }
.art-head .meta { margin: 1rem 0 0; font-size: 0.85rem; color: var(--muted); }
.series-nav { max-width: 46rem; margin: 0 auto 2.5rem; padding: 0.9rem 1.1rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.series-nav p { margin: 0 0 0.6rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.series-nav ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.series-nav a { display: inline-block; padding: 0.32rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 0.85rem; }
.series-nav a:hover { border-color: var(--accent); text-decoration: none; }
.series-nav a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.essay-note { max-width: 46rem; margin: 0 auto 2rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); font-size: 0.92rem; color: var(--muted); }
.essay { max-width: 46rem; margin: 0 auto; font-family: var(--serif-text); font-size: 1.1rem; line-height: 1.75; overflow-wrap: break-word; }
.essay p { margin: 0 0 1.1em; }
.essay h2 { font-family: var(--serif-display); font-size: 1.9rem; font-weight: 600; line-height: 1.15; margin: 2.4rem 0 0.8rem; }
.essay h3 { font-family: var(--serif-display); font-size: 1.5rem; font-weight: 600; line-height: 1.2; margin: 2.2rem 0 0.6rem; }
.essay hr { border: 0; height: 1px; width: 40%; margin: 2.5rem auto; background: var(--line); }
.essay a { text-decoration: underline; text-decoration-color: var(--accent-soft); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.essay a:hover { text-decoration-color: var(--accent); }
.essay .verse { margin: 1.3em 0 1.5em; padding: 0.1em 0 0.1em 1.25rem; border-left: 2px solid var(--accent-soft); font-size: 1.04rem; line-height: 1.65; }
.essay[lang="en"] .verse, .essay .verse[lang="en"] { font-family: var(--serif-display); font-size: 1.15rem; }
.essay img { max-width: 100%; height: auto; vertical-align: middle; }
.essay blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 2px solid var(--line); color: var(--muted); }
.essay table { width: 100%; margin: 1.5rem 0 2rem; border-collapse: collapse; font-size: 0.98rem; line-height: 1.6; }
.essay td, .essay th { vertical-align: top; padding: 0.45rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; }
.essay table.pair { border-collapse: separate; border-spacing: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.essay table.pair td { padding: 1rem 1.2rem; border: 0; border-top: 1px solid var(--line); }
.essay table.pair tr:first-child td { border-top: 0; }
.essay table.pair td + td { border-left: 1px solid var(--line); }
.essay table.pair .verse { margin: 0; padding: 0; border: 0; }
.essay table.pair p { margin: 0 0 0.6em; }
.essay-pager { max-width: 46rem; margin: 3.5rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.essay-pager a { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.essay-pager a:hover { border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; }
.essay-pager small { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.essay-pager span { font-family: var(--serif-display); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.essay-pager .next { grid-column: 2; text-align: right; }
.art-list { list-style: none; margin: 0; padding: 0; max-width: 56rem; }
.art-list > li { border-bottom: 1px solid var(--line); }
.art-list .row { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: 1rem 0.5rem; color: var(--ink); }
.art-list .row:hover { background: var(--paper-2); text-decoration: none; }
.art-list .n { font: 500 0.8rem/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.art-list b { display: block; font-family: var(--serif-display); font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.art-list b em { font-family: var(--sans); font-size: 0.7rem; font-style: normal; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-left: 0.4rem; vertical-align: 0.25em; }
.art-list i { display: block; margin-top: 0.2rem; font-family: var(--serif-text); font-style: normal; font-size: 0.95rem; color: var(--muted); }
.art-list .m { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.art-list .art-extra .row { padding-top: 0.6rem; padding-bottom: 0.8rem; }
.art-list .art-extra b { font-size: 1.1rem; }
.art-list .art-extra b::before { content: "↳ "; color: var(--muted); }
.art-series { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 1.1rem 0.5rem 1.3rem; }
.art-series ol { list-style: none; margin: 0.8rem 0 0; padding: 0; border-left: 2px solid var(--accent-soft); }
.art-series ol a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.42rem 0.9rem; color: var(--ink); font-family: var(--serif-text); font-size: 1.02rem; }
.art-series ol a:hover { background: var(--paper-2); text-decoration: none; }
.art-other { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.75rem; }
.art-other a { display: flex; flex-direction: column; gap: 0.2rem; height: 100%; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.art-other a:hover { border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; }
.art-other b { font-family: var(--serif-text); font-weight: 500; font-size: 1.02rem; line-height: 1.35; }
.art-other span { font-size: 0.8rem; color: var(--muted); }
.section-head.sub h2 { font-size: 1.5rem; }

/* Gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.gallery a { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); color: #fff; }
.gallery a:hover { text-decoration: none; }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; filter: grayscale(0.25); transition: filter 0.25s, transform 0.35s; }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 0.7rem 0.6rem; background: linear-gradient(transparent, rgba(0, 0, 0, 0.82)); opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
.gallery .cap b { display: block; font-family: var(--serif-text); font-weight: 500; font-size: 0.95rem; line-height: 1.25; }
.gallery .cap small { display: block; font-size: 0.75rem; opacity: 0.85; font-variant-numeric: tabular-nums; }
.gallery a:hover img, .gallery a:focus-visible img { filter: none; transform: scale(1.03); }
.gallery a:hover .cap, .gallery a:focus-visible .cap { opacity: 1; transform: none; }
@media (hover: none) { .gallery .cap { opacity: 1; transform: none; } }

/* Selection */
.nav-count { display: inline-block; min-width: 1.35rem; margin-left: 0.35rem; padding: 0.1rem 0.4rem; border-radius: 999px; background: var(--accent); color: var(--paper); font-size: 0.72rem; font-weight: 600; line-height: 1.2; text-align: center; vertical-align: 0.1em; }
.poem-pick, .poem-link { margin-top: 0.8rem; margin-right: 0.45rem; font: 500 0.82rem/1 var(--sans); padding: 0.5rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.poem-pick:hover, .poem-link:hover { color: var(--accent); border-color: var(--accent); }
.poem-pick[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.sel-empty p { font-family: var(--serif-text); font-size: 1.05rem; max-width: 38rem; }
.sel-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1rem; color: var(--muted); font-size: 0.88rem; }
.sel-list { list-style: none; margin: 0 0 2.5rem; padding: 0; border-top: 1px solid var(--line); }
.sel-list li { display: grid; grid-template-columns: 1.2rem 2rem minmax(0, 1fr) repeat(3, 2rem); align-items: center; gap: 0.5rem; padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.sel-list li.dragging { opacity: 0.4; }
.sel-list li.drop-target { box-shadow: inset 0 3px 0 var(--accent); }
.sel-handle { color: var(--muted); cursor: grab; user-select: none; letter-spacing: -0.2em; }
.sel-num { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; text-align: right; }
.sel-item a { font-family: var(--serif-text); font-size: 1.05rem; color: var(--ink); }
.sel-item small { display: block; color: var(--muted); font-size: 0.82rem; }
.sel-op { width: 2rem; height: 2rem; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 0.9rem; }
.sel-op:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.sel-op:disabled { opacity: 0.35; cursor: default; }
.sel-out { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.sel-out h3 { font-family: var(--serif-display); font-size: 1.5rem; font-weight: 600; margin: 0 0 0.4rem; }
.sel-out > p { margin: 0 0 1.2rem; color: var(--muted); font-size: 0.92rem; }
.sel-field { display: grid; gap: 0.35rem; margin-bottom: 1rem; font-size: 0.85rem; color: var(--muted); }
.sel-title { max-width: 26rem; font: 400 1rem/1.2 var(--sans); padding: 0.6rem 0.9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.sel-title:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sel-mode { margin-bottom: 1.2rem; flex-wrap: wrap; }
.sel-out .actions button { cursor: pointer; background: transparent; }
.sel-out .actions .btn.primary { background: var(--accent); }
.sel-foot { margin-top: 1.5rem; }

/* Search */
.search-input { width: 100%; max-width: 44rem; font: 400 1.05rem/1.3 var(--sans); padding: 0.85rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-hint { margin: 0.6rem 0 2rem; color: var(--muted); font-size: 0.85rem; }
.search-group { margin: 2rem 0 0.6rem; font: 600 0.78rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.search-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.search-list li { padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--line); }
.search-list a { font-family: var(--serif-text); font-size: 1.08rem; color: var(--ink); }
.search-list small { display: block; color: var(--muted); font-size: 0.82rem; }
.search-snippet { margin-top: 0.3rem; font-family: var(--serif-text); font-size: 0.95rem; color: var(--muted); }
.search-list mark { background: var(--accent-soft); color: var(--ink); border-radius: 3px; padding: 0 0.1em; }
.search-empty, .search-more { color: var(--muted); }

/* QR */
.qr-dialog { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); max-width: calc(100vw - 2rem); }
.qr-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.qr-box { width: 21rem; max-width: 100%; padding: 1.5rem; text-align: center; }
.qr-title { margin: 0 0 1rem; font-family: var(--serif-display); font-size: 1.4rem; font-weight: 600; }
.qr-tabs { display: inline-flex; margin-bottom: 1rem; padding: 3px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); }
.qr-tabs[hidden] { display: none; }
.qr-tabs button { font: 500 0.85rem/1 var(--sans); border: 0; background: transparent; color: var(--muted); padding: 0.55rem 0.9rem; border-radius: 9px; cursor: pointer; }
.qr-tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.qr-code svg { display: block; width: 100%; max-width: 16rem; margin: 0 auto; border-radius: 8px; }
.qr-url { display: block; margin: 0.8rem 0 0.3rem; font-size: 0.85rem; word-break: break-all; }
.qr-hint { margin: 0 0 1.1rem; color: var(--muted); font-size: 0.82rem; }
.qr-close { font: 500 0.85rem/1 var(--sans); padding: 0.6rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.qr-close:hover { border-color: var(--accent); color: var(--accent); }

/* Sonnets */
.son-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(3.1rem, 1fr)); gap: 0.4rem; }
.son-grid a { position: relative; display: grid; place-items: center; height: 2.6rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font: 500 0.92rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.son-grid a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.son-grid a.v::after { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.son-nums { display: flex; flex-wrap: wrap; gap: 0.15rem 0.3rem; font: 500 0.82rem/1.9 var(--sans); font-variant-numeric: tabular-nums; }
.son-nums a { min-width: 2rem; text-align: center; border-radius: 6px; color: var(--muted); }
.son-nums a:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.series-nav.wide { max-width: none; margin: 0; }
.son-source { margin: 1rem 0 0; font-size: 0.85rem; color: var(--muted); }
.son-head { padding-bottom: 2rem; }
.sonnet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.sonnet-orig { position: sticky; top: calc(var(--head-h) + 4.5rem); border-bottom: 0; padding: 2.5rem 0; }
.sonnet-tr { padding: 2.5rem 0; scroll-margin-top: calc(var(--head-h) + 4rem); }
.sonnet-tr:last-child { border-bottom: 0; }
.sonnet-orig .poem-head, .sonnet-tr .poem-head { margin-bottom: 1.2rem; }
.sonnet-orig .poem-head h2, .sonnet-tr .poem-head h2 { font-size: 1.6rem; }
.sonnet-orig .poem-head h2 { color: var(--muted); font-style: italic; font-weight: 500; }
.poem-head.has-prev .en-title { margin-left: 2.5rem; }
.tr-note { margin-left: 0.6rem; font: 500 0.8rem/1 var(--sans); color: var(--muted); vertical-align: 0.3em; }
main.sonnet[data-mode="ru"] .sonnet-orig, main.sonnet[data-mode="en"] .sonnet-trs { display: none; }
main.sonnet[data-mode="ru"] .sonnet-grid, main.sonnet[data-mode="en"] .sonnet-grid { grid-template-columns: minmax(0, 36rem); justify-content: center; }
main.sonnet[data-mode="en"] .sonnet-orig { position: static; }
.verse .epigraph { white-space: pre-line; margin: 0 0 1.6em auto; max-width: 24rem; text-align: right; font-size: 0.92rem; font-style: italic; color: var(--muted); }
.verse .date { margin: 0 0 1em; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
@media (max-height: 760px) { .sonnet-orig { position: static; } }

/* Footer */
.site-footer { padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.88rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); font-size: 1.1rem; }
.to-top:hover { text-decoration: none; border-color: var(--accent); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { max-width: 280px; }
  .toc { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  :root { --head-h: 101px; }
  .site-header .wrap { flex-wrap: wrap; height: auto; gap: 0 1rem; }
  .brand { height: 60px; }
  .tools { margin-left: auto; }
  .nav { order: 3; flex: 1 1 100%; height: 40px; align-items: center; margin: 0 -1.25rem; padding: 0 1.25rem; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .nav::-webkit-scrollbar { display: none; }
  .prizes { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .parallel { grid-template-columns: 1fr; gap: 2rem; }
  .col-ru { order: -1; }
  .sonnet-grid { grid-template-columns: 1fr; gap: 0; }
  .sonnet-orig { position: static; border-bottom: 1px solid var(--line); }
  .son-grid { grid-template-columns: repeat(auto-fill, minmax(2.7rem, 1fr)); }
  .illus { grid-template-columns: 1fr; }
  .toc li { grid-template-columns: 2rem 1fr; }
  .toc .en { grid-column: 2; }
  .reader-bar span { display: none; }
  .brand small { display: none; }
  .cat-bar { gap: 0.5rem; padding: 0.5rem 0; }
  .cat-tabs { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tabs button { flex: 0 0 auto; white-space: nowrap; padding: 0.55rem 0.5rem; }
  .cat-search { flex: 1 1 100%; padding: 0.5rem 0.8rem; font-size: 16px; }
  .cat-list a { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 0.7rem; }
  .cat-list .nm i { white-space: normal; }
  .letters a { min-width: 2.3rem; height: 2.3rem; }
  .prize li { grid-template-columns: 5.6rem minmax(0, 1fr); }
  .cat-group { scroll-margin-top: 13.5rem; }
  .cat-list { grid-template-columns: 1fr; }
  .months { grid-template-columns: 1fr; }
  .essay { font-size: 1.05rem; }
  .series-nav ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -1.1rem; padding: 0 1.1rem; }
  .series-nav ol::-webkit-scrollbar { display: none; }
  .series-nav li { flex: 0 0 auto; }
  .essay table.pair, .essay table.pair tbody, .essay table.pair tr, .essay table.pair td { display: block; width: auto; }
  .essay table.pair td + td { border-left: 0; border-top: 1px dashed var(--line); }
  .essay table { display: block; overflow-x: auto; }
  .essay-pager { grid-template-columns: 1fr; }
  .essay-pager .next { grid-column: 1; }
  .art-list .row { grid-template-columns: 2rem minmax(0, 1fr); gap: 0.6rem; }
  .art-list .row .m { grid-column: 2; }
  .art-series { grid-template-columns: 2rem minmax(0, 1fr); gap: 0.6rem; }
  .art-list b { font-size: 1.25rem; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 0.6rem; }
  .gallery .cap { padding: 1.2rem 0.45rem 0.4rem; }
  .gallery .cap b { font-size: 0.8rem; }
  .gallery .cap small { font-size: 0.68rem; }
  .sel-list li { grid-template-columns: 1.6rem minmax(0, 1fr) repeat(3, 2rem); gap: 0.4rem; }
  .sel-handle { display: none; }
  .sel-out { padding: 1.1rem; }
  .sel-out .actions .btn { flex: 1 1 100%; justify-content: center; }
  .sel-title { font-size: 16px; }
}
