/* ============================================================
   BRENT YOUNG — EDITORIAL / PASTE-UP
   Paper, ink & non-repro blue.
   Palette: Kodachrome (Process K-14) — warm charcoal ink,
   cyan marks, Kodak red accent, golden yellow as a garnish.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;1,500&family=IBM+Plex+Sans:wght@400;500;700&family=IBM+Plex+Mono:wght@300;400;500&family=Caveat:wght@600&family=Covered+By+Your+Grace&family=Permanent+Marker&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

@font-face {
  font-family: 'Impact Label';
  src: url('../assets/fonts/impact_label/Impact%20Label.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Impact Label Reversed';
  src: url('../assets/fonts/impact_label/Impact%20Label%20Reversed.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f1ea;
  --paper-dim: #ebe6da;
  --ink: #2b2a27;
  --ink-soft: #4a4842;
  --ink-mute: #6b6860;
  --blue: #1f83a3;          /* cyan marks — deep enough to read as text */
  --blue-line: #a8d4e2;
  --rust: #c1271d;          /* Kodak red */
  --manila: #eee9dc;        /* jacket becomes a slide mount */
  --manila-line: #c9c2af;
  --manila-ink: #2b2a27;
  --manila-mute: #6b6860;
  --hairline: #d9d4c7;
  --gold: #e8a81c;          /* the garnish */
  --blue-ghost: rgba(31, 131, 163, 0.48);  /* ephemera: reads as board, not nav */
  --rust-ghost: rgba(193, 39, 29, 0.45);
  --ink-ghost: rgba(107, 104, 96, 0.7);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --hand: 'Caveat', cursive;
  --type-display-xl: clamp(2.375rem, 5vw, 3.875rem);
  --type-display-lg: clamp(1.9375rem, 3vw, 2.5rem);
  --type-display-blog: clamp(2.625rem, 5vw, 3.625rem);
  --type-body-lg: 1.1875rem;
  --type-label: 0.625rem;
}

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* the paste-up board: non-repro blue graph paper */
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(168, 212, 226, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 212, 226, 0.55) 1px, transparent 1px),
    linear-gradient(rgba(168, 212, 226, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 212, 226, 0.24) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* a sheet of typescript pasted onto the board */
.sheet {
  background: #ffffff;
  border: 1px solid var(--hairline);
  box-shadow:
    0 1px 2px rgba(43, 42, 39, 0.06),
    0 10px 26px rgba(43, 42, 39, 0.06);
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(1060px, 92vw); margin: 0 auto; }

.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--rust-ghost);
  text-transform: uppercase;
}

.mono { font-family: var(--mono); }

.slugline {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--blue-ghost);
  border-top: 1px solid var(--hairline);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* golden garnish: the approval mark only */
.slugline .ok, .contact .slugline span:last-child { color: var(--gold); }

/* ---------- department mastheads: the Oxford rule as Chartpak tape ----------
   Two strips of crepe tape laid by hand — heavy over fine, slight skew,
   uneven lengths. The cutoffs are made the lithographer's way: a taller
   vertical piece of ruby tape laid over each end, its straight side edge
   making the edit. */
.dept-head { position: relative; }

.dept-head::before {
  content: "";
  display: block;
  height: 12px;
  margin: 0 -3px 7px -2px;   /* slight overhang past the margin — laid by hand */
  transform: rotate(-0.14deg);
  filter: drop-shadow(0 1px 1px rgba(43, 42, 39, 0.22));
  background:
    /* sheen across the heavy strip */
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 75%) 0 0 / 100% 6px no-repeat,
    /* heavy strip */
    linear-gradient(#1e1b17, #1e1b17) 0 0 / 100% 6px no-repeat,
    /* fine strip, cut a little short */
    linear-gradient(#1e1b17, #1e1b17) 0 100% / calc(100% - 7px) 2px no-repeat;
}

/* ruby lith tape: vertical pieces, taller than the rules, translucent —
   the overlap over the black tape reads darker, the way rubylith does */
.dept-head::after {
  content: "";
  position: absolute;
  top: -7px;
  left: -8px;
  right: -9px;
  height: 26px;
  pointer-events: none;
  transform: rotate(0.2deg);
  background:
    /* right cutoff: masks the end of the heavy strip */
    linear-gradient(rgba(193, 39, 29, 0.68), rgba(193, 39, 29, 0.68)) 100% 0 / 10px 100% no-repeat,
    /* left cutoff: masks the start of the fine strip */
    linear-gradient(rgba(193, 39, 29, 0.68), rgba(193, 39, 29, 0.68)) 0 0 / 10px 100% no-repeat;
}

.dept-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.dept-row h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  margin: 0;
}

.dept-no {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 2px;
  color: var(--blue-ghost);
}

/* ---------- the premise: body copy + handwritten margin note ---------- */
.premise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 56px;
  align-items: start;
}

.premise-sheet {
  padding: 22px 26px 12px;
  transform: rotate(-0.3deg);
}

.premise-note {
  font-family: 'Covered By Your Grace', var(--hand), cursive;
  font-size: 1.625rem;
  line-height: 1.25;
  color: var(--blue);
  max-width: 45ch;
  margin: 6px 0 26px;
  transform: rotate(-4deg);
}

.premise-note p { margin: 0 0 10px; }

.premise-note .squig {
  text-decoration: underline wavy var(--rust);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.premise-note .note-tag { font-size: 1.875rem; color: var(--ink-mute); }
.premise-note .note-arrow { color: var(--rust); }

@media (min-width: 760px) {
  /* left column hugs the text measure so the note sits right beside it */
  .premise-grid { grid-template-columns: minmax(0, 46ch) minmax(0, 1fr); gap: 0 32px; }
  .premise-note { margin-top: 10px; }
}

/* ---------- first principles: the conviction cards ---------- */
.principles { margin-top: 64px; }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.pcard {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--hairline);
  padding: 16px 16px 18px;
  box-shadow:
    0 1px 2px rgba(43, 42, 39, 0.06),
    0 8px 20px rgba(43, 42, 39, 0.07);
}

.pcard:nth-child(odd) { transform: rotate(-0.35deg); }
.pcard:nth-child(even) { transform: rotate(0.3deg); }

/* the tape holding each card to the board */
.pcard::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 72px;
  height: 19px;
  transform: translateX(-50%) rotate(-2deg);
  background: linear-gradient(rgba(252, 249, 240, 0.55), rgba(240, 234, 216, 0.5));
  border-left: 1px dashed rgba(201, 194, 175, 0.55);
  border-right: 1px dashed rgba(201, 194, 175, 0.55);
  box-shadow: 0 1px 2px rgba(43, 42, 39, 0.08);
}

.pcard:nth-child(even)::before { transform: translateX(-50%) rotate(1.6deg); left: 42%; }
.pcard:nth-child(3n)::before { left: 60%; }

.pcard-no {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 2px;
  color: var(--rust-ghost);
}

.pcard-cue {
  display: block;
  margin: 14px auto 12px;
  color: var(--blue);
}

/* hand-drawn cues: marker sketches, trimmed, on the card's white */
img.pcard-cue {
  height: 48px;
  width: auto;
  max-width: 100%;
}

.pcard-cue .cue-accent { stroke: var(--rust); }

.pcard-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--ink);
}

.pcard-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 0;
}

@media (max-width: 759px) {
  .principle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard { padding: 12px 12px 14px; }
  .pcard-title { font-size: 1rem; }
  .pcard-text { font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pcard { transform: none !important; }
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 242, 0.94);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--hairline);
}

.site-head .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 16px;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 3px;
  text-decoration: none;
}

.site-nav { display: flex; align-items: center; gap: 18px; }

.site-nav a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--ink-mute);
  text-decoration: none;
}

.site-nav a:hover { color: var(--ink); }

.btn-spec {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--blue) !important;
  border: 1px solid var(--blue);
  padding: 6px 12px;
}

.btn-spec:hover { background: var(--blue); color: var(--paper) !important; }

.menu-toggle {
  display: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--ink);
  background: none;
  border: 1px solid var(--ink);
  padding: 6px 12px;
  cursor: pointer;
}

.nav-colophon { display: none; }

/* The blog menu is a ruled index tucked under the BLOG nav item. */
.nav-blog {
  position: relative;
  display: flex;
  align-items: center;
}

/* Keep the hover state alive while the pointer crosses the visual gap. */
.nav-blog::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -220px;
  right: -18px;
  height: 14px;
}

.nav-blog-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  right: -18px;
  z-index: 60;
  width: 250px;
  padding: 14px 16px 16px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--rust);
  box-shadow: 0 12px 24px rgba(27, 27, 27, 0.14);
}

.nav-blog:hover .nav-blog-menu,
.nav-blog:focus-within .nav-blog-menu,
.nav-blog.is-open .nav-blog-menu { display: block; }

.nav-blog-menu a {
  display: block;
  color: var(--ink-soft) !important;
  font-family: var(--serif) !important;
  font-size: 1rem !important;
  letter-spacing: 0 !important;
  line-height: 1.25;
  padding: 7px 0;
}

