/* jakestrack.com: warm, photo-led, personal.
   Big full-bleed photographs, condensed uppercase display type, a clean sans for reading, a serif kept for poems.
   Colour comes from the hero: sunrise orange on warm paper, with dark bands for the moments that ask something
   of the reader (Real Secrets, meet, support).

   Most sections are still a .sheet: a narrow label column and a text column. Full-bleed pieces (.photo-hero,
   .band, .strip) sit outside that grid. */

:root {
  --paper: #f7f2ea;
  --surface: #fffaf3;
  --sunk: #efe6da;
  --ink: #1d1714;
  --muted: #6e6158;
  --link: #a8461a;
  --link-hover: #7f3210;
  --accent: #e0672c;
  --gold: #f3a95c;
  --mark: #e0672c;
  --rule: #e2d6c7;
  --error: #9b2c2c;
  --on-link: #ffffff;

  /* Dark bands look the same in both modes; dark mode lifts them a touch so they still read as a band. */
  --band: #17110e;
  --band-2: #231a15;
  --band-ink: #f6ede2;
  --band-muted: #c4b3a4;
  --band-rule: rgba(246, 237, 226, 0.16);

  --display: "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;

  --wide: 76rem;
  --margin-col: 9.5rem;
  --gap: 3rem;
  --measure: 40rem;
  --pad: clamp(1rem, 4vw, 3rem);
  --sunrise: linear-gradient(100deg, #f3a95c 0%, #e0672c 55%, #b8402a 100%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #120e0c;
    --surface: #1c1613;
    --sunk: #221b17;
    --ink: #f1e8dd;
    --muted: #b3a395;
    --link: #f3a95c;
    --link-hover: #ffc98f;
    --accent: #ee7a3e;
    --mark: #f3a95c;
    --rule: #33281f;
    --error: #f0a3a3;
    --on-link: #1a120e;
    --band: #1d1612;
    --band-2: #2a201a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #120e0c;
  --surface: #1c1613;
  --sunk: #221b17;
  --ink: #f1e8dd;
  --muted: #b3a395;
  --link: #f3a95c;
  --link-hover: #ffc98f;
  --accent: #ee7a3e;
  --mark: #f3a95c;
  --rule: #33281f;
  --error: #f0a3a3;
  --on-link: #1a120e;
  --band: #1d1612;
  --band-2: #2a201a;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: clip;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

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

::selection {
  background: color-mix(in srgb, var(--gold) 50%, transparent);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  font-family: var(--sans);
  z-index: 20;
}
.skip:focus {
  left: 1rem;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.1;
  text-wrap: balance;
}

.display,
.page-head h1,
.post-head h1,
.photo-hero h1,
.band h2,
.section-title {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
}

.eyebrow {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

/* ------------------------------------------------------------ masthead */

.masthead {
  position: relative;
  z-index: 10;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.15rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 2rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  line-height: 1;
}
.wordmark:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  color: var(--accent);
}
.nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}
.nav .nav-support {
  color: var(--accent);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--rule);
  color: var(--muted);
  border-radius: 999px;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--muted);
}

/* Pages that open on a photo or a dark band: the masthead floats over it in white. */
.has-hero .masthead {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-width: none;
  padding-inline: max(var(--pad), calc((100vw - var(--wide)) / 2 + var(--pad)));
  background: linear-gradient(rgba(10, 6, 4, 0.55), rgba(10, 6, 4, 0));
  padding-bottom: 2.5rem;
}
.has-hero .wordmark,
.has-hero .nav a {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.has-hero .nav a:hover,
.has-hero .wordmark:hover {
  color: var(--gold);
}
.has-hero .nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
}
.has-hero .nav .nav-support {
  color: var(--gold);
}
.has-hero .theme-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

/* ------------------------------------------------------------ the sheet grid */

.sheet {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.75rem var(--pad);
  display: grid;
  grid-template-columns: var(--margin-col) minmax(0, var(--measure)) minmax(0, 1fr);
  column-gap: var(--gap);
}

.sheet > .margin-note,
.sheet > .margin-head,
.sheet > figure.margin-note {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  margin: 0;
}
.sheet > .text,
.sheet > .prose,
.sheet > .after-list {
  grid-column: 2;
  min-width: 0;
}
.sheet > .text-wide,
.sheet > .feature {
  grid-column: 2 / 4;
  min-width: 0;
  max-width: 56rem;
}
.sheet > .after-list {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.margin-note {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
  padding-top: 0.4rem;
}

.margin-head {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--accent);
  padding-top: 0.35rem;
}

