:root { color-scheme: dark; --ink: #101112; --paper: #f3efe7; --muted: #a4a29c; --line: #343533; --accent: #e2d4ae; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ink); scroll-padding-top: 100px; }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
button:disabled { opacity: .3; cursor: default; }
a { color: inherit; text-underline-offset: 5px; }
.masthead, .intro, .collection, .footer { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; padding-block: 32px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 25px; font-weight: 600; letter-spacing: -.06em; }
.languages { display: flex; gap: 2px; }
.languages button { background: transparent; border: 0; border-radius: 2px; min-width: 44px; min-height: 44px; padding: 8px; font-size: 13px; color: var(--muted); }
.languages button[aria-pressed="true"] { color: var(--paper); text-decoration: underline; text-underline-offset: 7px; }
.intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 80px; padding-block: 60px 66px; align-items: end; }
.intro-title, .intro-copy { min-width: 0; }
html[lang="ru"] .intro h1 { font-size: clamp(40px, 5vw, 72px); overflow-wrap: anywhere; }
.eyebrow { margin: 0 0 22px; font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--accent); line-height: 1.5; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(48px, 6.5vw, 88px); letter-spacing: -.045em; line-height: 1; }
.intro-copy { max-width: 440px; padding-bottom: 2px; }
.intro-copy p { margin: 0; line-height: 1.65; }
.intro-copy p + p { margin-top: 16px; }
.secondary { color: var(--muted); font-size: 16px; line-height: 1.6; }
.intro-copy .season-dates { margin-top: 27px; color: var(--muted); font-size: 13px; }
.collection-heading { border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-block: 22px 26px; }
h2 { font-size: 14px; font-weight: 500; margin: 0; }
.collection-heading p { font-size: 14px; color: var(--muted); margin: 0; }
.place-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 28px; }
.place-card { display: block; width: 100%; border: 0; background: none; padding: 0; text-align: left; }
.cover { overflow: hidden; aspect-ratio: 4 / 5; background: #1d1e1e; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.place-card:hover .cover img { transform: scale(1.025); opacity: .92; }
.card-caption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; }
.card-title { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 400; letter-spacing: -.025em; }
.card-date { font-size: 12px; color: var(--muted); }
.footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; padding-block: 24px 36px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }
.footer p { margin: 0; }
.empty { padding: 30px; color: var(--muted); text-align: center; }
.viewer-header { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 80px; padding: 12px 38px; background: rgba(16,17,18,.97); border-bottom: 1px solid var(--line); }
.private-view .viewer-header { grid-template-columns: 1fr auto; }
.private-view .viewer-title { display: block; justify-self: start; }
.private-view #back, .private-view #next-place-top, .private-view .sequence-footer { display: none; }
.text-button { border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 12px 0; min-height: 44px; justify-self: start; font-size: 14px; }
.text-button:hover:not(:disabled) { border-color: var(--paper); }
.viewer-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 22px; }
.viewer-tools { justify-self: end; display: flex; align-items: center; gap: 24px; }
#next-place-top { color: var(--accent); }
.position { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sequence-intro { width: min(840px, calc(100% - 80px)); margin: 64px auto 68px; padding-left: 44px; }
.sequence-intro h1 { font-size: clamp(42px, 6vw, 64px); }
.sequence-intro h1:focus { outline: none; }
.sequence-intro .secondary { font-size: 14px; margin: 20px 0 0; }
.sequence { position: relative; width: min(840px, calc(100% - 80px)); margin-inline: auto; padding-left: 44px; }
.sequence::before { position: absolute; content: ""; left: 0; top: 7px; bottom: 0; width: 1px; background: var(--line); }
.visit { position: relative; margin: 0 0 88px; scroll-margin-top: 108px; }
.visit::before { content: ""; position: absolute; left: -47px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--ink); }
.visit:last-child { margin-bottom: 0; }
.visit figcaption { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.visit-number { color: var(--accent); }
.photograph { display: flex; justify-content: center; align-items: flex-start; }
.photograph img { display: block; width: auto; height: auto; max-width: 100%; max-height: 78svh; background: #1d1e1e; }
.image-failure { min-height: 180px; display: grid; place-items: center; background: #1d1e1e; color: var(--muted); padding: 20px; text-align: center; }
.sequence-footer { width: min(840px, calc(100% - 80px)); margin: 0 auto; padding: clamp(112px, 18svh, 180px) 0 64px 44px; }
.sequence-footer nav { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 20px; }
@media (min-width: 1450px) { .intro { padding-top: 74px; padding-bottom: 76px; } }
@media (max-width: 900px) {
  .masthead, .intro, .collection, .footer { width: calc(100% - 64px); }
  .intro { gap: 36px; padding-block: 46px 52px; }
  .place-grid { gap: 30px 20px; }
  .card-caption { flex-wrap: wrap; gap: 6px; }
  .viewer-header { padding-inline: 24px; grid-template-columns: minmax(0, 1fr) auto; }
  .viewer-title { display: none; }
}
@media (max-width: 650px) {
  .masthead, .intro, .collection, .footer { width: calc(100% - 40px); }
  .masthead { padding-block: 16px; }
  .wordmark { font-size: 22px; }
  .intro { grid-template-columns: 1fr; gap: 26px; padding-block: 36px 38px; }
  h1 { font-size: clamp(48px, 13vw, 58px); }
  html[lang="ru"] .intro h1 { font-size: clamp(32px, 8.4vw, 54px); }
  .eyebrow { font-size: 12px; margin-bottom: 17px; letter-spacing: .1em; }
  .intro-copy { max-width: 100%; }
  .intro-copy .season-dates { margin-top: 20px; }
  .collection-heading { align-items: flex-start; flex-direction: column; gap: 7px; padding-block: 18px 22px; }
  .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 14px; }
  .card-title { font-size: 22px; }
  .card-date { font-size: 12px; }
  .footer { flex-direction: column; gap: 12px; margin-top: 40px; }
  .viewer-header { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "back next" "position language"; gap: 0 12px; padding: 8px 20px; min-height: 104px; }
  .private-view .viewer-header { grid-template-areas: "title language" "position language"; min-height: 88px; }
  .private-view .viewer-title { display: block; grid-area: title; font-size: 19px; }
  #back { grid-area: back; }
  #next-place-top { grid-area: next; justify-self: end; }
  #position { grid-area: position; align-self: center; }
  .viewer-tools .languages { grid-area: language; justify-self: end; }
  .viewer-title { display: none; }
  .viewer-tools { display: contents; }
  .viewer-tools .languages button { min-width: 44px; }
  .sequence-intro, .sequence, .sequence-footer { width: calc(100% - 40px); padding-left: 22px; }
  .sequence-intro { margin-block: 32px 40px; }
  .visit { margin-bottom: 56px; scroll-margin-top: 120px; }
  .visit::before { left: -25px; }
  .visit figcaption { margin-bottom: 14px; font-size: 12px; }
  .photograph img { max-height: 72svh; }
}
@supports (padding: max(0px)) {
  .viewer-header { padding-top: max(8px, env(safe-area-inset-top)); }
  .sequence-footer { padding-bottom: max(64px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
