/* ---------- FONTS (self-hosted, OFL — no third-party requests) ---------- */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/brand/fonts/source-serif-4-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/brand/fonts/source-serif-4-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/brand/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/brand/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
}

/*
 * Carbon Copy — the record, on colored form paper.
 * Ink on form white; categories are paper stocks (flat blocks, never gradients);
 * carbon blue-violet for dates and form labels; the black redaction bar is the signature.
 */
:root {
  --bg: #f8f6f0; /* form white */
  --ink: #1b1a17; /* solid blocks, rules, strongest text */
  --on-ink: #f8f6f0; /* text set on --ink blocks */
  --tab-ink: #1b1a17; /* text set on paper stocks — always dark */
  --paper: #1b1a17; /* legacy name: brightest text on the page */
  --surface: #f1eee6;
  --surface-2: #ebe7dc;
  --line: #d8d3c6;
  --text: #1b1a17;
  --muted: #55514a;
  --dim: #55514a;
  --carbon: #3b3f9e; /* carbon-copy ink: dates, form labels, dashed rules */
  --stamp: #b8321f;
  --accent: #b8321f;
  --accent-2: #3b3f9e;
  --accent-3: #2e6b34; /* success text */
  /* Paper stocks — one per lane */
  --c-ff: #f5b9c8; /* Friendly Fire — pink */
  --c-fs: #f6e27f; /* For Show — canary */
  --c-gl: #d6c7f2; /* Gaslit — lavender */
  --c-sn: #b6d3ee; /* The Slow No — blue */
  --c-otr: #c5e3b5; /* Off the Record — green */
  --c-cs: #f7c9a4; /* The Cheat Sheets — peach */
  --c-together: #ead6ab; /* Together — manila */
  --getloud: #f5b9c8; /* Tell yours lane */
  --getloud-hover: #efa3b6;
  --radius: 0;
  --maxw: 1080px;
  --readw: 860px; /* shared reading column — body prose across the site */
  --pad-x: 40px; /* site-wide side gutter — text lines up on every page */
  --bar: 0px; /* former category left bar — retired; kept so gutter math still resolves */
  --tint-row: 0%;
  --tint-feat: 0%;
  --tint-page: 0%;
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Admin + unreleased Book keep the previous dark theme until they get their own pass.
   body.* beats the light inline critical style in BaseLayout. */
html body.theme-legacy-dark {
  background: var(--bg);
  color: var(--text);
}
.theme-legacy-dark {
  --bg: #0d0d10;
  --ink: #f2f0ea;
  --on-ink: #0d0d10;
  --paper: #f2f0ea;
  --surface: #111116;
  --surface-2: #16161c;
  --line: #26262e;
  --text: #f2f0ea;
  --muted: #8b8798;
  --dim: #8b8798;
  --carbon: #b6b9f2;
  --stamp: #ff5f45;
  --accent: #ff5f45;
  --accent-2: #a96bff;
  --accent-3: #00e0b0;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: Georgia, 'Times New Roman', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Author display:flex/grid beats the UA [hidden] rule — lock it site-wide (iPhone leak fix). */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* fallback */
  overflow-x: clip;
  overflow-y: scroll; /* document scroll — scrollbar full height, behind sticky header */
  scrollbar-gutter: stable;
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* fallback */
  overflow-x: clip; /* never horizontal scroll; bleed washes still paint to edges */
  max-width: 100%;
  min-height: 100vh;
}

@media (max-width: 780px) {
  html,
  body {
    overflow-x: clip;
    overscroll-behavior-x: none;
  }
}

.ui {
  font: 13px/1.5 var(--font-ui);
  color: var(--dim);
}
.ui.up {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 11px;
}

/* Soft notice when edge/API returns 502–504 after retries */
.ls-degraded {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: #1a1520;
  border-bottom: 1px solid #3a2a45;
  color: #e8dcc8;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.4;
}
.ls-degraded__x {
  flex-shrink: 0;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  opacity: 0.75;
}
.ls-degraded__x:hover {
  opacity: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--c-fs);
  color: var(--tab-ink);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 1;
}
@media (max-width: 560px) {
  :root {
    --pad-x: 20px;
  }
}

/* Redaction bar — the Carbon Copy signature: ink block, paper text.
   Used on the "Silences" wordmark and the one phrase a page wants said. */
.grad,
.wm-silences.grad,
.hero h1 .g,
.submit-brand .g,
.redact {
  /* Flat ink bar trimmed to the letterforms so it never covers the line above */
  background: linear-gradient(transparent 9%, var(--ink) 9% 95%, transparent 95%);
  color: var(--on-ink);
  -webkit-text-fill-color: currentColor;
  font-style: italic;
  font-weight: 400;
  padding: 0 0.14em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* Everywhere else .g is just the emphasized word */
.g {
  font-style: italic;
}

/* ---------- MASTHEAD ---------- */
header.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Solid wash — no backdrop-filter (it traps position:fixed menus on iOS) */
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
  /* Stay in layout width so the document scrollbar stays grabable beside/behind the bar */
  max-width: 100%;
}

/* Colored edge of a carbon-form stack — five flat paper bands */
header.masthead::before {
  content: '';
  display: block;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--c-ff) 0 20%,
    var(--c-fs) 20% 40%,
    var(--c-gl) 40% 60%,
    var(--c-sn) 60% 80%,
    var(--c-otr) 80% 100%
  );
}

.masthead-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  /* Keep .wrap left/right padding — only set vertical here */
  padding-top: 20px;
  padding-bottom: 20px;
  position: relative;
  gap: 20px;
}

.masthead-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

/* Brand speaker mark — keep visible; never hide with display:none */
.masthead-mark {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  align-self: center;
  color: var(--ink);
}

.masthead-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  line-height: 1.1;
  font: 600 28px/1.1 var(--font-display);
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.wm-loud {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: inherit;
}

.wm-silences {
  font: inherit;
  font-weight: 400;
  letter-spacing: inherit;
  line-height: 1;
}

.masthead-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 0;
}

.masthead-nav a,
.masthead-nav button.sub,
.masthead-nav a.sub-link {
  padding: 0 0 3px;
  border-radius: 0;
  font: 13px/1 var(--font-ui);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.masthead-nav a:hover,
.masthead-nav a[aria-current='page'] {
  color: var(--ink);
  background: transparent;
  border-bottom-color: var(--ink);
}

/* Tell yours — the one nav item on pink paper */
.masthead-nav a.nav-submit {
  background: var(--getloud);
  color: var(--tab-ink);
  padding: 9px 12px;
  border-bottom: 0;
}
.masthead-nav a.nav-submit:hover,
.masthead-nav a.nav-submit[aria-current='page'] {
  background: var(--getloud-hover);
  color: var(--tab-ink);
}

.masthead-nav a.cta {
  color: var(--bg);
  background: var(--paper);
  padding: 9px 15px;
  font-size: 14px;
}
.masthead-nav a.cta:hover {
  filter: none;
  background: #fff;
  color: var(--bg);
}

.masthead-nav button.sub,
.masthead-nav a.sub-link {
  border: 1px solid var(--ink);
  background: var(--ink);
  padding: 9px 14px;
  font: 13px/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-ink);
}
.masthead-nav button.sub:hover,
.masthead-nav a.sub-link:hover {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font: 13px/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 44px;
  padding: 8px 10px;
  line-height: 1;
  position: relative;
  z-index: 10001;
}

/* Mobile full-screen menu (closed by default) */
.mobile-menu {
  display: none;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Footer brand (compact) */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand .logo {
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 auto;
}

.brand .masthead-wordmark {
  font-size: 1rem;
  gap: 0.28em;
}

.brand .wm-loud {
  font-size: 1rem;
  font-weight: 600;
}

.brand .grad,
.brand .wm-silences {
  font-size: 1rem;
  font-weight: 400;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: visible;
  text-align: left;
}
/* Home hero: headline left, "Who's writing" canary slip right */
.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 48px;
  align-items: end;
}
.hero-main {
  min-width: 0;
}
.hero-main .hero-lane {
  color: var(--carbon);
}
.hero-slip {
  background: var(--c-fs);
  color: var(--tab-ink);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-slip p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}
