/* joshfred.com — minimal, kinetic.
   One typeface, near-black ground, photographs that move with the scroll.
   Nothing decorative: hierarchy comes from size, weight and space. */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */

:root {
  --black:  #0b0b0a;
  --ash:    #191917;
  --rule:   #262624;
  --smoke:  #71716a;
  --silver: #a6a69e;
  --paper:  #eaeae2;
  --white:  #fafaf6;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --measure: 37rem;
  --wide: 88rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --gap: clamp(1rem, 2.2vw, 2rem);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* A hairline around every plate. His low-key frames run to near-black at the
   edges and would otherwise bleed into the ground and lose their shape. Not
   applied to the full-bleed reel, where there is no ground to separate from. */
.tile img, .wall__item img, .essay__media img, .post-row__thumb img,
.cover-card__media img, .figure img, .contact-portrait img {
  outline: 1px solid rgb(234 234 226 / 0.07);
  outline-offset: -1px;
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 1.5px solid var(--paper); outline-offset: 4px; }

.wrap { width: min(100% - 2 * var(--pad), var(--wide)); margin-inline: auto; }
.reading { width: min(100% - 2 * var(--pad), var(--measure)); margin-inline: auto; }

/* ---------- header ---------- */

.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  transition: background .4s var(--ease);
}
.site-head.is-scrolled {
  background: rgba(11, 11, 10, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-head__inner {
  width: min(100% - 2 * var(--pad), var(--wide));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
}
.wordmark {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.nav { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  position: relative;
  padding: 0.3rem 0;
}
.nav a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  border-bottom: 1px solid var(--paper);
  transition: right .35s var(--ease);
}
.nav a:hover { color: var(--paper); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--paper); }

@media (max-width: 640px) {
  .site-head__inner { flex-direction: column; align-items: flex-start; gap: 0.7rem; padding: 1rem 0; }
  .nav { gap: 1.1rem; }
  .nav a { font-size: 0.66rem; letter-spacing: 0.18em; }
}

/* ---------- type scale ---------- */

.display {
  font-weight: 600;
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
}
.title-lg {
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
}
.eyebrow {
  font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--smoke);
  margin: 0 0 1.1rem;
}
.lede { color: var(--silver); font-size: 1.02rem; max-width: var(--measure); margin: 0; }

/* ---------- page furniture ---------- */

.page-head { padding: clamp(7.5rem, 15vh, 10rem) 0 clamp(2.5rem, 6vw, 4rem); }
.page-head .lede { margin-top: 1.3rem; }

.section { padding-top: clamp(4.5rem, 10vw, 8rem); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  margin-bottom: clamp(1.8rem, 4.5vw, 3rem);
}
.section-link {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--silver); text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.35rem;
  white-space: nowrap;
}
.section-link:hover { color: var(--paper); border-color: var(--paper); }

/* ---------- review / post rows ---------- */

.post-index { border-top: 1px solid var(--rule); }
.post-row {
  display: grid;
  grid-template-columns: clamp(5rem, 11vw, 11rem) 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  padding: clamp(0.9rem, 2vw, 1.4rem) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.post-row__thumb { overflow: hidden; background: var(--ash); aspect-ratio: 3 / 2; }
.post-row__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.post-row:hover .post-row__thumb img { transform: scale(1.05); }
.post-row__body { display: grid; gap: 0.35rem; }
.post-row__date {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--smoke);
}
.post-row__title {
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.7rem);
  line-height: 1.2; letter-spacing: -0.02em;
  transition: transform .4s var(--ease), color .3s;
}
.post-row__arrow {
  font-size: 1.1rem; color: var(--smoke);
  transition: transform .35s var(--ease), color .3s;
}
.post-row:hover .post-row__title { transform: translateX(0.4rem); }
.post-row:hover .post-row__arrow { transform: translateX(0.35rem); color: var(--paper); }
@media (max-width: 640px) {
  .post-row { grid-template-columns: 30vw 1fr; gap: 1rem; }
  .post-row__arrow { display: none; }
}

/* ---------- kinetic bands ---------- */

