@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #5a5a5a;
  --accent: #2563eb;
  --line: #e6e6e6;
  --maxw: 1080px;
  --gut: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand img { height: 44px; width: auto; }
.nav {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 2rem);
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.25rem 0;
  position: relative;
}
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 3.5rem); }
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1.4rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  margin: 0 0 1.4rem;
  max-width: 16ch;
}
.lede {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
}
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
figcaption, .cap {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.75rem;
  letter-spacing: 0.01em;
}

/* ---------- Article body ---------- */
.article { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.prose { max-width: 68ch; }
.prose > p { margin: 0 0 1.4rem; }
.lead {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Numbered section markers */
.section { margin: clamp(2.5rem, 6vw, 4rem) 0 0; }
.section + .section { margin-top: clamp(3rem, 7vw, 5rem); }
.marker {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  margin-bottom: 1rem;
}
.section h2 {
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  margin: 0 0 1.1rem;
  max-width: 24ch;
}
.section h3 {
  font-size: 1.2rem;
  margin: 1.8rem 0 0.6rem;
}

.note {
  border-left: 2px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.4rem;
  margin: 2rem 0;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- Media ---------- */
.figure { margin: 2.2rem 0; }
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(130px, 16vw, 210px);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin: 2.4rem 0;
}
.gallery figure { margin: 0; height: 100%; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* asymmetric editorial mosaic */
.gallery figure:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.gallery figure:nth-child(2) { grid-column: 2 / span 2; grid-row: 1; }
.gallery figure:nth-child(3) { grid-column: 2; grid-row: 2; }
.gallery figure:nth-child(4) { grid-column: 3; grid-row: 2; }

.video { margin: 2.6rem 0; }
.frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f4f4f4;
  border: 1px solid var(--line);
}
.frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Aside / related ---------- */
.related {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.related h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0 0 0.8rem;
}
.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.related a { font-family: 'Space Grotesk', sans-serif; font-weight: 500; }

.backlink {
  margin-top: 2.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: #fafafa;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: space-between;
}
.site-footer h4 {
  font-size: 1.1rem;
  margin: 0 0 0.8rem;
}
.site-footer address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.95rem;
}
.site-footer a { color: var(--accent); }
.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
}
.social a:hover { text-decoration: none; color: var(--accent); }
.social svg { width: 30px; height: 30px; fill: #ff0000; flex: none; }
.legal {
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(140px, 38vw, 200px); }
  .gallery figure:nth-child(1) { grid-column: 1 / span 2; grid-row: auto; }
  .gallery figure:nth-child(2) { grid-column: 1 / span 2; grid-row: auto; }
  .gallery figure:nth-child(3) { grid-column: 1; grid-row: auto; }
  .gallery figure:nth-child(4) { grid-column: 2; grid-row: auto; }
  .site-header .wrap { flex-wrap: wrap; gap: 0.5rem 1rem; min-height: 0; padding-top: 0.7rem; padding-bottom: 0.7rem; }
  .nav { gap: 0.75rem 1rem; }
}
