:root {
  color-scheme: dark;
  --ink: #f4f2ea;
  --muted: #aaa99f;
  --line: rgba(244, 242, 234, 0.16);
  --panel: #141512;
  --accent: #d7ff5f;
  --accent-dark: #1d2412;
  --page: #090a08;
  --pad: clamp(1.25rem, 4vw, 5.5rem);
  --section-gap: clamp(4.5rem, 10vw, 10rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.28em;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #22241f;
}

figure,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(3.25rem, 8vw, 8.75rem);
}

h2 {
  font-size: clamp(2.35rem, 5vw, 5.4rem);
}

h3 {
  font-size: clamp(2rem, 4vw, 4.4rem);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #11140a;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  padding: 1.15rem var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 8, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  padding: 0.28rem 0.62rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.brand-copy {
  display: grid;
  line-height: 1.18;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: flex-end;
  padding-top: 0.3rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(19rem, 0.92fr) minmax(0, 1.48fr);
  min-height: calc(100svh - 5rem);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: grid;
  align-content: end;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(4rem, 8vw, 9rem) var(--pad) clamp(2.75rem, 6vw, 6rem);
  background: linear-gradient(155deg, var(--accent-dark), #0b0c09 68%);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.hero-lead {
  color: #d2d0c7;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.75;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.hero-meta div {
  padding: 1rem;
  background: #0d0f0b;
}

.hero-meta dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-meta dd {
  padding-top: 0.25rem;
  font-size: 0.96rem;
}

.hero-visual {
  position: relative;
  min-height: 36rem;
  overflow: hidden;
}

.hero-visual img {
  transition: transform 900ms cubic-bezier(.2,.8,.2,1);
}

.hero-visual:hover img {
  transform: scale(1.025);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.hero-visual figcaption,
.rail-card figcaption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1;
  display: grid;
  gap: 0.15rem;
}

.hero-visual figcaption strong,
.rail-card figcaption strong {
  font-size: 1.05rem;
}

.hero-visual figcaption span,
.rail-card figcaption span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.gallery-section,
.notes-section {
  padding: var(--section-gap) var(--pad);
}

.gallery-section {
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  gap: 1.25rem clamp(2rem, 7vw, 8rem);
  padding-bottom: clamp(2.25rem, 5vw, 4.75rem);
}

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

.section-heading > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.photo-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(18rem, 44vw, 42rem);
  gap: clamp(1rem, 2vw, 2rem);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 0 1.25rem;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--accent) rgba(255, 255, 255, 0.1);
}

.photo-rail:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0.5rem;
}

.rail-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--panel);
}

.rail-card-wide {
  aspect-ratio: 16 / 10;
}

.rail-card::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  pointer-events: none;
}

.rail-card img {
  transition: transform 650ms cubic-bezier(.2,.8,.2,1), filter 650ms ease;
}

.rail-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.notes-section {
  background: #f0eee5;
  color: #161713;
}

.notes-section .eyebrow,
.story-index {
  color: #596b22;
}

.notes-section .section-heading > p:not(.eyebrow),
.story-credit {
  color: #65665f;
}

.article-list {
  display: grid;
  gap: clamp(3.5rem, 8vw, 8rem);
}

.story-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: clamp(2rem, 6vw, 7rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(22, 23, 19, 0.22);
}

.story-card:nth-child(even) {
  grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.25fr);
}

.story-card:nth-child(even) .story-media {
  order: 2;
}

.story-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d8d7cf;
}

.story-card:nth-child(2) .story-media {
  aspect-ratio: 16 / 9;
}

.story-copy {
  display: grid;
  align-content: start;
  gap: 1.4rem;
  padding-top: 0.35rem;
}

.story-index {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.story-copy > p:not(.story-index, .story-credit) {
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.85;
}

.story-credit {
  font-size: 0.88rem;
  line-height: 1.7;
}

.source-link {
  width: fit-content;
  color: #26310d;
  font-weight: 650;
}

.source-link:hover,
.source-link:focus-visible {
  color: #596b22;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: clamp(3rem, 10vw, 12rem);
  padding: var(--section-gap) var(--pad);
  border-bottom: 1px solid var(--line);
}

.about-section h2 {
  padding-top: 1.25rem;
}

.about-copy {
  display: grid;
  gap: 1.5rem;
  color: #cbc9c0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.9;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  padding: 2.5rem var(--pad) 3.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer strong {
  color: var(--ink);
  font-size: 1rem;
}

.site-footer p {
  padding-top: 0.3rem;
}

.footer-legal {
  display: grid;
  justify-items: end;
  gap: 0.3rem;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--accent);
}

@media (max-width: 860px) {
  .hero,
  .section-heading,
  .story-card,
  .story-card:nth-child(even),
  .about-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    min-height: 34rem;
  }

  .hero-visual {
    min-height: 30rem;
  }

  .section-heading .eyebrow {
    grid-column: auto;
  }

  .story-card:nth-child(even) .story-media {
    order: 0;
  }

  .photo-rail {
    grid-auto-columns: clamp(17rem, 78vw, 36rem);
  }

  .footer-legal {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-copy {
    min-height: 31rem;
    padding-top: 3.5rem;
  }

  .hero-visual {
    min-height: 25rem;
  }

  .hero-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .photo-rail {
    grid-auto-columns: 84vw;
  }

  .story-card {
    gap: 1.5rem;
  }

  .about-section {
    gap: 2.25rem;
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-visual img,
  .rail-card img {
    transition: none;
  }
}