.year-head {
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  padding-top: 0;
}

main {
  padding-bottom: 3rem;
}

/* ------------------------------------------------------------ page heads */

.page-head {
  padding-top: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: 1.5rem;
}
.page-head h1,
.post-head h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 0 0 1rem;
}
.dek {
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 1rem;
  text-wrap: pretty;
}

/* A full-bleed photograph with the page title on it. */
.photo-hero {
  position: relative;
  min-height: clamp(26rem, 68vh, 44rem);
  display: grid;
  align-items: end;
  color: #fff;
  background: var(--band);
  isolation: isolate;
  overflow: hidden;
}
.photo-hero > img,
.photo-hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  z-index: -2;
}
.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(14, 8, 5, 0.82) 0%, rgba(14, 8, 5, 0.35) 38%, rgba(14, 8, 5, 0) 62%),
    linear-gradient(to right, rgba(14, 8, 5, 0.35), rgba(14, 8, 5, 0) 55%);
}
.photo-hero-text {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 6rem var(--pad) clamp(2rem, 5vw, 3.5rem);
}
.photo-hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  margin: 0 0 0.75rem;
  max-width: 14ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}
.photo-hero .dek {
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
  margin: 0;
}
.photo-hero .eyebrow {
  color: var(--gold);
}
.photo-hero a:not(.button) {
  color: #fff;
}

/* ------------------------------------------------------------ home */

.home-hero {
  min-height: min(100svh, 62rem);
}
.home-hero h1 {
  font-size: clamp(3.4rem, 10vw, 8rem);
  max-width: none;
  margin-bottom: 0.5rem;
}
.home-hero .hero-sub {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  max-width: 30rem;
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.intro {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--pad) clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.intro-text .lead {
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.45;
  margin: 0 0 1.1rem;
  font-weight: 450;
}
.intro-text p {
  margin: 0 0 1rem;
}
.intro-figure {
  margin: 0;
  justify-self: center;
  max-width: 22rem;
  width: 100%;
}
.intro-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 6px;
  box-shadow: 18px 18px 0 -2px var(--gold);
}
.intro-figure figcaption {
  margin-top: 1.4rem;
}

.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1.75rem;
}
.section-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 32rem;
}
.section-more {
  margin: 1.75rem 0 0;
  font-weight: 600;
}

/* Building now: image cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -18px rgba(40, 20, 10, 0.45);
}
.card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sunk);
  border-bottom: 1px solid var(--rule);
}
.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.card-body {
  padding: 1.2rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.card-body .eyebrow {
  margin: 0;
}
.card-name {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.85rem;
  line-height: 1.05;
  margin: 0;
}
.card-name a {
  color: var(--ink);
  text-decoration: none;
}
/* The whole card is the link target. */
.card-name a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card-name a:hover {
  color: var(--accent);
}
.card-body p {
  margin: 0;
  color: var(--muted);
}
.card-host {
  margin-top: auto !important;
  padding-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--link) !important;
}

/* Real Secrets has no screenshot: a dark typographic card instead. */
.card-secret {
  background: var(--band);
  border-color: var(--band);
  color: var(--band-ink);
}
.card-secret .card-media {
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(224, 103, 44, 0.45), rgba(224, 103, 44, 0) 60%),
    var(--band);
  border-bottom-color: var(--band-rule);
}
.secret-tag {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--band-ink);
  text-transform: uppercase;
}
.secret-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  margin-top: 0.6rem;
}
.card-secret .card-name a {
  color: var(--band-ink);
}
.card-secret .card-name a:hover {
  color: var(--gold);
}
.card-secret .card-body p {
  color: var(--band-muted);
}
.card-secret .card-host {
  color: var(--gold) !important;
}

/* Personality strip */
.strip {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: var(--sunk);
}
.strip .section-head {
  max-width: var(--wide);
  margin: 0 auto 1.5rem;
  padding: 0 var(--pad);
}
.strip-grid {
  list-style: none;
  margin: 0;
  padding: 0 var(--pad);
  max-width: calc(var(--wide) + 10rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}
.strip-grid li {
  margin: 0;
}
.strip-grid figure {
  margin: 0;
}
.strip-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
}
.strip-grid li:nth-child(even) {
  margin-top: 2rem;
}
.strip-grid figcaption {
  font-size: 0.8rem;
  margin-top: 0.45rem;
}