.band {
  position: relative;
  height: clamp(20rem, 62vh, 34rem);
  overflow: hidden;
  margin-top: clamp(4.5rem, 10vw, 8rem);
}
.band > img {
  position: absolute; left: 0; top: -12%;
  width: 100%; height: 124%;
  object-fit: cover;
  will-change: transform;
}
.band__caption {
  position: absolute; left: var(--pad); bottom: 1.2rem; z-index: 2;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(250, 250, 246, 0.75);
}

/* ---------- work covers ---------- */

.covers {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  align-items: start;
}
.cover-card { text-decoration: none; display: block; will-change: transform; }
.cover-card__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ash); }
.cover-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.cover-card:hover .cover-card__media img { transform: scale(1.03); }
.cover-card__label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 0.8rem; gap: 1rem;
}
.cover-card__name { font-weight: 500; font-size: 0.95rem; letter-spacing: -0.01em; }
.cover-card__num { font-size: 0.7rem; color: var(--smoke); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }

/* ---------- series index (work page) ---------- */

.series { border-top: 1px solid var(--rule); }
.series__row {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 3vw, 2.1rem) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  position: relative;
}
.series__num { font-size: 0.72rem; color: var(--smoke); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.series__name {
  font-weight: 600;
  font-size: clamp(1.6rem, 4.2vw, 2.9rem);
  line-height: 1.05; letter-spacing: -0.03em;
  transition: transform .4s var(--ease);
}
.series__count { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--smoke); }
.series__row:hover .series__name { transform: translateX(0.6rem); }
.series__peek {
  position: absolute; right: clamp(4rem, 14vw, 12rem); top: 50%;
  width: clamp(8rem, 16vw, 13rem);
  transform: translateY(-46%) scale(0.96);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  z-index: 3;
  box-shadow: 0 26px 70px rgba(0,0,0,.6);
}
.series__row:hover .series__peek { opacity: 1; transform: translateY(-50%) scale(1); }
@media (hover: none) { .series__peek { display: none; } }

/* ---------- galleries: justified rows ----------
   Row membership is decided at build time; inside a row each tile carries
   flex-grow equal to its aspect ratio, which gives every photograph in that
   row the same height and a flush right edge at any width. No JS, no reflow. */

.gallery { display: grid; gap: var(--gap); }

.jrow { display: flex; gap: var(--gap); align-items: flex-start; }
.jrow--short { justify-content: flex-start; }

/* flex-basis MUST be 0: only then is the distributed width proportional to
   flex-grow (= the aspect ratio), which is what equalises the row height. */
.tile {
  display: block; padding: 0; border: 0; background: var(--ash);
  cursor: zoom-in; font: inherit; color: inherit;
  overflow: hidden; position: relative;
  flex-shrink: 1; flex-basis: 0; min-width: 0;
}
.jrow--short .tile { flex: 0 0 auto; }
.tile img {
  width: 100%; height: auto; display: block;
  transition: transform .7s var(--ease);
}
.tile::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(250, 250, 246, 0);
  transition: box-shadow .4s var(--ease);
  pointer-events: none;
}
.tile:hover img { transform: scale(1.035); }
.tile:hover::after { box-shadow: inset 0 0 0 1px rgba(250, 250, 246, 0.28); }

/* runs of photographs inside an essay */
.photo-run {
  display: grid; gap: var(--gap);
  margin: clamp(2.5rem, 6vw, 4.5rem) auto;
}
/* a long run is a contact sheet: tighter, smaller, read as a set */
.sheet { --gap: clamp(0.5rem, 1.1vw, 0.85rem); }

/* exactly two photographs — the second most common shape in his essays.
   Hung as a pair with the right frame dropped, so it reads as two prints
   rather than a table row. */
.pair { display: flex; align-items: flex-start; gap: clamp(1rem, 3vw, 3rem); }
.pair__item { flex: 0 1 auto; aspect-ratio: var(--ar); min-width: 0; }
.pair__item:first-child { flex-grow: 1; }
.pair__item:last-child { flex-grow: 1; margin-top: clamp(1.5rem, 5vw, 5rem); }
.pair__item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .pair { display: grid; }
  .pair__item:last-child { margin-top: 0; }
}