.nav-blog-menu a:hover { color: var(--rust) !important; }
.nav-blog-menu__all { border-bottom: 1px solid var(--hairline); color: var(--blue) !important; padding-bottom: 12px !important; }
.nav-blog-menu__label { display: block; color: var(--blue); font: 0.5625rem var(--mono); letter-spacing: 1.5px; margin: 14px 0 4px; }
.nav-blog-menu [data-nav-shortlist] a { font-size: 0.9375rem !important; }

/* ---------- paste-up board (guides) ---------- */
.board { position: relative; }

.guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.guides .gv, .guides .gh { position: absolute; background: var(--blue-line); }
.guides .gv { top: 0; bottom: 0; width: 1px; }
.guides .gh { left: 0; right: 0; height: 1px; }

.crop { position: absolute; width: 12px; height: 12px; }
.crop.tl { top: 10px; left: 10px; border-left: 1px solid var(--blue); border-top: 1px solid var(--blue); }
.crop.tr { top: 10px; right: 10px; border-right: 1px solid var(--blue); border-top: 1px solid var(--blue); }
.crop.bl { bottom: 10px; left: 10px; border-left: 1px solid var(--blue); border-bottom: 1px solid var(--blue); }
.crop.br { bottom: 10px; right: 10px; border-right: 1px solid var(--blue); border-bottom: 1px solid var(--blue); }

.reg {
  position: absolute;
  top: 14px;
  right: 40px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--blue);
  border-radius: 50%;
}
.reg::before, .reg::after { content: ""; position: absolute; background: var(--blue); }
.reg::before { top: 50%; left: -3px; right: -3px; height: 1px; }
.reg::after { left: 50%; top: -3px; bottom: -3px; width: 1px; }

/* ---------- hero ---------- */
.hero { padding: 48px 0 40px; overflow: hidden; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.125rem, 6vw, 3.625rem);
  line-height: 1.18;
  margin: 14px 0 0;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--ink-mute);
  max-width: 46ch;
  margin: 18px 0 26px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-ink {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 22px;
}

.btn-ink:hover { background: var(--rust); }

.btn-ghost {
  display: inline-block;
  color: var(--ink);
  font-size: 0.8125rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 22px;
  border: 1px solid var(--ink);
}

.btn-ghost:hover { border-color: var(--rust); color: var(--rust); }

.hero-portrait { position: relative; padding: 8px 8px 0; max-width: 420px; }

/* figure sits flush on the hero keyline — cropped by the rule */
.hero-grid .p3 { align-self: end; margin-bottom: -34px; }
.hero-portrait img { width: 100%; }

/* cutout portrait: no frame at all — the figure sits
   directly on the board with the rest of the hero */
.hero-portrait.fpo { border: none; background: transparent; }
.hero-portrait.fpo::before,
.hero-portrait.fpo::after,
.hero-portrait.fpo .fpo-tag { display: none; }
.hero-portrait.fpo img,
.hero-portrait.fpo.placed img { object-fit: contain; }

/* grease-pencil sign-off on the cutout */
.hero-note {
  position: absolute;
  top: 6%;
  right: 0;
  z-index: 3;
  font-family: var(--hand);
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  line-height: 1;
  color: var(--blue);
  transform: rotate(-6deg);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}

.play .hero-note { animation: gIn 0.6s 3.6s forwards, gOut 0.9s 6.6s forwards; }

.hero-slug { margin-top: 34px; position: relative; z-index: 2; }

/* blue-line edit */
.edit-wrap { position: relative; display: inline-block; }

.edit-old {
  display: inline-block;
  max-width: 3.2em;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
  position: relative;
  /* room for descenders inside the overflow box */
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}

.edit-old .strike {
  position: absolute;
  left: 0;
  right: 2px;
  top: 55%;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
}

.edit-new {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
  /* room for descenders inside the overflow box */
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}

.edit-note {
  position: absolute;
  top: 0.12em;
  left: calc(100% + 16px);
  opacity: 0;
  transform: translateY(6px) rotate(-4deg);
  font-family: var(--hand);
  font-size: 0.55em;
  line-height: 1;
  color: var(--blue);
  white-space: nowrap;
  pointer-events: none;
}

.edit-note .caret {
  display: inline-block;
  transform: rotate(-90deg);
  margin-right: 4px;
  font-size: 0.8em;
}

/* hero animation sequence */
.p-in { opacity: 0; }

.play .guides { animation: gIn 0.5s forwards, gDim 1s 6.6s forwards; }
.play .p1 { animation: pasteIn 1.15s 0.4s forwards; }
.play .p2 { animation: pasteIn 1.15s 1.1s forwards; }
.play .p3 { animation: pasteIn 1.25s 1.8s forwards; }
.play .p4 { animation: gIn 0.6s 2.9s forwards; }
.play .edit-old .strike { animation: strike 0.45s 3.5s forwards; }
.play .edit-note { animation: notePop 0.35s 4s forwards, gOut 0.5s 6.2s forwards; }
.play .edit-old { animation: collapse 0.5s 5.1s forwards; }
.play .edit-new { animation: expand 0.6s 5.3s forwards; }

@keyframes gIn { to { opacity: 1; } }
@keyframes gDim { to { opacity: 0.3; } }
@keyframes gOut { to { opacity: 0; } }
@keyframes strike { to { transform: scaleX(1); } }
@keyframes notePop { to { opacity: 1; transform: translateY(0) rotate(-4deg); } }
@keyframes collapse { to { max-width: 0; opacity: 0; } }
@keyframes expand { to { max-width: 8em; opacity: 1; } }

@keyframes pasteIn {
  0% {
    opacity: 0;
    transform:
      translate(var(--paste-x, 0), var(--paste-y, 26px))
      rotate(var(--paste-rot-start, -3.2deg));
  }
  45% { opacity: 1; transform: translateY(0) rotate(var(--paste-rot-mid, -2.4deg)); }
  70% { opacity: 1; transform: translateY(0) rotate(var(--paste-rot-mid, -2.4deg)); }
  100% { opacity: 1; transform: none; }
}

/* ---------- FPO frames ---------- */
.fpo {
  position: relative;
  border: 1px solid var(--blue);
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.6s ease;
}

.fpo::before, .fpo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.fpo::before { background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--blue-line) 50%, transparent calc(50% + 0.5px)); }
.fpo::after { background: linear-gradient(to bottom right, transparent calc(50% - 0.5px), var(--blue-line) 50%, transparent calc(50% + 0.5px)); }

.fpo .fpo-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 3px;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 3px 10px;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.fpo img, .fpo video {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.fpo.placed { border-color: var(--hairline); }
.fpo.placed::before, .fpo.placed::after, .fpo.placed .fpo-tag { opacity: 0; }
.fpo.placed img, .fpo.placed video { animation: pasteDown 1.1s forwards; }

@keyframes pasteDown {
  0% {
    opacity: 0;
    transform:
      translate(var(--art-x, 0), var(--art-y, -16px))
      rotate(var(--art-rot-start, 3deg))
      scale(var(--art-scale, 1.045));
  }
  40% { opacity: 1; transform: translateY(0) rotate(var(--art-rot-mid, 1.7deg)) scale(1); }
  68% { opacity: 1; transform: translateY(0) rotate(var(--art-rot-mid, 1.7deg)) scale(1); }
  100% { opacity: 1; transform: none; }
}

/* ---------- case studies ---------- */
.case {
  position: relative;
  z-index: 0;
  padding: 56px 0 40px;
  border-top: 2px solid var(--ink);
  margin-top: 10px;
}

.case::after {
  content: attr(data-num);
  position: absolute;
  top: 26px;
  right: 0;
  z-index: -1;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(5.625rem, 15vw, 11.875rem);
  line-height: 1;
  color: var(--blue-line);
  opacity: 0.5;
  pointer-events: none;
}

@supports (-webkit-text-stroke: 2px black) {
  .case::after {
    color: transparent;
    -webkit-text-stroke: 2px var(--blue-line);
    opacity: 0.8;
  }
}

.case-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.625rem, 4vw, 2.375rem);
  line-height: 1.2;
  margin: 8px 0 6px;
  max-width: 24ch;
}

.case-codes { font-family: var(--mono); font-size: 0.75rem; color: var(--blue-ghost); margin-bottom: 24px; }

.case-media-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 10px 0 26px;
}

.case-fig { position: relative; }
.case-fig .fpo { aspect-ratio: 16 / 9; }

.figcap {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-ghost);
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 40px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(27, 27, 27, 0.8);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  pointer-events: none;
}

.case-meta {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 20px;
  max-width: 680px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.case-meta dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 1px;
  color: var(--rust-ghost);
  padding-top: 4px;
  margin: 0;
}

.case-meta dd { margin: 0; }

.case .slugline { margin-top: 30px; }

.stamp-church {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 1px;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 3px;
  padding: 1px 6px;
  transform: rotate(-7deg);
  background: rgba(250, 248, 242, 0.85);
}

/* ---------- flat file: the workbench ---------- */
.flatfile {
  background: var(--paper-dim);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 64px 0 56px;
  margin-top: 56px;
}

.flatfile-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.file-count { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-ghost); margin: 0; }

.flatfile .tabrow { background: var(--paper-dim); }
.flatfile .tabrow button { background: var(--paper); }
.flatfile .tabrow button.on { background: var(--paper-dim); }

