/* ==========================================================================
   Matthew Older — main stylesheet
   One file, no build step. Sections:
   1. Fonts   2. Tokens   3. Base   4. Layout & utilities
   5. Header  6. Hero     7. Sections (about, expertise, work)
   8. Contact & footer    9. Motion   10. Shared components for future pages

   Typography is driven entirely by the "Type" tokens in section 2.
   To change the typeface direction, change those tokens only.
   ========================================================================== */

/* 1. Fonts — self-hosted, subset to Latin (SIL Open Font Licence) --------
   Browsers only download a face when the page actually uses it. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-opsz.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-opsz-italic.woff2") format("woff2");
  font-weight: 300 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens ------------------------------------------------------------- */
:root {
  /* Colour — warm paper, near-black ink, one burnt-orange accent.
     All text pairings meet WCAG AA (ratios in comments). */
  --paper: #f3f0e8;
  --ink: #16150f;           /* 16.1:1 on paper */
  --ink-soft: #37342d;      /* 11.3:1 on paper — running text */
  --muted: #5e5a51;         /*  6.0:1 on paper — labels, secondary */
  --hairline: #d6d1c4;      /* decorative only */
  --accent: #c63d17;        /*  4.5:1 on paper */

  --ink-muted: #b3aea2;     /*  8.3:1 on ink */
  --ink-hairline: #3a372f;  /* decorative only */
  --accent-on-ink: #ef6b43; /*  6.0:1 on ink */

  /* Type: families */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;

  /* Type: roles. Current direction = Fraunces serif headlines. */
  --font-display: var(--font-serif);   /* hero, section headings */
  --font-heading: var(--font-serif);   /* pillar titles, lead, contact links */
  --font-accent: var(--font-serif);    /* the emphasised word "simpler" */
  --font-wordmark: var(--font-serif);

  --display-axes: "opsz" 144;          /* Fraunces' display cut at large sizes */
  --hero-size: clamp(3.25rem, 1.5rem + 7.4vw, 10rem);
  --hero-weight: 330;
  --hero-track: -0.035em;
  --hero-leading: 0.96;
  --accent-style: italic;
  --accent-weight: 320;
  --accent-track: -0.02em;
  --accent-scale: 1;

  --display-weight: 350;
  --display-track: -0.025em;
  --display-leading: 1.04;
  --heading-weight: 400;
  --heading-track: -0.015em;
  --lead-weight: 380;
  --wordmark-weight: 450;
  --wordmark-track: -0.015em;
  --wordmark-size: 1.3rem;

  /* Type: scale */
  --step--1: 0.875rem;                                         /* 14px labels */
  --step-0: clamp(1.0625rem, 1.01rem + 0.22vw, 1.1875rem);     /* 17–19px body */
  --step-1: clamp(1.1875rem, 1.1rem + 0.45vw, 1.4375rem);      /* 19–23px */
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);               /* 24–32px */
  --step-3: clamp(2.25rem, 1.6rem + 3vw, 4.25rem);             /* 36–68px */

  /* Space & layout */
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3.5rem);
  --col-gap: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  --section-space: clamp(4.5rem, 2.75rem + 6vw, 8.5rem);
  --max: 82.5rem;
  --header-h: 4.25rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 999px;
}