/* ------------------------------------------------------------ dark bands */

.band {
  background: var(--band);
  color: var(--band-ink);
  position: relative;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--sunrise);
}
.band a:not(.button) {
  color: var(--gold);
}
.band .dek,
.band .fine,
.band .margin-note {
  color: var(--band-muted);
}
.band .margin-head {
  color: var(--gold);
}
.band-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
}
.band h2 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin: 0 0 1rem;
}
.band-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.band-split p {
  margin: 0 0 1rem;
}
.band-aside {
  border-left: 1px solid var(--band-rule);
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
}
.band-aside h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.6rem;
}
/* A page head drawn as a dark band (Real Secrets, Support). */
.band-head {
  padding-top: 7rem;
}
.band-head.sheet {
  max-width: none;
  padding-inline: max(var(--pad), calc((100vw - var(--wide)) / 2 + var(--pad)));
  grid-template-columns: var(--margin-col) minmax(0, var(--measure)) minmax(0, 1fr);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.band-head h1 {
  color: var(--band-ink);
}
.band-head .lede {
  font-size: 1.35rem;
  color: var(--band-ink);
}
.band-head p {
  color: var(--band-muted);
}

/* ------------------------------------------------------------ buttons */

.button,
button[type="submit"] {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button:hover,
button[type="submit"]:hover {
  background: #c4521c;
  border-color: #c4521c;
  color: #fff;
}
.button-quiet {
  background: transparent;
  color: var(--ink);
  border-color: currentColor;
}
.button-quiet:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.button-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}
.button-light:hover {
  background: #fff;
  border-color: #fff;
  color: #1d1714;
}
.band .button-quiet {
  color: var(--band-ink);
}
.band .button-quiet:hover {
  background: var(--band-ink);
  color: var(--band);
  border-color: var(--band-ink);
}
button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ------------------------------------------------------------ ledger (/projects/) */

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ledger-row {
  border-top: 1px solid var(--rule);
  padding: 1rem 0 1.1rem;
}
.ledger-role {
  display: block;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.ledger-name {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 2rem;
  line-height: 1.05;
  color: var(--ink);
  text-decoration: none;
  margin: 0.1rem 0 0.25rem;
}
.ledger-name a {
  color: var(--ink);
  text-decoration: none;
}
a.ledger-name:hover,
.ledger-name a:hover {
  color: var(--accent);
}
.ledger-body p {
  margin: 0;
}

.project-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}
.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.project-row:nth-child(even) .project-shot {
  order: 2;
}
.project-shot {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 10;
  background: var(--sunk);
  box-shadow: 0 20px 40px -28px rgba(40, 20, 10, 0.55);
}
.project-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.project-shot.card-secret {
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(224, 103, 44, 0.45), rgba(224, 103, 44, 0) 60%),
    var(--band);
  border-color: var(--band);
  text-decoration: none;
}
.project-text .ledger-name {
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  margin: 0.2rem 0 0;
}
.ledger-host {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.2rem 0 0.9rem !important;
}
.project-text p + p {
  margin-top: 0.8rem;
}

/* ------------------------------------------------------------ entries (writing lists, Hawking-plain) */