.tabrow {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 2px solid var(--ink);
  padding: 0 4px;
  position: sticky;
  top: 53px;
  background: var(--paper);
  z-index: 30;
}

.tabrow::-webkit-scrollbar { display: none; }

.tabrow button {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--ink-mute);
  background: var(--paper-dim);
  border: 1px solid var(--hairline);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 8px 13px 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.tabrow button.on {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
  position: relative;
  top: 2px;
  padding-bottom: 9px;
}

.filegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding-top: 22px;
}

.fcard {
  background: #ffffff;
  border: 1px solid var(--hairline);
  padding: 8px;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  opacity: 0;
  animation: pasteIn 0.9s forwards;
}

.fcard:hover { border-color: var(--ink); }
.fcard:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.fcard.lift {
  animation: liftOff 0.48s cubic-bezier(0.45, 0, 0.4, 1) forwards;
  transform-origin: center;
}

@keyframes liftOff {
  0% { opacity: 1; transform: none; }
  100% {
    opacity: 0;
    transform:
      translate(var(--lift-x, 0), var(--lift-y, -22px))
      rotate(var(--lift-rot, 3.2deg))
      scale(var(--lift-scale, 1.04));
  }
}

.fcard-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-dim);
  margin-bottom: 8px;
  overflow: hidden;
}

.fcard-media .stamp-church { position: absolute; top: 6px; right: 6px; z-index: 3; }

.fcard-media .mini-gallery {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(20, 18, 14, 0.72);
  color: #f4f1ea;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 3px;
}

.fcard-media .mini-gallery svg { display: block; }

.fcard-media .mini-play {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 3;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(27, 27, 27, 0.75);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 0.625rem;
}

.fcard-title { font-size: 0.8438rem; font-weight: 500; line-height: 1.35; min-height: 2.7em; color: var(--ink); }

.fcard-slug {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-mute);
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
}

.fcard-slug .codes { color: var(--blue); }

/* ---------- experimental flat-file slide table ---------- */
.slide-table {
  position: relative;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 78% 38%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #fbfbf5 0%, #eef3ee 58%, #e4e7dd 100%);
  border-top: 1px solid rgba(43, 42, 39, 0.12);
  box-shadow: inset 0 28px 80px rgba(255, 255, 255, 0.72);
}

.slide-table::before {
  content: "";
  position: absolute;
  top: 410px;
  left: max(-170px, calc((100vw - 1060px) / 2 - 250px));
  width: clamp(190px, 20vw, 260px);
  aspect-ratio: 960 / 1024;
  pointer-events: none;
  background: url('../assets/img/loupeExample.png') center / contain no-repeat;
  border-radius: 50%;
  filter: drop-shadow(0 22px 28px rgba(43, 42, 39, 0.18));
  opacity: 0.86;
  transform: rotate(-16deg);
  z-index: 0;
}

.slide-table::after {
  content: "";
  position: absolute;
  top: 190px;
  right: max(-100px, calc((100vw - 1060px) / 2 - 190px));
  width: clamp(320px, 34vw, 520px);
  aspect-ratio: 1499 / 153;
  pointer-events: none;
  background: url('../assets/img/nonReproBluePencil.png') center / contain no-repeat;
  filter: drop-shadow(0 10px 11px rgba(43, 42, 39, 0.18));
  opacity: 0.86;
  transform: rotate(8deg);
  z-index: 0;
}

.slide-table .filegrid {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 24px;
  padding-top: 34px;
}

.slide-table .tabrow {
  position: relative;
  top: auto;
  z-index: 1;
  gap: 10px 12px;
  padding: 12px 0 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex-wrap: wrap;
  overflow: visible;
}

.slide-table .tabrow button {
  position: relative;
  top: 0;
  flex: 0 0 auto;
  border: 0;
  border-radius: 1px;
  padding: 6px 13px 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 14% 86%, rgba(255, 255, 255, 0.06)),
    #191817;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.72),
    0 6px 9px rgba(43, 42, 39, 0.16);
  color: rgba(238, 245, 246, 0.86);
  font-family: 'Impact Label Reversed', var(--mono);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.72;
  transform: rotate(var(--label-rot, -1deg));
  transition:
    box-shadow 260ms ease,
    filter 260ms ease,
    opacity 260ms ease,
    transform 260ms ease;
}

.slide-table .tabrow button:nth-child(2n) { --label-rot: 1.3deg; }
.slide-table .tabrow button:nth-child(3n) { --label-rot: -0.4deg; }
.slide-table .tabrow button:nth-child(5n) { --label-rot: 0.8deg; }

.slide-table .tabrow button::before,
.slide-table .tabrow button::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.slide-table .tabrow button::before { left: 7px; }
.slide-table .tabrow button::after { right: 7px; }

.slide-table .tabrow button:hover {
  opacity: 0.94;
  filter: brightness(1.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.72),
    0 10px 14px rgba(43, 42, 39, 0.2);
}

.slide-table .tabrow button.on {
  opacity: 1;
  filter: brightness(1.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 14% 86%, rgba(255, 255, 255, 0.08)),
    #11100f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.76),
    0 12px 18px rgba(43, 42, 39, 0.22);
}

.slide-table .tabrow button.on {
  padding-bottom: 7px;
}

.slide-table .fcard {
  --slide-x: 0;
  --slide-y: 0;
  --slide-rot: 0deg;
  --slide-scale: 1;
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 13px 14px 12px;
  border: 0;
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(219, 214, 199, 0.38)),
    #e9e1cf;
  box-shadow:
    0 14px 22px rgba(43, 42, 39, 0.13),
    inset 0 0 0 1px rgba(134, 125, 105, 0.58),
    inset 0 0 0 6px rgba(244, 240, 228, 0.82),
    inset 0 0 16px rgba(255, 255, 255, 0.48);
  opacity: 0;
  transform:
    translate(var(--slide-x, 0), var(--slide-y, 0))
    rotate(var(--slide-rot, 0deg))
    scale(1);
  animation: slideFadeIn 0.9s forwards;
  transition:
    box-shadow 900ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 900ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 900ms cubic-bezier(0.19, 1, 0.22, 1);
}

.slide-table .fcard:hover {
  opacity: 1;
  transform:
    translate(var(--slide-x, 0), calc(var(--slide-y, 0) - 8px))
    rotate(0deg)
    scale(1.065);
  box-shadow:
    0 28px 44px rgba(43, 42, 39, 0.24),
    0 9px 15px rgba(43, 42, 39, 0.14),
    inset 0 0 0 1px rgba(134, 125, 105, 0.62),
    inset 0 0 0 6px rgba(244, 240, 228, 0.86),
    inset 0 0 16px rgba(255, 255, 255, 0.52);
  filter: brightness(1.025);
}

.slide-table .fcard::before,
.slide-table .fcard::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 4px;
  border-radius: 0 0 7px 7px;
  background: rgba(43, 42, 39, 0.34);
  transform: translateX(-50%);
}

.slide-table .fcard::before { top: 0; }
.slide-table .fcard::after { bottom: 0; transform: translateX(-50%) rotate(180deg); }

.slide-table .fcard-media {
  width: 78%;
  margin: 51px auto 12px;
  aspect-ratio: 3 / 2;
  border: 8px solid rgba(24, 23, 21, 0.92);
  border-radius: 2px;
  background: #0f0f0f;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.78),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.slide-table .fcard-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 18% 82%, rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 50% 50%, transparent 0 58%, rgba(0, 0, 0, 0.22) 100%);
  mix-blend-mode: screen;
}

.slide-table .fcard-media .fpo {
  border: 0;
  background: #151515;
}

.slide-table .fcard-media .fpo::before,
.slide-table .fcard-media .fpo::after,
.slide-table .fcard-media .fpo .fpo-tag { display: none; }

.slide-table .fcard-title {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 17px;
  height: 40px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Permanent Marker', var(--hand);
  font-size: 1rem;
  line-height: 1.05;
  text-align: center;
  color: rgba(43, 42, 39, 0.78);
  transform: rotate(-1.2deg);
}

.slide-table .fcard-short-title .fcard-title {
  top: 22px;
}

.slide-table .fcard-slug {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 22px;
  margin: 0;
  font-size: 0.625rem;
  letter-spacing: 1px;
  color: rgba(43, 42, 39, 0.42);
}

@keyframes slideFadeIn { to { opacity: 1; } }

.pullmore {
  display: block;
  margin: 24px auto 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--blue);
  border: 1px dashed var(--blue);
  background: transparent;
  padding: 10px 20px;
  cursor: pointer;
}

.pullmore:hover { background: var(--blue); color: var(--paper); border-style: solid; }

/* ---------- job jacket modal ---------- */
.jacket-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.jacket-layer.show { display: flex; }

.jacket-backdrop { position: absolute; inset: 0; background: rgba(20, 18, 14, 0.65); }

.jacket {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 860px);
  background: var(--manila);
  border: 1px solid var(--manila-line);
  border-left: 6px solid var(--rust); /* slide-mount index stripe */
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: jacketIn 0.5s both;
}

@keyframes jacketIn {
  0% { opacity: 0; transform: translateY(26px) rotate(-1deg); }
  70% { opacity: 1; transform: translateY(0) rotate(0.4deg); }
  100% { opacity: 1; transform: none; }
}