/* One photograph per row on a phone — every frame gets the full width, and
   nothing is hidden the way the old column layout hid two thirds of them. */
@media (max-width: 700px) {
  .jrow { display: block; }
  .jrow .tile { width: 100% !important; margin-bottom: var(--gap); }
  .jrow .tile img { height: auto; }
}

/* ---------- article ---------- */

.article-head { padding: clamp(7.5rem, 15vh, 10rem) 0 clamp(2rem, 5vw, 3.2rem); }
.article-head .eyebrow { margin-bottom: 1rem; }
.article-title {
  font-weight: 600;
  font-size: clamp(2.1rem, 5.5vw, 4.2rem);
  line-height: 1.02; letter-spacing: -0.035em;
  margin: 0;
}

.prose { font-size: 1.05rem; font-weight: 300; line-height: 1.8; }
.prose p { margin: 0 0 1.5em; }
.prose h2, .prose h3, .prose h4 {
  font-weight: 600; letter-spacing: -0.025em;
  line-height: 1.15; margin: 2.6em 0 0.8em;
}
.prose h2 { font-size: 1.65rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.05rem; color: var(--silver); }
.prose ul, .prose ol { margin: 0 0 1.5em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.55em; }
.prose li::marker { color: var(--smoke); }
.prose blockquote {
  margin: 2.2em 0; padding-left: 1.4em;
  border-left: 1px solid var(--smoke);
  color: var(--silver);
}
.prose strong { font-weight: 500; }
.prose a { color: var(--white); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 3em 0; }

/* essay photographs: clipped frames whose image glides as you scroll */
.figure { margin: clamp(2.5rem, 6vw, 4.2rem) 0; }
.figure__frame { overflow: hidden; position: relative; background: var(--ash); }
.figure__frame img { width: 100%; display: block; will-change: transform; }
.figure figcaption {
  font-size: 0.75rem; color: var(--smoke); margin-top: 0.7rem;
  letter-spacing: 0.06em;
}
.figure--wide { width: min(100vw - 2 * var(--pad), var(--wide)); margin-inline: calc(50% - min(50vw - var(--pad), var(--wide) / 2)); }

.article-foot { margin-top: clamp(3rem, 8vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--rule); }
.article-foot a { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver); text-decoration: none; }
.article-foot a:hover { color: var(--paper); }

/* ---------- contact ---------- */

.contact-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-portrait { position: sticky; top: 6rem; margin: 0; }
.contact-portrait img { width: 100%; background: var(--ash); }
.contact-portrait figcaption { font-size: 0.72rem; color: var(--smoke); margin-top: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }

.bio { font-size: 1.02rem; line-height: 1.8; }
.bio p { margin: 0 0 1.4em; }
.bio p:first-child { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.4; color: var(--white); }

