/* 01-tokens.css */
/* Ruben Hughes: design tokens.
   Direction: reference-lock.md (Kinfolk dominant). Values: BUILD.md.
   One paper, one ink, one accent per issue. Light only: this is print-emulating editorial. */

/* The page ground is three registered numbers so it crossfades in OKLCH, component by component.
   Interpolating L, C and H separately keeps the chroma up the whole way, so the tint never
   passes through grey (a plain background-color transition would mix through Oklab's neutral middle). */
@property --gl { syntax: '<number>'; inherits: true; initial-value: 0.965; }
@property --gc { syntax: '<number>'; inherits: true; initial-value: 0.012; }
@property --gh { syntax: '<number>'; inherits: true; initial-value: 80; }

:root {
  /* colour */
  --paper: oklch(0.965 0.012 80);
  --ink: oklch(0.22 0.01 60);
  --ink-soft: oklch(0.4 0.012 60);   /* roles, captions: 8.2:1 or better on every ground */
  --ink-mute: oklch(0.5 0.01 60);    /* index rows that step back while another is active: 5.3:1 or better */
  --rule: oklch(0.22 0.01 60 / 0.18);
  --rule-strong: oklch(0.22 0.01 60 / 0.5);
  --ground: oklch(var(--gl) var(--gc) var(--gh));
  --accent: var(--ink);               /* overridden per issue */

  /* type */
  --font-mast: 'Kinfolk', 'New Tropic', Georgia, serif;           /* masthead and issue-cover names only */
  --font-serif: 'Fautive', 'New Tropic', 'Satoshi', Georgia, 'Times New Roman', serif; /* Satoshi supplies the en dash and ² */
  --font-sans: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;     /* utility only */

  --fs-label: 0.6875rem;                                       /* 11px */
  --fs-utility: 0.75rem;                                       /* 12px */
  --fs-body: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);         /* 16 to 17 */
  --fs-lede: clamp(1.25rem, 1.02rem + 0.95vw, 1.875rem);       /* 20 to 30 */
  --fs-title: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem);        /* 26 to 36 */
  --fs-issue: clamp(1.75rem, 1.2rem + 1.95vw, 2.875rem);        /* 28 to 46 */
  --fs-display: clamp(2.5rem, 1.35rem + 4.2vw, 4.75rem);       /* 40 to 76 */
  --fs-mast: clamp(1.75rem, 0.62rem + 4.25vw, 4.75rem);         /* 28 to 76 */
  --fs-email: clamp(2.125rem, 0.2rem + 8.4vw, 8.5rem);         /* 34 to 136 */

  --track-mast: 0.18em;
  --track-label: 0.16em;

  /* grid */
  --margin: clamp(20px, 3.9vw, 56px);
  --gutter: clamp(16px, 1.7vw, 24px);
  --header-h: 56px;
  --section-gap: clamp(112px, 15vw, 224px);

  /* motion */
  --ease-tint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-tint: 700ms;

  /* layers */
  --z-ground: -1;
  --z-header: 30;
  --z-progress: 40;
  --z-skip: 50;
}

@media (min-width: 768px) {
  :root { --header-h: 64px; }
}