.hero-slip .hero-slip-label {
  font: 12px/1.4 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3b3f9e;
  padding-bottom: 10px;
  border-bottom: 1px dashed #3b3f9e;
}
.hero-slip-link {
  font: 12px/1.4 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tab-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 860px) {
  .hero-home {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}
.hero::before {
  display: none;
}
@media (max-width: 560px) {
  .hero {
    padding: 36px 0 26px;
  }
  .hero h1 {
    font-size: clamp(38px, 11vw, 50px);
    max-width: 14ch;
  }
  .hero .sig {
    font-size: 19px;
    margin-top: 16px;
  }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-kicker {
  display: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.04;
  font-size: clamp(42px, 7vw, 88px);
  margin: 0;
  max-width: 15ch;
  color: var(--text);
  text-wrap: balance;
}

.hero .sig {
  margin: 22px 0 0;
  font: 400 italic 22px/1.3 var(--font-display);
  color: var(--paper);
}

.hero .lead {
  font-size: 19px;
  color: var(--dim);
  max-width: 42ch;
  margin: 18px 0 0;
  line-height: 1.6;
}

#home-hero[hidden],
#home-extras[hidden] {
  display: none !important;
}

.btn {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 16px 22px;
  border-radius: 0;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
}

/* Ink fill — same language as “Tell it” / site CTAs */
.btn-primary,
.btn-secondary {
  background: var(--ink);
  color: var(--on-ink);
  border-color: var(--ink);
}

.btn-primary:hover,
.btn-secondary:hover {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

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

.btn-record {
  background: var(--c-gl);
  color: var(--tab-ink);
  border-color: var(--c-gl);
}

.btn-record:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}

/* ---------- SECTION HEADS ---------- */
.sec {
  /* Only vertical — never shorthand (would wipe .wrap’s --pad-x gutters) */
  padding-bottom: 48px;
}

.sec-head {
  display: none;
}

/* ---------- CATEGORY FILTERS (paper-stock tabs) ---------- */
.cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 8px;
  padding: 16px 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow-x: hidden; /* never create a sideways scroll lane */
}
@media (max-width: 560px) {
  .cats {
    gap: 6px;
    overflow-x: hidden;
    margin-left: 0;
    margin-right: 0;
    padding: 12px 0;
  }
  .cat {
    font-size: 11px;
    min-width: 0;
  }
  .cat.cat-all {
    /* sits in the 4+2 grid with Off the Record — not a full-width solo row */
    flex: none;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .cat-dot,
  .cat i.cat-dot {
    width: 7px;
    height: 7px;
  }
}

/* All leads the tab row at every width (it's last in the DOM for legacy wrap reasons) */
.cat.cat-all {
  order: -1;
}

.cat {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 0;
  border: 1px solid transparent;
  background: var(--cat, transparent);
  font: 12px/1 var(--font-ui);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tab-ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cat.cat-all {
  border-color: var(--ink);
  color: var(--ink);
}

.cat-dot,
.cat i.cat-dot {
  display: none;
}

.cat:hover {
  border-color: var(--ink);
}

.cat.active,
.cat.on,
.cat[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
  font-weight: 400;
}

.cats.cat-active {
  margin-top: 34px;
}

/* One-line category cue under home filters (not the big archive cathead) */
.cat-line {
  margin: 4px 0 18px;
  max-width: 46ch;
  font-family: var(--font-body);
  font-size: 15px;
  font-style: italic;
  line-height: 1.45;
  color: var(--muted);
}
.cat-line[hidden] {
  display: none !important;
}

.hero-lane,
.submit-lane {
  margin: 0 0 14px;
  color: var(--dim);
}
.hero-home .hero-lane {
  color: var(--dim);
}
.submit-lane {
  color: var(--getloud);
}

/* Category definition header (archive / Cheat Sheet pages only — not home filter) */
/* Category archive head — the lane's paper stock as a solid panel */
.cathead {
  padding: 56px var(--pad-x) 44px;
  margin: 0 calc(-1 * var(--pad-x));
  color: var(--tab-ink);
  background: var(--dot, var(--surface));
}
.cathead[hidden] {
  display: none !important;
}
@media (max-width: 560px) {
  .cathead {
    padding-top: 36px;
    padding-bottom: 28px;
  }
}
.cathead h1 {
  font-weight: 400;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.028em;
  margin: 12px 0 0;
  font-weight: 600;
  color: var(--tab-ink);
}
.cathead .cat-desc {
  margin: 20px 0 0;
  font-size: 20px;
  color: var(--tab-ink);
  max-width: 46ch;
  font-style: italic;
}
.cathead .cat-meta {
  margin: 16px 0 0;
}
.cats.cat-active ~ .list .row .lab {
  display: none;
}

.page-tint {
  position: relative;
}
.page-tint::before {
  display: none; /* page washes retired in Carbon Copy */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--page-dot, transparent) var(--tint-page), transparent),
    transparent 60%
  );
  z-index: -1;
}
/* Keep header above main so mobile nav never slides under posts */
.page-tint > header.masthead {
  position: sticky;
  z-index: 10001;
}
.page-tint > main,
.page-tint > footer {
  position: relative;
  z-index: 1;
}

/* ---------- CHEAT SHEETS (same rows as Field Notes) ---------- */
.wrap[data-cheat-page] {
  display: block;
  width: 100%;
  max-width: var(--maxw);
}
.cheat-page-head {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 28px 0 0;
  margin: 0;
}
.cheat-page-head .ui.up {
  display: block;
  color: var(--carbon);
}
.cheat-page-head h1 {
  display: block;
  width: 100%;
  max-width: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 6.8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 10px 0 0;
  font-weight: 600;
  color: var(--ink);
}
.cheat-page-lede {
  display: block;
  width: 100%;
  margin: 14px 0 0;
  font-size: 20px;
  line-height: 1.45;
  max-width: 46ch;
  color: var(--dim);
  font-style: italic;
}
.cheat-clusters {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 40px;
  min-width: 0;
}
.cheat-cluster {
  min-width: 0;
}
.wrap[data-cheat-page] .row {
  min-width: 0;
}
.wrap[data-cheat-page] .row > div {
  min-width: 0;
}
.wrap[data-cheat-page] .row .t {
  overflow-wrap: break-word;
}
.cheat-cluster .row:last-child {
  border-bottom: none;
}
@media (max-width: 800px) {
  .cheat-page-head {
    padding-top: 20px;
  }
  .cheat-page-head h1 {
    font-size: clamp(36px, 10vw, 52px);
  }
  .cheat-page-lede {
    font-size: 16px;
    max-width: none;
  }
  .cheat-clusters {
    gap: 36px;
    margin-top: 28px;
  }
}

/* ---------- TOGETHER (same rows as Field Notes) ---------- */
.wrap[data-together-page] {
  display: block;
  width: 100%;
  max-width: var(--maxw);
}
.together-page-head {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 28px 0 0;
  margin: 0;
}
.together-page-head .ui.up {
  display: block;
  color: var(--carbon);
}
.together-page-head h1 {
  display: block;
  width: 100%;
  max-width: 12ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 6.8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 10px 0 0;
  font-weight: 600;
  color: var(--ink);
}
.together-page-lede {
  display: block;
  width: 100%;
  margin: 14px 0 0;
  font-size: 20px;
  line-height: 1.45;
  max-width: 42ch;
  color: var(--dim);
  font-style: italic;
}
.together-page-lead {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.5;
  max-width: 46ch;
  color: var(--muted);
}
.together-rows {
  margin-top: 40px;
  min-width: 0;
}
.together-list {
  min-width: 0;
}
.wrap[data-together-page] .row {
  min-width: 0;
}
.wrap[data-together-page] .row > div {
  min-width: 0;
}
.wrap[data-together-page] .row .t {
  overflow-wrap: break-word;
}
.together-list .row:last-child {
  border-bottom: none;
}
@media (max-width: 800px) {
  .together-page-head {
    padding-top: 20px;
  }
  .together-page-head h1 {
    font-size: clamp(36px, 10vw, 52px);
  }
  .together-page-lede {
    font-size: 16px;
    max-width: none;
  }
  .together-page-lead {
    font-size: 16px;
    max-width: none;
  }
  .together-rows {
    margin-top: 28px;
  }
}

/* ---------- LIST FEED (not pastel cards) ---------- */
.feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feed-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 28px;
}

.feed-more[hidden] {
  display: none !important;
}

.feed-more-hint {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--dim);
  margin: 0;
}

.list {
  margin-top: 26px;
}

.feed-pins {
  margin: 0 0 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.feed-pins .row:last-child {
  border-bottom-color: transparent;
}

/* Home: held pins as a designed opening field, then named lane piles */
.page-home .feed-held {
  margin: 0 calc(-1 * var(--pad-x)) 0;
  padding: 0 0 12px;
  background: none;
  border-bottom: 3px solid var(--ink);
}

.page-home .feed-held .row {
  margin-left: 0;
  margin-right: 0;
  padding-top: 22px;
  padding-bottom: 22px;
}

.page-home .feed-held .row .t {
  font-size: 26px;
}

.page-home .feed-held .row .say {
  margin-top: 8px;
  max-width: 62ch;
  color: var(--dim);
}

.page-home .feed-held .row:last-child {
  border-bottom-color: transparent;
}

.page-home .feed-more {
  display: none !important;
}

.page-home .feed-piles {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin: 56px 0 0;
  padding: 0;
  background: none;
}

.page-home .feed-pile {
  margin: 0;
  padding: 0;
  background: none;
}

.page-home .feed-pile-name {
  margin: 0 0 10px;
  padding: 0;
  font-family: inherit;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--paper);
  text-transform: none;
}

.page-home .feed-pile .row .lab {
  display: none;
}

.page-home .feed-pile-more {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--dim);
  text-decoration: none;
}

.page-home .feed-pile-more:hover {
  color: var(--paper);
}

