/* ==========================================================================
   ConflictCheck design system
   Institutional gravity: parchment ivory, deep oxblood, navy ink.
   Libre Baskerville over Source Sans 3. Ruled columns. Seal motif.
   Motion is opacity only, plus a slow rule draw under section titles.
   ========================================================================== */

:root {
  /* --- brief palette --- */
  --bg: #FBF9F4;
  --surface: #FFFFFF;
  --ink: #171B26;
  --primary: #5B1A22;
  --accent: #B08D57;
  --muted: #5A5F6E;

  /* --- derived parchment tints --- */
  --parchment-2: #F5F1E7;
  --parchment-3: #EFE9DB;
  --parchment-edge: #E4DCC9;

  /* --- derived ink shades --- */
  --ink-90: #23283a;
  --ink-70: #3b4356;
  --ink-soft: rgba(23, 27, 38, 0.72);

  /* --- derived oxblood --- */
  --oxblood-deep: #43121A;
  --oxblood-mid: #74232C;
  --oxblood-wash: #F5EAEA;
  --oxblood-line: rgba(91, 26, 34, 0.28);

  /* --- derived brass --- */
  --brass-deep: #8C6E3F;
  --brass-wash: #F3EBDC;
  --brass-line: rgba(176, 141, 87, 0.42);

  /* --- rules and hairlines --- */
  --rule: rgba(23, 27, 38, 0.14);
  --rule-soft: rgba(23, 27, 38, 0.08);
  --rule-strong: rgba(23, 27, 38, 0.30);

  /* --- type --- */
  --font-display: "Libre Baskerville", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", Helvetica, Arial, sans-serif;
  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.16rem, 1.09rem + 0.32vw, 1.35rem);
  --step-2: clamp(1.35rem, 1.22rem + 0.58vw, 1.72rem);
  --step-3: clamp(1.6rem, 1.36rem + 1.05vw, 2.3rem);
  --step-4: clamp(1.95rem, 1.5rem + 1.95vw, 3.15rem);
  --step-5: clamp(2.3rem, 1.6rem + 3vw, 4rem);

  /* --- spacing scale --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 5.5rem;
  --sp-10: 7rem;

  /* --- radii, deliberately near square for a filed document feel --- */
  --r-0: 0;
  --r-1: 2px;
  --r-2: 3px;
  --r-round: 50%;

  /* --- shadows, printed rather than floating --- */
  --shadow-page: 0 1px 0 var(--rule), 0 14px 34px rgba(23, 27, 38, 0.07);
  --shadow-lift: 0 1px 0 var(--rule-strong), 0 22px 48px rgba(23, 27, 38, 0.10);
  --shadow-inset-brass: inset 0 0 0 1px rgba(176, 141, 87, 0.55);

  --maxw: 1220px;
  --gutter: clamp(1.1rem, 4vw, 3.25rem);
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  /* parchment: faint ruled lines, laid fibers, a warm vignette */
  background-image:
    radial-gradient(120% 90% at 50% -10%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(100% 70% at 50% 108%, rgba(176, 141, 87, 0.09) 0%, rgba(176, 141, 87, 0) 60%),
    repeating-linear-gradient(0deg, rgba(23, 27, 38, 0.030) 0 1px, rgba(23, 27, 38, 0) 1px 34px),
    repeating-linear-gradient(90deg, rgba(176, 141, 87, 0.035) 0 1px, rgba(176, 141, 87, 0) 1px 7px),
    repeating-linear-gradient(90deg, rgba(23, 27, 38, 0.018) 0 1px, rgba(23, 27, 38, 0) 1px 23px);
  background-attachment: fixed, fixed, scroll, scroll, scroll;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
}
h1 { font-size: var(--step-5); line-height: 1.12; letter-spacing: -0.018em; }
h2 { font-size: var(--step-4); line-height: 1.16; letter-spacing: -0.012em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-2); }
strong { font-weight: 700; color: var(--ink); }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--oxblood-deep); }

/* --------------------------------------------------- focus and a11y */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-1);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--sp-4); top: -10rem; z-index: 999;
  background: var(--primary); color: var(--bg);
  padding: 0.7rem 1.1rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; font-size: var(--step--1);
  text-decoration: none; box-shadow: var(--shadow-inset-brass);
  transition: top 120ms linear;
}
.skip-link:focus { top: var(--sp-4); color: var(--bg); }

/* ------------------------------------------------------------ layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.4rem, 7vw, 6.5rem); position: relative; }
.section + .section { border-top: 1px solid var(--rule-soft); }
.section--tint { background: linear-gradient(180deg, var(--parchment-2) 0%, var(--bg) 100%); }
.section--ink { background: var(--ink); color: var(--parchment-2); }
.section--ink h2, .section--ink h3 { color: var(--bg); }
.section--ink p { color: rgba(251, 249, 244, 0.82); }

/* ----------------------------------------------------- section heads */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 var(--sp-3);
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.7rem; height: 1px; flex: none;
  background: var(--accent);
}
.section--ink .eyebrow { color: var(--accent); }
.section--ink .eyebrow::before { background: rgba(176, 141, 87, 0.7); }

.head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.head--wide { max-width: 60rem; }
.head p { color: var(--muted); font-size: var(--step-1); }
.section--ink .head p { color: rgba(251, 249, 244, 0.78); }

/* the slow rule draw: width only, no transform */
.rule-draw {
  position: relative;
  padding-bottom: var(--sp-4);
}
.rule-draw::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary) 62%, var(--accent) 62%, var(--accent) 100%);
  transition: width 1400ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.is-revealed .rule-draw::after, .rule-draw.is-revealed::after { width: min(11rem, 42%); }