.detail-list { list-style: none; margin: 2.5rem 0 3rem; padding: 0; border-top: 1px solid var(--rule); }
.detail-list li {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
  display: flex; gap: 1.5rem; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap;
}
.detail-list .k { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--smoke); }
.detail-list a { text-decoration: none; font-size: 0.98rem; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.detail-list a:hover { border-color: var(--paper); }

form { display: grid; gap: 1.4rem; }
label { display: grid; gap: 0.5rem; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--smoke); }
input, textarea {
  font: inherit; font-size: 1rem; font-weight: 300; color: var(--paper);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.55rem 0;
  width: 100%;
  transition: border-color .3s;
}
input:focus, textarea:focus { outline: none; border-bottom-color: var(--paper); }
textarea { min-height: 8.5rem; resize: vertical; }
button[type="submit"] {
  font: inherit; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  background: var(--paper); color: var(--black);
  border: 1px solid var(--paper);
  padding: 1rem 2.4rem;
  cursor: pointer; justify-self: start;
  transition: background .3s, color .3s;
}
button[type="submit"]:hover { background: transparent; color: var(--paper); }
button[type="submit"][disabled] { opacity: 0.4; cursor: default; }
.form-note { font-size: 0.9rem; color: var(--silver); margin: 0; min-height: 1.2em; }
.form-note a { color: var(--paper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */

.site-foot { margin-top: clamp(5rem, 12vw, 9rem); border-top: 1px solid var(--rule); }
.foot-cta { padding: clamp(4rem, 10vw, 7rem) 0; }
.foot-cta__title {
  font-weight: 600;
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  line-height: 1; letter-spacing: -0.035em;
  margin: 0 0 1.8rem;
}
.foot-cta a.cta {
  display: inline-block;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; color: var(--paper);
  border: 1px solid var(--smoke);
  padding: 1rem 2.6rem;
  transition: background .3s, color .3s, border-color .3s;
}
.foot-cta a.cta:hover { background: var(--paper); color: var(--black); border-color: var(--paper); }
.foot-base {
  border-top: 1px solid var(--rule);
  padding: 1.6rem 0 2rem;
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  font-size: 0.75rem; color: var(--smoke);
}
.foot-base a { color: var(--silver); text-decoration: none; }
.foot-base a:hover { color: var(--paper); }

/* ---------- lightbox ---------- */

.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(7, 7, 6, 0.97);
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3.5rem);
}
.lb.is-open { display: flex; animation: lbIn .25s var(--ease); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lb__btn {
  position: absolute; background: none; border: 0; color: var(--paper);
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 1.2rem;
  opacity: 0.55; transition: opacity .25s; z-index: 2;
}
.lb__btn:hover { opacity: 1; }
.lb__close { top: 0.4rem; right: 0.6rem; }
.lb__prev { left: 0.2rem; top: 50%; transform: translateY(-50%); }
.lb__next { right: 0.2rem; top: 50%; transform: translateY(-50%); }
.lb__count {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  color: var(--smoke); font-size: 0.72rem; letter-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
}

/* ================= HOMEPAGE ================= */

/* ---------- the reel ----------
   No JS: a plain stack of full-bleed photographs. With JS: the stack collapses
   into one sticky viewport and the frames dissolve as you scroll. Either way
   the first thing on the site is a photograph, edge to edge. */

.reel { position: relative; background: var(--black); }
.reel__stage { position: relative; }
.reel__frame { position: relative; margin: 0; height: 86svh; }
.reel__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.js .reel { height: calc(100svh * var(--frames)); }
.js .reel__stage {
  position: sticky; top: 0; height: 100svh; overflow: clip;
}
.js .reel__frame {
  position: absolute; inset: 0; height: auto;
  opacity: 0; will-change: opacity, transform;
}
.js .reel__frame[data-frame="0"] { opacity: 1; }

/* legibility for the header and the captions, without a slab over the picture */
.reel__scrim {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    linear-gradient(to bottom, rgba(5,5,6,.66) 0%, rgba(5,5,6,.40) 6%, rgba(5,5,6,.16) 13%, transparent 24%),
    linear-gradient(to top,    rgba(5,5,6,.74) 0%, rgba(5,5,6,.42) 14%, transparent 36%);
}

/* Over a photograph the header has to hold its own against whatever tone sits
   behind it — his frames run from near-black to blown highlights. */
body:has(.reel) .site-head:not(.is-scrolled) .wordmark { color: var(--white); }
body:has(.reel) .site-head:not(.is-scrolled) .nav a { color: rgba(250, 250, 246, 0.92); }
body:has(.reel) .site-head:not(.is-scrolled) .nav a::after { border-color: var(--white); }

.reel__cap {
  position: absolute; left: var(--pad); bottom: clamp(1.6rem, 5vh, 3rem);
  z-index: 3;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(250,250,246,.94);
  display: flex; align-items: baseline; gap: 0.85rem;
}
.reel__n {
  font-variant-numeric: tabular-nums; color: rgba(250,250,246,.5);
  padding-right: 0.85rem; border-right: 1px solid rgba(250,250,246,.25);
}
.js .reel__cap { position: absolute; }

.reel__id {
  position: absolute; left: var(--pad); bottom: clamp(4.4rem, 11vh, 6.5rem);
  z-index: 3; display: grid; gap: 0.3rem; max-width: 26rem;
}
.reel__name {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--white);
}
.reel__role { font-size: 0.9rem; color: rgba(250,250,246,.8); }
.reel__frame:not([data-frame="0"]) ~ .reel__id { }