.jacket-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px dashed var(--manila-line);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 2px;
  color: var(--manila-mute);
  flex-shrink: 0;
}

.jacket-bar .controls { display: flex; gap: 4px; align-items: center; }

.jacket-bar button {
  font-family: var(--mono);
  font-size: 0.8125rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--manila-mute);
  cursor: pointer;
  padding: 4px 9px;
}

.jacket-bar button:hover { border-color: var(--manila-mute); color: var(--manila-ink); }

.jacket-body { overflow-y: auto; padding: 14px 16px 16px; }

.jacket-media { position: relative; background: #0f0f0f; border: 1px solid var(--manila-line); }
.jacket-media img, .jacket-media video { width: 100%; max-height: 56vh; object-fit: contain; margin: 0 auto; }
.jacket-media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.jacket-media audio { width: 100%; display: block; padding: 20px 12px; box-sizing: border-box; }
.jacket-media .stamp-church { position: absolute; top: 8px; right: 8px; z-index: 3; }

/* house PDF viewer: pages rendered as prints, no browser toolbar */
.pdf-canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
}

.pdf-loading {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: rgba(244, 241, 234, 0.8);
  text-align: center;
  padding: 70px 16px;
}

.gal-btn.pdf-fs { top: 10px; bottom: auto; transform: none; right: 10px; left: auto; }

.jacket-media:fullscreen,
.jacket-media.pdf-max {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0f0f;
}

.jacket-media.pdf-max {
  position: fixed;
  inset: 0;
  z-index: 130;
  border: none;
}

.jacket-media:fullscreen .pdf-canvas,
.jacket-media.pdf-max .pdf-canvas { max-height: 100vh; }

/* jacket gallery: multiple prints in the envelope */
.gal-img { animation: galIn 0.45s both; }

@keyframes galIn {
  0% { opacity: 0; transform: translateX(14px) rotate(0.6deg); }
  100% { opacity: 1; transform: none; }
}

.gal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(250, 248, 242, 0.35);
  background: rgba(20, 18, 14, 0.62);
  color: #f4f1ea;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.gal-btn:hover { background: rgba(20, 18, 14, 0.85); border-color: rgba(250, 248, 242, 0.7); }
.gal-prev { left: 10px; }
.gal-next { right: 10px; }

.gal-count {
  position: absolute;
  bottom: 8px;
  left: 10px;
  z-index: 4;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 1.5px;
  color: rgba(244, 241, 234, 0.92);
  background: rgba(20, 18, 14, 0.55);
  padding: 4px 10px;
  border-radius: 3px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .gal-img { animation: none; }
}

.jacket-title { font-family: var(--serif); font-weight: 500; font-size: 1.375rem; color: var(--manila-ink); margin: 14px 0 2px; }

.jacket-codes { font-family: var(--mono); font-size: 0.6875rem; color: var(--blue); margin-bottom: 10px; }

.jacket-meta {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 6px 12px;
  font-size: 0.8438rem;
  line-height: 1.55;
  color: var(--manila-ink);
  margin: 0;
}

.jacket-meta dt { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 1px; color: var(--rust); padding-top: 2px; margin: 0; }
.jacket-meta dd { margin: 0; }

.jacket-foot {
  border-top: 1px dashed var(--manila-line);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--manila-mute);
  flex-shrink: 0;
}

.jacket-foot .share { color: var(--blue); cursor: pointer; background: none; border: none; font-family: var(--mono); font-size: 0.6875rem; }

/* ---------- the column (blog) ----------
   Typeset in the A List Apart tradition:
   hierarchy from type, not boxes. */
:root { --serif-text: 'Source Serif 4', Georgia, serif; }

.desk {
  padding: 64px 0 46px;
  margin-top: 8px;
}

.desk-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.625rem, 4vw, 2.125rem);
  margin: 8px 0 10px;
}

.entries {
  max-width: 720px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  box-shadow:
    0 1px 2px rgba(43, 42, 39, 0.06),
    0 10px 26px rgba(43, 42, 39, 0.06);
  padding: 4px 28px 10px;
}

.entry { padding: 26px 0 22px; border-bottom: 1px solid var(--hairline); }
.entry:last-child { border-bottom: none; }

.entry-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 6px;
}

.entry-meta .mono { font-size: 0.6875rem; letter-spacing: 1px; color: var(--ink-mute); }

.entry-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5625rem;
  line-height: 1.25;
  margin: 0 0 8px;
  text-wrap: balance;
}

.entry-featured .entry-title { font-size: clamp(1.875rem, 4.5vw, 2.5rem); }

.entry-title a { text-decoration: none; color: var(--ink); }
.entry-title a:hover { color: var(--rust); }

.entry-deck {
  font-family: var(--serif-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 10px;
  max-width: 62ch;
}

.entry-featured .entry-deck { font-size: 1.1875rem; }

.entry-byline {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 1px;
  color: var(--ink-mute);
  margin: 0;
}

.entries-rule {
  font-size: 0.6875rem;
  letter-spacing: 2px;
  color: var(--blue);
  border-bottom: 2px solid var(--ink);
  padding: 26px 0 8px;
  margin: 0;
}

.desk-all {
  width: fit-content;
  text-decoration: none;
  text-align: center;
  margin-top: 8px;
}

.column-page { padding: 48px 0 60px; min-height: 60vh; }

.column-masthead { border-bottom: 2px solid var(--ink); padding-bottom: 22px; margin-bottom: 8px; }
.column-masthead .slugline { margin-top: 18px; }
.column-masthead .hero-sub { margin: 10px 0 0; }

.back-link { font-size: 0.75rem; letter-spacing: 1px; color: var(--blue); text-decoration: none; }
.back-link:hover { color: var(--ink); }

/* ---------- article typesetting ---------- */
.article {
  max-width: 660px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  box-shadow:
    0 1px 2px rgba(43, 42, 39, 0.06),
    0 10px 26px rgba(43, 42, 39, 0.06);
  padding: 26px clamp(20px, 5vw, 44px) 44px;
  margin-top: 18px;
}

.article-meta { max-width: 62ch; }

.article-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.875rem, 5.5vw, 2.875rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 10px 0 18px;
  text-wrap: balance;
}

.article-lede {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 1.3125rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.article-byline {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 10px 0;
  margin: 0 0 30px;
}

.article-body {
  font-family: var(--serif-text);
  font-size: 1.1563rem;
  line-height: 1.75;
  color: var(--ink-soft);
  font-feature-settings: "liga" 1, "onum" 1, "kern" 1;
  hyphens: auto;
  text-wrap: pretty;
}

.article-body p { margin: 0 0 1.25em; }

.article-body .opener {
  font-variant-caps: small-caps;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.article-body h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5625rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 1.8em 0 0.6em;
}

.article-body .pull {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.625rem;
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 26px 12px;
  margin: 2em 0;
}

.article-fig { margin: 2em 0; }
.article-fig img { width: 100%; }

.article-body blockquote {
  margin: 1.5em 0 1.5em 1.5em;
  padding-left: 1.2em;
  border-left: 2px solid var(--blue-line);
  font-style: italic;
}

.article-body h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 1.8em 0 0.6em;
}

.article-body h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 1.7em 0 0.5em;
}

.article-body h4,
.article-body h5,
.article-body h6 {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rust);
  margin: 1.7em 0 0.5em;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25em;
  padding-left: 1.5em;
}

.article-body li { margin-bottom: 0.35em; }

.article-body li::marker {
  color: var(--rust);
  font-family: var(--mono);
  font-size: 0.85em;
}

.article-body li input[type="checkbox"] {
  accent-color: var(--blue);
  margin-right: 0.5em;
  transform: translateY(1px);
}

.article-body li:has(input[type="checkbox"]) { list-style: none; margin-left: -1.2em; }

.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body a:hover { color: var(--rust); text-decoration-color: var(--rust); }

.article-body hr {
  border: none;
  border-top: 1px solid var(--hairline);
  width: 38%;
  margin: 2.2em auto;
}

.article-body strong { color: var(--ink); font-weight: 600; }

.article-body code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--paper-dim);
  padding: 1px 5px;
}

.endmark {
  display: block;
  text-align: center;
  font-size: 1.375rem;
  color: var(--rust);
  margin-top: 1.5em;
}

.article-slug { margin-top: 36px; }


/* ---------- contact: the colophon (reversed) ---------- */
.contact {
  background: var(--ink);
  color: var(--paper);
  margin-top: 64px;
  padding: 56px 0 48px;
}

/* reversed masthead: white tape on the ink block, ruby still reads */
.contact .dept-head::before {
  filter: none;
  background:
    linear-gradient(var(--paper), var(--paper)) 0 0 / 100% 6px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 0 100% / calc(100% - 7px) 2px no-repeat;
}

.contact .dept-head::after {
  background:
    linear-gradient(rgba(193, 39, 29, 0.85), rgba(193, 39, 29, 0.85)) 100% 0 / 10px 100% no-repeat,
    linear-gradient(rgba(193, 39, 29, 0.85), rgba(193, 39, 29, 0.85)) 0 0 / 10px 100% no-repeat;
}
.contact .dept-no { color: var(--blue-line); }

.contact h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  margin: 0;
}

.contact-intro { margin: 14px 0 26px; color: rgba(250, 248, 242, 0.75); max-width: 46ch; }