/* 3. Base --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  background: var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* 4. Layout & utilities ------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* The recurring device: an accent full stop. */
.stop { color: var(--accent); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.display {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: var(--display-weight);
  line-height: var(--display-leading);
  letter-spacing: var(--display-track);
  font-variation-settings: var(--display-axes);
  text-wrap: balance;
}

.text-link {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-thickness 0.2s var(--ease), color 0.2s;
}
.text-link:hover { text-decoration-thickness: 2px; color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn__icon {
  width: 1rem; height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--solid:hover .btn__icon { transform: translate(2px, -2px); }
.btn--line { border: 1px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--line:hover .btn__icon { transform: translateY(2px); }

/* 5. Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.wordmark {
  font-family: var(--font-wordmark);
  font-size: var(--wordmark-size);
  font-weight: var(--wordmark-weight);
  letter-spacing: var(--wordmark-track);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav ul { display: flex; gap: clamp(1rem, 0.4rem + 2.4vw, 2.5rem); }
.site-nav a {
  position: relative;
  display: inline-block;
  padding-block: 0.6rem;          /* 44px+ tap target with line-height */
  font-size: 1rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.35rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="true"] { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 26em) {
  .wordmark { font-size: calc(var(--wordmark-size) * 0.88); }
  .site-nav a { font-size: 0.9375rem; }
}

/* 6. Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(2.75rem, 1rem + 6vh, 6rem);
  overflow: hidden;
}
.hero__eyebrow { margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }

.hero__title {
  font-family: var(--font-display);
  font-size: var(--hero-size);
  font-weight: var(--hero-weight);
  line-height: var(--hero-leading);
  letter-spacing: var(--hero-track);
  font-variation-settings: var(--display-axes);
}
.hero__line { display: block; }
.hero__title em {
  font-family: var(--font-accent);
  font-style: var(--accent-style);
  font-weight: var(--accent-weight);
  font-size: calc(var(--accent-scale) * 1em);
  letter-spacing: var(--accent-track);
}

.hero__foot {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2rem, 1rem + 3vw, 3.75rem);
}
.hero__lede {
  max-width: 34ch;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.nowrap { white-space: nowrap; }

@media (min-width: 56em) {
  .hero__foot {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--col-gap);
    align-items: end;
  }
  .hero__lede { grid-column: 1 / span 7; }
  .hero__actions { grid-column: 8 / -1; justify-content: flex-end; }
}

/* The thread */
.hero__thread {
  margin-top: clamp(2rem, 1rem + 3.5vw, 4rem);
  height: clamp(6.5rem, 4.5rem + 7vw, 11rem);
  padding-inline: var(--gutter);
}
.thread { width: 100%; height: 100%; overflow: visible; }
.thread__path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.thread__dot { fill: var(--accent); }

/* 7. Sections ----------------------------------------------------------- */
.section { padding-top: var(--section-space); }
.section__label { margin-bottom: clamp(1rem, 0.8rem + 0.8vw, 1.5rem); }
.section__label::before {
  content: "";
  width: 2rem; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* About */
.about__title { max-width: 14ch; }
.about__grid {
  display: grid;
  gap: 3rem;
  margin-top: clamp(2rem, 1.25rem + 3vw, 3.75rem);
}
.about__body { max-width: 40rem; }
.about__body p {
  color: var(--ink-soft);
  font-size: var(--step-0);
  line-height: 1.7;
}
.about__body p + p { margin-top: 1.1em; }
.about__body .lead {
  font-family: var(--font-heading);
  font-size: var(--step-2);
  font-weight: var(--lead-weight);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}

.facts { border-top: 1px solid var(--ink); }
.facts__row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--hairline);
}
.facts dd { font-size: 1.0625rem; line-height: 1.5; }
.facts dt,
.aside-title {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.facts dt { padding-top: 0.2em; }
.aside-title { margin-top: 2.5rem; margin-bottom: 1rem; }
.practice { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.practice li {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

@media (min-width: 56em) {
  .about__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--col-gap);
  }
  .about__body { grid-column: 1 / span 7; }
  .about__aside { grid-column: 9 / -1; }
}

/* Expertise */
.expertise__title { max-width: 16ch; }
.pillars {
  margin-top: clamp(2rem, 1.25rem + 3vw, 3.75rem);
  border-top: 1px solid var(--ink);
}
.pillar {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num glyph"
    "text text";
  gap: 1rem 1.5rem;
  align-items: start;
  padding-block: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  border-bottom: 1px solid var(--hairline);
}
.pillar::before {               /* accent rule that draws on hover */
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.pillar:hover::before { transform: scaleX(1); }

.pillar__num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 0.45rem;
}
.pillar__glyph {
  grid-area: glyph;
  justify-self: end;
  width: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
}
.pillar__text { grid-area: text; max-width: 38rem; }
.pillar__title {
  font-family: var(--font-heading);
  font-size: var(--step-2);
  font-weight: var(--heading-weight);
  line-height: 1.15;
  letter-spacing: var(--heading-track);
  margin-bottom: 0.65rem;
}
.pillar__text p {
  color: var(--ink-soft);
  font-size: var(--step-0);
  line-height: 1.65;
}
.pillar__text .tags {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 48em) {
  .pillar {
    grid-template-columns: 4rem minmax(0, 1fr) 6rem;
    grid-template-areas: "num text glyph";
    column-gap: var(--col-gap);
  }
}
@media (min-width: 64em) {
  .pillar { grid-template-columns: repeat(12, 1fr); grid-template-areas: none; }
  .pillar__num { grid-area: auto; grid-row: 1; grid-column: 1 / span 1; }
  .pillar__text { grid-area: auto; grid-row: 1; grid-column: 3 / span 7; }
  .pillar__glyph { grid-area: auto; grid-row: 1; grid-column: 11 / -1; }
}

/* Glyph line work */
.pillar__glyph svg { width: 100%; height: auto; overflow: visible; }
.g-line, .g-draw {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.g-faint circle { fill: var(--hairline); }
.g-accent { fill: var(--accent); }

/* Work */
.work__inner { display: grid; }
.work__body { max-width: 40rem; }
.work__title {
  font-family: var(--font-heading);
  font-size: var(--step-2);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-track);
  line-height: 1.15;
  margin-bottom: 0.85rem;
}
.work__body p { color: var(--ink-soft); }
.work__body p + p { margin-top: 1em; }
.work__body .text-link { color: var(--ink); }
.work__body .text-link:hover { color: var(--accent); }

/* "Selected work" shares the expertise text column at every width,
   so its heading lines up with the pillar titles above it. */
@media (min-width: 48em) and (max-width: 63.99em) {
  .work__inner { padding-left: calc(var(--gutter) + 4rem + var(--col-gap)); }
}
@media (min-width: 64em) {
  .work__inner {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--col-gap);
    align-items: start;
  }
  .work__inner > .section__label { grid-column: 1 / span 2; margin-top: 0.55rem; }
  .work__body { grid-column: 3 / span 7; }
  .work-list { grid-column: 3 / -1; }
}

/* 8. Contact & footer --------------------------------------------------- */
.contact {
  margin-top: var(--section-space);
  padding-block: clamp(4rem, 2.5rem + 5vw, 7.5rem) clamp(3.5rem, 2.5rem + 3vw, 6rem);
  background: var(--ink);
  color: var(--paper);
}
.contact ::selection { background: var(--accent-on-ink); color: var(--ink); }
.contact :focus-visible { outline-color: var(--accent-on-ink); }
.contact .eyebrow { color: var(--ink-muted); }
.contact .stop { color: var(--accent-on-ink); }
.contact__title { max-width: 13ch; }
.contact__intro {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-muted);
}

.channels {
  margin-top: clamp(2.5rem, 1.75rem + 3vw, 4.5rem);
  border-top: 1px solid var(--ink-muted);
}
.channel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label action" "link link";
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--ink-hairline);
}
.channel__label {
  grid-area: label;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.channel__link {
  grid-area: link;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 0.9rem + 2.6vw, 3rem);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  font-variation-settings: var(--display-axes);
  line-height: 1.15;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.25s var(--ease);
}
.channel__link:hover { color: var(--accent-on-ink); }
.channel__arrow {
  grid-area: action;
  width: 1.5rem; height: 1.5rem;
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 1.25;
  stroke-linecap: round;
  transition: transform 0.35s var(--ease), stroke 0.25s;
}
.channel:hover .channel__arrow { stroke: var(--accent-on-ink); transform: translate(3px, -3px); }