.entries {
  list-style: none;
  margin: 0;
  padding: 0;
}
.entry {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0 1.25rem;
  padding: 1.15rem 0 1.2rem;
  border-top: 1px solid var(--rule);
}
.entry:first-child {
  border-top: 0;
  padding-top: 0.25rem;
}
.entry-date {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0.4rem;
  white-space: nowrap;
}
.entry-title {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  text-wrap: balance;
}
.entry-title:hover {
  color: var(--accent);
}
.entry-excerpt {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}
.entry-filed {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.entry-filed a {
  color: var(--muted);
}
.read-more {
  display: inline-block;
  margin-top: 0.45rem;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}
.read-more:hover {
  color: var(--link-hover);
}
.read-more::after {
  content: " \2192";
}

.home-writing .entries {
  max-width: 52rem;
}
.home-writing .entry {
  grid-template-columns: 7rem minmax(0, 1fr);
}
.home-writing .entry-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.year {
  padding-block: 1.25rem;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.3rem;
  font-family: var(--display);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1.25rem;
}
.topics a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.topics a:hover {
  color: var(--accent);
}
.topics a[aria-current="page"] {
  border-bottom-color: var(--accent);
}
.count {
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ posts */

.post-head {
  padding-top: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: 1rem;
}
.post-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.6rem;
}
.post-meta a {
  color: var(--muted);
}
.post-meta time {
  color: var(--accent);
  font-family: var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature {
  margin: 0;
}
.feature img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.prose {
  font-size: 1.125rem;
  line-height: 1.72;
  hyphens: manual;
}
.prose > :first-child {
  margin-top: 0;
}
.prose p,
.prose ul,
.prose ol,
.prose table,
.prose figure {
  margin: 0 0 1.15em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose li::marker {
  color: var(--accent);
}
.prose h2 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.9rem;
  margin: 2em 0 0.5em;
}
.prose h3 {
  font-size: 1.3rem;
  font-weight: 650;
  margin: 1.8em 0 0.5em;
}
.prose h4,
.prose h5,
.prose h6 {
  font-size: 1.1rem;
  font-weight: 650;
  margin: 1.6em 0 0.4em;
}
.prose blockquote {
  margin: 1.5em 0;
  padding: 0.1em 0 0.1em 1.2em;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.55;
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose hr {
  border: 0;
  border-top: 2px solid var(--accent);
  width: 4rem;
  margin: 2.4em 0;
}
.prose img {
  display: block;
  border-radius: 6px;
  margin: 1.4em 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.45;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.prose th {
  font-weight: 600;
}
.prose code {
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.05em 0.3em;
  border-radius: 3px;
}
.prose pre {
  background: var(--surface);
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  border-radius: 4px;
}
.prose strong {
  font-weight: 650;
}

/* Poems: a calm serif page. Generous leading, room between stanzas, nothing centred, no shouting headline. */
.is-poem .prose,
.poem-body {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.85;
}
.is-poem .prose p,
.poem-body .stanza {
  margin: 0 0 1.6em;
}
.poem .post-head h1,
.is-poem .post-head h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
}
.warning {
  font-size: 0.9rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 0.7rem 1rem;
}

.post-foot {
  margin-top: 1.5rem;
  padding-top: 2rem;
}
.post-foot .text > p:first-child {
  margin-top: 0;
}
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}
.pager a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
}
.pager a:hover {
  color: var(--accent);
}
.pager span {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.pager-newer {
  text-align: right;
  grid-column: 2;
}

/* ------------------------------------------------------------ poetry */

.poem-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.poem-list li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.poem-list li:first-child {
  border-top: 0;
}
.poem-list a {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
  text-decoration: none;
}
.poem-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.poem-list time {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.empty p {
  margin: 0 0 0.9rem;
}
.empty p:first-child {
  font-size: 1.2rem;
}

/* ------------------------------------------------------------ forms */

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
input,
textarea {
  width: 100%;
  font: inherit;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
}
input:focus,
textarea:focus {
  border-color: var(--accent);
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
.field {
  margin: 0 0 1.1rem;
}
.field-row {
  display: flex;
  gap: 0.5rem;
}
.field-row input {
  flex: 1;
  min-width: 0;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ts-slot:not(:empty) {
  margin: 0.75rem 0;
}
.form-status {
  font-size: 0.9rem;
  margin: 0.6rem 0 0;
  min-height: 1.3em;
}
.form-status.is-error {
  color: var(--error);
}
.form-status.is-done {
  color: var(--ink);
  font-weight: 600;
}
.subscribe {
  max-width: 30rem;
}

.fine {
  font-size: 0.85rem;
  color: var(--muted);
}

.crisis {
  font-size: 0.92rem;
  line-height: 1.5;
  background: var(--surface);
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem;
  margin-top: 1.5rem;
}
.share-box p:first-child {
  margin-top: 0;
}
.figure-frame img {
  border: 1px solid var(--rule);
}
figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------ meet */

.split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  min-height: min(100svh, 52rem);
  background: var(--band);
  color: var(--band-ink);
}
.split-hero-photo {
  position: relative;
  min-height: 24rem;
}
.split-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}
.split-hero-text {
  align-self: center;
  padding: 7rem clamp(1.5rem, 6vw, 5rem) 4rem;
  max-width: 40rem;
}
.split-hero-text h1 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.98;
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin: 0 0 1rem;
}
.split-hero-text .dek {
  color: var(--band-muted);
}
.split-hero .eyebrow {
  color: var(--gold);
}
.split-hero .actions {
  margin-top: 1.75rem;
}
.split-hero .fine {
  color: var(--band-muted);
}
.split-hero a:not(.button) {
  color: var(--gold);
}

.studio-line {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.3;
  margin: 0 0 1.2rem;
}
.text-measure {
  max-width: var(--measure);
  margin-top: 0;
}
.booking-frame {
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.booking-frame iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
}

/* ------------------------------------------------------------ about: the art-treated portrait header */

.portrait-head {
  position: relative;
  background: var(--band);
  color: var(--band-ink);
  overflow: hidden;
  isolation: isolate;
}
.portrait-head::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--sunrise);
  z-index: 2;
}
.portrait-head-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 6.5rem var(--pad) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  min-height: min(92svh, 50rem);
}
.portrait-art {
  position: relative;
  margin: 0;
  align-self: end;
  justify-self: center;
  width: min(100%, 30rem);
}
/* A sun behind the portrait, and the portrait itself fading into the band at the foot. */
.portrait-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6%;
  width: 82%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--sunrise);
  opacity: 0.9;
  z-index: -1;
}
.portrait-art img {
  display: block;
  width: 100%;
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mix-blend-mode: normal;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
}
.portrait-copy {
  align-self: center;
  padding-bottom: 3rem;
}
.portrait-copy h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.88;
  font-size: clamp(4rem, 11vw, 9.5rem);
  margin: 0 0 1.25rem;
  letter-spacing: 0.005em;
}
.portrait-copy h1 span {
  display: block;
  -webkit-text-stroke: 1.5px var(--gold);
  color: transparent;
}
.portrait-copy .dek {
  color: var(--band-muted);
  max-width: 28rem;
}