/* -------------------------------------------------------- seal motif */
.seal {
  --seal-size: 88px;
  width: var(--seal-size); height: var(--seal-size);
  border-radius: var(--r-round);
  display: grid; place-items: center;
  position: relative; flex: none;
  background:
    radial-gradient(circle at 34% 28%, var(--oxblood-mid) 0%, var(--primary) 46%, var(--oxblood-deep) 100%);
  /* scalloped wax edge cut with a repeating conic mask */
  -webkit-mask-image:
    radial-gradient(circle, #000 0 68%, transparent 69%),
    repeating-conic-gradient(from 0deg, #000 0deg 7deg, transparent 7deg 12.857deg);
  mask-image:
    radial-gradient(circle, #000 0 68%, transparent 69%),
    repeating-conic-gradient(from 0deg, #000 0deg 7deg, transparent 7deg 12.857deg);
  -webkit-mask-composite: source-over;
  mask-composite: add;
  color: var(--bg);
}
.seal::before {
  content: "";
  position: absolute; inset: 16%;
  border: 1px solid rgba(176, 141, 87, 0.75);
  border-radius: var(--r-round);
}
.seal svg { width: 44%; height: auto; position: relative; }
.seal--sm { --seal-size: 54px; }
.seal--lg { --seal-size: 124px; }

/* ------------------------------------------------------------ header */
.docket-bar {
  background: var(--ink);
  color: rgba(251, 249, 244, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(176, 141, 87, 0.45);
}
.docket-bar .wrap {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding-block: 0.5rem; flex-wrap: wrap;
}
.docket-bar b { color: var(--accent); font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: background-color 180ms linear, box-shadow 180ms linear;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 98%, transparent);
  box-shadow: 0 1px 0 var(--rule-strong), 0 10px 26px rgba(23, 27, 38, 0.07);
}
.site-header .wrap {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: 74px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--ink); font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
  margin-right: auto;
}
.wordmark svg { width: 34px; height: 34px; }
.wordmark span i { font-style: normal; color: var(--primary); }
.wordmark small {
  display: block; font-family: var(--font-body); font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  font-weight: 600; margin-top: 1px;
}

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.9rem); }
.nav a {
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 140ms linear, border-color 140ms linear;
}
/* Link ink and the brass hover underline belong to plain nav links only.
   The header call to action is an <a class="btn btn--primary"> sitting
   inside .nav, and .nav a outranks .btn--primary, so an unscoped colour
   here painted ink-70 on the oxblood fill and oxblood on oxblood-deep on
   hover. Scoping with :not(.btn) fixes it at the source. */
.nav a:not(.btn) { color: var(--ink-70); }
.nav a:not(.btn):hover,
.nav a:not(.btn):focus-visible { color: var(--primary); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none; background: var(--surface); border: 1px solid var(--rule-strong);
  width: 44px; height: 44px; border-radius: var(--r-1); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .bar-close { display: none; }
.nav-toggle[aria-expanded="true"] .bar-open { display: none; }
.nav-toggle[aria-expanded="true"] .bar-close { display: block; }

/* ----------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.95rem 1.5rem; border-radius: var(--r-1);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color 160ms linear, color 160ms linear, border-color 160ms linear, opacity 160ms linear;
}
.btn--primary {
  background: var(--primary); color: var(--bg);
  box-shadow: var(--shadow-inset-brass);
}
.btn--primary:hover { background: var(--oxblood-deep); color: var(--bg); }
/* Parchment label holds on the oxblood fill in focus and active too. */
.btn--primary:focus-visible, .btn--primary:active { color: var(--bg); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--brass {
  background: var(--accent); color: #2A2109; border-color: var(--brass-deep);
}
.btn--brass:hover { background: #C09B62; color: #2A2109; }
.btn--block { width: 100%; }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.76rem; }

/* -------------------------------------------------------------- hero */
.hero { padding-block: clamp(3rem, 6vw, 5.6rem) clamp(2.6rem, 5vw, 4.4rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(91, 26, 34, 0.05) 0 1px, transparent 1px 100%) 0 0 / 33.333% 100%;
  opacity: 0.9; pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-grid {
  display: grid; gap: clamp(2rem, 4vw, 3.4rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: start;
}
.hero-copy > p.lede {
  font-size: var(--step-1); color: var(--ink-70); max-width: 34rem;
}
.hero-copy .filed {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; color: var(--primary);
  border: 1px solid var(--oxblood-line); background: var(--oxblood-wash);
  padding: 0.4rem 0.8rem; margin-bottom: var(--sp-5);
}
.hero-copy .filed b { color: var(--ink); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-block: var(--sp-6) var(--sp-6); }

.hero-figure { position: relative; padding: 12px; background: var(--surface); border: 1px solid var(--rule-strong); box-shadow: var(--shadow-page); }
.hero-figure::after {
  content: ""; position: absolute; inset: 5px; border: 1px solid var(--brass-line); pointer-events: none;
}
.hero-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(0.94) contrast(1.02); }
.hero-figure figcaption {
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding-top: 0.75rem; display: flex; justify-content: space-between; gap: 1rem;
}
.hero-seal {
  position: absolute; right: -18px; bottom: -22px; z-index: 2;
  box-shadow: 0 8px 22px rgba(67, 18, 26, 0.28);
}

/* trust strip: ruled columns */
.trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rule); background: var(--surface);
  margin-top: var(--sp-6);
}
.trust div { padding: 1.05rem 1.25rem; border-left: 1px solid var(--rule); }
.trust div:first-child { border-left: 0; }
.trust dt {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 0.2rem;
}
.trust dd { margin: 0; font-family: var(--font-display); font-size: 1rem; line-height: 1.35; }

/* ------------------------------------------------------- ruled cards */
.ruled-grid {
  display: grid; gap: 0;
  border: 1px solid var(--rule);
  background: var(--surface);
}
.ruled-grid > * {
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  margin: -1px 0 0 -1px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.exhibit { position: relative; background: var(--surface); }
.exhibit .tag {
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--brass-deep); display: block; margin-bottom: 0.55rem;
}
.exhibit h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.exhibit p { color: var(--muted); margin-bottom: 0.9rem; font-size: 0.97rem; }
.exhibit .cost {
  display: block; border-top: 1px solid var(--rule);
  padding-top: 0.75rem; font-family: var(--font-display);
  font-size: 0.94rem; color: var(--primary);
}

/* ------------------------------------------------------------- steps */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: var(--sp-5); padding-block: clamp(1.5rem, 3vw, 2.1rem);
  border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-num {
  counter-increment: step;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--primary);
  border-right: 1px solid var(--rule); padding-right: var(--sp-4);
  display: flex; align-items: flex-start; justify-content: flex-end;
}
.step-num::before { content: counter(step, upper-roman) "."; }
.step h3 { margin-bottom: 0.45rem; }
.step p { color: var(--muted); margin-bottom: 0.5rem; max-width: 44rem; }
.step .stamp {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-deep); font-weight: 700;
}

