@font-face {
  font-family: Prata;
  src: url('/assets/prata-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

@font-face {
  font-family: 'Golos Text';
  src: url('/assets/golos-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  color-scheme: dark;
  --paper: #1a1715;
  --ink: #f0e5d7;
  --quiet: #bfb0a1;
  --rust: #dfab88;
  --line: #5f5045;
  --gutter: clamp(1rem, 2.2vw, 2.5rem);
  --gap: clamp(.625rem, 1.5vw, 1.5rem);
  --display: Prata, Georgia, serif;
  --sans: 'Golos Text', system-ui, sans-serif;
  scrollbar-gutter: stable;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(ellipse at 72% -12%, #30241f 0%, transparent 64rem), var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .12;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, p, figure { margin: 0; }
img { display: block; width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 5px; }
#main:focus { outline: none; }

.shell {
  width: min(96rem, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset: .75rem auto auto .75rem;
  transform: translateY(-160%);
  z-index: 20;
  padding: .65rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus { transform: none; }

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  pointer-events: none;
  transition: transform .3s ease;
}

.masthead.is-hidden:not(:focus-within) { transform: translateY(-110%); }

.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .75rem;
  width: min(90rem, calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding-block: 1.25rem;
}

.wordmark, .nav, .locale { pointer-events: auto; }

.wordmark {
  justify-self: start;
  color: var(--ink);
  font: 400 .95rem/1.2 var(--display);
  text-shadow: 0 1px 6px #140e0c, 0 1px 12px #140e0c;
  padding-block: .65rem;
}

.nav, .locale {
  display: flex;
  align-items: center;
  padding: .2rem;
  background-color: #211b18f2;
  border: 1px solid var(--line);
  border-radius: 5rem;
  white-space: nowrap;
}

.nav a, .locale a, .locale span {
  display: inline-grid;
  place-items: center;
  min-height: 2.5rem;
  padding: .4rem clamp(.72rem, 1.65vw, 1.55rem);
  color: var(--quiet);
  border-radius: 4rem;
  font-size: .81rem;
  line-height: 1.2;
}

.nav a[aria-current], .locale span { color: var(--ink); background: #49382d; }
.locale { justify-self: end; }
.locale a, .locale span { font-size: .72rem; min-width: 2.5rem; padding-inline: .45rem; }
.nav a:hover, .locale a:hover, .wordmark:hover { color: var(--rust); }

main { padding-top: clamp(7.25rem, 8vw, 7.5rem); }

.eyebrow, .index-line, .text-link {
  color: var(--quiet);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .115em;
  line-height: 1.45;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.eyebrow { color: var(--rust); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 1em;
  width: fit-content;
  min-height: 2.75rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.text-link:hover, .breadcrumb:hover { color: var(--rust); border-color: var(--rust); }
.text-link span { font: 400 1rem/1 var(--sans); color: var(--rust); }

.hero, .feature-grid, .wall, .series-index, .story {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.hero {
  position: relative;
  isolation: isolate;
  align-items: start;
}

.hero-kicker { grid-area: 1 / 1 / 2 / -1; }
.hero-title {
  position: relative;
  z-index: 1;
  grid-area: 2 / 1 / 3 / -1;
  align-self: start;
  width: max-content;
  margin: .11em 0 -.16em -.051em;
  font: 400 min(26.75vw, 26rem)/.88 var(--display);
  letter-spacing: -.083em;
}

.hero-title span {
  display: block;
  margin: 0 0 .48em .49em;
  font-size: .178em;
  letter-spacing: -.065em;
  line-height: 1.1;
}

.hero-frame {
  position: relative;
  z-index: 2;
  align-self: start;
  transform: translateY(var(--drift, 0px));
}

.hero-frame:nth-of-type(1) { grid-column: span 4; }
.hero-frame:nth-of-type(2) { grid-column: span 4; margin-top: clamp(.75rem, 1.5vw, 1.5rem); }
.hero-frame:nth-of-type(3) { grid-column: span 4; margin-top: clamp(.35rem, .75vw, .75rem); }

.hero-end {
  display: flex;
  grid-area: 4 / 1 / 5 / -1;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  margin-top: clamp(.85rem, 1.5vw, 1.25rem);
  padding-block: .65rem;
  border-top: 1px solid var(--line);
}

.hero-placeholder {
  grid-column: 1 / -1;
  min-height: 10rem;
}

.frame { min-width: 0; position: relative; }
.frame-link, .series-cover { display: block; background: #2b221e; }
.frame-link:hover, .series-link:hover .series-cover { filter: brightness(1.08); }

.frame figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.2rem;
  margin-top: .55rem;
  overflow-wrap: anywhere;
}

.frame figcaption span:first-child { color: var(--rust); }

.feature {
  margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
}

.feature > h2 {
  padding-block: .75rem;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(1rem, 2vw, 1.75rem);
}

.feature-grid {
  row-gap: clamp(1.5rem, 2vw, 2rem);
  align-items: end;
}

.feature-frame:nth-child(4n + 1) { grid-column: 1 / 8; }
.feature-frame:nth-child(4n + 2) { grid-column: 8 / 13; }
.feature-frame:nth-child(4n + 3) { grid-column: 1 / 6; }
.feature-frame:nth-child(4n) { grid-column: 6 / 13; }
.feature-frame:last-child:nth-child(odd) { grid-column: 3 / 10; }

.feature .frame figcaption {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  margin-top: .3rem;
}

.wall .frame figcaption,
.story .frame figcaption {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  margin-top: .12rem;
  font-size: .62rem;
  line-height: 1.2;
}

.page-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem) var(--gap);
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: .9rem 0 clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
}

.page-heading .eyebrow { grid-column: 1 / -1; }

.page-heading h1 {
  font: 400 clamp(2.45rem, 8.4vw, 9rem)/1 var(--display);
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}

.page-heading .index-line { text-align: right; padding-bottom: .3em; }
.breadcrumb { display: inline-flex; align-items: center; min-height: 2.75rem; }

.wall {
  row-gap: clamp(.875rem, 1.4vw, 1.25rem);
  align-items: end;
}

.wall-frame { grid-column: span 4; }
.wall-frame:nth-child(8n + 7) { grid-column: span 7; }
.wall-frame:nth-child(8n) { grid-column: span 5; }
.wall-frame.square { grid-column: span 4; }
.wall-frame.landscape { grid-column: span 6; }

.series-index {
  row-gap: clamp(1.25rem, 2vw, 2rem);
  align-items: end;
}

.series-card:nth-child(4n + 1) { grid-column: 1 / 8; }
.series-card:nth-child(4n + 2) { grid-column: 8 / 13; }
.series-card:nth-child(4n + 3) { grid-column: 1 / 6; }
.series-card:nth-child(4n) { grid-column: 6 / 13; }

.series-link { display: block; }
.series-card-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(.55rem, 1.4vw, 1.5rem);
  align-items: baseline;
  margin-top: .55rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--line);
}

.series-card-meta h2 {
  font: 400 clamp(1.25rem, 2.5vw, 2.7rem)/1.18 var(--display);
  letter-spacing: -.047em;
  overflow-wrap: anywhere;
}

.series-arrow { color: var(--rust); }
.series-link:hover .series-card-meta { border-color: var(--rust); }

.story {
  row-gap: clamp(.875rem, 1.4vw, 1.25rem);
  align-items: end;
}

.story-frame:nth-child(4n + 1) { grid-column: 1 / 8; }
.story-frame:nth-child(4n + 2) { grid-column: 8 / 13; }
.story-frame:nth-child(4n + 3) { grid-column: 1 / 6; }
.story-frame:nth-child(4n) { grid-column: 6 / 13; }

.placeholder {
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #362b25, #221b18 65%, #2a221e);
  border: 1px solid var(--line);
}

.empty-state {
  display: grid;
  width: min(100%, 28rem);
  grid-template-columns: minmax(5rem, 10rem) minmax(0, 1fr);
  gap: var(--gap);
  align-items: end;
  color: var(--quiet);
}

.end-link {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(2rem, 3.5vw, 3rem);
}

.footer {
  margin-top: clamp(3.5rem, 6vw, 6rem);
  padding-block: clamp(2rem, 5vw, 5rem) clamp(3rem, 7vw, 7rem);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr minmax(0, 1.15fr) auto;
  gap: clamp(1.5rem, 6vw, 6rem);
}

.footer-name {
  font: 400 clamp(1.65rem, 3.65vw, 4rem)/1.1 var(--display);
  letter-spacing: -.055em;
}

.footer h2 { margin-bottom: .65rem; }
.bio { max-width: 36ch; color: var(--quiet); }
.social { display: grid; }

@media (prefers-reduced-motion: no-preference) {
  .has-entered { animation: enter .65s cubic-bezier(.22, .65, .25, 1) both; }

  @keyframes enter {
    from { opacity: .55; transform: translateY(1.15rem); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .masthead { transition: none; }
  .hero-frame { transform: none; }
}

@media (max-width: 900px) {
  .wall-frame, .wall-frame.square { grid-column: span 6; }
  .wall-frame.landscape { grid-column: span 12; }
  .footer-inner { gap: 1.5rem 2.5rem; }
}

@media (max-width: 620px) {
  :root { --gutter: 1rem; --gap: .625rem; }
  .masthead-inner { grid-template-columns: 1fr auto; padding-block: .6rem; gap: .55rem; }
  .wordmark { grid-area: 1 / 1 / 2 / 2; font-size: .9rem; }
  .locale { grid-area: 1 / 2 / 2 / 3; }
  .nav { grid-area: 2 / 1 / 3 / 3; justify-self: center; }
  .nav a, .locale a, .locale span { min-height: 2.75rem; }
  .nav a { padding-inline: .85rem; }

  main { padding-top: 7.75rem; }
  .hero { align-items: start; }
  .hero-title { font-size: 25.65vw; margin-top: .19em; margin-bottom: 0; }
  .hero-title span { font-size: .23em; }
  .hero-frame:nth-of-type(1) { grid-area: 3 / 1 / 4 / -1; margin-top: 0; }
  .hero-frame:nth-of-type(2) { grid-area: 4 / 1 / 5 / 7; margin-top: 0; }
  .hero-frame:nth-of-type(3) { grid-area: 4 / 7 / 5 / 13; margin-top: 1.25rem; }
  .hero-end { grid-area: 5 / 1 / 6 / -1; }
  .hero-placeholder { grid-area: 3 / 1 / 4 / -1; }

  .feature-frame:nth-child(odd) { grid-column: 1 / -1; }
  .feature-frame:nth-child(even) { grid-column: 2 / -1; }
  .feature-frame:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .feature-grid { row-gap: 1.25rem; }
  .feature .frame figcaption {
    margin-top: .2rem;
    font-size: .62rem;
    line-height: 1.2;
  }

  .series-card:nth-child(n) { grid-column: 1 / -1; }
  .series-index { row-gap: 1rem; }
  .story-frame:nth-child(n) { grid-column: 1 / -1; }
  .story { row-gap: .875rem; }
  .series-card-meta h2 { font-size: clamp(1.45rem, 5.8vw, 2.25rem); }
  .page-heading h1 { font-size: clamp(2.1rem, 10vw, 4.5rem); }

  .wall { row-gap: .875rem; }
  .wall-frame:nth-child(n),
  .wall-frame.square,
  .wall-frame.landscape { grid-column: 1 / -1; }
  .wall-frame:nth-child(3n + 2) { grid-column: 2 / -1; }
  .wall-frame:nth-child(3n) { grid-column: 1 / 12; }
  .wall .frame figcaption,
  .story .frame figcaption {
    margin-top: .1rem;
    font-size: .58rem;
  }

  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-name { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  .page-heading { grid-template-columns: 1fr; }
  .page-heading .index-line { text-align: left; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-end .text-link { text-align: right; }
}

/* Edition 2 — editorial motion layer */
:root {
  --paper-deep: #120f0e;
  --glow: #b97855;
}

::selection { background: var(--rust); color: var(--paper-deep); }

body {
  background:
    radial-gradient(ellipse at 12% 6%, #3a2a22aa 0%, transparent 38rem),
    radial-gradient(ellipse at 82% -10%, #4a302355 0%, transparent 54rem),
    var(--paper-deep);
}

a, button { transition: color .25s ease, border-color .25s ease, background-color .25s ease; }

.masthead::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9rem;
  background: linear-gradient(to bottom, #120f0ecc, transparent);
  pointer-events: none;
}

.nav, .locale {
  background-color: #211b18cc;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-title { text-wrap: nowrap; }
.hero-title span { color: var(--rust); }
.hero-kicker { letter-spacing: .16em; }
.hero-frame { will-change: transform; }

.frame-link, .series-cover { overflow: hidden; }
.frame-link img {
  transition: transform 1.1s cubic-bezier(.16, .6, .2, 1), filter .6s ease;
}
.frame-link:hover img {
  transform: scale(1.035);
  filter: brightness(1.05) saturate(1.04);
}
.series-cover img { transition: filter .6s ease; }
.series-cover { transition: transform 1.1s cubic-bezier(.16, .6, .2, 1); }
.series-link:hover .series-cover { transform: scale(1.012); }
.series-link:hover .series-card-meta h2 { color: var(--rust); }
.series-card-meta h2 { transition: color .25s ease; }

.series-marquee {
  margin-top: clamp(2rem, 4vw, 4rem);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.series-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(.7rem, 1.2vw, 1rem);
  animation: marquee 42s linear infinite;
}
.series-marquee-track span {
  color: var(--quiet);
  font: 400 clamp(1.05rem, 2.1vw, 2rem)/1 var(--display);
  letter-spacing: -.035em;
  white-space: nowrap;
}
.series-marquee-track i {
  color: var(--rust);
  font-style: normal;
  font-size: 1.1rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.page-heading h1 { text-wrap: balance; }
.page-heading .eyebrow::before {
  content: "";
  display: inline-block;
  width: clamp(1.5rem, 3vw, 3rem);
  height: 1px;
  margin-right: .75rem;
  vertical-align: middle;
  background: var(--rust);
}

.text-link { transition: color .25s ease, border-color .25s ease, gap .25s ease; }
.text-link:hover { gap: 1.45em; }
.footer-name { transition: color .25s ease; }
.footer-name:hover { color: var(--rust); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* PhotoSwipe */
.pswp {
  --pswp-bg: #120f0e;
  --pswp-icon-color: var(--ink);
  --pswp-icon-color-secondary: var(--rust);
  --pswp-preloader-color: #5f5045;
}
.pswp__counter {
  color: var(--quiet);
  font: 500 .72rem/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pswp__button {
  --pswp-icon-color: var(--ink);
  --pswp-icon-color-secondary: var(--rust);
}
.pswp__caption-custom {
  position: absolute;
  z-index: 10;
  bottom: max(1.15rem, env(safe-area-inset-bottom));
  left: 50%;
  width: min(90%, 52rem);
  transform: translateX(-50%);
  color: var(--quiet);
  font: 500 .7rem/1.5 var(--sans);
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 620px) {
  .series-marquee-track { animation-duration: 32s; }
  .pswp__caption-custom { bottom: max(.9rem, env(safe-area-inset-bottom)); font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  .series-marquee-track { animation: none; }
  .frame-link img, .series-cover, .series-card-meta h2, .text-link, .footer-name { transition: none; }
  .frame-link:hover img, .series-link:hover .series-cover { transform: none; }
}