.reel__ticks {
  position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%);
  z-index: 3; display: grid; gap: 0.85rem;
}
.reel__tick {
  width: 1px; height: 14px; padding: 0; border: 0; cursor: pointer;
  background: rgba(250,250,246,.34);
  transition: height .45s var(--ease), background .45s var(--ease);
  position: relative;
}
.reel__tick::after { content: ''; position: absolute; inset: -14px -16px; }
.reel__tick.is-on { height: 30px; background: var(--white); }

@media (max-width: 640px) {
  .reel__ticks { right: calc(var(--pad) * 0.6); gap: 0.6rem; }
  .reel__tick { height: 10px; }
  .reel__tick.is-on { height: 22px; }
  .reel__role { font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reel { height: auto; }
  .js .reel__stage { position: static; height: auto; }
  .js .reel__frame { position: relative; height: 86svh; opacity: 1; }
  .reel__id, .reel__ticks { display: none; }
}

/* ---------- the statement ---------- */

.statement { padding: clamp(6rem, 16vh, 11rem) 0; }
.statement__line {
  font-size: clamp(1.5rem, 4vw, 2.9rem);
  font-weight: 300; line-height: 1.18; letter-spacing: -0.028em;
  max-width: 24ch; margin: 0 0 1.6rem;
  text-wrap: balance;
}
.statement__by {
  margin: 0; font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--smoke);
}

/* ---------- section labels ---------- */

.section-label {
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--smoke); margin: 0;
}

/* ---------- series wall ----------
   Uniform height, natural widths, ragged right — every frame keeps the shape
   it was made in. Nothing is cropped to fit a tile. */

.wall {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  column-gap: clamp(1rem, 2.4vw, 2.25rem);
  row-gap: clamp(2.5rem, 5vw, 4rem);
}
.wall__item {
  flex: 0 0 auto; text-decoration: none; position: relative;
  height: clamp(190px, 30svh, 340px);
  aspect-ratio: var(--ar); width: auto;
}
.wall__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--ease);
}
.wall__item:hover img { transform: scale(1.035); }
.wall__label {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-top: 0.85rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.wall__n { color: var(--smoke); font-variant-numeric: tabular-nums; }

@media (max-width: 700px) {
  .wall { display: grid; }
  .wall__item { height: auto; width: 100%; aspect-ratio: var(--ar); }
}

/* ---------- writing, as photographs ---------- */

.essays {
  display: grid; gap: clamp(2rem, 4vw, 3.25rem);
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  align-items: start;
}
.essay { text-decoration: none; display: grid; gap: 0.7rem; }
.essay__media {
  display: block; overflow: hidden; background: var(--ash);
  aspect-ratio: var(--ar);
}
.essay__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--ease);
}
.essay:hover .essay__media img { transform: scale(1.04); }
.essay__meta {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--smoke);
}
.essay__title {
  font-size: 1.02rem; font-weight: 500; line-height: 1.25;
  letter-spacing: -0.015em;
}
/* stagger, so it reads as pictures hung on a wall rather than a table */
@media (min-width: 900px) {
  .essay:nth-child(3n + 2) { margin-top: 3.5rem; }
  .essay:nth-child(3n + 3) { margin-top: 1.5rem; }
}

/* ---------- colophon ---------- */

.colophon { padding-bottom: clamp(4rem, 9vw, 7rem); }
.colophon__mail {
  display: inline-block; margin: 1.2rem 0 0;
  font-size: clamp(1.4rem, 4.5vw, 3rem);
  font-weight: 300; letter-spacing: -0.03em;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.15em;
  transition: border-color .4s var(--ease);
}
.colophon__mail:hover { border-color: var(--paper); }
.colophon__note {
  margin: 0; font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--smoke);
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