/* Home: two rooms — lane directory left, held notes right. No river. */
.page-home .home-rooms {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 0;
  margin: 28px 0 0;
  max-width: 100%;
}

.page-home .home-rooms-lanes {
  min-width: 0;
  padding-right: 36px;
  padding-top: 2px;
  border-right: 1px solid var(--line);
}

.page-home .home-rooms-pins {
  min-width: 0;
  padding-left: 36px;
}

.page-home .home-rooms .row {
  margin-left: 0;
  margin-right: 0;
  padding-left: calc(14px + var(--bar));
  padding-right: 4px;
  grid-template-columns: 1fr;
  gap: 8px;
}

.page-home .home-rooms .row .t {
  font-size: 24px;
}

.page-home .home-rooms .row .say {
  max-width: 52ch;
}

.page-home .home-rooms .row .len {
  text-align: left;
}

.page-home .home-lane {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 14px 8px 14px calc(14px + var(--bar));
  border-left: var(--bar) solid var(--dot, var(--cat, var(--accent)));
  border-bottom: 1px solid var(--line);
  background: linear-gradient(
    94deg,
    color-mix(in srgb, var(--dot, var(--cat, var(--accent))) var(--tint-row), transparent),
    transparent 52%
  );
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}

.page-home .home-lane-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.3;
  color: var(--dot, var(--cat, var(--paper)));
}

.page-home .home-lane-count {
  flex: 0 0 auto;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--dim);
}

.page-home .home-lane:hover {
  background: linear-gradient(
    94deg,
    color-mix(in srgb, var(--dot, var(--cat, var(--accent))) 13%, transparent),
    transparent 60%
  );
}

.page-home .home-lane:hover .home-lane-name {
  color: var(--dot, var(--cat, var(--paper)));
}

@media (max-width: 780px) {
  .page-home .home-rooms {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-home .home-rooms-lanes {
    padding-right: 0;
    border-right: 0;
    padding-bottom: 18px;
  }
  .page-home .home-rooms-pins {
    padding-left: 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .page-home .home-rooms .row .t {
    font-size: 22px;
  }
}

.grid {
  display: block;
}

.row,
.xp {
  /* --bar on the left — pad so text matches .wrap gutter on every page */
  padding: 18px var(--pad-x) 18px calc(var(--pad-x) - var(--bar));
  margin: 0 calc(-1 * var(--pad-x));
  border-left: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 24px;
  align-items: baseline;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}
.xp {
  display: block;
  grid-template-columns: none;
}
.row[hidden],
.xp[hidden],
.card[hidden],
.card-reader[hidden] {
  display: none !important;
}
@media (max-width: 560px) {
  .row,
  .xp {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .row .t {
    font-size: 21px;
  }
  .page-home .feed-held .row .t {
    font-size: 23px;
  }
}
@media (max-width: 640px) {
  .row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .row .len {
    text-align: left;
  }
}
.row:hover,
.xp:hover {
  background: var(--surface);
}
.row .lab,
.xp .lab,
.article .a-lab {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.row .lab i,
.xp .lab i,
.article .a-lab i {
  display: none;
}
/* Category label = a tab of that lane's paper stock */
.row .lab .ui.up,
.xp .lab .ui.up {
  display: inline-block;
  background: var(--dot, var(--cat, var(--surface-2)));
  color: var(--tab-ink);
  padding: 5px 9px;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.row .t,
.xp .t,
.xp h3 {
  font-size: 23px;
  text-decoration: none;
  letter-spacing: -0.014em;
  line-height: 1.17;
  font-weight: 600;
  color: var(--paper);
  margin: 0;
  display: block;
}
.row:hover .t,
.xp:hover .t,
.xp:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--stamp);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.row .say,
.xp .say,
.xp p.say {
  display: block;
  font-size: 17px;
  line-height: 1.5;
  color: var(--dim);
  margin-top: 6px;
  max-width: 60ch;
  font-style: normal;
}
.row .len {
  text-align: right;
  white-space: normal;
  font-size: 12px;
  line-height: 1.6;
  color: var(--carbon);
}
@media (max-width: 640px) {
  .row .len {
    text-align: left;
  }
}

/* Home lead: the newest note becomes a full paper-stock panel */
.page-home [data-live-grid] > a.row:first-child,
.page-home [data-live-grid] > .feed-pins:first-child > a.row:first-child {
  display: block;
  margin-top: 28px;
  margin-bottom: 24px;
  padding: 40px var(--pad-x) 44px;
  background: var(--cat, var(--surface));
  border-bottom: 0;
  color: var(--tab-ink);
}
.page-home [data-live-grid] > a.row:first-child .lab .ui.up,
.page-home [data-live-grid] > .feed-pins:first-child > a.row:first-child .lab .ui.up {
  background: var(--tab-ink);
  color: var(--cat, var(--bg));
}
.page-home [data-live-grid] > a.row:first-child .t,
.page-home [data-live-grid] > .feed-pins:first-child > a.row:first-child .t {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-top: 14px;
  color: var(--tab-ink);
}
.page-home [data-live-grid] > a.row:first-child .say,
.page-home [data-live-grid] > .feed-pins:first-child > a.row:first-child .say {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45;
  max-width: 36ch;
  margin-top: 16px;
  color: var(--tab-ink);
}
.page-home [data-live-grid] > a.row:first-child .len,
.page-home [data-live-grid] > .feed-pins:first-child > a.row:first-child .len {
  display: block;
  text-align: left;
  margin-top: 22px;
  color: var(--tab-ink);
}
.xp .xp-meta {
  margin: 10px 0 0;
  font-style: normal;
}

/* Reader experience cards — Get Loud rail (≠ Field Notes category rail) */
.xp.xp-reader {
  --dot: var(--getloud);
  background: none;
}
.xp.xp-reader:hover {
  background: var(--surface);
}
.xp .xp-cat {
  display: block;
  color: var(--carbon);
  margin: 0 0 8px;
}

/* Legacy card selectors kept so nothing orphaned breaks; list is primary */
.card,
.card-reader {
  display: none;
}

.grid-empty {
  color: var(--muted);
  padding: 28px 0;
  font-style: italic;
}

/* Home / Together “Tell yours” CTA — canary form slip, same on mobile + desktop */
.cta-block {
  margin: 56px 0 0;
  padding: 40px 44px 44px;
  background: var(--c-fs);
  color: var(--tab-ink);
}
@media (max-width: 560px) {
  .cta-block {
    padding: 26px 22px 28px;
  }
}
.cta-block .cta-kicker {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #3b3f9e;
  font: 12px/1.4 var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3b3f9e;
}
/* h2 is the real level (it follows the page h1 with nothing between);
   h3 stays matched so any older markup keeps the same look. */
.cta-block :is(h2, h3) {
  font: 600 clamp(28px, 4vw, 42px) / 1.08 var(--font-display);
  margin: 0;
  letter-spacing: -0.018em;
  max-width: 14ch;
  color: var(--tab-ink);
}
.cta-block :is(h2, h3) .g {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(transparent 8%, var(--tab-ink) 8% 94%, transparent 94%);
  color: var(--c-fs);
  padding: 0 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.cta-block p:not(.cta-kicker) {
  font-style: italic;
  color: #3d3a33;
  max-width: 44ch;
  margin: 16px 0 0;
  font-size: 19px;
  line-height: 1.55;
}
.cta-block a.b,
.doc-actions a.b {
  display: inline-block;
  margin-top: 24px;
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
  font: 13px/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 22px;
  border: 1px solid var(--ink);
}
.cta-block a.b {
  background: var(--tab-ink);
  border-color: var(--tab-ink);
  color: var(--c-fs);
}
.cta-block a.b:hover {
  background: transparent;
  color: var(--tab-ink);
}
.doc-actions a.b:hover {
  background: transparent;
  color: var(--ink);
}
.doc-actions a.b {
  margin-top: 0;
}
.doc-actions a.b-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.doc-actions a.b-ghost:hover {
  background: var(--ink);
  color: var(--on-ink);
}

/* ---------- NEWSLETTER ---------- */
.news {
  background: var(--c-sn);
  border: 0;
  border-radius: 0;
  padding: 52px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.news::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
}

.news > * {
  position: relative;
  z-index: 1;
}

.news h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.news p {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 auto 26px;
}

.news-status {
  margin: 16px auto 0;
  max-width: 48ch;
  min-height: 1.3em;
  font-size: 0.95rem;
}

.news-status[data-state='ok'] {
  color: var(--accent-3);
}

.news-status[data-state='error'] {
  color: var(--accent);
}

.news form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.news input {
  flex: 1;
  min-width: 210px;
  padding: 14px 18px;
  border-radius: 0;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
}

.news input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Header stays left in the site wrap; body shares the same left edge (reading width capped). */
.wrap[data-post-shell] {
  max-width: var(--maxw);
}

.article {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 0 40px;
  /* tinted head uses category accent from --cat */
  --dot: var(--cat, var(--accent));
  position: relative;
}

.article .back {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tab-ink);
  font-weight: 400;
  display: inline-block;
  margin: 52px 0 18px;
}

.article .back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article .a-lab {
  margin-bottom: 0;
}

.article .a-tag {
  display: inline-block;
  width: auto;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--tab-ink);
  color: var(--cat, var(--bg));
  padding: 5px 9px;
  margin-bottom: 0;
}

.article a.a-tag:hover {
  background: transparent;
  color: var(--tab-ink);
  box-shadow: inset 0 0 0 1px var(--tab-ink);
}

.article h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(42px, 8vw, 112px);
  letter-spacing: -0.032em;
  line-height: 0.96;
  margin: 18px 0 0;
  max-width: 14ch;
  color: var(--tab-ink);
  text-wrap: balance;
  /* posthead wash */
  padding: 0;
}

/* Post head — the lane's paper stock as a solid panel, bled to the wrap edges */
.article-head {
  position: relative;
  margin: 24px 0 32px;
  padding: 0 0 36px;
  color: var(--tab-ink);
}

.article-head::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--pad-x));
  right: calc(-1 * var(--pad-x));
  top: 0;
  bottom: 0;
  pointer-events: none;
  background: var(--cat, var(--surface));
  z-index: 0;
}