.split {
  display: grid; gap: clamp(2rem, 4vw, 3.4rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}
.plate { position: relative; padding: 10px; border: 1px solid var(--rule-strong); background: var(--surface); }
.plate::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--brass-line); pointer-events: none; }
.plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.plate figcaption { font-size: 0.76rem; color: var(--muted); padding-top: 0.7rem; letter-spacing: 0.05em; }

/* ---------------------------------------------------------- features */
.feature .ico {
  width: 46px; height: 46px; margin-bottom: 1rem;
  color: var(--primary);
  border: 1px solid var(--brass-line);
  display: grid; place-items: center; border-radius: var(--r-round);
  background: var(--brass-wash);
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.feature p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------------------------------------------------------- outcomes */
.outcome { border-top: 1px solid rgba(176, 141, 87, 0.35); padding-top: 1.3rem; }
.outcome .fig {
  font-family: var(--font-display); font-size: clamp(2.1rem, 4.5vw, 3rem);
  line-height: 1; color: var(--brass-deep); letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.outcome h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.outcome p { font-size: 0.96rem; }

/* ------------------------------------------------------ testimonials */
.testimonial {
  background: var(--surface); border: 1px solid var(--rule);
  padding: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; position: relative;
  display: flex; flex-direction: column;
}
.testimonial::before {
  content: "\201C";
  font-family: var(--font-display); font-size: 4.2rem; line-height: 1;
  color: var(--oxblood-line); position: absolute; top: 0.4rem; right: 1rem;
}
.testimonial p {
  font-family: var(--font-display); font-size: 1.02rem; line-height: 1.65;
  color: var(--ink-90); position: relative; z-index: 1;
}
.testimonial footer {
  margin-top: auto; border-top: 1px solid var(--rule); padding-top: 0.9rem;
  font-size: 0.86rem; color: var(--muted);
}
.testimonial cite { font-style: normal; font-weight: 700; color: var(--ink); display: block; }
.metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(176, 141, 87, 0.4); margin-top: var(--sp-6);
}
.metrics div { padding: 1.4rem 1.3rem; border-left: 1px solid rgba(176, 141, 87, 0.4); }
.metrics div:first-child { border-left: 0; }
.metrics b {
  display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.15rem);
  color: var(--brass-deep); line-height: 1.1; margin-bottom: 0.3rem;
}
.metrics span { font-size: 0.88rem; }

/* ----------------------------------------------------------- pricing */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); background: var(--surface); }
.tier { padding: clamp(1.5rem, 2.6vw, 2.15rem); border-left: 1px solid var(--rule); display: flex; flex-direction: column; }
.tier:first-child { border-left: 0; }
.tier--best { background: linear-gradient(180deg, var(--oxblood-wash) 0%, var(--surface) 46%); position: relative; }
.tier--best::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.tier .badge {
  display: inline-block; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; color: var(--bg); background: var(--primary); padding: 0.3rem 0.65rem;
  margin-bottom: 0.9rem;
}
.tier h3 { font-size: var(--step-2); margin-bottom: 0.25rem; }
.tier .who { font-size: 0.86rem; color: var(--muted); margin-bottom: 1.1rem; }
.tier .price {
  font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.7rem);
  color: var(--ink); line-height: 1; display: flex; align-items: baseline; gap: 0.4rem;
  border-bottom: 1px solid var(--rule); padding-bottom: 1rem; margin-bottom: 1.1rem;
}
.tier .price em { font-style: normal; font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); letter-spacing: 0.06em; }
.tier ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.tier li { position: relative; padding-left: 1.55rem; font-size: 0.94rem; color: var(--ink-70); }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 0.85rem; height: 1px; background: var(--accent);
}
.tier .btn { margin-top: auto; }
.billing-note {
  margin-top: var(--sp-5); font-size: 0.92rem; color: var(--muted);
  border-left: 2px solid var(--accent); padding-left: 1rem; max-width: 46rem;
}

