@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/prata-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/prata-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/golos-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/golos-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light;
  --paper: #f7f2e9;
  --white: #fffaf1;
  --ink: #251f1b;
  --muted: #605750;
  --wine: #421e24;
  --accent: #842e38;
  --light-accent: #efd0ad;
  --line: #d9cdbd;
  --heading: Prata, Georgia, 'Times New Roman', serif;
  --body: 'Golos Text', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--body); }
img { display: block; width: 100%; }
figure, p, h1, h2, h3, ol { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, summary:focus-visible { outline: 2px solid #a65a2c; outline-offset: 5px; }
.wrap { width: min(90%, 1340px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; }
h2 { font-size: clamp(2.15rem, 4.7vw, 4.6rem); line-height: 1.12; letter-spacing: -.045em; }
h3 { font-size: clamp(1.38rem, 2.25vw, 2.15rem); line-height: 1.19; letter-spacing: -.037em; }
section[id] { scroll-margin-top: 1.5rem; }
.skip { position: absolute; z-index: 2; top: .5rem; left: .5rem; padding: .5rem 1rem; background: var(--white); transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; font-size: .94rem; line-height: 1.15; font-weight: 700; }
.brand span span { display: block; margin-top: .22rem; font-family: var(--heading); font-size: .97rem; font-weight: 400; }
.mark { display: grid; place-items: center; width: 45px; height: 45px; background: var(--wine); color: var(--white); font: 1.6rem/1 var(--heading); }
nav { display: flex; align-items: center; gap: clamp(1rem, 3.4vw, 3rem); font-size: .94rem; }
nav a { text-decoration: none; }
nav a:hover, .text-link:hover, .footer a:hover { color: var(--accent); text-decoration: underline; }
.button { display: inline-flex; width: fit-content; min-height: 46px; align-items: center; justify-content: center; padding: .73rem 1.2rem; border: 1px solid transparent; font-size: .94rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; transition: background-color .16s, color .16s, border-color .16s; }
.outline { border-color: var(--accent); color: var(--accent); }
.outline:hover { background: var(--accent); color: white; }
.primary { background: var(--light-accent); color: var(--ink); }
.primary:hover { background: var(--white); }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 700; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; }

.hero { display: grid; grid-template-columns: 1.08fr 1fr; min-height: clamp(465px, 45vw, 670px); margin-block: clamp(1rem, 3vw, 2.65rem); background: var(--wine); color: var(--white); }
.hero-copy { align-self: center; padding: clamp(2rem, 5vw, 5.8rem) clamp(1.25rem, 4.6vw, 5.6rem); }
.hero .eyebrow, .visit .eyebrow { color: var(--light-accent); }
h1 { margin: 1.25rem 0 1.55rem; font-size: clamp(2rem, calc(5.5vw - 1.15rem), 5.15rem); line-height: 1.12; letter-spacing: -.045em; }
.intro { max-width: 36ch; color: #f3e5d8; margin-bottom: 1.85rem; font-size: clamp(1rem, 1.38vw, 1.23rem); }
.hero-photo { display: grid; position: relative; min-width: 0; min-height: 100%; background: #33251e; overflow: hidden; }
.hero-photo img { position: absolute; height: 100%; object-fit: cover; object-position: 49% center; filter: saturate(.71) contrast(.97); }
.hero-photo figcaption { position: relative; z-index: 1; align-self: end; padding: 1.75rem 1.3rem .85rem; background: linear-gradient(transparent, #22160fdb); color: #fffaf1; font-size: .875rem; }

.visit-strip { border-block: 1px solid var(--line); }
.strip-inner { display: grid; grid-template-columns: 1.25fr .85fr auto; align-items: center; gap: 1.25rem; padding-block: 1.25rem; }
.strip-inner .eyebrow { margin-bottom: .25rem; }
.strip-inner p + p { font-weight: 700; }
.strip-inner p a { text-decoration: none; }
.strip-inner p a:hover { text-decoration: underline; }
.text-link { display: inline-block; color: var(--accent); font-weight: 700; }

.section { padding-block: clamp(3.1rem, 7.2vw, 7.25rem); }
.section .eyebrow { margin-bottom: .85rem; }
.museum { display: grid; grid-template-columns: 1fr .89fr; align-items: start; gap: clamp(1.5rem, 7vw, 7rem); }
.section-copy p + p { margin-top: .95rem; }
.section-copy .text-link { margin-top: 1.1rem; }
.poet { background: #eee5d8; border-block: 1px solid var(--line); }
.poet-layout { display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(1.75rem, 8vw, 8rem); align-items: start; }
.portrait { max-width: 460px; }
.portrait img { aspect-ratio: 4/5; object-fit: cover; object-position: center 32%; filter: sepia(.12); }
.portrait figcaption { margin-top: .55rem; color: var(--muted); font-size: .875rem; }
.poet-intro { margin: 1rem 0 1.45rem; }
.timeline { list-style: none; padding: 0; margin-bottom: 1rem; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 4.15rem 1fr; gap: .75rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.timeline span { font-family: var(--heading); color: var(--accent); font-size: 1.12rem; }

.section-heading { margin-bottom: 1.75rem; }
.exhibits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.8vw, 2.7rem); }
.exhibit-photo { display: block; overflow: hidden; background: #d1bba1; }
.exhibit-photo img { aspect-ratio: 4/3; object-fit: cover; filter: saturate(.79); transition: transform .25s; }
.exhibit-photo:hover img { transform: scale(1.045); }
.exhibits h3 { margin: 1rem 0 .45rem; }
.exhibits p { color: var(--muted); max-width: 36ch; }
.visit { background: var(--wine); color: var(--white); }
.visit-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 8vw, 8rem); }
.visit address { font: normal clamp(1.2rem, 2.3vw, 2rem)/1.35 var(--heading); }
.visit p:not(.eyebrow) { max-width: 44ch; color: #f3e5d8; margin: .85rem 0 1.25rem; }
.visit-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.visit .outline { color: var(--white); border-color: #e0bb9b; }
.visit .outline:hover { color: var(--ink); background: var(--white); border-color: var(--white); }
.footer { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.25rem; font-size: .9rem; }
.footer > span { font-weight: 700; }
.footer summary { cursor: pointer; }
.footer ul { padding-left: 1.2rem; }

@media (max-width: 860px) {
  .header-inner { min-height: 75px; }
  .hero-copy { padding-inline: 1.45rem; }
  .poet-layout, .museum { gap: 2rem; }
  .strip-inner { grid-template-columns: 1.2fr 1fr; }
  .strip-inner > .text-link { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .wrap { width: min(92%, 1340px); }
  .header-inner { flex-wrap: wrap; padding-block: .8rem; gap: .75rem; }
  .header-inner nav { order: 1; width: 100%; justify-content: space-between; gap: .65rem; padding-top: .55rem; border-top: 1px solid var(--line); }
  .header-inner .button { padding-inline: .68rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; margin-block: .85rem 1.25rem; }
  .hero-copy { padding-block: 2.2rem; }
  h1 { font-size: clamp(2rem, 8.8vw, 4.6rem); margin-block: .85rem 1rem; }
  .hero-photo { min-height: 0; aspect-ratio: 5/4; }
  .intro { margin-bottom: 1.35rem; }
  .museum, .poet-layout, .visit-layout, .exhibits { grid-template-columns: 1fr; }
  .portrait { max-width: min(100%, 23rem); }
  .exhibits { gap: 1.85rem; }
  .footer { flex-direction: column; }
}

@media (max-width: 430px) {
  .strip-inner { grid-template-columns: 1fr; gap: .9rem; }
  .brand { gap: .48rem; }
  .mark { width: 36px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