/* 02-fonts.css */
/* Self-hosted fonts. Sources and licences: FONTS.md. No CDN. */
@font-face {
  font-family: 'Kinfolk';
  src: url('/assets/fonts/Kinfolk.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* New Tropic Light (300) carries headings. Paragraphs are Satoshi. No Bold, no italics in headlines. */
@font-face {
  font-family: 'New Tropic';
  src: url('/assets/fonts/NewTropic-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'New Tropic';
  src: url('/assets/fonts/NewTropic-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'New Tropic';
  src: url('/assets/fonts/NewTropic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'New Tropic';
  src: url('/assets/fonts/NewTropic-TextItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* Satoshi (Fontshare, ITF FFL): official WOFF2 files, unmodified (the FFL forbids subsetting or conversion). */
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* TRIAL ONLY (Birk 2026-11-07): Fautive by Blaze Type, trial files. Trial EULA = trials and client presentations only. Buy a professional web licence before launch. Trial lacks ÆØÅ æøå ’ – é, which fall back to New Tropic. */
@font-face { font-family: "Fautive"; src: url("/assets/fonts/trial/Fautive-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Fautive"; src: url("/assets/fonts/trial/Fautive-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fautive"; src: url("/assets/fonts/trial/Fautive-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* 03-base.css */
/* Base: reset, paper, type voices, links, grid, media. */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

html {
  /* the canvas only shows on overscroll; JS moves it after each crossfade so the root never repaints per frame */
  background-color: var(--canvas, var(--paper));
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
/* Lenis (smooth scroll) house rules */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  font-synthesis: none;            /* never fake a bold or an italic */
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* The page ground: one fixed sheet of paper behind everything. Its colour is the issue tint. */
.ground {
  position: fixed;
  inset: 0;
  z-index: var(--z-ground);
  background-color: var(--ground);
  pointer-events: none;
  contain: strict;
}
/* the numbers transition on the root only; children inherit the moving value (no double easing) */
html.can-tint {
  transition: --gl var(--dur-tint) var(--ease-tint), --gc var(--dur-tint) var(--ease-tint), --gh var(--dur-tint) var(--ease-tint);
}

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

/* type voices */
.serif-light { font-family: var(--font-serif); font-weight: 300; }
em, i { font-style: italic; }
/* New Tropic italic sets wide word spaces (space = 448 units against 290 in the roman, measured in the fonts).
   BUILD.md suggests about -0.04em; captures showed that is not enough, so the italic space is brought to roman width. */
em { word-spacing: -0.14em; }

.label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.utility {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.num { font-variant-numeric: tabular-nums; }

/* links: underline in the accent, drawn on hover */
.u-link {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 700ms var(--ease-tint), color 400ms var(--ease-tint);
  padding-bottom: 0.12em;
}
.u-link:hover, .u-link:focus-visible { background-size: 100% 1px; }

:focus { outline: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; }

.skip {
  position: fixed;
  left: var(--margin);
  top: 10px;
  z-index: var(--z-skip);
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; outline-offset: 2px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* grid: 4 columns on phones, 8 on tablets, 12 on desktop */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding-inline: var(--margin);
}
@media (min-width: 768px) { .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

/* media: reserved ratio, placeholder tone while loading, no radius, no shadow */
.media {
  position: relative;
  overflow: hidden;
  background-color: var(--ph, oklch(0.9 0.01 70));
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* hairline rule */
.rule {
  display: block;
  height: 1px;
  background: var(--rule-strong);
  transform-origin: 0 50%;
}

/* reading progress: a hairline at the very top that grows as you read (Kinfolk) */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: var(--z-progress);
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: progress-grow linear both; animation-timeline: scroll(root); }
}
@keyframes progress-grow { to { transform: scaleX(1); } }

.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 12px; pointer-events: none; }

/* Birk 2026-11-07: every paragraph is Satoshi; New Tropic Light is for headings only. */
p:not(.masthead__lede):not(.contact__lead):not(.lost__line) { font-family: var(--font-sans); font-weight: 400; }

/* 04-header.css */
/* Header: Work left, the name centred (Kinfolk, small), About and Contact right. From the approved specimen (6). */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background-color: var(--ground);
}
.site-header::after {           /* the specimen's hairline under the header, drawn in once you leave the top */
  content: '';
  position: absolute;
  left: var(--margin);
  right: var(--margin);
  bottom: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out);
}
.is-scrolled .site-header::after,
.page-inner .site-header::after { transform: scaleX(1); }

.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding-inline: var(--margin);
}
.site-nav .nav-left { justify-self: start; }
.site-nav .nav-right { justify-self: end; display: flex; gap: clamp(18px, 2.2vw, 32px); }
.site-nav a.utility { padding-block: 10px; }
.site-nav a.utility[aria-current='page'] { text-decoration: underline; text-underline-offset: 0.5em; text-decoration-thickness: 1px; }

.wordmark {
  justify-self: center;
  font-family: var(--font-mast);
  font-weight: 400;
  font-size: clamp(0.9375rem, 0.8rem + 0.45vw, 1.25rem);
  line-height: 1;
  letter-spacing: 0.26em;
  padding-left: 0.26em;          /* balance the trailing tracking so the name sits truly centred */
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
/* On the home page the masthead carries the name; the small wordmark arrives once the masthead has gone. */
.page-home .wordmark { opacity: 0; transform: translateY(6px); pointer-events: none; }
.page-home.is-past-mast .wordmark { opacity: 1; transform: none; pointer-events: auto; }
.nav-work-s { display: none; }
/* Phones: the name sits left, the three links sit right; nothing collides at 360 px. */
@media (max-width: 599px) {
  .site-nav { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; }
  .site-nav .nav-left { display: none; }
  .nav-work-s { display: inline; }
  .wordmark { justify-self: start; font-size: 0.8125rem; letter-spacing: 0.2em; padding-left: 0; }
  .site-nav .nav-right { gap: 15px; }
  /* Birk 2026-11-07: on phones the bar spans the full width. Name and the three links spread edge to edge; the hairline runs full bleed. */
  .site-nav { display: flex; justify-content: space-between; align-items: center; }
  .site-nav .nav-right { display: contents; }
  .site-header::after { left: 0; right: 0; }
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px var(--margin) 26px;
  border-top: 1px solid var(--rule);
  margin-inline: var(--margin);
  padding-inline: 0;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: var(--fs-utility);
  line-height: 1.4;
  letter-spacing: 0.02em;   /* sentence case: the studio credit keeps its capital L */
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--ink); }

/* 05-home.css */
/* Home: masthead, cover, index of recent issues, featured spread, archive, contact. */

/* 1. Masthead: the name as a nameplate, the standfirst, the role line. */
.masthead {
  padding: calc(var(--header-h) + clamp(18px, 4.6vh, 60px)) var(--margin) 0;
  text-align: center;
}
.masthead__name {
  font-family: var(--font-mast);
  font-weight: 400;
  font-size: var(--fs-mast);
  line-height: 1;
  letter-spacing: var(--track-mast);
  padding-left: var(--track-mast);
  text-transform: uppercase;
  white-space: nowrap;
}
.masthead__lede {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-lede);
  line-height: 1.24;
  letter-spacing: -0.004em;
  max-width: 24em;
  margin: clamp(18px, 3.2vh, 34px) auto 0;
  text-wrap: balance;
}
.masthead__role { margin-top: clamp(14px, 2.4vh, 24px); color: var(--ink-soft); }

/* 2. Cover: one recent image with a lot of air, a small caption at its corner. */
.cover {
  display: flex;
  justify-content: center;
  padding: clamp(28px, 5.6vh, 60px) var(--margin) 0;
}
.cover__figure {
  --cover-h: clamp(340px, calc(100svh - 430px), 660px);
  position: relative;
  width: min(70vw, calc(var(--cover-h) * 0.7477));
}
.cover__caption {
  position: absolute;
  left: calc(100% + 18px);
  bottom: -2px;
  display: grid;
  gap: 5px;
  white-space: nowrap;
  color: var(--ink-soft);
}
.cover__link:hover .cover__caption, .cover__link:focus-visible .cover__caption { color: var(--ink); }
@media (max-width: 767px) {
  .cover__caption { position: static; display: flex; justify-content: space-between; margin-top: 12px; }
}

/* Section heads: a light serif title over a hairline (Kinfolk's "Inside Issue Sixty-One"). */
.section-head {
  position: relative;
  padding: 0 var(--margin) clamp(14px, 1.5vw, 20px);
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-title);
  line-height: 1.1;
  letter-spacing: -0.006em;
}
.section-head .rule { position: absolute; left: var(--margin); right: var(--margin); bottom: 0; }

/* 3. Index of recent issues: the signature. */
.index { padding-top: var(--section-gap); }
.index__body { align-items: start; }
.index__list { grid-column: 1 / -1; }
/* hairlines between the rows (drawn in with the rows: 06-motion.css) */
.hair { position: relative; }
.hair + .hair::before, .hair:last-child::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: 0 50%;
  pointer-events: none;
}
.hair + .hair::before { top: 0; }
.hair:last-child::after { bottom: 0; }

.issue {
  display: grid;
  grid-template-columns: minmax(4.75rem, 8%) minmax(0, 1fr) auto;
  grid-template-areas: 'no client year' 'no role year';
  column-gap: var(--gutter);
  align-items: baseline;
  padding: clamp(14px, 1.25vw, 18px) 0 clamp(16px, 1.45vw, 21px);
  transition: color var(--dur-tint) var(--ease-tint);
}
.issue__no { grid-area: no; color: var(--ink-soft); transition: color var(--dur-tint) var(--ease-tint); white-space: nowrap; }
.issue__year { grid-area: year; color: var(--ink-soft); transition: color var(--dur-tint) var(--ease-tint); }
.issue__client {
  grid-area: client;
  justify-self: start;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-issue);
  line-height: 1.06;
  letter-spacing: -0.012em;
  padding-bottom: 0.08em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 100% 100%;
  background-size: 0% 1px;
  transition: background-size var(--dur-tint) var(--ease-tint), transform var(--dur-tint) var(--ease-tint);
}
.issue__role {
  grid-area: role;
  margin-top: clamp(6px, 0.6vw, 9px);
  max-width: 60em;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.14em;
}
.issue__thumb { display: none; grid-area: thumb; }

/* active = hovered or focused (focus is hover, for keyboards) */
.issue.is-active .issue__no { color: var(--accent); }
.issue.is-active .issue__client { background-position: 0 100%; background-size: 100% 1px; transform: translateX(0.16em); }
.index__list.has-active .issue:not(.is-active) { color: var(--ink-mute); }
.issue:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }

/* the cover slot (desktop with a fine pointer) */
.index__slot { display: none; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .index__list { grid-column: 1 / span 8; }
  .index__slot { display: block; grid-column: 9 / span 4; align-self: stretch; }
}
.slot__frame {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  aspect-ratio: 3 / 4;
  margin-top: clamp(14px, 1.25vw, 18px);
}
/* Each cover is laid over the last from its foot, like a page put down on a page (tint.js); the one underneath
   stays open until it is covered. The slot itself fades in with the first cover and out when the paper goes back. */
.index__slot { opacity: 0; transition: opacity 640ms var(--ease-tint); }
.index__slot.is-live { opacity: 1; }
.slot__item {
  position: absolute;
  inset: 0;
  clip-path: inset(100% 0 0 0);
}
.slot__item.is-under { clip-path: inset(0 0 0 0); }
.slot__item.is-active { clip-path: inset(0 0 0 0); transition: clip-path 900ms var(--ease-tint); }
.slot__item .media { height: 100%; background-color: transparent; }
.slot__item img { transform: scale(1.06); }
.slot__item.is-under img { transform: none; }
.slot__item.is-active img { transform: none; transition: transform 1500ms var(--ease-out); }
.index__slot.is-live .slot__frame { cursor: pointer; }

/* phones, tablets and touch: an inline cover per row; scrolling a row to the middle tints the page */
@media (max-width: 1023px), (hover: none), (pointer: coarse) {
  .issue {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: 'no year thumb' 'client client thumb' 'role role thumb';
    grid-template-rows: auto auto 1fr;   /* the text stays together at the top; the cover sets the height */
    align-items: start;
    row-gap: 8px;
    column-gap: 14px;
  }
  .issue__no, .issue__year { padding-top: 2px; }
  .issue__year { justify-self: start; }
  .issue__client { margin-top: 4px; }
  .issue__role { margin-top: 4px; }
  .issue__thumb { display: block; width: clamp(92px, 26vw, 168px); margin-left: 6px; }
  .issue__thumb .media { aspect-ratio: 3 / 4; }
}

/* 4. Featured spread: the most recent issue, opened like a magazine opener.
   Left page: one portrait, bled off the left edge. Right page: the issue line, the headline, the intro, the credits. */
.feature { padding-top: var(--section-gap); }
.feature__inner { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
.feature__image { display: block; }
.feature__image .media { aspect-ratio: 4 / 5; }
.feature__page { padding-inline: var(--margin); display: flex; flex-direction: column; gap: 44px; }
.feature__label { display: flex; flex-wrap: wrap; gap: 0.6em 2.6em; color: var(--accent); }
.feature__title {
  margin-top: clamp(14px, 1.5vw, 22px);
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.014em;
  text-wrap: balance;
}
.feature__title a { background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-position: 0 94%; background-size: 0% 1px; transition: background-size var(--dur-tint) var(--ease-tint); }
.feature__title a:hover, .feature__title a:focus-visible, .feature:has(.feature__image:hover) .feature__title a { background-size: 100% 1px; }
.feature__intro { margin-top: clamp(18px, 1.8vw, 26px); max-width: 36ch; }
@media (min-width: 1024px) {
  .feature__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    padding-right: var(--margin);
    align-items: stretch;
  }
  .feature__image { grid-column: 1 / span 6; }
  /* the picture page never outgrows the screen: on tall-wide displays it narrows rather than crops */
  .feature__image .media { width: min(100%, calc((100svh - var(--header-h)) * 0.8)); }
  .feature__page { grid-column: 8 / span 5; padding: 0; justify-content: space-between; }
}

/* Credits masthead (Art + Commerce): the small caps label in the accent over the serif name, in two columns.
   Stage 2: label over name (Birk's brief), the same on home and on every issue page. */
.credits {
  position: relative;
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(16px, 1.6vw, 22px);
  align-items: start;
}
.credits::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule); transform-origin: 0 50%; }
.credits__row { display: block; }
.credits dt { color: var(--accent); }
.credits dd { margin-top: 6px; font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.28; }

/* 5. Archive: older issues as a compact list, two columns on desktop, no rule on every row. */
.archive { padding-top: var(--section-gap); }
.archive__list { padding-top: clamp(10px, 1.2vw, 18px); }
.archive__list > li { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .archive__list { grid-template-rows: repeat(5, auto); grid-auto-flow: column; }
  .archive__list > li { grid-column: span 6; }
}
.archive__item {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) auto;
  grid-template-areas: 'no client year' 'no role role';
  column-gap: 14px;
  align-items: baseline;
  padding: clamp(12px, 1.2vw, 18px) 0 clamp(14px, 1.3vw, 20px);
}
.archive__no { grid-area: no; color: var(--ink-soft); transition: color 500ms var(--ease-tint); }
.archive__client {
  grid-area: client;
  justify-self: start;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.02rem + 0.75vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.006em;
  padding-bottom: 0.06em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 100% 100%;
  background-size: 0% 1px;
  transition: background-size var(--dur-tint) var(--ease-tint);
}
.archive__year { grid-area: year; color: var(--ink-soft); }
.archive__role { grid-area: role; margin-top: 6px; color: var(--ink-soft); font-weight: 400; letter-spacing: 0.13em; max-width: 44em; }
.archive__item:hover .archive__client, .archive__item:focus-visible .archive__client { background-position: 0 100%; background-size: 100% 1px; }
.archive__item:hover .archive__no, .archive__item:focus-visible .archive__no { color: var(--accent); }
@media (max-width: 767px) {
  .archive__item { grid-template-columns: 3.6rem minmax(0, 1fr) auto; grid-template-areas: 'no client year' 'role role role'; column-gap: 10px; padding: 11px 0 13px; }
  .archive__role { font-size: 0.625rem; letter-spacing: 0.1em; margin-top: 5px; }
  .archive__client { font-size: 1.3125rem; }
}

/* 6. Contact: one address, large. Email is the only action. */
.contact { padding: var(--section-gap) var(--margin) clamp(88px, 12vw, 168px); }
.contact .rule { margin-bottom: clamp(44px, 6.4vw, 96px); }
.contact__lead { font-family: var(--font-serif); font-weight: 300; font-size: var(--fs-lede); line-height: 1.2; }
.contact__email {
  display: inline-block;
  margin-top: 0.08em;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-email);
  line-height: 1.08;
  letter-spacing: -0.024em;
  position: relative;
  padding-bottom: 0.1em;
  overflow-wrap: anywhere;
}
.contact__email::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--rule-strong);
  transition: background-color 500ms var(--ease-tint);
}
.contact__email:hover::after, .contact__email:focus-visible::after { background: var(--ink); }
.contact__links { display: flex; gap: 2.4em; margin-top: clamp(28px, 3.6vw, 52px); }
.contact__links a { color: var(--ink-soft); }
.contact__links a:hover, .contact__links a:focus-visible { color: var(--ink); }