/* --------------------------------------------------------------- faq */
.faq-list { border-top: 1px solid var(--rule); max-width: 56rem; }
.faq-item { border-bottom: 1px solid var(--rule); counter-increment: faq; }
.faq-q {
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--font-display); font-size: var(--step-1); color: var(--ink);
  padding: 1.25rem 3rem 1.25rem 3.2rem; position: relative; line-height: 1.35;
}
.faq-list { counter-reset: faq; }
.faq-item h3 { margin: 0; font-size: inherit; font-weight: inherit; }
.faq-q::before {
  content: counter(faq, decimal-leading-zero);
  position: absolute; left: 0; top: 1.55rem;
  font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.1em;
  color: var(--accent); font-weight: 700;
}
.faq-q::after {
  content: ""; position: absolute; right: 0.6rem; top: 1.75rem;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--primary), var(--primary)) center / 14px 1px no-repeat,
    linear-gradient(var(--primary), var(--primary)) center / 1px 14px no-repeat;
  transition: opacity 160ms linear;
}
.faq-q[aria-expanded="true"]::after {
  background: linear-gradient(var(--primary), var(--primary)) center / 14px 1px no-repeat;
}
.faq-q:hover { color: var(--primary); }
.faq-a { padding: 0 3rem 1.4rem 3.2rem; max-width: 48rem; }
.faq-a p { color: var(--muted); margin-bottom: 0.8rem; }
.faq-a[hidden] { display: none; }

/* ----------------------------------------------------------- contact */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
}
.record-card {
  border: 1px solid rgba(176, 141, 87, 0.45);
  background: rgba(251, 249, 244, 0.05);
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
}
.record-card h3 { font-size: var(--step-1); margin-bottom: 1rem; color: var(--bg); }
.record-line {
  display: flex; justify-content: space-between; gap: 1rem;
  border-bottom: 1px dotted rgba(176, 141, 87, 0.4);
  padding: 0.55rem 0; font-size: 0.9rem;
}
.record-line span:first-child { color: rgba(251, 249, 244, 0.62); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }
.record-line span:last-child { color: var(--bg); font-family: var(--font-display); font-size: 0.86rem; text-align: right; }
.record-card .cleared {
  margin-top: 1.1rem; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(176, 141, 87, 0.55); padding: 0.45rem 0.7rem; display: inline-block;
}

.form-card { background: var(--surface); border: 1px solid var(--rule-strong); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-page); }
.section--ink .form-card { color: var(--ink); }
.section--ink .form-card p { color: var(--muted); }
.section--ink .form-card a { color: var(--primary); }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-70); margin-bottom: 0.4rem;
}
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--rule-strong); border-radius: var(--r-1);
  padding: 0.72rem 0.85rem; transition: border-color 140ms linear, background-color 140ms linear;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position: calc(100% - 19px) 1.28rem, calc(100% - 13px) 1.28rem;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); background: var(--surface); }
.field [aria-invalid="true"] { border-color: var(--primary); background: var(--oxblood-wash); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.err { display: block; color: var(--primary); font-size: 0.82rem; font-weight: 600; margin-top: 0.3rem; letter-spacing: 0.02em; }
.err:empty { display: none; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 1.3rem; }
.consent input { margin-top: 0.28rem; width: 1.05rem; height: 1.05rem; accent-color: var(--primary); flex: none; }
.consent label { font-size: 0.9rem; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.form-foot { margin-top: 1rem; font-size: 0.88rem; color: var(--muted); }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: rgba(251, 249, 244, 0.76); padding-top: clamp(3rem, 6vw, 4.6rem); }
.site-footer a { color: rgba(251, 249, 244, 0.78); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 0;
}
.foot-col { padding: 0 clamp(1rem, 2.2vw, 2rem) 2.4rem; border-left: 1px solid rgba(176, 141, 87, 0.28); }
.foot-col:first-child { padding-left: 0; border-left: 0; }
.foot-col h2 {
  font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; font-weight: 700;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 0.55rem; font-size: 0.93rem; }
.foot-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.1rem; color: var(--bg); margin-bottom: 0.9rem; text-decoration: none; }
.foot-brand svg { width: 32px; height: 32px; }
.foot-col p { font-size: 0.93rem; max-width: 24rem; }
.socials { display: flex; gap: 0.55rem; margin-top: 1.1rem; }
.socials a {
  width: 38px; height: 38px; border: 1px solid rgba(176, 141, 87, 0.4);
  display: grid; place-items: center; color: rgba(251, 249, 244, 0.8);
  transition: border-color 150ms linear, color 150ms linear;
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 17px; height: 17px; }
.foot-base {
  border-top: 1px solid rgba(176, 141, 87, 0.28); margin-top: 1rem;
  padding-block: 1.3rem; font-size: 0.84rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: rgba(251, 249, 244, 0.62);
}

/* -------------------------------------------------------- doc pages */
.doc { padding-block: clamp(2.6rem, 5vw, 4.4rem); }
.doc-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.4rem); align-items: start; }
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--step-2); margin-top: var(--sp-7); padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule); }
.prose h3 { font-size: var(--step-1); margin-top: var(--sp-5); }
.prose p, .prose li { color: var(--ink-70); }
.prose > p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 3.1rem; line-height: 0.85;
  float: left; padding: 0.16em 0.12em 0 0; color: var(--primary);
}
.aside-card { background: var(--surface); border: 1px solid var(--rule); padding: 1.4rem; font-size: 0.92rem; position: sticky; top: 100px; }
.aside-card h2 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.8rem; }
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card li { margin-bottom: 0.5rem; }
.fact-table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-5); }
.fact-table th, .fact-table td { text-align: left; padding: 0.7rem 0.9rem; border: 1px solid var(--rule); font-size: 0.93rem; vertical-align: top; }
.fact-table th { width: 40%; background: var(--parchment-2); font-weight: 700; color: var(--ink); }