.contact .btn-ink { background: var(--paper); color: var(--ink); }
.contact .btn-ink:hover { background: var(--rust); color: var(--paper); }
.contact .btn-ghost { border-color: var(--paper); color: var(--paper); }
.contact .btn-ghost:hover { border-color: var(--rust); color: var(--rust); }

.contact-info .mono { color: rgba(250, 248, 242, 0.65); }

.contact .slugline {
  color: var(--blue-line);
  border-top-color: rgba(250, 248, 242, 0.25);
}

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }

.contact-info p { margin: 6px 0; font-size: 0.9375rem; }
.contact-info .mono { font-size: 0.8125rem; color: var(--ink-mute); }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--hairline);
  padding: 18px 0 26px;
}

.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-mute);
}

.site-foot .font-list {
  flex: 1 1 100%;
  color: var(--blue-ghost);
  font-size: 0.5625rem;
  letter-spacing: 0.8px;
  line-height: 1.6;
}

.spec-toggle {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 1px;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dashed;
}

/* spec sheet mode: bring the board back */
body.specs .guides { opacity: 0.35 !important; animation: none !important; }
body.specs .fpo.placed { border-color: var(--blue); }
body.specs .slugline { color: var(--blue); border-top-color: var(--blue-line); }

/* ---------- breakpoints ---------- */
@media (min-width: 760px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1.25fr 0.75fr; gap: 28px; }

  /* the type block overlaps the cutout — pasted over it on the board */
  .hero-grid .p2 { position: relative; z-index: 2; }
  .hero-grid .p3 { position: relative; z-index: 1; margin-left: -110px; }
  .case-media-row { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 759px) {
  body.nav-open { overflow: hidden; }

  /* pure-type hero on mobile — the portrait stays on the desktop board */
  .hero-grid .p3 { display: none; }

  /* two-up flat file on phones */
  .filegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .slide-table .filegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fcard { padding: 6px; }
  .fcard-title { font-size: 0.7813rem; min-height: 2.6em; }
  .fcard-slug { font-size: 0.625rem; }
  .slide-table::before { display: none; }
  .slide-table::after { display: none; }
  .case-meta { grid-template-columns: 86px 1fr; font-size: 0.875rem; }
  .jacket-layer { padding: 0; align-items: flex-end; }
  .jacket { width: 100%; max-height: 94vh; border-radius: 12px 12px 0 0; }

  /* mobile nav: the table of contents */
  .menu-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: 4px 4vw 18px;
    counter-reset: toc;
    box-shadow: 0 14px 24px rgba(27, 27, 27, 0.12);
    max-height: calc(100vh - 53px);
    overflow-y: auto;
    z-index: 45;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.open { display: flex; animation: navDrop 0.25s ease; }

  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }

  .site-nav a.nav-link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ink);
    padding: 15px 0;
    border-bottom: 1px solid var(--hairline);
  }

  .site-nav a.nav-link::before {
    counter-increment: toc;
    content: "0" counter(toc);
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--blue);
  }

  .nav-blog { display: block; }
  .nav-blog::after { display: none; }
  .nav-blog-menu,
  .nav-blog:hover .nav-blog-menu,
  .nav-blog:focus-within .nav-blog-menu {
    position: static;
    width: auto;
    border: 0;
    border-top: 0;
    box-shadow: none;
    padding: 0 0 10px 28px;
  }
  .nav-blog:not(.is-open) .nav-blog-menu { display: none; }
  .nav-blog.is-open .nav-blog-menu { display: block; }
  .nav-blog-menu a,
  .nav-blog-menu [data-nav-shortlist] a { font-size: 1.0625rem !important; padding: 8px 0; }
  .nav-blog-menu__all { padding-top: 13px !important; }
  .nav-blog-menu__label { margin-top: 10px; }

  .site-nav .btn-spec {
    margin-top: 18px;
    text-align: center;
    padding: 13px 12px;
  }

  .nav-colophon {
    display: block;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 1px;
    color: var(--ink-mute);
    padding-top: 14px;
    text-align: center;
  }
}

/* ============================================================
   THE BLOG — contents spread & article plates
   The index reads like a journal's table of contents: a pinned
   cornerstone proof, newspaper section tabs, and an editorial
   index with tipped-in banner plates. Banners are designed at
   1200 x 630 (the Open Graph size) and live at
   assets/img/blog/<slug>.jpg — missing art shows an FPO plate.
   ============================================================ */

/* ---------- FPO placeholder (shared: index + article) ---------- */
.plate-fpo {
  position: relative;
  background:
    repeating-linear-gradient(-45deg,
      rgba(168, 212, 226, 0.28) 0 1px, transparent 1px 14px),
    var(--paper-dim);
  border: 1px dashed var(--blue-line) !important;
}

.plate-fpo img { display: none; }

.fpo-mark {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 1.25rem;
  letter-spacing: 8px;
  text-indent: 8px;
  color: var(--blue);
  text-decoration: none;
}

.fpo-mark em {
  font-style: normal;
  font-size: 0.5625rem;
  letter-spacing: 3px;
  text-indent: 3px;
  color: var(--ink-mute);
}

.plate-fpo .fpo-mark { display: flex; }

/* ---------- section tabs (the pillar taxonomy) ---------- */
.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 26px;
  border-bottom: 2px solid var(--ink);
  margin: 30px 0 0;
}

.section-tab {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 1.5px;
  color: var(--ink-mute);
  background: none;
  border: none;
  border-bottom: 4px solid transparent;
  padding: 8px 0 10px;
  margin-bottom: -2px;
  cursor: pointer;
}

.section-tab span { color: var(--blue); }

.section-tab:hover { color: var(--ink); }

.section-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--rust);
}

/* ---------- the cornerstone (pinned manifesto proof) ---------- */
.cornerstone {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--hairline);
  box-shadow:
    0 1px 2px rgba(43, 42, 39, 0.06),
    0 10px 26px rgba(43, 42, 39, 0.06);
  padding: 26px clamp(20px, 4vw, 36px) 30px;
  margin-top: 30px;
}

.corner-stamp {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  transform: rotate(-5deg);
  font-size: 0.6875rem;
  letter-spacing: 3px;
  text-indent: 3px;
  color: var(--rust);
  border: 2px solid var(--rust);
  border-radius: 3px;
  padding: 4px 10px;
  opacity: 0.85;
  pointer-events: none;
}

.corner-plate {
  display: block;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--paper-dim);
  margin-bottom: 18px;
}

.corner-plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.corner-title { font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
.corner-deck { font-size: 1.1875rem; }

@media (min-width: 760px) {
  .cornerstone {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 10px 32px;
    align-items: start;
  }
  .cornerstone .corner-plate {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin: 4px 0 0;
  }
  .cornerstone > .entry-meta,
  .cornerstone > .corner-title,
  .cornerstone > .corner-deck,
  .cornerstone > .entry-byline { grid-column: 1; }
}

/* ---------- the editorial index ---------- */
.index-sheet { max-width: none; margin-top: 26px; }

.index-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: start;
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--hairline);
}

.index-row:last-child { border-bottom: none; }

.index-plate {
  display: block;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--paper-dim);
  box-shadow: 0 1px 3px rgba(43, 42, 39, 0.12);
  transform: rotate(-0.5deg);
  margin-top: 4px;
}

.index-row:nth-child(even) .index-plate { transform: rotate(0.4deg); }

.index-plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.index-plate.plate-fpo .fpo-mark { font-size: 0.9375rem; letter-spacing: 5px; text-indent: 5px; }
.index-plate.plate-fpo .fpo-mark em { font-size: 0.5rem; }

.index-body .entry-title { font-size: 1.4375rem; }

.index-empty {
  padding: 30px 0;
  font-size: 0.6875rem;
  letter-spacing: 2px;
  color: var(--ink-mute);
}

@media (max-width: 599px) {
  .index-row { grid-template-columns: 1fr; gap: 14px; }
  .index-plate { max-width: 300px; }
}

/* ---------- article page: centered layout + share rail ----------
   The essay sheet sits centered on the board; the share buttons are
   small mounts resting in the left margin, sticky as you read.   */
.article-layout {
  display: grid;
  grid-template-columns: 44px minmax(0, 700px) 44px;
  justify-content: center;
  gap: 26px;
  align-items: start;
}

.article-layout .article-page { grid-column: 2; max-width: none; }

.share-rail {
  grid-column: 1;
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding-top: 2px;
}

.share-label {
  font-size: 0.5625rem;
  letter-spacing: 3px;
  text-indent: 3px;
  color: var(--ink-mute);
  margin-bottom: 2px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 2px rgba(43, 42, 39, 0.1);
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
}

.share-btn:hover { color: var(--rust); border-color: var(--ink); }

.share-copied {
  font-size: 0.5625rem;
  letter-spacing: 2px;
  color: var(--blue);
}

@media (max-width: 899px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-layout .article-page { grid-column: 1; }

  /* after the essay: a horizontal share row where the reader lands */
  .share-rail {
    grid-column: 1;
    order: 2;
    position: static;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0 4px;
  }
  .share-label { width: 100%; text-align: center; margin-bottom: 4px; }
}

/* ---------- article page: the banner plate ---------- */
.article-page { margin-top: 26px; }