/* 06-motion.css */
/* Motion: calm and weight, never show. Everything here is gated on html.motion, which JS sets only
   when scripts run and the visitor has not asked for reduced motion. Without it the page is complete and still. */

.motion [data-reveal] { --d: 0ms; }

/* --lag holds a whole group back (the cover title waits for the cover that is travelling in, 09-transition.css) */
:root { --lag: 0ms; }

/* fade: slow settle */
.motion [data-reveal='fade'] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.3s var(--ease-out) calc(var(--lag) + var(--d)), transform 1.5s var(--ease-out) calc(var(--lag) + var(--d));
}
.motion [data-reveal='fade'].is-in { opacity: 1; transform: none; }

/* lines: masked, line by line (words share a delay per line; JS sets --line).
   Until the words are wrapped (once the type has loaded) the line is held out of sight, so it never shows twice. */
.motion [data-reveal='lines']:not([data-split]) { visibility: hidden; }
.motion [data-reveal='lines'] .w {
  display: inline-block;
  clip-path: inset(-0.25em -0.3em -0.3em -0.3em);
}
.motion [data-reveal='lines'] .wi {
  display: inline-block;
  transform: translateY(135%);
  transition: transform 1.25s var(--ease-out) calc(var(--lag) + var(--d) + var(--line, 0) * 95ms);
}
.motion [data-reveal='lines'].is-in .wi { transform: none; }
.motion [data-reveal='lines'].is-done .w { clip-path: none; }