.channel__copy {
  grid-area: action;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--ink-hairline);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.channel__copy:hover { border-color: var(--ink-muted); color: var(--paper); }
.channel__copy.is-copied { border-color: var(--accent-on-ink); color: var(--paper); }

@media (min-width: 56em) {
  .channel {
    grid-template-columns: repeat(12, 1fr);
    grid-template-areas: none;
    column-gap: var(--col-gap);
    padding-block: 1.75rem;
  }
  .channel__label { grid-area: auto; grid-column: 1 / span 3; }
  .channel__link { grid-area: auto; grid-column: 4 / span 8; }
  .channel__copy,
  .channel__arrow { grid-area: auto; grid-column: 12; justify-self: end; }
}

.site-footer {
  background: var(--ink);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}
.site-footer :focus-visible { outline-color: var(--accent-on-ink); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  padding-block: 1.75rem 2.25rem;
  border-top: 1px solid var(--ink-hairline);
}
.site-footer__name { color: var(--paper); }
.site-footer__top {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-block: 0.6rem;
  color: var(--paper);
  text-decoration: none;
}
.site-footer__top svg {
  width: 0.9rem; height: 0.9rem;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.site-footer__top:hover { color: var(--accent-on-ink); }
.site-footer__top:hover svg { transform: translateY(-3px); }

@media (max-width: 35em) {
  .site-footer__top { margin-left: 0; width: 100%; }
}

/* 9. Motion ------------------------------------------------------------- */
/* Reveal-on-scroll only runs when JS is available and motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js .hero [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
  .js .hero [data-reveal]:nth-child(3) { transition-delay: 0.22s; }

  /* Glyphs: line work re-draws on hover */
  .g-draw { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s var(--ease); }
  .pillar:hover .g-draw { animation: redraw 1s var(--ease); }
  .g-faint circle { transition: fill 0.4s; }
  .pillar:hover .g-faint circle { fill: var(--muted); }
  .g-blink { animation: blink 1.1s steps(1) infinite; animation-play-state: paused; }
  .pillar:hover .g-blink { animation-play-state: running; }
}
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: 0; } }

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