.article-head > * {
  position: relative;
  z-index: 1;
}

.article-head .back {
  display: block;
  margin: 0 0 18px;
  padding-top: 40px;
}

.article .title-rule {
  display: none;
}

.article .a-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 4px 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tab-ink);
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--tab-ink);
}

.article .a-meta-right {
  flex: 0 0 auto;
  text-align: left;
  white-space: nowrap;
}

.article .a-comments-count {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

.article a.a-comments-count[href] {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article a.a-comments-count[href]:hover {
  color: var(--tab-ink);
}

.article .content {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.55;
  color: var(--text);
  max-width: var(--readw);
  margin: 8px 0 0;
  padding: 0;
}

.article .content p {
  margin-bottom: 14px;
}

/* Opening letter set on the lane's paper stock */
/* flow-root keeps the floated letter inside a one-line opening paragraph */
.article .content > p:first-of-type {
  display: flow-root;
}
.article .content > p:first-of-type::first-letter {
  float: left;
  background: var(--cat, var(--surface-2));
  color: var(--tab-ink);
  font-weight: 600;
  font-size: 3.4em;
  line-height: 1;
  padding: 0.08em 0.16em 0.04em;
  margin: 0.1em 0.16em 0 0;
}

.article .content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.015em;
  margin: 1.5em 0 0.45em;
  color: var(--text);
  line-height: 1.2;
}
.article .content h2::before {
  content: '';
  display: block;
  width: 44px;
  height: 7px;
  margin-bottom: 10px;
  background: var(--cat, var(--ink));
}

.article .content h2 + p {
  margin-top: 0;
}

/* Pull quote — a slip of the post's own category paper, stamped "For the record" */
.article .content blockquote {
  position: relative;
  margin: 26px 0;
  padding: 22px 28px 24px;
  border: none;
  background: var(--cat, var(--c-fs));
  font-family: var(--font-body);
  font-size: clamp(24px, 3.2vw, 36px);
  font-style: italic;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--tab-ink);
  max-width: none;
}

.article .content blockquote::before {
  content: 'For the record';
  display: block;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #3b3f9e;
  font: normal 12px/1.4 var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3b3f9e;
}
@media (max-width: 560px) {
  .article .content blockquote {
    padding: 20px 22px 24px;
  }
}

.article .content blockquote p {
  margin: 0;
}

.article .content > p:last-child {
  color: var(--text);
  font-weight: 400;
}

/* ---------- SHARE ---------- */
.share-bar {
  max-width: var(--readw);
  margin: 18px 0 0;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
}

.share-cue {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.4;
  font-style: normal;
  color: var(--paper);
}

.share-bar-after {
  margin: 48px 0 0;
  padding: 28px 0 0;
  border-bottom: 0;
  border-top: 3px solid var(--ink);
}

.share-actions {
  gap: 8px;
}

/* Paper-stock squares — keep 44px hit targets */
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: var(--surface-2);
  color: var(--tab-ink);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
}
.share-btn-linkedin {
  background: var(--c-sn);
}
.share-btn-email {
  background: var(--c-otr);
}
.share-btn-x {
  background: var(--c-gl);
}
.share-btn-copy {
  background: var(--c-cs);
}

.share-btn:hover {
  color: var(--on-ink);
  background: var(--ink);
  transform: none;
}

.share-icon {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.share-btn-x .share-icon {
  width: 18px;
  height: 18px;
}



.share-status {
  margin-top: 6px;
  min-height: 0;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--carbon);
}

.share-status:empty {
  display: none;
}

/* ---------- COMMENTS ---------- */
.comments {
  max-width: var(--readw);
  width: 100%;
  margin: 0 0 48px;
  padding-top: 28px;
  border-top: 3px solid var(--ink);
  scroll-margin-top: 88px;
}

.comments h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.comments-lead {
  color: var(--muted);
  margin-bottom: 6px;
  max-width: 42ch;
  font-size: 0.98rem;
  line-height: 1.45;
}

.comments-why {
  color: var(--dim);
  margin-bottom: 16px;
  max-width: 52ch;
  font-size: 0.88rem;
  line-height: 1.5;
}

.comments-thread-label {
  margin: 20px 0 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.comments-thread-label[hidden] {
  display: none !important;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.comments-list[hidden] {
  display: none;
  margin: 0;
}

.comments-empty {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Distinct reader unit — not more article prose */
.comment {
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--c-sn);
  background: var(--surface);
  border-radius: 0;
}

.comment-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.comment-meta .comment-who {
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.comment-body {
  color: color-mix(in srgb, var(--paper) 88%, var(--dim));
  font-family: var(--font-ui);
  font-size: 0.98rem;
  line-height: 1.55;
  opacity: 1;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.comment-love-btn,
.comment-reply-btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.comment-love-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.comment-love-heart {
  font-size: 0.95rem;
  line-height: 1;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0;
  text-transform: none;
  color: var(--stamp);
}

.comment-love-btn[aria-pressed='true'] {
  color: var(--stamp);
}

.comment-love-btn[aria-pressed='true'] .comment-love-heart {
  color: var(--stamp);
}

.comment-love-n:not([hidden]) {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.comment-love-btn:hover,
.comment-love-btn:focus-visible,
.comment-reply-btn:hover,
.comment-reply-btn:focus-visible {
  color: var(--accent);
  outline: none;
}

.comment-love-btn:disabled,
.comment-reply-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.comment-reply-slot:not(:empty) {
  margin-top: 14px;
}

.comment-replies {
  margin-top: 14px;
  padding-left: 0;
  border-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-replies:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.comment-reply {
  border-top-color: var(--line);
  background: var(--bg);
  padding: 12px 14px 10px;
}

.comment-replying {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.comment-reply-cancel {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--dim);
  text-decoration: underline;
  cursor: pointer;
}

.comment-reply-cancel:hover {
  color: var(--text);
}

.comment-reply-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 36rem;
}

.comment-reply-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  min-height: 88px;
}

.comment-reply-form textarea:focus {
  outline: none;
  border-color: var(--paper);
}

/* Write box first — thread sits below. Lavender form slip. */
.comment-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--c-gl);
  color: var(--tab-ink);
  border: 0;
  border-radius: 0;
  padding: 24px;
  max-width: 40rem;
  margin-bottom: 0;
}

.comment-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-form label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dim);
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 0;
  border: 1px solid var(--tab-ink);
  background: #f8f6f0;
  color: var(--tab-ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: 2px solid var(--tab-ink);
  outline-offset: 1px;
}
.comment-form .form-status {
  color: var(--tab-ink);
}

.comment-form textarea {
  resize: vertical;
  min-height: 110px;
}

.comment-form .btn,
.comment-reply-form .btn {
  align-self: flex-start;
  margin-top: 0;
}

/* Invisible Turnstile — keep interactive, don't steal vertical space */
.turnstile-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: auto;
}

.turnstile-wrap:empty {
  display: none;
}

.form-status {
  color: var(--muted);
  font-size: 0.85rem;
  min-height: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.form-status:empty {
  display: none;
}

/* ---------- ADMIN ---------- */
.admin-comments,
.admin-desk {
  max-width: 760px;
  margin: 0 auto;
  padding: 54px 0 80px;
}

.admin-comments.admin-wide,
.admin-desk.admin-wide {
  max-width: 1100px;
}

.admin-lane {
  color: var(--dim);
  margin: 0 0 10px;
}

.admin-comments h1,
.admin-desk h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  line-height: 1.1;
}

.admin-lead {
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.45;
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: -4px 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-subnav a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  border: 0;
  border-radius: 0;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  text-decoration: none;
}

.admin-subnav a:hover {
  color: var(--text);
  border-bottom-color: color-mix(in srgb, var(--text) 35%, transparent);
}

.admin-subnav a[aria-current='page'] {
  color: var(--text);
  background: transparent;
  border-bottom-color: var(--accent);
}