/* rule: hairlines draw in from the left */
.motion [data-reveal='rule'] { transform: scaleX(0); transition: transform 1.6s var(--ease-out) var(--d); }
.motion [data-reveal='rule'].is-in { transform: scaleX(1); }

/* media: the crop releases and the frame settles (the cover).
   No placeholder tone behind it: on a scaled layer its clipped edge drew a faint hairline above the photograph. */
.motion [data-reveal='crop'] {
  background-color: transparent;
  clip-path: inset(9% 9% 9% 9%);
  transition: clip-path 1.9s var(--ease-out) var(--d);
}
.motion [data-reveal='crop'] img { transform: scale(1.14); transition: transform 2.4s var(--ease-out) var(--d); }
.motion [data-reveal='crop'].is-in { clip-path: inset(0 0 0 0); }
.motion [data-reveal='crop'].is-in img { transform: none; }

/* media: a slow wipe from the foot of the frame (spreads) */
.motion [data-reveal='wipe'] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.7s var(--ease-out) var(--d);
}
.motion [data-reveal='wipe'] img { transform: scale(1.08); transition: transform 2.4s var(--ease-out) var(--d); }
.motion [data-reveal='wipe'].is-in { clip-path: inset(0 0 0 0); }
.motion [data-reveal='wipe'].is-in img { transform: none; }

/* rows: structured groups arrive one after another */
.motion [data-reveal='rows'] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
  transition-delay: calc(var(--d) + var(--i, 0) * 80ms);
}
.motion [data-reveal='rows'].is-in > * { opacity: 1; transform: none; }
/* their hairlines draw in from the left as each row arrives (the index, the credits) */
.motion [data-reveal='rows'] > .hair::before,
.motion [data-reveal='rows'] > .hair:last-child::after,
.motion .credits[data-reveal='rows']::before {
  transform: scaleX(0);
  transition: transform 1.7s var(--ease-out) calc(var(--d) + var(--i, 0) * 80ms + 120ms);
}
.motion [data-reveal='rows'].is-in > .hair::before,
.motion [data-reveal='rows'].is-in > .hair:last-child::after,
.motion .credits[data-reveal='rows'].is-in::before { transform: none; }