/* 10. Shared components for future pages ---------------------------------
   Ready for case studies, a full About page, articles and a CV page.
   See templates/case-study.html for usage.                                */
.page-header { padding-block: clamp(3rem, 2rem + 5vw, 7rem) clamp(2rem, 1rem + 3vw, 4rem); }
.page-header .display { max-width: 18ch; }
.page-header__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  margin-top: 2rem;
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted);
}
.prose { max-width: 40rem; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 {
  margin-top: 2.5em;
  font-family: var(--font-heading); font-size: var(--step-2);
  font-weight: var(--heading-weight); letter-spacing: var(--heading-track); line-height: 1.2;
  color: var(--ink);
}
.prose h3 { margin-top: 2em; font-size: var(--step-1); font-weight: 500; color: var(--ink); }
.prose ul { list-style: disc; padding-left: 1.25em; }
.prose ol { list-style: decimal; padding-left: 1.25em; }
.prose a { text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
.prose figure { margin: 2.5em 0; }
.prose figcaption { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--muted); }
.prose img { width: 100%; height: auto; border-radius: 4px; }

.work-list { margin-top: 3rem; border-top: 1px solid var(--ink); }
.work-item { border-bottom: 1px solid var(--hairline); }
.work-item__link {
  display: grid; gap: 0.5rem;
  padding-block: 2rem;
  text-decoration: none;
  transition: color 0.25s;
}
.work-item__link:hover .work-item__title { color: var(--accent); }
.work-item__meta {
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted);
}
.work-item__title {
  font-family: var(--font-heading); font-size: var(--step-2);
  font-weight: var(--heading-weight); letter-spacing: var(--heading-track); line-height: 1.15;
  transition: color 0.25s;
}
.work-item__summary { color: var(--ink-soft); max-width: 40rem; }

/* Print: ink on white, no chrome */
@media print {
  .site-header, .hero__thread, .skip-link, .channel__copy, .site-footer__top { display: none !important; }
  body, .contact, .site-footer { background: #fff; color: #000; }
  .contact .eyebrow, .contact__intro, .channel__label { color: #333; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