.quotes {
  margin: 2rem 0 !important;
  display: grid;
  gap: 1.25rem;
}
.quotes blockquote {
  margin: 0;
}
.quotes footer {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.contact-direct p {
  margin: 0 0 0.5rem;
}
.contact-form {
  max-width: 34rem;
}

/* Consulting on /projects/: a "worked with" logo strip, case-study cards and pull quotes. */
.consulting .section-head p {
  max-width: 36rem;
}
.worked-with {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding: 1.1rem 0;
  margin-bottom: 2rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.worked-with .eyebrow {
  margin: 0;
  color: var(--muted);
}
/* "Worked with": a pure-CSS marquee. The track holds the logo set twice and slides left by one set (-50%). */
.logo-marquee {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex;
  width: max-content;
  animation: logo-marquee 45s linear infinite;
}
.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track {
  animation-play-state: paused;
}
@keyframes logo-marquee {
  to {
    transform: translateX(-50%);
  }
}
.logo-set {
  list-style: none;
  margin: 0;
  /* Trailing space equal to the gap, so the seam between the two sets matches the gaps inside them. */
  padding: 0 clamp(2rem, 4vw, 3.5rem) 0 0;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.logo-set img {
  display: block;
  height: calc(2.4rem * var(--s, 1));
  width: auto;
  filter: grayscale(1) brightness(0.7) contrast(1.6);
  opacity: 0.6;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.logo-set li:hover img {
  filter: none;
  opacity: 1;
}
/* The logos are drawn for light backgrounds, so on the dark theme each sits on a small paper chip. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-set img {
    box-sizing: content-box;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    background: #f1e8dd;
    opacity: 0.7;
  }
}
:root[data-theme="dark"] .logo-set img {
  box-sizing: content-box;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: #f1e8dd;
  opacity: 0.7;
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .logo-track {
    width: auto;
    animation: none;
    justify-content: center;
  }
  .logo-set {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1.25rem;
    padding: 0;
  }
  .logo-set[aria-hidden="true"] {
    display: none;
  }
}
.case-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.case-card .card-media img {
  object-position: center;
}
.case-card .card-name {
  font-size: 1.45rem;
  line-height: 1.08;
}
.case-card .card-body {
  gap: 0.5rem;
}
.case-card .card-body p:not(.eyebrow) {
  font-size: 0.95rem;
  line-height: 1.5;
}
.case-link {
  text-decoration: none;
}
.case-link:hover {
  color: var(--link-hover) !important;
}
/* The whole card is the link target. */
.case-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
/* A case study without a featured image: a typographic panel in the Real Secrets style. */
.case-type {
  display: grid;
  place-content: center;
  padding: 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(224, 103, 44, 0.45), rgba(224, 103, 44, 0) 60%),
    var(--band);
  border-bottom-color: var(--band-rule);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--band-ink);
}
.pull-quotes {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
}
.pull-quotes blockquote {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
}
.pull-quotes p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.4;
  color: var(--ink);
}
.pull-quotes footer {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

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

.colophon {
  background: var(--band);
  color: var(--band-muted);
  font-size: 0.9rem;
}
.colophon-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.25rem var(--pad) 2.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}
.colophon p {
  margin: 0;
}
.colophon-sign strong {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--band-ink);
  font-size: 1.15rem;
  margin-right: 0.6rem;
}
.colophon nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-family: var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.colophon a {
  color: var(--band-ink);
  text-decoration: none;
}
.colophon a:hover {
  color: var(--gold);
}
/* The footer follows a dark band on some pages; keep the two apart. */
.colophon {
  border-top: 1px solid var(--band-rule);
}
main:has(> .band:last-child),
main:has(> .split-hero:last-child) {
  padding-bottom: 0;
}