/* spine: a colour page opens from its centre line outward, like a magazine opened flat */
.motion [data-reveal='spine'] {
  clip-path: inset(0 50% 0 50%);
  transition: clip-path 1.6s var(--ease-out) var(--d);
}
.motion [data-reveal='spine'].is-in { clip-path: inset(0 0 0 0); }

/* still: a slow image fade with a slight settle (plates, behind the scenes, About) */
.motion [data-reveal='still'] { opacity: 0; transition: opacity 1.5s var(--ease-out) var(--d); }
.motion [data-reveal='still'] img { transform: scale(1.05); transition: transform 2.4s var(--ease-out) var(--d); }
.motion [data-reveal='still'].is-in { opacity: 1; }
.motion [data-reveal='still'].is-in img { transform: none; }

/* the header arrives with the masthead (on a first visit; from another page of the site it is simply there) */
.motion .site-nav > * { opacity: 0; transition: opacity 1.2s var(--ease-out) 300ms; }
.motion.is-ready .site-nav > *, .motion.arrived .site-nav > * { opacity: 1; }
.motion.arrived .site-nav > * { transition: none; }
/* home: the small wordmark comes and goes with the masthead */
.motion.is-ready.page-home .site-nav > .wordmark,
.motion.arrived.page-home .site-nav > .wordmark { opacity: 0; transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.motion.page-home.is-past-mast .site-nav > .wordmark { opacity: 1; }

/* Keyboard: whatever takes focus is shown at once, never left faint or hidden mid-reveal (reveal.js also
   starts the reveal around it). The small wordmark on home shows while it has focus, masthead or not. */
.motion [data-reveal='rows'] > :focus-within,
.motion [data-reveal='fade']:focus-within,
.motion [data-reveal='still']:focus-within { opacity: 1; transform: none; transition-duration: 200ms; transition-delay: 0s; }
.page-home .site-nav > .wordmark:focus-visible,
.motion.is-ready.page-home .site-nav > .wordmark:focus-visible,
.motion.arrived.page-home .site-nav > .wordmark:focus-visible { opacity: 1; transform: none; transition-duration: 200ms; }

/* slow drift inside the spread frames, only where scroll timelines exist */
@supports (animation-timeline: view()) {
  .motion .drift img {
    position: absolute;
    left: 0;
    top: -4%;
    height: 108%;
    animation: drift linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
}
@keyframes drift { from { translate: 0 -3.4%; } to { translate: 0 3.4%; } }

@media (max-width: 767px) {
  .motion [data-reveal='fade'] { transform: translateY(6px); }
  .motion [data-reveal='crop'] { clip-path: inset(6% 6% 6% 6%); }
  .motion [data-reveal='rows'] > * { transform: translateY(8px); }
}

/* Reduced motion: no interpolation, no masks, no drift. Fades only where they carry meaning (the slot). */
@media (prefers-reduced-motion: reduce) {
  html.can-tint { transition: none; }
  .progress { display: none; }
  .issue, .issue__no, .issue__year, .issue__client, .archive__client, .u-link, .feature__title a { transition: none; }
  .issue.is-active .issue__client { transform: none; }
  .index__slot { transition: opacity 240ms linear; }
  .slot__item, .slot__item.is-active { clip-path: none; opacity: 0; transition: opacity 240ms linear; }
  .slot__item.is-active { opacity: 1; }
  .slot__item img { transform: none !important; transition: none; }
  .wordmark { transition: opacity 240ms linear; transform: none !important; }
  .site-header::after { transition: none; }
}

/* 07-issue.css */
/* Issue pages: the cover opens into the spread, then the article, the credits masthead, behind the scenes,
   and the next issue. One accent per issue (on <html>): rules, the credit labels, the colour page. */

/* 1 + 2. The opening.
   Still by default (no JS, reduced motion, phones, portrait screens): the cover title, then the spread.
   With motion on a landscape screen (html.open-wide), open.js pins the stage and the scroll opens it. */
.opening { position: relative; }
.opening__stage { position: relative; }

.cover-title {
  padding: calc(var(--header-h) + clamp(30px, 5.6vh, 64px)) var(--margin) 0;
  text-align: center;
}
.cover-title__no { color: var(--ink-soft); }
.cover-title__name {
  margin-top: clamp(10px, 1.6vh, 18px);
  font-family: var(--font-mast);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.22em;
  padding-left: 0.22em;           /* balances the trailing tracking, so the name sits truly centred */
  text-transform: uppercase;
  text-wrap: balance;
}
.cover-title__name--xl { font-size: clamp(2.25rem, 0.9rem + 5.4vw, 5.75rem); }
.cover-title__name--l { font-size: clamp(1.625rem, 0.75rem + 3.7vw, 4.25rem); }
.cover-title__name--m { font-size: clamp(1.375rem, 0.7rem + 2.9vw, 3.25rem); }
.cover-title__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em 2.6em;
  margin-top: clamp(14px, 2.2vh, 24px);
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.14em;
}

/* the sheet: the opened spread at its natural size. Pair = the colour page and the cover photograph side by side. */
.sheet { position: relative; margin-top: clamp(40px, 6vh, 72px); }
.opening--pair .sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sheet__colour { background-color: var(--accent); }
.sheet__photo .media { width: 100%; }

/* phones and portrait screens: the cover photograph sits on its colour page, with a border of colour all round.
   The exact opposite of the pinned condition (layout.mjs, open.js), so a 5:4 screen never gets both. */
@media not all and (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .opening--pair .sheet {
    --pad-y: clamp(26px, 8.5vw, 80px);
    --pad-x: clamp(26px, 9vw, 96px);
    display: block;
    padding: var(--pad-y) var(--pad-x);
  }
  .opening--pair .sheet__colour { position: absolute; inset: 0; }
  .opening--pair .sheet__photo { position: relative; max-width: 620px; margin-inline: auto; }
}

/* Phones and portrait screens, with motion: the same opening without pinning anything. The cover rests alone
   with air round it; the first part of the scroll opens it, as the reader's own scroll and at its pace:
   a portrait cover's colour page unfolds outward from the photograph's edges, a landscape cover opens to full
   bleed. Where scroll timelines are missing the colour page opens from the spine on arrival instead. */
@supports (animation-timeline: scroll()) {
  @media not all and (min-width: 1024px) and (min-aspect-ratio: 5/4) {
    .motion .opening--pair .sheet__colour {
      clip-path: inset(var(--pad-y) max(var(--pad-x), calc(50% - 310px)));
      transition: none;
      animation: sheet-unfold linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 34svh;
    }
    .motion .opening--bleed .sheet__photo {
      animation: sheet-bleed linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 30svh;
    }
  }
}
@keyframes sheet-unfold {
  from { clip-path: inset(var(--pad-y) max(var(--pad-x), calc(50% - 310px))); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes sheet-bleed {
  from { clip-path: inset(0 var(--margin)); }
  to { clip-path: inset(0 0); }
}

/* pinned: the stage holds while the scroll opens the cover (geometry and every frame: open.js) */
.motion.open-wide .opening { height: calc(100svh + var(--open-d, 100svh)); }
.motion.open-wide .opening__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.motion.open-wide .cover-title { position: relative; z-index: 1; }
.motion.open-wide .sheet {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  margin: 0;
  z-index: 2;                     /* the photograph covers the title as it fades, never the other way round */
  transform-origin: 50% 50%;
  will-change: transform, clip-path;
}
.motion.open-wide .opening:not(.is-measured) .sheet { opacity: 0; }

/* 3. The headline line and the intro. Headline from the first column; the intro joins the text column. */
.opener { padding-top: clamp(104px, 12vw, 184px); }
.opener__line {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em 2.6em;
  color: var(--accent);
}
.opener__headline {
  grid-column: 1 / -1;
  margin-top: clamp(16px, 1.6vw, 24px);
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-display);
  line-height: 1.08;              /* italic descenders (y, g, p, q) clear the next line and the mask */
  letter-spacing: -0.014em;
  max-width: 14.5em;
  padding-bottom: 0.06em;
  text-wrap: balance;
}
.opener__intro {
  grid-column: 1 / -1;
  margin-top: clamp(30px, 3.4vw, 52px);
  font-size: clamp(1.125rem, 0.98rem + 0.42vw, 1.3125rem);
  line-height: 1.52;
  max-width: 33em;
}
.opener__intro p + p { margin-top: 0.85em; }

/* 4. Sections: the label in the margin, the text in the column, a hairline in the issue's accent above. */
.chapter { padding-top: clamp(80px, 9vw, 136px); }
.chapter__rule { grid-column: 1 / -1; background: var(--accent); margin-bottom: clamp(18px, 2vw, 28px); }
.chapter__label { grid-column: 1 / -1; color: var(--ink-soft); }
.chapter__body { grid-column: 1 / -1; margin-top: 14px; max-width: 34em; }
.chapter__body p + p { margin-top: 1em; }

@media (min-width: 1024px) {
  .opener__headline { grid-column: 1 / span 10; }
  .opener__intro { grid-column: 5 / span 6; }
  .chapter__label { grid-column: 1 / span 3; padding-top: 0.5em; }
  .chapter__body { grid-column: 5 / span 6; margin-top: 0; }
}

/* Image plates. Full bleed for big landscapes; portraits alone or in pairs, with air, never stretched. */
.plate { margin-top: clamp(80px, 9vw, 136px); }
.plate .media { width: 100%; }
.plate--wide, .plate--single, .plate--pair, .plate--duo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(14px, 3vw, 24px);
  padding-inline: var(--margin);
  align-items: start;
}
.plate--wide .media, .plate--duo .media { grid-column: 1 / -1; }
.plate--single .media { grid-column: 1 / span 3; }
.plate--single.plate--right .media { grid-column: 2 / span 3; }
.plate--pair .media:first-child { grid-column: 1 / span 3; }
.plate--pair .media:last-child { grid-column: 2 / span 3; }
@media (min-width: 768px) {
  .plate--wide, .plate--single, .plate--pair, .plate--duo { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .plate--wide .media { grid-column: 2 / span 6; }
  .plate--single .media { grid-column: 2 / span 4; }
  .plate--single.plate--right .media { grid-column: 4 / span 4; }
  .plate--pair .media:first-child { grid-column: 1 / span 4; }
  .plate--pair .media:last-child { grid-column: 5 / span 4; margin-top: clamp(48px, 9vw, 140px); }
  .plate--duo .media { grid-column: span 4; }
}
@media (min-width: 1024px) {
  .plate--wide, .plate--single, .plate--pair, .plate--duo { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .plate--wide .media { grid-column: 2 / span 10; }
  /* a portrait never taller than the screen */
  .plate--single .media { grid-column: 2 / span 5; max-width: calc(84svh * var(--r)); }
  .plate--single.plate--right .media { grid-column: 7 / span 5; justify-self: end; }
  .plate--pair .media:first-child { grid-column: 2 / span 5; }
  .plate--pair .media:last-child { grid-column: 7 / span 5; }
  .plate--pair .media { max-width: calc(80svh * var(--r)); }
  .plate--pair .media:last-child { justify-self: end; }
  .plate--duo .media { grid-column: span 6; }
}

/* 5. The credits masthead. Role (label in the accent, his roles in New Tropic, his own sentence under them)
      and the credits (Art + Commerce: small caps label over the serif name, see .credits in 05-home.css). */
.mast { padding-top: clamp(104px, 11vw, 176px); row-gap: clamp(26px, 3vw, 40px); }
.mast__rule { grid-column: 1 / -1; background: var(--accent); }
.mast__role { grid-column: 1 / -1; }
.mast__label { color: var(--accent); }
.mast__roles {
  margin-top: clamp(12px, 1.2vw, 18px);
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.375rem, 1.08rem + 0.95vw, 1.9375rem);
  line-height: 1.24;
  letter-spacing: -0.006em;
}
.mast__statement { grid-column: 1 / -1; max-width: 34em; }
.mast__credits { grid-column: 1 / -1; padding-top: 0; }
.mast__credits::before { content: none; }
@media (min-width: 1024px) {
  .mast { grid-template-rows: auto auto 1fr; }
  .mast__role { grid-column: 1 / span 5; grid-row: 2; }
  .mast__statement { grid-column: 1 / span 5; grid-row: 3; }
  .mast__credits { grid-column: 7 / span 6; grid-row: 2 / span 2; align-self: start; padding-top: 0.15em; }
  /* no credits line in the copy: the role and his sentence share the row */
  .mast--solo .mast__statement { grid-column: 7 / span 5; grid-row: 2; padding-top: 2.1em; }
}

/* 6. Behind the scenes: the photographs at one height, left to right, the caption under them. */
.issue-page .bts { padding-top: var(--section-gap); }
.bts__frame { margin-top: clamp(26px, 3vw, 44px); padding-inline: var(--margin); }
.bts__row {
  --gap: clamp(10px, 1.1vw, 16px);
  --rowh: min(540px, 60svh);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}
@media (min-width: 768px) {
  .bts__row {
    display: flex;
    max-width: calc(var(--rowh) * var(--sum) + (var(--n) - 1) * var(--gap));
  }
  .bts__item { flex: var(--r) 1 0; min-width: 0; }
}
.bts__item .media { width: 100%; }
/* a landscape-cover issue: its colour page frames the photographs, like a contact strip on coloured stock */
.bts--colour .bts__frame { background-color: var(--accent); padding: clamp(28px, 6vw, 104px) var(--margin); }
.bts--colour .bts__row { margin-inline: auto; }
.bts__caption {
  margin-top: clamp(16px, 1.6vw, 22px);
  padding-inline: var(--margin);
  max-width: calc(48em + 2 * var(--margin));
  font-family: var(--font-sans);       /* Satoshi carries the en dash in "5–6)" in its own face */
  font-size: 0.8125rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

/* Satoshi's en dash is 0.927em wide, as long as an em dash; drawn at about half, its advance closed up to match */
.dash { display: inline-block; transform: scaleX(0.52); margin-inline: -0.22em; }

/* 7. Next issue: an index row of one, with the next cover beside it. Hover or focus previews its paper. */
.next { padding: clamp(120px, 13vw, 208px) var(--margin) clamp(80px, 9vw, 136px); }
.next > .rule { background: var(--rule-strong); }
.next__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) clamp(96px, 28vw, 150px);
  grid-template-areas: 'label label cover' 'no year cover' 'client client cover' 'role role cover';
  grid-template-rows: auto auto auto 1fr;
  column-gap: 14px;
  row-gap: 10px;
  align-items: start;
  padding-top: clamp(18px, 2vw, 28px);
}
.next__label { grid-area: label; color: var(--ink-soft); margin-bottom: 12px; }
.next__no { grid-area: no; color: var(--ink-soft); white-space: nowrap; transition: color var(--dur-tint) var(--ease-tint); }
.next__year { grid-area: year; color: var(--ink-soft); }
.next__client {
  grid-area: client;
  justify-self: start;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.125rem, 1.2rem + 3.6vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.014em;
  padding-bottom: 0.08em;
  text-wrap: balance;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 100% 100%;
  background-size: 0% 1px;
  transition: background-size var(--dur-tint) var(--ease-tint);
}
.next__role { grid-area: role; color: var(--ink-soft); font-weight: 400; letter-spacing: 0.14em; max-width: 46em; }
.next__cover { grid-area: cover; align-self: start; }
.next__cover .media img { transform: scale(1.03); transition: transform 1600ms var(--ease-out); }
.next__link:hover .next__client, .next__link:focus-visible .next__client, .next__link.is-active .next__client { background-position: 0 100%; background-size: 100% 1px; }
.next__link:hover .next__no, .next__link:focus-visible .next__no, .next__link.is-active .next__no { color: var(--accent); }
.next__link:hover .next__cover img, .next__link:focus-visible .next__cover img, .next__link.is-active .next__cover img { transform: none; }
.next__link:focus-visible { outline: 1px solid var(--accent); outline-offset: 10px; }
@media (min-width: 1024px) {
  /* the words sit together at the foot of the next cover: label, then number, name and year, then the role */
  .next__link {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas: none;
    grid-template-rows: 1fr auto auto auto;
    column-gap: var(--gutter);
    row-gap: 0;
    align-items: baseline;
  }
  .next__label { grid-column: 1 / span 8; grid-row: 2; margin: 0 0 clamp(18px, 2vw, 30px); }
  .next__no { grid-column: 1 / span 1; grid-row: 3; }
  .next__client { grid-column: 2 / span 7; grid-row: 3; }
  .next__year { grid-column: 9 / span 1; grid-row: 3; justify-self: end; }
  .next__role { grid-column: 2 / span 7; grid-row: 4; margin-top: 16px; }
  .next__cover { grid-column: 10 / span 3; grid-row: 1 / span 4; align-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  .next__client, .next__no, .next__cover .media img { transition: none; }
  .next__cover .media img { transform: none; }
}

/* 08-pages.css */
/* About, Contact, 404. Base paper; the accent is the ink. */

/* About 1. The person: a portrait page bled off the left edge and a text page, like a magazine profile. */
.profile { padding-top: calc(var(--header-h) + clamp(28px, 5vh, 64px)); }
.profile__inner { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: clamp(32px, 6vw, 48px); }
.profile__image .media { width: 100%; }
.profile__page { padding-inline: var(--margin); }
.profile__lead {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.125rem, 1.25rem + 2.6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  padding-bottom: 0.06em;
  text-wrap: balance;
}
.profile__body { margin-top: clamp(26px, 2.6vw, 40px); max-width: 32em; }
.profile__body p:first-child {                 /* the standfirst: New Tropic Text, a size up (Light stays for headlines) */
  font-size: clamp(1.125rem, 0.98rem + 0.42vw, 1.3125rem);
  line-height: 1.52;
}
.profile__body p + p { margin-top: 1.1em; }
@media (min-width: 1024px) {
  .profile__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    padding-right: var(--margin);
    align-items: end;
  }
  .profile__image { grid-column: 1 / span 6; }
  /* the portrait never outgrows the screen: on tall-wide displays it narrows rather than crops */
  .profile__image .media { width: min(100%, calc((100svh - var(--header-h) - 48px) * 0.818)); }
  .profile__page { grid-column: 8 / span 5; padding: 0 0 clamp(4px, 1vw, 16px); }
}

/* About 2. Place and object: two of his frames, unequal, with air. Each names its issue. */
.still-life { padding-top: var(--section-gap); row-gap: clamp(40px, 8vw, 56px); align-items: end; }
.still-life .media { width: 100%; }
.still-life__place { grid-column: 1 / -1; }
.still-life__object { grid-column: 2 / span 3; }
.still-life__caption { margin-top: 12px; color: var(--ink-soft); }
.still-life__caption a { --accent: var(--ink); }
@media (min-width: 768px) {
  .still-life__place { grid-column: 1 / span 5; }
  .still-life__object { grid-column: 6 / span 3; }
}
@media (min-width: 1024px) {
  .still-life__place { grid-column: 1 / span 7; }
  .still-life__object { grid-column: 9 / span 3; margin-bottom: clamp(48px, 8vw, 128px); }
}

/* About 3. Press: a small masthead line. */
.press { padding: var(--section-gap) var(--margin) clamp(96px, 12vw, 176px); row-gap: 18px; }
.press__rule { grid-column: 1 / -1; margin-bottom: clamp(8px, 1vw, 12px); }
.press__label { grid-column: 1 / -1; color: var(--ink-soft); }
.press__list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 1.6em;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.375rem, 1.05rem + 1.05vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.006em;
}
@media (min-width: 1024px) {
  .press__label { grid-column: 1 / span 3; padding-top: 0.75em; }
  .press__list { grid-column: 5 / span 8; }
}