.page-head { border-bottom: 1px solid var(--rule); padding-block: clamp(2.4rem, 5vw, 3.6rem) clamp(1.6rem, 3vw, 2.4rem); background: linear-gradient(180deg, var(--parchment-2), var(--bg)); }
.page-head .wrap { display: flex; gap: var(--sp-5); align-items: center; flex-wrap: wrap; }
.page-head h1 { font-size: var(--step-4); margin-bottom: 0.5rem; }
.page-head p { color: var(--muted); margin: 0; max-width: 42rem; }
.crumbs { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.crumbs a { text-decoration: none; }

.byline {
  display: flex; gap: 1.1rem; align-items: flex-start;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding-block: 1.3rem; margin-block: var(--sp-7) 0; font-size: 0.93rem; color: var(--muted);
}
.byline strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1rem; }

/* author page bits */
.author-hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(1.6rem, 3.5vw, 3rem); align-items: start; }
.portrait { padding: 9px; background: var(--surface); border: 1px solid var(--rule-strong); position: relative; }
.portrait::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--brass-line); }
.profile-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.profile-links a { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--rule); padding-block: 0.55rem; text-decoration: none; font-weight: 600; font-size: 0.94rem; }
.profile-links a span { color: var(--muted); font-weight: 400; font-size: 0.84rem; }

.map-group { border-top: 1px solid var(--rule); padding-top: 1.4rem; margin-bottom: 2.2rem; }
.map-group h2 { font-size: var(--step-1); margin-bottom: 1rem; }
.map-group ul { list-style: none; padding: 0; margin: 0; }
.map-group li { border-bottom: 1px dotted var(--rule); padding-block: 0.65rem; }
.map-group a { font-weight: 700; text-decoration: none; }
.map-group em { font-style: normal; color: var(--muted); display: block; font-size: 0.92rem; }

.big-code { font-family: var(--font-display); font-size: clamp(3.4rem, 12vw, 7rem); color: var(--primary); line-height: 1; margin-bottom: var(--sp-4); letter-spacing: -0.03em; }

/* ------------------------------------------------------------ reveal */
.reveal { opacity: 0; transition: opacity 700ms ease-out; }
.reveal.is-revealed { opacity: 1; }
.no-js .reveal { opacity: 1; }

/* ------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-col:nth-child(3) { border-left: 0; padding-left: 0; }
  .foot-col:nth-child(3), .foot-col:nth-child(4) { border-top: 1px solid rgba(176, 141, 87, 0.2); padding-top: 1.8rem; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .aside-card { position: static; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tier { border-left: 0; border-top: 1px solid var(--rule); }
  .tier:first-child { border-top: 0; }
  .author-hero { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 260px; }
  .hero-seal { right: 8px; bottom: -26px; }
}
@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule-strong);
    padding: var(--sp-4) var(--gutter) var(--sp-5);
    box-shadow: 0 18px 34px rgba(23, 27, 38, 0.10);
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 0.85rem; }
  /* the stacked menu divider is for links, not for the call to action button */
  .nav a:not(.btn) { border-bottom: 1px solid var(--rule-soft); }
  .nav .btn { margin-top: var(--sp-4); }
  .site-header .wrap { position: relative; }
  .header-cta { display: none; }
  .nav .header-cta { display: inline-flex; }
}
@media (max-width: 660px) {
  .trust, .metrics { grid-template-columns: minmax(0, 1fr); }
  .trust div, .metrics div { border-left: 0; border-top: 1px solid var(--rule); }
  .trust div:first-child, .metrics div:first-child { border-top: 0; }
  .grid-3, .grid-4, .grid-2, .field-row { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .step-num { border-right: 0; border-bottom: 1px solid var(--rule); padding: 0 0 0.5rem; justify-content: flex-start; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-col { border-left: 0; padding-left: 0; }
  .faq-q { padding-left: 2.4rem; padding-right: 2.2rem; }
  .faq-a { padding-left: 2.4rem; padding-right: 0; }
  .hero-figure { padding: 8px; }
}
@media (max-width: 400px) {
  .docket-bar { font-size: 0.62rem; }
  .btn { width: 100%; }
  .cta-row { gap: 0.6rem; }
}

/* ------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; }
  .rule-draw::after { width: min(11rem, 42%); }
}

/* -------------------------------------------------------------- print */
@media print {
  .site-header, .docket-bar, .site-footer, .skip-link, .cta-row { display: none; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   The Conflicts Docket: the magazine
   Built only from the tokens above. The card is a docket entry: a ruled cell
   in a shared grid, a brass tag for the angle, the filing line underneath.
   ========================================================================== */

/* ------------------------------------------------ shared magazine pieces */
.art-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--primary);
  margin: 0 0 var(--sp-3);
}
.art-kicker::before {
  content: ""; width: 1.7rem; height: 1px; flex: none; background: var(--accent);
}

.art-crumbs { margin-bottom: var(--sp-4); }
.art-crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.45rem;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.art-crumbs li { margin: 0; display: flex; align-items: baseline; gap: 0.45rem; }
.art-crumbs li + li::before { content: "/"; color: var(--brass-deep); }
.art-crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.art-crumbs a:hover { color: var(--primary); border-bottom-color: var(--accent); }
.art-crumbs [aria-current] { color: var(--ink-70); }

/* -------------------------------------------------- magazine masthead */
.mag-masthead {
  position: relative;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--parchment-3) 0%, var(--bg) 100%);
  padding-block: clamp(2.2rem, 5vw, 4rem) clamp(1.6rem, 3vw, 2.6rem);
}
.mag-masthead::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(91, 26, 34, 0.05) 0 1px, transparent 1px 100%) 0 0 / 25% 100%;
}
.mag-masthead .wrap { position: relative; }
.mag-masthead h1 { font-size: var(--step-5); max-width: 15ch; margin-bottom: var(--sp-4); }
.mag-standfirst {
  font-family: var(--font-display); font-size: var(--step-1); line-height: 1.55;
  color: var(--ink-70); max-width: 46rem; margin-bottom: 0;
}
.mag-colophon {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rule); background: var(--surface);
  max-width: 46rem; margin: var(--sp-6) 0 0;
}
.mag-colophon > div { padding: 0.95rem 1.15rem; border-left: 1px solid var(--rule); }
.mag-colophon > div:first-child { border-left: 0; }
.mag-colophon dt {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 0.22rem;
}
.mag-colophon dd { margin: 0; font-family: var(--font-display); font-size: 0.95rem; line-height: 1.35; }
.mag-colophon a { text-decoration: none; border-bottom: 1px solid var(--brass-line); }