.admin-auth label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.admin-auth-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-auth input {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
}

.admin-panel {
  margin-top: 36px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-live-cats {
  margin: -8px 0 18px;
  gap: 8px;
}

.admin-live-cats[hidden] {
  display: none !important;
}

.admin-cat-count {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.78em;
  opacity: 0.7;
  font-weight: 500;
}

.admin-live-group {
  margin-bottom: 28px;
}

.admin-live-group-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cat, var(--muted));
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.admin-live-group .admin-table-wrap {
  margin-bottom: 0;
}

.admin-excerpt-actions {
  margin: -6px 0 14px;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
  color: var(--text);
}

.admin-card-link {
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.admin-card-link:hover {
  border-color: #3a3a55;
  transform: translateY(-2px);
}

.admin-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.admin-card-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-card-meta strong {
  color: var(--text);
  font-size: 1.05rem;
}

.admin-card-meta a {
  color: var(--accent-2);
}

.admin-card-body {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 12px;
}

.admin-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  width: fit-content;
}

.admin-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.admin-actions .btn-danger,
.admin-card-actions .btn-danger,
.admin-table-actions .btn-danger {
  color: #ff8a7a;
  border-color: #5a2a28;
}

.admin-actions .btn-danger:hover,
.admin-card-actions .btn-danger:hover,
.admin-table-actions .btn-danger:hover {
  color: #ffb0a4;
  border-color: #ff4d3d;
  background: rgba(255, 77, 61, 0.08);
}

.admin-table-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.admin-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-link-title {
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.admin-link-title:hover {
  text-decoration: underline;
}

.admin-compose {
  margin: 0 0 22px;
  padding: 0 16px;
  background: var(--surface);
}

.admin-compose[open] {
  padding-bottom: 8px;
}

.admin-compose > summary {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.admin-edit {
  margin: 10px 0 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 0 12px;
}

.admin-edit summary {
  cursor: pointer;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.admin-edit-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  padding: 0 0 12px;
}

.admin-edit-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-edit-fields input,
.admin-edit-fields select,
.admin-edit-fields textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
}

.admin-edit-fields textarea[data-field="body"] {
  min-height: 32rem;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.admin-edit-full {
  grid-column: 1 / -1;
}

.admin-edit-row td {
  padding-top: 0;
}

.admin-table .admin-edit {
  margin: 0 0 8px;
}

.admin-edit-hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

.admin-check {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  grid-column: 1 / -1;
}

.admin-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--accent-3);
  border: 1px solid #1a4a40;
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.admin-pill-muted {
  color: var(--dim);
  border-color: var(--line);
}

.admin-hub-stats {
  display: block;
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--hub-accent, var(--accent-3)) 75%, var(--dim));
}

.admin-sub-counter {
  display: flex;
  gap: 28px 36px;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.admin-sub-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 5.5rem;
}

.admin-sub-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.admin-sub-num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.admin-bounce-warn {
  color: #ff8a7a;
}

.admin-broadcast-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.admin-broadcast-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-broadcast-list li:last-child {
  border-bottom: 0;
}

@media (max-width: 720px) {
  .admin-edit-fields {
    grid-template-columns: 1fr;
  }
}

.admin-preview-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 20px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(18, 18, 26, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.admin-preview-bar[hidden] {
  display: none !important;
}

.admin-preview-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.admin-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-preview-bar .form-status {
  flex-basis: 100%;
  margin: 0;
}

body.admin-previewing {
  padding-bottom: 88px;
}

.admin-field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 12px 0 6px;
}

.admin-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.admin-body {
  color: #d8d4cc;
  font-size: 0.95rem;
  line-height: 1.55;
  max-height: 220px;
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.admin-body-edit {
  min-height: 220px;
  line-height: 1.55;
  resize: vertical;
}

.admin-flag {
  color: #ffb347;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.admin-notes {
  color: var(--dim);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.admin-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .admin-hub {
    grid-template-columns: 1fr;
  }
}

.admin-hub-card {
  --hub-accent: var(--accent);
  display: flex;
  flex-direction: column;
  min-height: 9.5rem;
  padding: 20px 22px 18px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid color-mix(in srgb, var(--hub-accent) 55%, var(--line));
  border-radius: 0;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--hub-accent) 7%, transparent),
      transparent 42%
    ),
    var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.admin-hub-notes {
  --hub-accent: var(--accent);
}
.admin-hub-book {
  --hub-accent: #d4c4ff;
}
.admin-hub-together {
  --hub-accent: #e8b86d;
}
.admin-hub-comments {
  --hub-accent: var(--paper);
}
.admin-hub-news {
  --hub-accent: var(--c-otr);
}

.admin-hub-card:hover {
  border-color: color-mix(in srgb, var(--hub-accent) 40%, var(--line));
  border-left-color: var(--hub-accent);
  transform: translateY(-2px);
}

.admin-hub-card-static:hover {
  transform: none;
  border-color: var(--line);
  border-left-color: color-mix(in srgb, var(--hub-accent) 55%, var(--line));
  cursor: default;
}

.admin-hub-card-static .admin-broadcast-list {
  margin-top: 14px;
}

.admin-hub-card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.admin-hub-card span:not(.admin-hub-stats) {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.admin-engagement {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.admin-engagement-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 16px;
}

.admin-engagement h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.admin-engagement-lead {
  margin: 0;
  max-width: 36rem;
}

.admin-engagement-table th.num,
.admin-engagement-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-engagement-table .admin-sort {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.admin-engagement-table .admin-sort:hover,
.admin-engagement-table .admin-sort.active {
  color: var(--text);
}

.admin-engagement-table .admin-sort.active::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.admin-engagement-table .admin-sort.active[aria-sort='ascending']::after {
  border-top: 0;
  border-bottom: 5px solid currentColor;
}

.admin-engagement-table tfoot th,
.admin-engagement-table tfoot td {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-weight: 600;
  color: var(--text);
}

.screen-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.screen-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 8px;
}

.screen-pass {
  color: #0a0a0f;
  background: var(--accent-3);
}

.screen-fail {
  color: #fff;
  background: var(--accent);
}

.screen-skip {
  color: #0a0a0f;
  background: #ffb347;
}

.screen-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.admin-body-details {
  margin: 14px 0 4px;
}

.admin-body-details summary {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
  margin-bottom: 8px;
}

.admin-body-collapsed {
  max-height: 120px;
  margin-top: 10px;
}

.admin-wide {
  max-width: 1100px;
}

.admin-toolbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-search {
  min-width: 200px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}

.admin-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin: 0 0 12px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table-row {
  cursor: pointer;
  transition: background 0.12s;
}

.admin-table-row:hover,
.admin-table-row:focus {
  background: var(--surface-2);
  outline: none;
}

.admin-table-row td:first-child {
  color: var(--text);
  font-weight: 500;
}

.table-title {
  color: var(--text) !important;
  font-weight: 600;
  max-width: 240px;
}

.table-reason {
  max-width: 280px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.table-when {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--dim) !important;
}

.table-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.admin-drawer[hidden] {
  display: none !important;
}

.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.admin-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.admin-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  height: 100dvh;
  width: min(480px, 100%);
  background: var(--bg);
  border-left: 1px solid var(--line);
  padding: 20px 22px calc(40px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.35);
}

.admin-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-drawer-head h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

body.admin-drawer-open {
  overflow: hidden;
}

.admin-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.admin-pager span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.admin-bulk-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--accent-3);
  margin: 0 0 12px;
}

.table-check {
  width: 36px;
  vertical-align: middle !important;
}

.table-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

/* ---------- SUBMITTED FEED CARDS ---------- */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag-submitted {
  color: var(--carbon) !important;
  letter-spacing: 0.08em;
}

.card-submitted .tag-submitted {
  color: var(--getloud-hover) !important;
}

.tag-gender {
  color: var(--muted) !important;
  letter-spacing: 0.06em;
}

/* ---------- SUBMIT PAGE (confession booth) ---------- */
.submit-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.submit-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 12vw, 132px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 18px;
  background: none;
  font-weight: 600;
  color: var(--tab-ink);
  max-width: 12ch;
}

/* Get Loud head — pink paper, the same stock as the nav item, with a rubber stamp */
.submit-booth .submit-hero {
  position: relative;
  margin: 0 calc(-1 * var(--pad-x)) 8px;
  padding: 36px var(--pad-x) 30px;
  background: var(--getloud);
  color: var(--tab-ink);
  overflow: hidden;
}
.submit-booth .submit-hero::after {
  content: 'Names withheld' / '';
  position: absolute;
  top: 34px;
  right: var(--pad-x);
  padding: 8px 14px;
  border: 3px solid var(--stamp);
  color: var(--stamp);
  font: 500 14px/1 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  opacity: 0.85;
  pointer-events: none;
}
@media (max-width: 560px) {
  .submit-booth .submit-hero::after {
    top: 18px;
    font-size: 11px;
    padding: 6px 10px;
  }
}
@media (max-width: 560px) {
  .submit-booth .submit-hero {
    padding-top: 22px;
    padding-bottom: 4px;
  }
}