.article-plate {
  margin: -26px calc(clamp(20px, 5vw, 44px) * -1) 26px;
  border: none;
  border-bottom: 1px solid var(--hairline);
}

.article-plate img { display: block; width: 100%; }

.article-plate.plate-fpo {
  aspect-ratio: 1200 / 630;
  border: none !important;
  border-bottom: 1px dashed var(--blue-line) !important;
}

.plate-slug {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.625rem;
  letter-spacing: 1.5px;
  color: var(--ink-mute);
  padding: 8px clamp(20px, 5vw, 44px) 0;
}

.article-plate.plate-fpo .plate-slug {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
}

/* ---------- article page: contents block ---------- */
.contents-block {
  border: 1px solid var(--ink);
  padding: 16px 22px 18px;
  margin: 0 0 32px;
  max-width: 430px;
}

.contents-label {
  font-size: 0.6875rem;
  letter-spacing: 3px;
  color: var(--blue);
  margin: 0 0 10px;
}

.contents-block ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contents-block li { margin: 0 0 7px; }
.contents-block li:last-child { margin-bottom: 0; }

.contents-block a {
  font-family: var(--serif-text);
  font-size: 0.9688rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.contents-block a:hover { color: var(--rust); }

.contents-block a .mono {
  font-size: 0.6563rem;
  color: var(--blue);
  margin-right: 8px;
}

/* ---------- article page: end matter ---------- */
.end-matter { margin-top: 34px; }

.end-matter:empty { display: none; }

.filed-line {
  font-size: 0.6875rem;
  letter-spacing: 1px;
  color: var(--ink-mute);
  margin: 0 0 10px;
}

.filed-line a { color: var(--blue); text-decoration: none; }
.filed-line a:hover { color: var(--rust); }

.filed-tag {
  display: inline-block;
  border: 1px solid var(--hairline);
  background: var(--paper);
  padding: 2px 8px;
  margin: 0 2px 4px 0;
}

.keep-reading { margin-top: 26px; }

.kr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.kr-card { padding: 16px 0 4px; }

.kr-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 4px 0 8px;
}

.kr-title a { color: var(--ink); text-decoration: none; }
.kr-title a:hover { color: var(--rust); }

.pn-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
  margin-top: 26px;
  font-size: 0.6875rem;
  letter-spacing: 1px;
}

.pn-link { color: var(--blue); text-decoration: none; max-width: 46%; }
.pn-link:hover { color: var(--ink); }
.pn-next { margin-left: auto; text-align: right; }