/* ------------------------------------------------------------ narrow screens */

@media (max-width: 1100px) {
  .case-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .strip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .strip-grid li:nth-child(even) {
    margin-top: 0;
  }
  .strip-grid li:nth-child(3n + 2) {
    margin-top: 1.5rem;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 1.0625rem;
  }
  .sheet,
  .band-head.sheet {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    padding-block: 1.25rem;
  }
  .band-head.sheet {
    padding-top: 7.5rem;
    padding-bottom: 2.5rem;
  }
  .sheet > .margin-note,
  .sheet > .margin-head,
  .sheet > figure.margin-note {
    grid-row: auto;
    padding-top: 0;
    margin-bottom: 0.6rem;
  }
  .sheet > .text,
  .sheet > .prose,
  .sheet > .after-list,
  .sheet > .text-wide,
  .sheet > .feature {
    grid-column: 1;
  }
  .year-head {
    font-size: 2rem;
  }
  .post-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2rem 1rem;
  }
  .masthead {
    gap: 0.6rem 1rem;
    padding-top: 0.9rem;
  }
  .nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.1rem;
    font-size: 0.85rem;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
    mask-image: linear-gradient(to right, #000 85%, transparent);
    padding-right: 2rem;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    white-space: nowrap;
  }
  .photo-hero {
    min-height: 34rem;
  }
  .photo-hero-text {
    padding-top: 8rem;
  }
  .home-hero {
    min-height: min(100svh, 46rem);
  }
  .home-hero .actions .button {
    flex: 1 1 auto;
    text-align: center;
  }
  .intro {
    grid-template-columns: minmax(0, 1fr);
  }
  .intro-figure {
    max-width: 17rem;
    justify-self: start;
  }
  .cards,
  .case-cards,
  .pull-quotes {
    grid-template-columns: minmax(0, 1fr);
  }
  .worked-with {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .logo-marquee {
    flex-basis: auto;
  }
  .logo-set img {
    height: calc(2rem * var(--s, 1));
  }
  .strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .strip-grid li:nth-child(3n + 2) {
    margin-top: 0;
  }
  .strip-grid li:nth-child(even) {
    margin-top: 1.25rem;
  }
  .band-split {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .band-aside {
    border-left: 0;
    border-top: 1px solid var(--band-rule);
    padding-left: 0;
    padding-top: 1.5rem;
  }
  .project-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-row:nth-child(even) .project-shot {
    order: 0;
  }
  .entry,
  .home-writing .entry {
    grid-template-columns: minmax(0, 1fr);
  }
  .entry-date {
    padding-top: 0;
  }
  .split-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .split-hero-photo {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
  .split-hero-text {
    padding: 2.25rem var(--pad) 3rem;
  }
  .portrait-head-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 7rem;
    min-height: 0;
  }
  .portrait-copy {
    order: -1;
    padding-bottom: 1rem;
  }
  .portrait-art {
    width: min(88%, 22rem);
  }
  .prose h2 {
    font-size: 1.6rem;
  }
  .booking-frame iframe {
    height: 900px;
  }
  .field-row {
    flex-direction: column;
  }
  .pager {
    grid-template-columns: 1fr;
  }
  .pager-newer {
    grid-column: 1;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .masthead nav,
  .theme-toggle,
  .colophon,
  .post-foot {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* brand names are always lowercase, even inside uppercase headings */
.brand { text-transform: none; }

/* The "worked with" band sits on its own between Building now and Consulting. */
.worked-with-band { padding-top: 0; padding-bottom: 0; }
.worked-with-band .worked-with { margin-bottom: 0; }