.submit-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--tab-ink);
  margin: 14px 0 10px;
}

.submit-whisper {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--tab-ink);
  max-width: 34rem;
  line-height: 1.55;
}

.submit-safety {
  margin: 18px 0 0;
  max-width: 36rem;
}

.submit-safety summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tab-ink);
  list-style: none;
}

.submit-safety summary::-webkit-details-marker {
  display: none;
}

.submit-safety summary::after {
  content: ' →';
  color: var(--tab-ink);
}

.submit-safety[open] summary::after {
  content: ' ↓';
}

.submit-safety-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--tab-ink);
  color: var(--tab-ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

.submit-safety-body p + p {
  margin-top: 10px;
}

.submit-safety-body strong {
  color: var(--text);
  font-weight: 600;
}

.submit-page a.submit-lt-link,
.submit-page a[href='/loud-together/'],
.submit-page a[href='/loud-together'] {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.submit-done a.submit-lt-link.btn {
  color: var(--tab-ink);
  background: var(--c-together);
  border-color: var(--c-together);
  text-decoration: none;
}

.submit-done a.submit-lt-link.btn:hover {
  color: var(--on-ink);
  background: var(--ink);
  border-color: var(--ink);
}

.submit-booth .submit-form {
  margin-top: 28px;
}

.submit-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.submit-form label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
/* "Spill it" reads as a tab on the page */
.submit-booth .submit-form .field > label {
  align-self: flex-start;
  background: var(--ink);
  color: var(--on-ink);
  padding: 6px 10px;
  font-size: 0.8rem;
}

.field-hint {
  font-size: 0.9rem;
  color: var(--dim);
}

.submit-booth .submit-form textarea {
  width: 100%;
  /* Ruled legal pad: blue lines, one red margin rule */
  padding: 0 18px 18px 64px;
  border-radius: 0;
  border: 1px solid var(--ink);
  background-color: #fffdf8;
  background-image:
    linear-gradient(90deg, transparent 47px, rgba(184, 50, 31, 0.45) 47px 48px, transparent 48px),
    repeating-linear-gradient(180deg, transparent 0 calc(1.8rem - 1px), #cfdcec calc(1.8rem - 1px) 1.8rem);
  background-attachment: local;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8rem;
  padding-top: 0.45rem;
  resize: vertical;
  min-height: 340px;
  box-shadow: 6px 6px 0 var(--c-ff);
}

.submit-booth .submit-form textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.submit-booth .submit-form textarea::placeholder {
  color: #8a857b;
}

.submit-demo {
  margin: 0 0 18px;
}

.submit-demo-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 8px;
}

.submit-demo-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.submit-demo-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  font-weight: 400;
}

.submit-demo-option input {
  accent-color: var(--ink);
  width: 13px;
  height: 13px;
  margin: 0;
}

.submit-demo-option:has(input:checked) {
  color: var(--text);
}

.submit-booth .submit-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 8px 0 22px;
  padding: 16px 18px;
  border: 0;
  border-radius: 0;
  background: var(--c-fs);
}
.submit-booth .submit-check label {
  color: var(--tab-ink);
}

.submit-check input {
  margin-top: 4px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.submit-check label {
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.submit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.submit-fine {
  font-size: 0.82rem;
  color: var(--dim);
  max-width: 22rem;
  line-height: 1.45;
}

.submit-done {
  max-width: 560px;
  padding: 24px 0 40px;
}

.submit-done-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  background: var(--getloud);
  color: var(--tab-ink);
  font-size: 1.4rem;
}

.submit-done h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.submit-done > p {
  color: var(--text);
  font-size: 1.08rem;
  margin-bottom: 18px;
}

.submit-done-steps {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin: 0 0 22px;
}

.submit-done-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.submit-done-steps span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--carbon);
}

.submit-done-note {
  color: var(--dim) !important;
  font-size: 0.92rem !important;
  line-height: 1.5;
  margin-bottom: 24px !important;
}

.submit-done .btn {
  margin-top: 8px;
}

.submit-done-nudge {
  margin-top: 28px;
  text-align: left;
}

.submit-done-nudge .subscribe-nudge {
  border-top: 1px solid var(--line);
  margin: 0;
  padding-top: 22px;
}

/* ---------- CATEGORY ARCHIVE ---------- */
.category-archive {
  max-width: none;
  margin: 0;
  padding: 12px 0 48px;
}

.category-archive .back {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 400;
  display: inline-flex;
  gap: 8px;
  margin: 8px 0 28px;
}

.category-archive .back:hover {
  color: var(--paper);
}

.category-kicker {
  display: none;
}

.category-archive > .cathead {
  margin-top: 0;
  padding-top: 28px;
}
@media (max-width: 560px) {
  .category-archive > .cathead {
    padding-top: 22px;
  }
}

.category-desc {
  display: none;
}

.category-grid {
  margin-top: 8px;
}

/* ---------- DOC PROSE (About / Privacy) ---------- */
.doc {
  max-width: 760px;
  padding: 56px 0 64px;
}
@media (max-width: 560px) {
  .doc {
    padding: 36px 0 48px;
  }
}
.doc-head {
  margin: 0 0 36px;
  padding: 0;
  border: 0;
  background: none;
}
.doc-head h1 {
  font-weight: 600;
  font-size: clamp(56px, 10vw, 120px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  letter-spacing: -0.026em;
  margin: 0;
}
.doc-lead {
  margin: 18px 0 0;
  font: 400 italic clamp(26px, 4vw, 40px) / 1.2 var(--font-display);
  color: var(--paper);
  max-width: 22ch;
}
.doc-lead .redact {
  font-weight: 400;
}
.doc-body p {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
}
/* The line the whole site hangs on — a pink slip, slightly askew like it was pinned up */
.doc-body p.doc-thing {
  display: inline-block;
  margin: 10px 0 30px;
  padding: 16px 22px;
  background: var(--c-ff);
  color: var(--tab-ink);
  font: 600 italic clamp(22px, 3vw, 30px) / 1.25 var(--font-display);
  transform: rotate(-1.2deg);
}
/* The four lanes as a 2 × 2 spread of paper, each set down a little differently */
.doc-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.doc-lanes .doc-sec {
  margin: 0;
}
.doc-lanes .doc-sec:nth-child(1) {
  transform: rotate(-0.6deg);
}
.doc-lanes .doc-sec:nth-child(2) {
  transform: rotate(0.5deg) translateY(10px);
}
.doc-lanes .doc-sec:nth-child(3) {
  transform: rotate(0.4deg);
}
.doc-lanes .doc-sec:nth-child(4) {
  transform: rotate(-0.5deg) translateY(10px);
}
@media (max-width: 640px) {
  .doc-lanes {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc-lanes .doc-sec:nth-child(n) {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .doc-body p.doc-thing,
  .doc-lanes .doc-sec:nth-child(n) {
    transform: none;
  }
}
/* About sections — each on its own paper stock */
.doc-sec {
  margin: 24px 0 0;
  padding: 26px 30px 28px;
  background: var(--lane, var(--surface));
  color: var(--tab-ink);
}
.doc-lane {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #3b3f9e;
  font: 12px/1.4 var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3b3f9e;
}
.doc-sec h2 {
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 30px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--tab-ink);
}
.doc-sec p {
  margin: 0;
  color: var(--tab-ink);
  font-size: 18px;
  line-height: 1.55;
}
.doc-sec p + p {
  margin-top: 10px;
}
.doc-legal .doc-sec {
  margin-top: 32px;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  border-left: 0;
  background: none;
  color: var(--text);
}
.doc-legal .doc-sec p {
  color: var(--text);
}
.doc-legal .doc-sec h2 {
  font-size: clamp(20px, 2.6vw, 24px);
  letter-spacing: -0.014em;
  margin-bottom: 10px;
  color: var(--paper);
}
.doc-close {
  margin: 48px 0 0;
  padding-top: 28px;
  border-top: 3px solid var(--ink);
}
.doc-close > p {
  margin: 0 0 14px;
  color: var(--dim);
}
.doc-punch {
  display: inline-block;
  margin-top: 10px !important;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--on-ink) !important;
  font: 400 italic clamp(22px, 3vw, 30px) / 1.3 var(--font-display) !important;
  max-width: 30ch;
}
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.about-wordmark {
  white-space: nowrap;
}
.about-wordmark .wm-loud,
.about-wordmark .wm-silences {
  font: inherit;
  letter-spacing: inherit;
}
.about-wordmark .wm-silences {
  margin-left: 0.06em;
}

/* Legacy .about shell (unsubscribe etc.) */
.about {
  max-width: 720px;
  margin: 0 auto;
  padding: 54px 0 72px;
}

.about h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.subscribe-done-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.list-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  max-width: 420px;
}

.list-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 0;
  border: 1px solid var(--ink);
  background: #fffdf8;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

.list-form input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.list-form .btn {
  align-self: flex-start;
}

.list-form-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin: 4px 0 -4px;
}

.list-form-hint strong {
  color: var(--muted);
  font-weight: 500;
}