.mag-wrap { padding-block: clamp(2.2rem, 4.5vw, 3.4rem) clamp(3rem, 6vw, 4.6rem); }

/* ----------------------------------------------------- the card grid */
.mag-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border: 1px solid var(--rule); background: var(--surface);
}
.mag-card {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
  margin: -1px 0 0 -1px; background: var(--surface); position: relative;
}
.mag-card-media { margin: 0; overflow: hidden; border-bottom: 1px solid var(--rule); }
.mag-card-media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  filter: saturate(0.93) contrast(1.02);
  transition: opacity 220ms linear;
}
.mag-card:hover .mag-card-media img { opacity: 0.88; }
.mag-card-body {
  padding: clamp(1.1rem, 2.2vw, 1.55rem);
  display: flex; flex-direction: column; flex: 1;
}
.mag-card-angle {
  font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--brass-deep); margin: 0 0 0.55rem;
}
.mag-card-title { font-size: var(--step-1); line-height: 1.26; margin: 0 0 0.6rem; }
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary); }
.mag-card-dek { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.1rem; }
.mag-card-meta {
  margin: auto 0 0; padding-top: 0.85rem; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.mag-card-sep {
  width: 3px; height: 3px; border-radius: var(--r-round);
  background: var(--accent); flex: none; display: inline-block;
}

/* nine articles: the lead runs the full width and the closing card takes the
   spare cell, so the docket never ends on a blank square */
.mag-grid--docket .mag-card:last-child { grid-column: span 2; }

/* the lead article runs the full width of the docket */
.mag-card.lead {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: stretch;
}
.mag-card.lead::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 1;
  background: linear-gradient(90deg, var(--primary), var(--accent)); pointer-events: none;
}
.mag-card.lead .mag-card-media { border-bottom: 0; border-right: 1px solid var(--rule); height: 100%; }
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 19rem; }
.mag-card.lead .mag-card-body { padding: clamp(1.5rem, 3vw, 2.5rem); justify-content: center; }
.mag-card.lead .mag-card-title { font-size: var(--step-3); }
.mag-card.lead .mag-card-dek { font-size: 1.03rem; max-width: 36rem; }

/* ---------------------------------------------------- article header */
.art-head {
  position: relative;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--parchment-2) 0%, var(--bg) 100%);
  padding-block: clamp(2rem, 4.4vw, 3.4rem) clamp(1.4rem, 3vw, 2.2rem);
}
.art-head .wrap { max-width: 62rem; }
.art-head h1 { font-size: var(--step-4); max-width: 20ch; margin-bottom: var(--sp-4); }
.art-standfirst {
  font-family: var(--font-display); font-size: var(--step-1); line-height: 1.55;
  color: var(--ink-70); max-width: 44rem; margin-bottom: 0;
}
.art-byline {
  display: flex; align-items: center; gap: 1rem;
  border-top: 1px solid var(--rule); padding-top: 1.1rem; margin-top: var(--sp-5);
}
.art-byline-text { min-width: 0; }
.art-byline-who {
  margin: 0 0 0.3rem; font-family: var(--font-display); font-size: 1rem; color: var(--ink);
}
.art-byline-who a { color: var(--primary); text-decoration: none; border-bottom: 1px solid var(--brass-line); }
.art-byline-who a:hover { border-bottom-color: var(--primary); }
.art-byline-meta {
  margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: 0.71rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.art-sep {
  width: 3px; height: 3px; border-radius: var(--r-round);
  background: var(--accent); flex: none; display: inline-block;
}

.art-wrap { max-width: 62rem; padding-block: clamp(2rem, 4vw, 3rem) clamp(2.8rem, 5.5vw, 4.2rem); }

.art-figure {
  position: relative; margin: 0 0 clamp(1.8rem, 3.5vw, 2.8rem);
  padding: 12px; background: var(--surface); border: 1px solid var(--rule-strong);
  box-shadow: var(--shadow-page);
}
.art-figure::after {
  content: ""; position: absolute; inset: 5px; border: 1px solid var(--brass-line); pointer-events: none;
}
.art-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(0.94) contrast(1.02); }
.art-figure figcaption {
  margin-top: 0.75rem; padding-top: 0.7rem; border-top: 1px solid var(--rule-soft);
  font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em;
}