@media (max-width: 599px) {
  .kr-grid { grid-template-columns: 1fr; }
  .pn-link { max-width: 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .p-in, .fcard { animation: none !important; opacity: 1 !important; transform: none !important; }
  .fcard.lift { opacity: 0 !important; }
  .play .guides { animation: none !important; opacity: 0.3 !important; }
  .hero-note { display: none !important; }
  .edit-old, .edit-note { display: none !important; }
  .edit-new { max-width: none !important; opacity: 1 !important; }
  .fpo img, .fpo video, .fpo.placed img, .fpo.placed video { animation: none !important; opacity: 1 !important; }
  .fpo { border-color: var(--hairline); }
  .fpo::before, .fpo::after, .fpo .fpo-tag { display: none; }
  .jacket { animation: none; }
  .index-plate { transform: none !important; }
}

/* ============================================================
   BLOG REBUILD — server-rendered index and long-form articles
   Structure follows the Justinmind reference: a strong lead area,
   useful archive controls, wide article hero, and centered reading grid.
   ============================================================ */

.blog-site {
  --topic-accent: var(--rust);
}

/* topic accents — global, so the homepage Field Notes digest gets the
   same theme colors as the blog (the .blog-site rules below keep working
   at higher specificity with identical values) */
[data-topic="manifesto"] { --topic-accent: #c1271d; }
[data-topic="brand-mission"] { --topic-accent: #1f83a3; }
[data-topic="creative-leadership"] { --topic-accent: #bd7a00; }
[data-topic="systems-workflow"] { --topic-accent: #39745d; }
[data-topic="craft"] { --topic-accent: #6a5545; }
[data-topic="ai"] { --topic-accent: #315aa8; }

.blog-site [data-topic="manifesto"],
.blog-site[data-topic="manifesto"] { --topic-accent: #c1271d; }
.blog-site [data-topic="brand-mission"],
.blog-site[data-topic="brand-mission"] { --topic-accent: #1f83a3; }
.blog-site [data-topic="creative-leadership"],
.blog-site[data-topic="creative-leadership"] { --topic-accent: #bd7a00; }
.blog-site [data-topic="systems-workflow"],
.blog-site[data-topic="systems-workflow"] { --topic-accent: #39745d; }
.blog-site [data-topic="craft"],
.blog-site[data-topic="craft"] { --topic-accent: #6a5545; }
.blog-site [data-topic="ai"],
.blog-site[data-topic="ai"] { --topic-accent: #315aa8; }

.blog-site .site-head .wrap,
.blog-site .site-foot .wrap,
.blog-wrap,
.article-shell {
  width: min(1240px, 92vw);
  margin-inline: auto;
}

.blog-wrap { padding: 58px 0 72px; }

.blog-index__masthead {
  max-width: 820px;
  margin: 0 auto 38px;
  text-align: center;
}

.blog-index__masthead h1 {
  font-family: var(--serif);
  font-size: var(--type-display-blog);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  margin: 10px 0 16px;
}

.blog-index__masthead > p {
  max-width: 690px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-family: var(--serif-text);
  font-size: 1.25rem;
  line-height: 1.6;
}

.blog-tools {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding: 13px 0 16px;
  margin-bottom: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
  align-items: end;
}

.topic-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.topic-nav a {
  border-bottom: 3px solid transparent;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 1px;
  padding: 7px 0 6px;
  text-decoration: none;
}

.topic-nav a span { color: var(--blue); margin-left: 3px; }
.topic-nav a:hover { color: var(--ink); }
.topic-nav a.is-active { color: var(--ink); border-bottom-color: var(--rust); }
.topic-nav a[data-topic="brand-mission"].is-active { border-bottom-color: #1f83a3; }
.topic-nav a[data-topic="creative-leadership"].is-active { border-bottom-color: #bd7a00; }
.topic-nav a[data-topic="systems-workflow"].is-active { border-bottom-color: #39745d; }

.blog-search label {
  display: block;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.blog-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }

.blog-search input {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--hairline);
  border-right: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 0.875rem var(--sans);
  padding: 8px 11px;
}

.blog-search button {
  height: 40px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: 500 0.625rem var(--mono);
  letter-spacing: 1px;
  padding: 0 13px;
}

.blog-search button:hover { background: var(--rust); border-color: var(--rust); }

.blog-lead {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr);
  gap: 42px;
  align-items: start;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 46px;
  margin-bottom: 58px;
}

.lead-story__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1200 / 630;
  background: var(--paper-dim);
}

.lead-story__image img,
.article-card__image img,
.article-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-story__body { padding-top: 20px; }

.lead-story h2 {
  font-family: var(--serif);
  font-size: var(--type-display-lg);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
  margin: 8px 0 12px;
  text-wrap: balance;
}

.lead-story h2 a,
.article-card h3 a { color: var(--ink); text-decoration: none; }
.lead-story h2 a:hover,
.article-card h3 a:hover { color: var(--topic-accent); }

.lead-story__body > p {
  max-width: 65ch;
  color: var(--ink-soft);
  font-family: var(--serif-text);
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0 0 16px;
}

.read-link,
.subscribe-block > a {
  color: var(--topic-accent);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 1px;
  text-decoration: none;
}

.read-link:hover,
.subscribe-block > a:hover { color: var(--ink); }

.article-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 1px;
}

.topic-link {
  color: var(--topic-accent);
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
}

.topic-link:hover { color: var(--ink); }

.blog-lead__side {
  border-left: 1px solid var(--hairline);
  padding-left: 30px;
}

.subscribe-block {
  border-top: 6px solid var(--rust);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0 24px;
  margin-bottom: 30px;
}

.side-label {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 2px;
  margin: 0 0 9px;
}

.subscribe-block h2 {
  font-family: var(--serif);
  font-size: 1.6875rem;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 16px;
}

.archive-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 26px;
}

.archive-heading h2 {
  font-family: var(--serif);
  font-size: 2.125rem;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 2px 0 0;
}

.archive-count {
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 1px;
  white-space: nowrap;
}

.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -10px 0 24px;
}

.active-filters span,
.active-filters a {
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 1px;
  padding: 5px 8px;
  text-decoration: none;
}

.active-filters a { color: var(--rust); border-color: var(--rust); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--hairline);
}

.article-card__image {
  display: block;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: var(--paper-dim);
}

.article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 18px 18px 17px;
}

.article-card h3 {
  font-family: var(--serif);
  font-size: 1.4375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 9px 0 9px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.article-card__body > p {
  color: var(--ink-soft);
  font-family: var(--serif-text);
  font-size: 0.9688rem;
  line-height: 1.55;
  margin: 0 0 14px;
}

.article-card time {
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 1px;
  margin-top: auto;
}

.empty-results {
  background: #fff;
  border: 1px solid var(--hairline);
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 1px;
  padding: 30px;
  text-align: center;
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--hairline);
  margin-top: 40px;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 1px;
}

.pagination a { color: var(--blue); text-decoration: none; }
.pagination a:last-child { grid-column: 3; text-align: right; }
.pagination span { grid-column: 2; }

/* ---------- Wide, centered article ---------- */
.article-shell { padding: 54px 0 76px; }

.article-hero {
  max-width: 980px;
  margin: 0 auto 34px;
  text-align: center;
}

.article-hero .back-link {
  display: block;
  width: fit-content;
  margin: 0 auto 24px;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 1px;
  text-decoration: none;
}

.article-topic {
  color: var(--topic-accent);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
}

.article-hero h1 {
  font-family: var(--serif);
  font-size: var(--type-display-xl);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  margin: 14px 0 18px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.article-hero__deck {
  max-width: 780px;
  margin: 0 auto 18px;
  color: var(--ink-soft);
  font-family: var(--serif-text);
  font-size: 1.375rem;
  line-height: 1.55;
  text-wrap: balance;
}

.article-hero__byline {
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 1px;
  margin: 0;
}

.article-banner {
  width: min(1120px, 100%);
  aspect-ratio: 1200 / 630;
  margin: 0 auto 48px;
  overflow: hidden;
  background: var(--paper-dim);
}

.article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 1px;
}

.article-share > span:first-child {
  width: 100%;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 2px;
}

.article-share a,
.article-share button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(43, 42, 39, 0.08);
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.article-share a:hover,
.article-share button:hover { color: var(--topic-accent); border-color: var(--topic-accent); }
.article-share .share-copied { color: var(--blue); }

/* in the sidebar: sits under the contents list */
.desktop-contents .article-share {
  margin-top: 20px;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}

.desktop-contents .article-share:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

/* end-of-article copy: mobile only, where there is no sidebar */
.article-share--mobile { display: none; }

.article-reading-grid {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 800px);
  justify-content: center;
  gap: 64px;
  align-items: start;
}

.article-reading-grid--no-toc { grid-template-columns: minmax(0, 800px); }

.desktop-contents {
  position: sticky;
  top: 86px;
  border-top: 4px solid var(--ink);
  padding-top: 12px;
}

.desktop-contents > p {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 0 0 10px;
}

.desktop-contents ol,
.mobile-contents ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-contents li { border-top: 1px solid var(--hairline); }

.desktop-contents a,
.mobile-contents a {
  display: block;
  color: var(--ink-soft);
  font-family: var(--serif-text);
  font-size: 0.875rem;
  line-height: 1.35;
  padding: 9px 0;
  text-decoration: none;
}

.desktop-contents a:hover { color: var(--topic-accent); }
.mobile-contents { display: none; }

/* Share links also live inside the contents sidebar, so restore their
   circular flex layout after the generic contents-link rule above. */
.article-share a,
.article-share button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-share svg {
  display: block;
  flex: 0 0 auto;
}

.article-content { min-width: 0; }

.article-content .article-body {
  color: var(--ink-soft);
  font-size: var(--type-body-lg);
  line-height: 1.78;
  -webkit-hyphens: auto;
  hyphens: auto;
  text-wrap: pretty;
}

.article-content .article-body p {
  orphans: 3;
  widows: 3;
}

.article-content .article-body > p,
.article-content .article-body > h1,
.article-content .article-body > h2,
.article-content .article-body > h3,
.article-content .article-body > h4,
.article-content .article-body > h5,
.article-content .article-body > h6,
.article-content .article-body > ul,
.article-content .article-body > ol,
.article-content .article-body > blockquote {
  max-width: 68ch;
}

.article-content .article-body h1,
.article-content .article-body h2,
.article-content .article-body h3 {
  break-after: avoid;
  hyphens: none;
  text-wrap: balance;
}

.article-content .article-body blockquote,
.article-content .article-body .pull,
.article-content .article-figure {
  break-inside: avoid;
}

.article-content .article-body a,
.article-content .article-body code,
.article-content .article-body pre {
  overflow-wrap: anywhere;
}

.article-content .article-body h2 { scroll-margin-top: 90px; }

.article-content .article-body > p:first-child {
  color: var(--ink);
  font-size: 1.3125rem;
  font-style: italic;
  line-height: 1.65;
}

.article-content .article-body img { width: 100%; height: auto; }

.article-figure { margin: 2.5em 0; }
.article-figure img { display: block; width: 100%; height: auto; }
.article-figure figcaption {
  border-top: 1px solid var(--hairline);
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.6px;
  line-height: 1.5;
  padding-top: 8px;
}

.article-end {
  border-top: 2px solid var(--ink);
  margin-top: 38px;
  padding-top: 18px;
}

.article-taxonomy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 1px;
}

.article-taxonomy > span { color: var(--ink-mute); margin-right: 4px; }

.article-taxonomy a {
  border: 1px solid var(--hairline);
  color: var(--ink);
  padding: 4px 7px;
  text-decoration: none;
}

.article-taxonomy a:hover { color: var(--topic-accent); border-color: var(--topic-accent); }

.article-principle {
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 1px;
  margin: 14px 0 0;
}

.article-principle a { color: var(--blue); text-decoration: none; }

.article-subscribe {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--hairline);
  margin-top: 20px;
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 1px;
}

.article-subscribe a { color: var(--rust); text-decoration: none; }

.article-author {
  position: relative;
  min-height: 168px;
  background: linear-gradient(112deg, color-mix(in srgb, var(--topic-accent) 76%, #ffffff), var(--topic-accent) 56%, color-mix(in srgb, var(--topic-accent) 78%, #000000));
  margin-top: 104px;
  padding: 18px 28px 18px 250px;
}

.article-author__avatar {
  display: block;
  position: absolute;
  left: -8px;
  bottom: 0;
  width: 250px;
  height: 270px;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}

.article-author__label {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 1.5px;
  margin: 0 0 5px;
  opacity: 0.82;
}

.article-author h2 {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.5625rem;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 7px;
}

.article-author__copy > p:last-child {
  color: var(--paper);
  font-family: var(--serif-text);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
  max-width: 62ch;
  opacity: 0.92;
}

.related-content {
  border-top: 1px solid var(--hairline);
  margin-top: 64px;
  padding-top: 48px;
}

.article-card--related h3 { font-size: 1.3125rem; }

.not-found {
  min-height: 60vh;
  max-width: 760px;
  padding-top: 90px;
  text-align: center;
}

.not-found h1 { font-family: var(--serif); font-size: 2.75rem; letter-spacing: 0; }
.not-found a { color: var(--blue); font-family: var(--mono); font-size: 0.6875rem; text-decoration: none; }

.blog-site a:focus-visible,
.blog-site button:focus-visible,
.blog-site input:focus-visible,
.blog-site summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .blog-tools { grid-template-columns: 1fr; gap: 14px; }
  .blog-search { max-width: 420px; }
  .blog-lead { grid-template-columns: 1fr; }
  .blog-lead__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    border-left: 0;
    border-top: 1px solid var(--hairline);
    padding: 30px 0 0;
  }
  .subscribe-block { margin: 0; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .article-reading-grid,
  .article-reading-grid--no-toc { display: block; max-width: 800px; margin-inline: auto; }
  .desktop-contents { display: none; }
  .mobile-contents {
    display: block;
    max-width: 800px;
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--hairline);
    margin: 0 auto 34px;
  }
  .mobile-contents summary {
    cursor: pointer;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 14px 0;
  }
  .mobile-contents ol { padding-bottom: 12px; }
  .mobile-contents li { border-top: 1px solid var(--hairline); }
}

@media (max-width: 640px) {
  .blog-wrap { padding-top: 38px; }
  .blog-index__masthead { margin-bottom: 28px; }
  .blog-index__masthead > p { font-size: 1.125rem; }

  .topic-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .topic-nav a { flex: 0 0 auto; }
  .blog-search { max-width: none; }

  .blog-lead { gap: 28px; padding-bottom: 36px; margin-bottom: 42px; }
  .blog-lead__side { grid-template-columns: 1fr; gap: 28px; }
  .article-grid { grid-template-columns: 1fr; }
  .archive-heading { align-items: start; }
  .archive-heading h2 { font-size: 1.8125rem; }

  .article-shell { padding-top: 38px; }
  .article-hero { margin-bottom: 26px; }
  .article-hero .back-link { margin-bottom: 18px; }
  .article-banner { margin-bottom: 32px; }
  .article-hero h1 { line-height: 1.12; }
  .article-hero__deck { font-size: 1.1875rem; }
  .article-hero__byline { line-height: 1.7; }
  .article-share { margin-bottom: 34px; gap: 8px 14px; }
  .article-share > span:first-child { width: 100%; text-align: center; }
  .article-content .article-body { font-size: 1.125rem; line-height: 1.72; }
  .article-content .article-body > p:first-child { font-size: 1.1875rem; }
  .article-content .article-body .pull { font-size: 1.4375rem; padding-inline: 4px; }
  .article-subscribe { align-items: flex-start; flex-direction: column; }
  .article-author { min-height: 0; margin-top: 164px; padding: 20px 18px 24px; text-align: center; }
  .article-author__avatar {
    top: auto;
    right: auto;
    /* figure stands ON the band: bottom edge tucked 2px into it, no seam */
    bottom: calc(100% - 2px);
    left: 50%;
    /* square box for the square source — no letterbox gap under the figure */
    width: 160px;
    height: 160px;
    object-fit: contain;
    object-position: center bottom;
    transform: translateX(-50%);
  }
  .article-author__copy { text-align: center; max-width: 38ch; margin-inline: auto; }
  .article-author h2 { font-size: 1.375rem; }
  .article-author__copy > p:last-child { font-size: 0.875rem; line-height: 1.45; margin-inline: auto; }
  .related-content { margin-top: 48px; padding-top: 36px; }
  .pagination { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pagination span { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .pagination a { grid-row: 2; }
  .pagination a:last-child { grid-column: 2; }
}

/* ---------- homepage Field Notes preview ---------- */
.field-notes { padding: 64px 0 54px; }

.field-notes .dept-row > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.field-notes .dept-row h2 { margin: 0; }

.field-notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.8fr);
  gap: 38px;
  align-items: start;
  margin-top: 28px;
}

.field-feature {
  border-top: 6px solid var(--topic-accent, var(--rust));
  background: #fff;
  border-bottom: 1px solid var(--hairline);
}

.field-feature__image {
  display: block;
  aspect-ratio: 600 / 315;
  overflow: hidden;
  background: var(--paper-dim);
}

.field-feature__image img { display: block; width: 100%; height: 100%; object-fit: cover; }

.field-feature__body { padding: 20px 22px 24px; }

.field-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 1px;
}

.field-meta a { color: var(--topic-accent, var(--rust)); text-decoration: none; text-transform: uppercase; }
.field-meta a:hover { color: var(--ink); }

.field-feature h3 {
  font-family: var(--serif);
  font-size: 2.125rem;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 9px 0 10px;
  text-wrap: balance;
}

.field-feature h3 a { color: var(--ink); text-decoration: none; }
.field-feature h3 a:hover { color: var(--topic-accent, var(--rust)); }

.field-feature__body > p {
  max-width: 62ch;
  color: var(--ink-soft);
  font-family: var(--serif-text);
  font-size: 1.0625rem;
  line-height: 1.58;
  margin: 0 0 14px;
}

.field-read {
  color: var(--topic-accent, var(--rust));
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 1px;
  text-decoration: none;
}

.field-read:hover { color: var(--ink); }

#deskShortlist {
  border-left: 1px solid var(--hairline);
  padding-left: 28px;
}

.field-side-label {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 2px;
  margin: 0 0 10px;
}

.field-shortlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.field-shortlist li {
  border-top: 1px solid var(--hairline);
  padding: 15px 0 16px;
}

.field-shortlist a {
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 13px;
  text-decoration: none;
}

.field-shortlist a:hover strong { color: var(--topic-accent, var(--rust)); }

.field-shortlist__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--paper-dim);
  box-shadow: 0 1px 2px rgba(43, 42, 39, 0.1);
  margin-top: 3px;
}

.field-shortlist__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.field-shortlist__body { display: block; min-width: 0; }

.field-shortlist__topic {
  color: var(--topic-accent, var(--rust));
  display: block;
  font: 0.5625rem var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.field-shortlist strong { display: block; font: 700 1.125rem/1.28 var(--serif); margin: 3px 0 7px; }
.field-shortlist small { color: var(--ink-mute); display: block; font: 0.5625rem var(--mono); letter-spacing: 0.6px; }

.field-notes .desk-all { margin-top: 22px; }

/* ---------- future congregation journey ---------- */
.journey-tool {
  max-width: 1220px;
  min-height: 70vh;
  padding-top: 64px;
  padding-bottom: 72px;
}

.journey-tool__masthead {
  border-bottom: 2px solid var(--ink);
  margin-bottom: 28px;
  max-width: 780px;
  padding-bottom: 24px;
}

.journey-tool__masthead h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.03;
  margin: 10px 0 14px;
  text-wrap: balance;
}

.journey-tool__masthead > p {
  color: var(--ink-soft);
  font-family: var(--serif-text);
  font-size: 1.25rem;
  line-height: 1.55;
  margin: 0;
  max-width: 58ch;
}

.journey-persona {
  align-items: center;
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: 0 10px 26px rgba(43, 42, 39, 0.06);
  display: grid;
  gap: 20px;
  grid-template-columns: 92px minmax(0, 1fr) minmax(210px, 0.7fr);
  margin: 0 0 32px;
  padding: 24px;
}

.journey-persona__portrait {
  align-items: center;
  background: var(--paper-dim);
  border: 1px solid var(--blue-line);
  border-radius: 50%;
  color: var(--blue);
  display: flex;
  height: 88px;
  justify-content: center;
  overflow: hidden;
  width: 88px;
}

.journey-persona__portrait img { height: 100%; object-fit: cover; width: 100%; }

.journey-persona__label,
.journey-detail__label,
.journey-detail__story span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 1.3px;
}