.about em {
  font-style: normal;
  color: var(--text);
  font-weight: 500;
}

.about p .about-wordmark {
  display: inline;
}

.about p .about-wordmark .wm-loud {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.about p .about-wordmark .wm-silences {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05em;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-right: 0;
}

/* Utility pages still using .about without .about-body */
.about > p {
  font-size: 1.12rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.65;
}

.lane {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Lane names inline in prose — marked like a highlighter on the lane's paper */
.lane-unspoken,
.lane-together,
.lane-getloud,
.lane-cheat,
.lane-record {
  color: var(--tab-ink);
  padding: 0 0.15em;
}
.lane-unspoken {
  background: var(--c-ff);
}
.lane-together {
  background: var(--c-together);
}
.lane-getloud {
  background: var(--getloud);
}
.lane-cheat {
  background: var(--c-cs);
}
.lane-record {
  background: var(--c-gl);
}


/* ---------- LOUD TOGETHER ---------- */
/* Reader experience article — Get Loud rail + quieter spacing */
.article-head-reader {
  padding-bottom: 8px;
}
.article-head-reader::before {
  background: var(--cat, var(--c-together));
}
.article-head-reader .back {
  padding-top: 32px;
  margin-bottom: 14px;
}
.article-loud-together .a-tag {
  display: block;
  width: fit-content;
  margin: 0 0 2px;
}
.article-loud-together h1 {
  color: var(--tab-ink);
  max-width: 18ch;
  margin-top: 8px;
}
.article-loud-together .a-meta-reader {
  flex-wrap: wrap;
  margin-top: 12px;
}
.article-loud-together .article-head-reader .share-bar {
  margin-top: 16px;
  padding-top: 0;
  padding-bottom: 18px;
  border-bottom: 0;
}
.article-loud-together .article-head-reader .share-cue {
  margin-top: 8px;
}
.article-loud-together .content {
  margin-top: 0;
  margin-bottom: 8px;
}
.article-loud-together .content > p:last-child {
  margin-bottom: 0;
}
.article-loud-together .article-reader-cta {
  max-width: var(--readw);
  margin-top: 36px;
  margin-bottom: 0;
  padding-top: 28px;
}
.article-loud-together .article-reader-cta h3 {
  max-width: 11ch;
}
.article-loud-together + .comments,
.wrap[data-post-shell] .article-loud-together ~ .comments {
  margin-top: 36px;
  padding-top: 28px;
}

/* Quiet empty Together — no hollow middle while nothing’s published yet */
[data-together-page] .grid-empty[data-lt-empty] {
  padding: 18px 0 4px;
  margin: 0;
  max-width: 34ch;
  font-size: 17px;
  line-height: 1.45;
  color: var(--dim);
}

[data-together-page] .cta-block.wall-cta {
  margin-top: 36px;
  padding-top: 32px;
}

/* ---------- CHEAT SHEET LANE ---------- */
.hero-cheat {
  text-align: left;
}

.hero-cheat .hero-cheat-inner {
  align-items: flex-start;
  text-align: left;
}

.hero-cheat .hero-kicker-cheat {
  color: var(--tab-ink);
  background: var(--c-cs);
  border-color: var(--c-cs);
}

.hero-cheat h1 {
  color: var(--ink);
  max-width: 12ch;
}

.hero-cheat .lead {
  max-width: 42rem;
  margin-left: 0;
}

.card-reader {
  /* superseded by .xp list rows — keep rule inert */
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius, 18px);
  overflow: hidden;
  flex-direction: column;
  color: inherit;
  position: relative;
  transition: 0.2s;
  text-decoration: none;
}

.card-reader::before {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(100deg, var(--cat, #ff4d3d), var(--cat-end, #7c5cff));
  flex: 0 0 auto;
}

.card-reader:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--cat, var(--accent)) 55%, var(--line));
}

.card-reader .body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.reader-host {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8b86d;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.reader-host::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8b86d;
  box-shadow: 0 0 0 3px rgba(232, 184, 109, 0.2);
  flex: 0 0 auto;
}

.card-reader .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-reader .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.card-reader h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--cat, var(--text));
  margin: 0;
}

.card-reader .excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
  margin: 0;
}

.card-reader .meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  margin-top: 4px;
}

.card-reader .meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 4px;
  margin: 0;
}

.card-reader .meta-by {
  color: var(--muted);
  margin: 0;
}

.cta-band {
  margin: 40px 0 48px;
  padding: 28px;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0;
}

.cta-band .btn-get-loud {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--tab-ink);
  background: var(--getloud);
  padding: 12px 20px;
  border-radius: 0;
  white-space: nowrap;
  text-decoration: none;
  border: 0;
}

.cta-band .btn-get-loud:hover {
  background: var(--ink);
  color: var(--on-ink);
}

/* ---------- FOOTER ---------- */
/* Ink footer bar */
footer.site-foot,
footer {
  border-top: 0;
  margin-top: 72px;
  padding: 28px 0 44px;
  background: var(--ink);
  color: var(--on-ink);
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--on-ink);
  font: 12px/1.5 var(--font-ui);
  letter-spacing: 0.06em;
}
.site-foot .wm-loud,
.site-foot .brand .logo {
  color: var(--on-ink);
}
.site-foot .wm-silences.grad {
  background: var(--on-ink);
  color: var(--ink);
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foot-inner .brand {
  font: 600 20px/1 var(--font-display);
  gap: 8px;
}

.foot-tagline {
  margin: 0;
  color: var(--on-ink);
  font: 12px/1.5 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.foot-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.foot-links a,
.foot-links button {
  text-transform: uppercase;
}

.foot-links a:hover,
.foot-links button:hover {
  color: var(--on-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.foot-copy {
  color: var(--on-ink);
}

.foot-links button {
  appearance: none;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

/* Subscribe ↔ Unsubscribe swap based on ls_subscribed cookie */
[data-subscribed-only] {
  display: none !important;
}

html[data-subscribed] [data-subscribe-open],
html[data-subscribed] .subscribe-nudge {
  display: none !important;
}

html[data-subscribed] a[data-subscribed-only] {
  display: inline-flex !important;
  align-items: center;
}

html[data-subscribed] .foot-links a[data-subscribed-only] {
  display: inline !important;
}

/* Post end — editorial subscribe cue (not a twin paper button) */
.subscribe-nudge {
  max-width: var(--readw);
  width: 100%;
  margin: 0 0 8px;
  padding: 26px 0 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px 18px;
  margin-top: 24px;
  padding: 26px 30px;
  background: var(--c-sn);
  color: var(--tab-ink);
}

.subscribe-nudge-copy {
  margin: 0;
  color: var(--tab-ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.01em;
  max-width: 36ch;
}

.subscribe-nudge-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: 13px/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--tab-ink);
  color: var(--c-sn);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.subscribe-nudge-link:hover {
  background: transparent;
  color: var(--tab-ink);
  box-shadow: inset 0 0 0 1px var(--tab-ink);
}

.subscribe-nudge .btn {
  display: none;
}

/* Subscribe modal — above masthead/mobile menu (those sit at 10000+) */
body.subscribe-open {
  overflow: hidden;
  /* iOS: stop background rubber-band scroll under the sheet */
  position: fixed;
  inset: 0;
  width: 100%;
}

.subscribe-modal[hidden],
.subscribe-modal[hidden] * {
  display: none !important;
}

.subscribe-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.subscribe-modal-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(27, 26, 23, 0.6);
  cursor: pointer;
}

.subscribe-modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(92dvh, 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 40px 32px 32px;
  box-shadow: none;
  margin: auto;
}

/* Colored edge — the same five flat paper bands as the masthead */
.subscribe-modal-panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--c-ff) 0 20%,
    var(--c-fs) 20% 40%,
    var(--c-gl) 40% 60%,
    var(--c-sn) 60% 80%,
    var(--c-otr) 80% 100%
  );
  pointer-events: none;
}

.subscribe-modal-x {
  position: absolute;
  top: 8px;
  right: 8px;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  /* 44px touch target */
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.subscribe-modal-x:hover {
  color: var(--paper);
}

.subscribe-modal-kicker {
  margin: 0 0 12px;
  padding-right: 40px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--carbon);
}

.subscribe-modal-panel h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 5.5vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  padding-right: 28px;
  color: var(--paper);
}

.subscribe-modal-panel h2 .g {
  font-style: italic;
  font-weight: 400;
  background: var(--c-fs);
  color: var(--tab-ink);
  padding: 0 0.12em;
}

.subscribe-modal-lead {
  color: var(--muted);
  margin: 14px 0 22px;
  line-height: 1.5;
  font-size: 0.98rem;
}

.subscribe-modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscribe-modal-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 0;
  border: 1px solid var(--ink);
  background: #fffdf8;
  color: var(--text);
  /* ≥16px avoids iOS focus zoom */
  font-size: 16px;
  font-family: var(--font-body);
  /* stop iOS from auto-zooming / shifting oddly */
  -webkit-appearance: none;
  appearance: none;
}