/* ------------------------------------------------- article body type */
.art-body {
  max-width: 68ch;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-70);
}
.art-body p { margin: 0 0 1.3em; }
.art-body > p:first-of-type { font-size: 1.12rem; color: var(--ink-90); }
.art-body h2 {
  position: relative;
  font-size: var(--step-2); color: var(--ink);
  margin: 2.7rem 0 0.95rem; padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--rule);
}
.art-body h2::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 3.2rem; height: 2px;
  background: var(--primary);
}
.art-body h2:first-child { margin-top: 0; }
.art-body h3 { font-size: var(--step-1); color: var(--ink); margin: 2rem 0 0.55rem; }
.art-body ol { margin: 0 0 1.3em; padding-left: 1.35rem; }
.art-body ul { margin: 0 0 1.3em; padding-left: 1.5rem; list-style: none; }
.art-body li { margin-bottom: 0.55rem; }
.art-body ul > li { position: relative; }
.art-body ul > li::before {
  content: ""; position: absolute; left: -1.05rem; top: 0.78em;
  width: 0.68rem; height: 1px; background: var(--accent);
}
.art-body strong { color: var(--ink); }
.art-body a {
  color: var(--primary); text-decoration: underline;
  text-decoration-color: var(--brass-line); text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.art-body a:hover { color: var(--oxblood-deep); text-decoration-color: var(--primary); }
.art-body blockquote {
  margin: 1.8rem 0; padding: 0.2rem 0 0.2rem 1.3rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display); font-size: 1.02rem; color: var(--ink-90);
}
.art-body table {
  width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: 0.95rem;
}
.art-body th, .art-body td {
  text-align: left; padding: 0.65rem 0.85rem; border: 1px solid var(--rule); vertical-align: top;
}
.art-body th { background: var(--parchment-2); color: var(--ink); font-weight: 700; }

/* the contextual link the editor drops between sections */
.inline-read {
  margin: 1.9rem 0; padding: 0.85rem 1.15rem;
  background: var(--parchment-2); border-left: 2px solid var(--primary);
  font-size: 0.92rem; line-height: 1.55; color: var(--muted);
  letter-spacing: 0.09em; text-transform: uppercase;
}
.inline-read a {
  font-family: var(--font-display); font-weight: 700; color: var(--primary);
  text-transform: none; letter-spacing: 0; font-size: 1rem;
  text-decoration: none; border-bottom: 1px solid var(--brass-line);
}
.inline-read a:hover { border-bottom-color: var(--primary); color: var(--oxblood-deep); }

/* ------------------------------------------------------ call to action */
.art-cta {
  position: relative;
  margin-top: clamp(2.6rem, 5vw, 3.6rem);
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.2rem, 2.6vw, 2.1rem); align-items: center;
  background: var(--ink); color: var(--parchment-2);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.art-cta::after {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(176, 141, 87, 0.4); pointer-events: none;
}
.art-cta .seal { box-shadow: 0 8px 22px rgba(67, 18, 26, 0.35); }
.art-cta-text { min-width: 0; }
.art-cta-kicker {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin: 0 0 0.6rem;
}
.art-cta h2 { color: var(--bg); font-size: var(--step-2); margin-bottom: 0.7rem; }
.art-cta p { color: rgba(251, 249, 244, 0.82); max-width: 42rem; margin-bottom: 1.4rem; }
.mag-cta { margin-top: clamp(2.4rem, 5vw, 3.4rem); }

/* --------------------------------------------------------- author box */
.author-box {
  margin-top: clamp(2.2rem, 4vw, 3rem);
  display: grid; grid-template-columns: 136px minmax(0, 1fr);
  gap: clamp(1.1rem, 2.4vw, 1.9rem); align-items: start;
  background: var(--surface); border: 1px solid var(--rule);
  padding: clamp(1.3rem, 2.6vw, 2rem);
}
.author-box-portrait {
  position: relative; margin: 0; padding: 7px;
  background: var(--surface); border: 1px solid var(--rule-strong);
}
.author-box-portrait::after {
  content: ""; position: absolute; inset: 3px; border: 1px solid var(--brass-line);
}
.author-box-portrait img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.author-box-text { min-width: 0; }
.author-box-kicker {
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--brass-deep); margin: 0 0 0.45rem;
}
.author-box h2 { font-size: var(--step-1); margin-bottom: 0.55rem; }
.author-box p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0.8rem; }
.author-box-link { margin-bottom: 0; }
.author-box-link a {
  font-weight: 700; color: var(--primary); text-decoration: none;
  border-bottom: 1px solid var(--brass-line);
}
.author-box-link a:hover { border-bottom-color: var(--primary); }