.journey-persona h2 {
  font-family: var(--serif);
  font-size: 2.125rem;
  line-height: 1.1;
  margin: 5px 0 6px;
}

.journey-persona p { color: var(--ink-soft); margin: 0; }

.journey-persona__note {
  border-left: 2px solid var(--rust);
  font-family: var(--serif-text);
  font-style: italic;
  line-height: 1.45;
  padding-left: 16px;
}

.journey-map { margin: 0; }

.journey-map__rail {
  display: flex;
  margin-bottom: 10px;
  overflow-x: auto;
  padding: 3px 2px 5px;
  scroll-snap-type: x proximity;
}

.journey-stage {
  background: var(--paper-dim);
  border: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
  color: var(--ink);
  cursor: pointer;
  flex: 1 1 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.7px;
  margin-left: -10px;
  min-height: 62px;
  min-width: 150px;
  padding: 12px 24px 12px 30px;
  position: relative;
  scroll-snap-align: start;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.journey-stage:first-child {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
  margin-left: 0;
  padding-left: 18px;
}

.journey-stage:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 18px 50%);
  padding-right: 18px;
}

.journey-stage:hover { background: rgba(168, 212, 226, 0.38); color: var(--blue); transform: translateY(-2px); z-index: 1; }
.journey-stage.is-active { background: var(--blue); border-color: var(--blue); color: var(--paper); transform: translateY(-2px); }
.journey-stage.is-active:hover { background: var(--blue); color: var(--paper); }
.journey-stage:focus-visible { outline: 2px solid var(--rust); outline-offset: -4px; z-index: 2; }

.journey-detail {
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: 0 10px 26px rgba(43, 42, 39, 0.06);
  box-sizing: border-box;
  padding: clamp(24px, 4vw, 52px);
  transition: height 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 150ms ease, transform 180ms ease;
}

.journey-detail.is-changing {
  opacity: 0.35;
  transform: translateY(5px);
}

.journey-detail h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 8px 0 16px;
  text-wrap: balance;
}

.journey-detail__summary {
  color: var(--ink-soft);
  font-family: var(--serif-text);
  font-size: 1.25rem;
  line-height: 1.55;
  margin: 0 0 34px;
  max-width: 62ch;
}

.journey-detail__grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journey-detail__grid section { border-top: 2px solid var(--ink); padding-top: 12px; }

.journey-detail__grid h3 {
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.journey-detail__grid p,
.journey-detail__grid li {
  color: var(--ink-soft);
  font-family: var(--serif-text);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.journey-detail__grid p { margin: 0; }
.journey-detail__grid ul { list-style: none; margin: 0; padding: 0; }
.journey-detail__grid li { margin: 0 0 5px; padding-left: 13px; position: relative; }
.journey-detail__grid li::before { color: var(--rust); content: '•'; left: 0; position: absolute; }

.journey-detail__story {
  border-top: 1px solid var(--hairline);
  margin-top: 34px;
  padding-top: 17px;
}

.journey-detail__story p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-style: italic;
  line-height: 1.4;
  margin: 7px 0 0;
  max-width: 48ch;
}

.journey-tool__note {
  border-top: 1px solid var(--hairline);
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.6px;
  line-height: 1.55;
  margin: 20px 0 0;
  max-width: none;
  padding-top: 15px;
  width: 100%;
}

@media (max-width: 759px) {
  .journey-tool { padding-top: 44px; padding-bottom: 52px; }
  .journey-persona { grid-template-columns: 72px minmax(0, 1fr); padding: 20px; }
  .journey-persona__portrait { height: 68px; width: 68px; }
  .journey-persona__note { grid-column: 1 / -1; }
  .journey-map__rail { margin-right: -18px; padding-right: 18px; }
  .journey-stage { flex-basis: 145px; min-width: 145px; }
  .journey-detail__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-stage,
  .journey-detail {
    transition: none;
  }

  .journey-stage:hover,
  .journey-stage.is-active,
  .journey-detail.is-changing {
    transform: none;
  }
}

@media (max-width: 759px) {
  .field-notes { padding: 48px 0 42px; }
  .field-notes-grid { grid-template-columns: 1fr; gap: 28px; }
  #deskShortlist { border-left: 0; border-top: 1px solid var(--hairline); padding: 26px 0 0; }
  .field-feature h3 { font-size: 1.8125rem; }
  .field-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
}