/* Contact: the address on its own page, centred in the screen like a cover line. */
.contact--page {
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;        /* the address keeps its own width, so its hairline ends with it (as on home) */
  justify-content: center;
  padding-top: calc(var(--header-h) + clamp(40px, 8vh, 96px));
}

/* 404: one quiet line and the way home. */
.lost {
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vh, 34px);
  padding: calc(var(--header-h) + 40px) var(--margin) 80px;
  text-align: center;
}
.lost__line {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-title);
  line-height: 1.2;
  letter-spacing: -0.006em;
}
.lost__link { --accent: var(--ink); color: var(--ink-soft); }
.lost__link:hover, .lost__link:focus-visible { color: var(--ink); }

/* 09-transition.css */
/* The issue tint, carried into the issue (BUILD.md signature 1), with cross-document view transitions.
   Every page leaves its paper behind for the next (carry.js); the next opens on it and turns to its own
   (layout.mjs, tint.js). So the two pages crossfade on one paper, and the ground never passes through grey.
   An issue opened from the index or from "Next issue" also receives the cover you were looking at: the one
   photograph travels from the row to the issue's cover. Reduced motion: no transition, the page simply loads. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* the page: like turning a page, the words and pictures of the old one lift off first, then the new one
   settles; the paper under both is the same, so for a moment there is only paper (never a double exposure) */