/* ----------------------------------------------------------- read also */
.readalso {
  border-top: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--parchment-2) 0%, var(--bg) 100%);
  padding-block: clamp(2.6rem, 5vw, 4rem);
}
.readalso-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.6rem 1.5rem; border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem; margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.readalso-head .art-kicker { flex: 1 0 100%; margin-bottom: 0.5rem; }
.readalso-head h2 { font-size: var(--step-2); margin: 0; }
.readalso-more { margin: 0; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.readalso-more a { color: var(--primary); text-decoration: none; border-bottom: 1px solid var(--brass-line); }
.readalso-more a:hover { border-bottom-color: var(--primary); }
.readalso-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border: 1px solid var(--rule); background: var(--surface);
}
.ra-card {
  display: flex; flex-direction: column; background: var(--surface);
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
  margin: -1px 0 0 -1px;
}
.ra-card-media { margin: 0; overflow: hidden; border-bottom: 1px solid var(--rule); }
.ra-card-media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  filter: saturate(0.93) contrast(1.02); transition: opacity 220ms linear;
}
.ra-card:hover .ra-card-media img { opacity: 0.88; }
.ra-card-body { padding: clamp(1rem, 2vw, 1.4rem); display: flex; flex-direction: column; flex: 1; }
.ra-card-title { font-size: 1.06rem; line-height: 1.3; margin: 0 0 0.5rem; }
.ra-card-title a { color: var(--ink); text-decoration: none; }
.ra-card-title a:hover { color: var(--primary); }
.ra-card-dek { color: var(--muted); font-size: 0.92rem; margin: 0 0 1rem; }
.ra-card-meta {
  margin: auto 0 0; padding-top: 0.7rem; border-top: 1px solid var(--rule);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

/* ------------------------------- magazine pieces on the existing pages */
.mag-more { margin: var(--sp-6) 0 0; }
.mag-index-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.mag-index-list li {
  border-bottom: 1px solid var(--rule); padding-block: 0.8rem; margin: 0;
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 0.3rem 1.2rem;
}
.mag-index-list a {
  flex: 1 1 20rem; font-family: var(--font-display); font-weight: 700;
  color: var(--primary); text-decoration: none;
}
.mag-index-list a:hover { color: var(--oxblood-deep); text-decoration: underline; }
.mag-index-list time {
  flex: none; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* ------------------------------------------------ magazine responsive */
@media (max-width: 1080px) {
  .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-grid--docket .mag-card:last-child { grid-column: span 1; }
  .mag-grid--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .mag-card.lead { grid-template-columns: minmax(0, 1fr); }
  .mag-card.lead .mag-card-media { border-right: 0; border-bottom: 1px solid var(--rule); }
  .mag-card.lead .mag-card-media img { aspect-ratio: 3 / 2; min-height: 0; height: auto; }
  .art-head h1 { max-width: none; }
}
@media (max-width: 900px) {
  .mag-grid--trio, .readalso-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 660px) {
  .mag-grid, .readalso-grid { grid-template-columns: minmax(0, 1fr); }
  .mag-grid--docket .mag-card:last-child { grid-column: span 1; }
  .mag-colophon { grid-template-columns: minmax(0, 1fr); }
  .mag-colophon > div { border-left: 0; border-top: 1px solid var(--rule); }
  .mag-colophon > div:first-child { border-top: 0; }
  .art-cta, .author-box { grid-template-columns: minmax(0, 1fr); }
  .art-cta .seal, .author-box-portrait { justify-self: start; }
  .author-box-portrait { max-width: 136px; }
  .mag-masthead h1 { max-width: none; }
  .art-body { font-size: 1.02rem; }
}
@media (max-width: 400px) {
  .art-crumbs ol { font-size: 0.64rem; letter-spacing: 0.1em; }
  .art-cta .seal { --seal-size: 68px; }
  .art-cta { padding: 1.25rem 1.1rem; }
  .art-figure { padding: 8px; }
  .art-byline { gap: 0.75rem; }
  .art-byline .seal { --seal-size: 44px; }
  .inline-read { padding: 0.75rem 0.9rem; }
  .mag-card-body, .ra-card-body { padding: 1rem; }
}

/* the magazine name is a long nav label, so the ruled bar folds a little
   earlier and tightens a little sooner than it did with six links */
@media (max-width: 1100px) and (min-width: 901px) {
  .nav { gap: 0.8rem; }
  .nav a { font-size: 0.8rem; letter-spacing: 0.02em; }
  .nav .btn { letter-spacing: 0.08em; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule-strong);
    padding: var(--sp-4) var(--gutter) var(--sp-5);
    box-shadow: 0 18px 34px rgba(23, 27, 38, 0.10);
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 0.85rem; font-size: 0.88rem; }
  /* the stacked menu divider is for links, not for the call to action button */
  .nav a:not(.btn) { border-bottom: 1px solid var(--rule-soft); }
  .nav .btn { margin-top: var(--sp-4); }
  .site-header .wrap { position: relative; }
  .header-cta { display: none; }
  .nav .header-cta { display: inline-flex; }
}

/* the article list on the author page keeps a plain opening line */
.mag-articles > p:first-of-type::first-letter {
  font-family: var(--font-body); font-size: inherit; line-height: inherit;
  float: none; padding: 0; color: inherit;
}
.mag-articles .mag-more { margin-top: var(--sp-5); }



/* Network strip: five sibling products, rotated so every site is linked the same
   number of times. Spans the full footer grid rather than adding a fifth column,
   because each footer declares a fixed column count and a fifth item would wrap. */
.site-network { grid-column: 1 / -1; flex-basis: 100%; width: 100%;
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.site-network h2 { font: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.7rem; opacity: 0.72; }
.site-network ul { list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-network li + li { margin-top: 0; }
.site-network a { font-size: 0.86rem; text-decoration: none; opacity: 0.9;
  border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { opacity: 1; border-bottom-color: currentColor; }
@media (max-width: 620px) { .site-network ul { gap: 0.45rem 1.1rem; } }


/* Decorative bleed guard. Several sections intentionally hang a rotated or offset
   pseudo element past the viewport edge. overflow-x: clip contains them without
   creating a scroll container, so position: sticky keeps working, unlike overflow
   hidden. Genuine content overflow is still reported by the element level check in
   the browser pass. */
html { overflow-x: clip; }
body { overflow-x: clip; }


/* Wide content on phones. Class names for the prose wrapper differ from site to site,
   so this targets tables and pre blocks directly: they scroll inside their own box
   rather than pushing cells past the right edge, per the build contract. */
@media (max-width: 700px) {
  table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { overflow-wrap: anywhere; }
  pre { overflow-x: auto; max-width: 100%; }
}