.subscribe-modal-form input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.subscribe-modal-form .btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

.subscribe-modal .news-status {
  margin-top: 14px;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 780px) {
  .subscribe-modal {
    place-items: end center;
    padding: max(8px, env(safe-area-inset-top)) 0 0;
  }

  .subscribe-modal-panel {
    width: 100%;
    max-height: min(88dvh, 100%);
    padding: 28px max(20px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .subscribe-nudge {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .subscribe-nudge-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

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

  .masthead-inner {
    flex-wrap: nowrap;
    height: auto;
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  /* Desktop nav stays out of the way on phones */
  .masthead-nav {
    display: none !important;
  }

  .menu-btn {
    display: block;
    margin-left: auto;
  }

  header.masthead {
    z-index: 10001;
    background: var(--bg);
  }

  .mobile-menu.is-open,
  .mobile-menu:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    padding: 88px max(var(--pad-x), env(safe-area-inset-right))
      max(40px, env(safe-area-inset-bottom)) max(var(--pad-x), env(safe-area-inset-left));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu[hidden] {
    display: none !important;
  }

  .mobile-menu-nav a,
  .mobile-menu-nav button.sub,
  .mobile-menu-nav a.sub-link {
    display: block;
    width: 100%;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: none;
    font: 15px/1.3 var(--font-ui);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    text-decoration: none;
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-menu-nav a[aria-current='page'] {
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
  }

  .mobile-menu-nav a.nav-submit {
    background: var(--getloud);
    color: var(--tab-ink);
    padding-left: 14px;
    padding-right: 14px;
  }

  .mobile-menu-nav button.sub,
  .mobile-menu-nav a.sub-link {
    margin-top: 20px;
    width: auto;
    align-self: flex-start;
    padding: 14px 18px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--on-ink);
  }

  .news {
    padding: 40px 24px;
  }

  .foot-inner {
    flex-direction: column;
    gap: 10px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Bypass the masthead nav — offscreen until it takes keyboard focus. */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  transform: translateY(-120%);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 0;
  font: 500 13px/1 var(--font-ui);
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}
main:focus {
  outline: none;
}
@media (prefers-reduced-motion: no-preference) {
  .skip-link {
    transition: transform 0.15s ease;
  }
}

/* ——— The Book ——— */
.page-book {
  --book: #d4c4ff;
  --book-mid: #b8a6ef;
  --book-deep: #9b87d8;
  --book-soft: #ebe0ff;
  --book-mute: var(--dim);
}

.page-book-home {
  position: relative;
}

.page-book-home .book-atmosphere {
  position: absolute;
  top: 0;
  right: 0;
  width: min(52vw, 720px);
  height: min(92vh, 900px);
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      var(--bg) 0%,
      color-mix(in srgb, var(--bg) 40%, transparent) 22%,
      transparent 48%
    ),
    url('/brand/book-window-light.jpg?v=2') right top / cover no-repeat;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

.page-book-home > header.masthead,
.page-book-home > .mobile-menu,
.page-book-home > main,
.page-book-home > footer {
  position: relative;
  z-index: 1;
}

.book-landing {
  position: relative;
  padding-bottom: 32px;
}

.book-hero {
  padding: 56px 0 40px;
  max-width: 40rem;
}

.book-lane {
  color: var(--book-mid);
  margin: 0 0 14px;
}

.book-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--book);
  margin: 0 0 16px;
  padding-bottom: 0.1em;
  overflow: visible;
  background: linear-gradient(105deg, var(--book-soft) 0%, var(--book) 42%, var(--book-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.book-tag {
  font-size: 1.12rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--paper) 70%, var(--dim));
  margin: 0 0 26px;
  max-width: 30rem;
}

.book-start {
  color: var(--book-mid);
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--book-mid) 45%, transparent);
  padding-bottom: 2px;
}
.book-start:hover {
  color: var(--book-soft);
  border-bottom-color: var(--book-soft);
}

.book-toc {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  border-left: 1px solid color-mix(in srgb, var(--book-deep) 35%, var(--line));
  max-width: 40rem;
}

.book-toc li {
  margin: 0;
  position: relative;
  overflow: visible;
}

.book-toc li::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 1.2em;
  width: 10px;
  height: 1px;
  background: color-mix(in srgb, var(--book-deep) 35%, var(--line));
}

.book-toc a {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em 0.55em;
  align-items: baseline;
  padding: 14px 0 16px 16px;
  color: color-mix(in srgb, var(--paper) 78%, var(--dim));
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1.5;
  overflow: visible;
}
.book-toc a:hover {
  color: var(--book-soft);
}
.book-toc-label {
  color: var(--book-deep);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}
.book-toc-label:has(+ .book-toc-title)::after {
  content: '—';
  margin-left: 0.45em;
  color: color-mix(in srgb, var(--book-deep) 55%, transparent);
}
.book-toc a:hover .book-toc-label {
  color: var(--book);
}
.book-toc-title {
  color: inherit;
  flex: 1 1 12rem;
  min-width: 0;
  line-height: 1.5;
  overflow: visible;
  padding-bottom: 0.05em;
}

.book-reader {
  padding-top: 28px;
  padding-bottom: 8px;
}

.book-reader-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.book-back {
  color: var(--book-mid);
  text-decoration: none;
  font-size: 0.95rem;
  justify-self: start;
}
.book-back:hover {
  color: var(--book-soft);
}

.book-reader-book {
  margin: 0;
  justify-self: center;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--book-mute);
  max-width: 22rem;
}

.book-rail-top {
  margin: 0 0 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.book-rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
}

.book-rail-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 6px 8px;
  color: var(--book-mute);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  border-bottom: 2px solid transparent;
}
.book-rail-list a:hover {
  color: var(--book-soft);
}
.book-rail-list .is-current a {
  color: var(--book);
  border-bottom-color: var(--book-mid);
}

.book-reader-layout {
  display: block;
}

.book-article {
  width: 100%;
  max-width: none;
}

.book-article-head {
  margin-bottom: 28px;
  max-width: 46rem;
}

.book-eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--book-mid);
}

.book-article-head h1,
.book-prologue-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin: 0 0 12px;
}

.book-prologue-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  color: var(--book-soft);
}

.book-readtime {
  margin: 0;
  color: var(--book-mute);
  font-size: 0.9rem;
}

.book-content {
  max-width: none !important;
  width: 100%;
  font-size: clamp(1.14rem, 1.35vw, 1.28rem);
  line-height: 1.68;
  color: color-mix(in srgb, var(--paper) 86%, var(--dim));
}

.book-content p {
  margin-bottom: 1.05em;
  max-width: none;
}

.book-content blockquote,
.book-content blockquote.book-pull {
  position: relative;
  margin: 1.85em 0;
  padding: 0.15em 0 0.15em 22px;
  border: none;
  border-left: 3px solid var(--book-mid);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  font-style: italic;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.28;
  /* Locked book purple — covers Astro Markdown and Admin Save body HTML. */
  color: var(--book) !important;
  max-width: 44rem;
}

.book-content blockquote p,
.book-content blockquote.book-pull p {
  margin: 0;
  max-width: none;
  color: inherit !important;
}

.book-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.book-pager a {
  text-decoration: none;
  color: var(--book-mute);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.book-pager a:hover {
  color: var(--book-soft);
}
.book-pager-dir {
  color: var(--book-mid);
  font-size: 0.92rem;
}
.book-pager-name {
  font-size: 0.95rem;
  line-height: 1.35;
}
.book-pager-next {
  text-align: right;
  justify-self: end;
}
.book-pager .is-empty {
  display: none;
}

@media (max-width: 560px) {
  .page-book-home .book-atmosphere {
    width: min(100vw, 480px);
    height: 360px;
    opacity: 0.55;
  }

  .book-hero {
    padding-top: 32px;
    padding-bottom: 28px;
    max-width: none;
  }

  .book-hero h1 {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.2;
  }

  .book-tag {
    font-size: 1.02rem;
    margin-bottom: 22px;
  }

  .book-toc {
    margin-top: 8px;
    padding: 0;
    border-left: 0;
    max-width: none;
  }

  .book-toc li {
    border-top: 1px solid var(--line);
  }

  .book-toc li:last-child {
    border-bottom: 1px solid var(--line);
  }

  .book-toc li::before {
    display: none;
  }

  .book-toc a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 0;
    font-size: 1.08rem;
    line-height: 1.35;
  }

  .book-toc-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--book-mid);
  }

  .book-toc-label:has(+ .book-toc-title)::after {
    content: none;
  }

  .book-toc-title {
    flex: none;
    width: 100%;
    font-family: var(--font-display);
    font-size: 1.12rem;
    line-height: 1.3;
    color: var(--paper);
  }

  .book-reader-top {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
  }
  .book-reader-book {
    justify-self: start;
    text-align: left;
  }
  .book-pager {
    grid-template-columns: 1fr;
  }
  .book-pager-next {
    text-align: left;
    justify-self: start;
  }
}

/* Bot honeypot — keep out of layout and assistive tech (never off-screen left — that causes x-scroll) */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