::view-transition { background-color: var(--ground); } /* the paper itself (live, so it can turn), under both pages */
::view-transition-old(root) { animation: rh-page-out 300ms cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: rh-page-in 560ms cubic-bezier(0.16, 1, 0.3, 1) 220ms both; }
@keyframes rh-page-out { to { opacity: 0; } }
@keyframes rh-page-in { from { opacity: 0; } }
/* the header is the same on every page, so it simply stays */
.site-header { view-transition-name: rh-header; }
::view-transition-group(rh-header) { animation-duration: 240ms; } /* done before the carried paper starts to turn */

/* the cover travels: one picture, moved and resized from the row to the issue's cover, slow to start and
   slow to land. Both captures show the same photograph (the same file at two sizes, the same crop), so the
   larger new one simply lies over the old one; the old one is there only until the new one has loaded. */
::view-transition-group(rh-cover) {
  animation-duration: 1150ms;
  animation-timing-function: cubic-bezier(0.62, 0.04, 0.16, 1);
}
::view-transition-image-pair(rh-cover) { overflow: clip; isolation: auto; }
::view-transition-old(rh-cover),
::view-transition-new(rh-cover) {
  height: 100%;
  object-fit: cover;
  overflow: clip;
  mix-blend-mode: normal;
  animation: none;
}
/* a cover with nowhere to land (the issue did not take it) quietly goes where it was */
::view-transition-old(rh-cover):only-child { animation: rh-cover-out 420ms var(--ease-out) both; }
@keyframes rh-cover-out { to { opacity: 0; } }

/* Arrival. The issue's cover photograph takes the name for the one transition that brings it (vt-cover, removed
   when it ends). It travelled in, so it does not reveal itself again; the title waits for it a moment. */
.vt-cover .sheet__photo > .media { view-transition-name: rh-cover; }
.carry-cover .sheet__photo > [data-reveal='crop'] { clip-path: none; transition: none; background-color: transparent; }
.carry-cover .sheet__photo > [data-reveal='crop'] img { transform: none; transition: none; }
.carry-cover .cover-title { --lag: 440ms; }
/* the colour page waits behind the travelling photograph (on phones it rests exactly where the photograph lands,
   and would show as a block while the photograph is still on its way), then returns once the cover is down */
.carry-cover .sheet__colour { transition: opacity 600ms var(--ease-out), clip-path 1.6s var(--ease-out) var(--d, 0ms); }
.vt-cover .sheet__colour { opacity: 0; }
/* without view transitions: the cover fades in where it rests, on the paper you came from */
.carry-fade .sheet__photo > .media { animation: rh-cover-in 1200ms var(--ease-out) 80ms both; }
@keyframes rh-cover-in { from { opacity: 0; } }
