:root {
  --ink: #1d1d1d;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --bg: #ffffff;
  --footer: #f4f4f4;
  --heading: "Jost", "Futura", "Helvetica Neue", sans-serif;
  --body: "Mulish", "Avenir Next", "Avenir", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.75 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
}
.brand {
  font: 400 20px/1 var(--heading);
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
}
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav nav a { font-size: 15px; text-decoration: none; }
.nav nav a:hover { color: var(--muted); }

/* Hero */
.hero { position: relative; height: calc(100vh - 64px); min-height: 480px; max-height: 1000px; overflow: hidden; color: #fff; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 25%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.42), rgba(0,0,0,.08) 65%); }
.hero-text { position: absolute; z-index: 1; left: clamp(16px, 6vw, 96px); bottom: 18%; max-width: 900px; }
.hero h1 {
  margin: 0;
  font: 300 clamp(38px, 6.4vw, 84px)/1.08 var(--heading);
  letter-spacing: .04em; text-transform: uppercase;
}
.hero p { margin: 18px 0 0; font-size: clamp(16px, 1.8vw, 22px); }
.down { position: absolute; z-index: 1; left: 50%; bottom: 28px; transform: translateX(-50%); color: #fff; }

/* Sections */
h2 {
  margin: 0 0 36px;
  font: 300 clamp(30px, 4vw, 44px)/1.1 var(--heading);
  letter-spacing: .06em; text-transform: uppercase;
}
.about { max-width: 820px; margin: 0 auto; padding: 96px 16px 24px; text-align: center; }
.portrait { width: min(320px, 70vw); aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 auto 40px; }
.prose p { margin: 0 0 1.2em; }
.prose a { text-underline-offset: 3px; }
.nudge { font-style: italic; color: var(--muted); }

.clips { max-width: 1200px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 48px) 0; }
.clips h2 { margin-top: 72px; }
.clips h2:first-child { margin-top: 0; }

/* Article cards */
.grid { --gap: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
/* Staggered: JS sets each card's row span from its photo's shape */
.masonry.js { grid-auto-rows: 1px; row-gap: 0; align-items: start; }
.masonry.js .card { margin-bottom: var(--gap); }
.card {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 1 / var(--ratio, .667); background: #222; color: #fff; text-decoration: none;
}
.squares .card { aspect-ratio: 1; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,.22) 60%); transition: background .3s; }
.card:hover img, .card:focus-visible img { transform: scale(1.05); }
.card:hover::after { background: linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,.4) 60%); }
.card .meta { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 22px 24px; }
.card .title { display: block; font: 400 20px/1.3 var(--body); text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.card .pub { display: block; margin-top: 12px; font-size: 15px; opacity: .9; }

/* In Print: full-width strip of tall page crops, scrolls sideways */
.print-wrap { position: relative; margin-top: -4px; }
.print {
  display: flex; gap: 5px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.print::-webkit-scrollbar { display: none; }
.print a { flex: 0 0 auto; width: clamp(150px, 15vw, 210px); height: clamp(430px, 42vw, 600px); overflow: hidden; background: #eee; scroll-snap-align: start; }
.print img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.print a:hover img { transform: scale(1.04); }
.strip-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--ink); cursor: pointer;
}
.strip-arrow.prev { left: 12px; }
.strip-arrow.next { right: 12px; }
.strip-arrow:hover { background: #fff; }

.contact { padding: 72px 16px 80px; text-align: center; }
.contact h2 { margin-bottom: 20px; }
.contact p { margin: 0 0 12px; }
.contact a { text-decoration: none; }
.social { display: flex; justify-content: center; gap: 16px; }

footer { padding: 22px 16px; background: var(--footer); text-align: center; font-size: 13px; }
footer p { margin: 0; letter-spacing: .08em; text-transform: uppercase; }
.credits { margin: 10px auto 0; max-width: 760px; color: var(--muted); }
.credits summary { cursor: pointer; font-size: 12px; }
.credits ul { margin: 12px 0 0; padding: 0; list-style: none; text-align: left; font-size: 12px; line-height: 1.6; }
.credits li { margin-bottom: 4px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .squares { grid-template-columns: repeat(3, 1fr); --gap: 12px; }
  .squares .card .title { font-size: 16px; }
}
@media (max-width: 600px) {
  .nav { height: auto; padding-top: 12px; padding-bottom: 12px; flex-direction: column; gap: 8px; }
  html { scroll-padding-top: 90px; }
  .brand { font-size: 17px; }
  .hero { height: 78vh; }
  .grid, .squares { grid-template-columns: 1fr; --gap: 16px; }
  .squares .card .title { font-size: 20px; }
  .about { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card img, .print img { transition: none; }
}
