/* TransitionBinder design system. Light only. Tabbed divider motif, ruled sections. */

:root {
  --bg: #F9F9FA;
  --surface: #FFFFFF;
  --ink: #1C1E23;
  --primary: #374B63;
  --accent: #CBC6BD;
  --muted: #61646B;

  --primary-rgb: 55, 75, 99;
  --accent-rgb: 203, 198, 189;
  --ink-rgb: 28, 30, 35;

  --primary-05: rgba(55, 75, 99, 0.05);
  --primary-08: rgba(55, 75, 99, 0.08);
  --primary-14: rgba(55, 75, 99, 0.14);
  --primary-24: rgba(55, 75, 99, 0.24);
  --primary-40: rgba(55, 75, 99, 0.40);
  --accent-20: rgba(203, 198, 189, 0.20);
  --accent-45: rgba(203, 198, 189, 0.45);
  --accent-line: rgba(203, 198, 189, 0.85);

  --dove: #F2F1EE;
  --dove-soft: #F6F5F2;
  --paper: #FDFDFC;

  --rule: rgba(28, 30, 35, 0.10);
  --rule-strong: rgba(28, 30, 35, 0.18);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 12px;
  --radius-tab: 10px 10px 0 0;

  --shadow-sm: 0 1px 2px rgba(28, 30, 35, 0.06);
  --shadow: 0 2px 10px rgba(28, 30, 35, 0.07);
  --shadow-lift: 0 10px 30px rgba(28, 30, 35, 0.10);

  --display: "Montaga", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Assistant", "Segoe UI", Helvetica, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: 1.9rem;
  --step-4: 2.35rem;
  --step-5: clamp(2.4rem, 1.2rem + 3.6vw, 3.9rem);

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(180deg, rgba(28, 30, 35, 0.028) 0 1px, rgba(0, 0, 0, 0) 1px 34px),
    linear-gradient(90deg, var(--accent-20) 0 2px, rgba(0, 0, 0, 0) 2px);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: 0.005em; margin: 0 0 var(--space-4); }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-4); }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-5); }

.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(--space-4); top: -60px; z-index: 100;
  background-color: var(--surface); color: var(--primary);
  border: 2px solid var(--primary); border-radius: var(--radius);
  padding: var(--space-2) var(--space-4); font-weight: 700; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--space-4); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- tab divider motif ---------- */
.tabstrip { display: flex; gap: 4px; align-items: flex-end; margin-bottom: -1px; }
.tabstrip span {
  display: block; height: 12px; width: 46px;
  background-color: var(--accent-45);
  border: 1px solid var(--accent-line); border-bottom: 0;
  border-radius: var(--radius-tab);
  transform: translateY(3px);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.tabstrip span:nth-child(2) { width: 62px; background-color: var(--primary-08); border-color: var(--primary-24); }
.tabstrip span:nth-child(3) { width: 34px; }
.is-revealed .tabstrip span { transform: translateY(0); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--body); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary);
  margin: 0 0 var(--space-3);
}
.eyebrow::before {
  content: ""; width: 26px; height: 10px;
  border: 1px solid var(--primary-40); border-bottom: 0; border-radius: 5px 5px 0 0;
}

.section { padding-block: var(--space-9); border-top: 1px solid var(--rule); position: relative; }
.section::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 120px; height: 3px;
  background-color: var(--accent-line);
}
.section-head { max-width: 62ch; margin-bottom: var(--space-7); }
.section-head p { color: var(--muted); font-size: var(--step-1); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow); border-bottom-color: var(--rule-strong); }
.header-inner { display: flex; align-items: center; gap: var(--space-5); min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.3rem; }
.wordmark svg { flex: none; }
.wordmark b { font-weight: 400; }
.wordmark i { font-style: normal; color: var(--primary); }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem;
  padding: var(--space-2) 0; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background-color: var(--accent-line); transition: right 0.3s var(--ease);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }

.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: var(--space-2);
  background-color: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: var(--radius); padding: 0.55rem 0.75rem; font: inherit; font-weight: 700; cursor: pointer;
}
.nav-toggle svg { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--body); font-weight: 700; font-size: 0.98rem; line-height: 1;
  padding: 0.85rem 1.35rem; border-radius: var(--radius); text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.btn-primary { background-color: var(--primary); color: var(--surface); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-ghost { background-color: var(--surface); color: var(--primary); border-color: var(--primary-24); }
.btn-ghost:hover { border-color: var(--primary); background-color: var(--primary-05); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.header-cta { flex: none; }

/* ---------- hero ---------- */
.hero { padding-block: var(--space-8) var(--space-9); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -80px; top: 40px; width: 320px; height: 320px;
  border: 1px solid var(--accent-line); border-radius: 40px 6px 6px 6px;
  transform: rotate(-8deg); opacity: 0.5; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); align-items: center; }
.hero h1 { margin-bottom: var(--space-5); max-width: 15ch; }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block: var(--space-6); }

.trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4);
  border-top: 1px solid var(--rule); padding-top: var(--space-5);
}
.trust div { font-size: 0.92rem; color: var(--muted); }
.trust strong { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--ink); font-weight: 400; }

.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); border: 1px solid var(--rule); }
.hero-figure .tabstrip { position: absolute; top: -12px; left: 28px; }
.hero-figure figcaption {
  margin-top: var(--space-3); font-size: 0.85rem; color: var(--muted);
  border-left: 3px solid var(--accent-line); padding-left: var(--space-3);
}

/* ---------- cards ---------- */
.card {
  background-color: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: var(--space-5);
  box-shadow: var(--shadow-sm); position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-24); }
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--muted); margin-bottom: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }

.cost {
  display: inline-block; margin-top: var(--space-4); font-weight: 700; color: var(--primary);
  background-color: var(--primary-05); border: 1px solid var(--primary-14);
  border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.85rem;
}

/* problem cards get a folder tab */
.problem-card::before {
  content: ""; position: absolute; top: -9px; left: 22px; width: 58px; height: 10px;
  background-color: var(--dove); border: 1px solid var(--rule); border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

/* ---------- steps ---------- */
.steps-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: var(--space-8); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; padding: var(--space-5) 0 var(--space-5) 4.2rem;
  border-bottom: 1px solid var(--rule); position: relative;
}
.steps li:first-child { border-top: 1px solid var(--rule); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: var(--space-5);
  font-family: var(--display); font-size: 1.5rem; color: var(--primary);
  width: 2.9rem; height: 2.9rem; display: grid; place-items: center;
  border: 1px solid var(--primary-24); border-radius: var(--radius) var(--radius) var(--radius) 14px;
  background-color: var(--primary-05);
}
.steps h3 { margin-bottom: var(--space-2); }
.steps p { color: var(--muted); margin: 0; }
.section-figure img { border-radius: var(--radius-lg); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.section-figure figcaption { margin-top: var(--space-3); font-size: 0.85rem; color: var(--muted); }

/* ---------- features ---------- */
.feature { padding-top: var(--space-5); }
.feature .icon {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: var(--space-4);
  border: 1px solid var(--primary-24); border-radius: var(--radius) var(--radius) var(--radius) 14px;
  background-color: var(--primary-05);
}
.feature .icon svg { stroke: var(--primary); }
svg.line { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- outcomes ---------- */
.outcome { border-top: 3px solid var(--accent-line); padding-top: var(--space-4); }
.outcome .figure-num { font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--primary); display: block; margin-bottom: var(--space-2); }
.outcome p { color: var(--muted); }

/* ---------- testimonials ---------- */
.testimonial {
  background-color: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--primary-40);
  border-radius: var(--radius) var(--radius-lg) var(--radius-lg) var(--radius);
  padding: var(--space-5); margin: 0;
}
.testimonial p { font-size: 1.05rem; }
.testimonial footer { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: var(--space-3); }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--ink); display: block; }

.results {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  background-color: var(--dove-soft); margin-top: var(--space-6); overflow: hidden;
}
.results div { padding: var(--space-5); border-right: 1px solid var(--rule); }
.results div:last-child { border-right: 0; }
.results strong { display: block; font-family: var(--display); font-size: 2.1rem; color: var(--primary); }
.results span { color: var(--muted); font-size: 0.92rem; }

/* ---------- pricing ---------- */
.tier {
  background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5); display: flex; flex-direction: column; position: relative;
}
.tier.is-recommended { border-color: var(--primary-40); box-shadow: var(--shadow-lift); }
.tier .badge {
  position: absolute; top: -13px; left: var(--space-5);
  background-color: var(--primary); color: var(--surface);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: var(--radius-sm);
}
.tier .price { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--ink); }
.tier .per { color: var(--muted); font-size: 0.9rem; }
.tier ul { list-style: none; margin: var(--space-5) 0; padding: 0; flex: 1; }
.tier li { padding: 0.45rem 0 0.45rem 1.6rem; position: relative; border-bottom: 1px dashed var(--rule); font-size: 0.95rem; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 0.95rem; width: 10px; height: 8px;
  border: 1px solid var(--primary-40); border-bottom: 0; border-radius: 4px 4px 0 0;
}
.billing-note { margin-top: var(--space-5); color: var(--muted); font-size: 0.95rem; border-left: 3px solid var(--accent-line); padding-left: var(--space-4); }

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--rule-strong); max-width: 90ch; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; text-align: left; background-color: transparent; border: 0;
  font-family: var(--display); font-size: var(--step-1); color: var(--ink);
  padding: var(--space-5) 3rem var(--space-5) 0; cursor: pointer; position: relative;
}
.faq-q::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: 13px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease);
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a.is-open { grid-template-rows: 1fr; }
.faq-a p { color: var(--muted); padding-right: 2rem; }
.faq-a p:last-child { padding-bottom: var(--space-5); margin-bottom: 0; }

/* ---------- form ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-8); align-items: start; }
.form-panel {
  background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow);
}
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: var(--space-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background-color: var(--bg); border: 1px solid var(--rule-strong);
  border-radius: var(--radius); padding: 0.7rem 0.85rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--primary-40); }
.field textarea { min-height: 130px; resize: vertical; }
.field [aria-invalid="true"] { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12); }
.error { color: #8C1D18; font-size: 0.85rem; font-weight: 600; margin-top: var(--space-2); min-height: 1em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.consent { display: flex; gap: var(--space-3); align-items: flex-start; margin-block: var(--space-5); }
.consent input { width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.25rem; }
.consent label { font-weight: 500; font-size: 0.92rem; }
.form-note { margin-top: var(--space-4); font-size: 0.9rem; color: var(--muted); }

/* ---------- author byline ---------- */
.byline {
  display: flex; gap: var(--space-4); align-items: center;
  border-top: 1px solid var(--rule); padding-top: var(--space-5); margin-top: var(--space-8);
  color: var(--muted); font-size: 0.95rem;
}
.byline img { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--rule); }

/* ---------- footer ---------- */
.site-footer {
  background-color: var(--dove-soft);
  border-top: 3px solid var(--accent-line);
  padding-block: var(--space-8) var(--space-5); margin-top: var(--space-9);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-6); }
.footer-col h2 { font-family: var(--body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.social { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--rule-strong); border-radius: var(--radius) var(--radius) var(--radius) 12px;
  background-color: var(--surface);
}
.social a:hover { border-color: var(--primary); background-color: var(--primary-05); }
.social svg { stroke: var(--primary); }
.footer-base {
  margin-top: var(--space-7); padding-top: var(--space-4); border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  color: var(--muted); font-size: 0.88rem;
}
.publisher { color: var(--muted); font-size: 0.9rem; margin-top: var(--space-3); }

/* ---------- legal and text pages ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: var(--step-3); margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-5); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: var(--space-2); }
.page-head { padding-block: var(--space-8) var(--space-6); border-bottom: 1px solid var(--rule); }
.breadcrumb { font-size: 0.88rem; color: var(--muted); margin-bottom: var(--space-3); }
.breadcrumb a { text-decoration: none; }
.factlist { border: 1px solid var(--rule); border-radius: var(--radius-lg); background-color: var(--surface); padding: var(--space-5); }
.factlist dt { font-weight: 700; margin-top: var(--space-3); }
.factlist dd { margin: 0 0 var(--space-2); color: var(--muted); }
.author-grid { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-7); align-items: start; }
.author-portrait { border-radius: var(--radius-lg); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.map-group { margin-bottom: var(--space-6); }
.map-group li { margin-bottom: var(--space-3); }
.map-group span { display: block; color: var(--muted); font-size: 0.9rem; }

/* ---------- reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-revealed { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .steps-grid, .contact-grid, .author-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background-color: var(--surface); border-bottom: 1px solid var(--rule-strong);
    padding: var(--space-4) var(--space-5); box-shadow: var(--shadow);
  }
  .site-nav.is-open ul { flex-direction: column; gap: var(--space-3); }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2, .results, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .results div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .section { padding-block: var(--space-7); }
  .hero::after { display: none; }
}

@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; transform: none; }
}

@media print {
  .site-header, .site-footer, .hero-actions { display: none; }
}

/* ================================================================
   The Divorce Practice: magazine
   Built from the tokens above. Light only, tabbed divider motif.
   ================================================================ */

.mag-crumb { padding-top: var(--space-5); margin-bottom: 0; }
.mag-crumb a { color: var(--primary); }

/* ---------- magazine masthead ---------- */
.mag-masthead { padding-block: var(--space-6) var(--space-7); border-bottom: 1px solid var(--rule); }
.mag-masthead .tabstrip { margin-bottom: var(--space-4); }
.mag-masthead h1 { max-width: 18ch; margin-bottom: var(--space-4); }
.mag-standfirst {
  font-family: var(--body); font-size: var(--step-1); line-height: 1.55;
  color: var(--muted); max-width: 58ch; margin-bottom: var(--space-4);
}
.mag-masthead-note {
  max-width: 62ch; font-size: 0.95rem; color: var(--muted);
  border-left: 3px solid var(--accent-line); padding-left: var(--space-4); margin-bottom: 0;
}

/* ---------- index grid ---------- */
.mag-index { border-top: 0; }
.mag-index::before { display: none; }
.mag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }

.mag-card {
  background-color: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.mag-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 4px;
  background-color: var(--accent-line); z-index: 2;
}
.mag-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-24); }
.mag-card-media { display: block; border-bottom: 1px solid var(--rule); background-color: var(--dove-soft); }
.mag-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.mag-kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--space-2);
}
.mag-card-title { font-family: var(--display); font-size: var(--step-1); line-height: 1.2; margin: 0 0 var(--space-3); }
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.mag-card-dek { color: var(--muted); font-size: 0.95rem; flex: 1; }
.mag-card-meta {
  margin: var(--space-4) 0 0; padding-top: var(--space-3); border-top: 1px dashed var(--rule);
  font-size: 0.85rem; color: var(--muted);
}
.mag-card-meta span { padding-inline: 0.35rem; color: var(--accent-line); }

/* lead card: the newest article runs across the grid at a larger size */
.mag-card.lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.mag-card.lead .mag-card-media { flex: 0 0 55%; border-bottom: 0; border-right: 1px solid var(--rule); }
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.mag-card.lead .mag-card-body { padding: var(--space-7) var(--space-6); justify-content: center; }
.mag-card.lead .mag-card-title { font-size: var(--step-3); }
.mag-card.lead .mag-card-dek { font-size: var(--step-1); line-height: 1.5; flex: none; }

.mag-index-foot {
  margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--rule);
  color: var(--muted); max-width: 68ch;
}

/* ---------- article header ---------- */
.mag-article { padding-bottom: var(--space-6); }
.mag-head { max-width: 72ch; padding-block: var(--space-6) var(--space-5); }
.mag-head h1 { font-size: var(--step-4); line-height: 1.16; margin-bottom: var(--space-4); }
.mag-head .mag-standfirst { max-width: 64ch; }

.mag-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding-block: var(--space-3); margin-top: var(--space-5);
  font-size: 0.9rem; color: var(--muted);
}
.mag-byline p { margin: 0; }
.mag-byline p + p { padding-left: var(--space-4); border-left: 1px solid var(--rule); }
.mag-byline img { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); }
.mag-byline a { font-weight: 700; }

.mag-figure { position: relative; margin: var(--space-6) 0 var(--space-7); }
.mag-figure img {
  width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--rule);
  box-shadow: var(--shadow-lift);
}
.mag-figure .tabstrip { position: absolute; top: -12px; left: 28px; }

/* ---------- article body typography ---------- */
.mag-body { max-width: 68ch; font-size: 1.075rem; line-height: 1.72; }
.mag-body > h2 {
  font-size: var(--step-3); line-height: 1.2;
  margin-top: var(--space-7); margin-bottom: var(--space-4);
  padding-top: var(--space-4); border-top: 1px solid var(--rule); position: relative;
}
.mag-body > h2::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 54px; height: 3px;
  background-color: var(--accent-line);
}
.mag-body > h3 { font-size: var(--step-1); margin-top: var(--space-6); margin-bottom: var(--space-3); }
.mag-body p { margin-bottom: var(--space-5); }
.mag-body ul, .mag-body ol { padding-left: 1.4rem; margin-bottom: var(--space-5); }
.mag-body li { margin-bottom: var(--space-3); }
.mag-body a { color: var(--primary); text-underline-offset: 3px; }
.mag-body blockquote {
  margin: var(--space-6) 0; padding: var(--space-5);
  background-color: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--primary-40);
  border-radius: var(--radius) var(--radius-lg) var(--radius-lg) var(--radius);
  font-size: 1.1rem;
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%; border-collapse: collapse; margin-bottom: var(--space-6);
  font-size: 0.95rem; background-color: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius);
}
.mag-body th, .mag-body td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.mag-body thead th { background-color: var(--dove-soft); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary); }
.mag-body tbody tr:last-child td { border-bottom: 0; }

.inline-read {
  background-color: var(--primary-05); border: 1px solid var(--primary-14);
  border-left: 3px solid var(--primary-40);
  border-radius: var(--radius) var(--radius-lg) var(--radius-lg) var(--radius);
  padding: var(--space-4) var(--space-5); margin-block: var(--space-6);
  font-size: 0.98rem; font-weight: 600; color: var(--ink);
}
.inline-read a { font-weight: 700; }

/* ---------- call to action ---------- */
.mag-cta {
  margin-top: var(--space-8); padding: var(--space-6);
  background-color: var(--dove-soft); border: 1px solid var(--rule);
  border-top: 3px solid var(--accent-line);
  border-radius: var(--radius) var(--radius) var(--radius-lg) var(--radius-lg);
}
.mag-cta h2 { font-size: var(--step-2); margin-bottom: var(--space-3); }
.mag-cta p { color: var(--muted); }
.mag-cta .btn { margin-top: var(--space-2); }

/* ---------- author box ---------- */
.mag-author {
  display: grid; grid-template-columns: 112px 1fr; gap: var(--space-5);
  margin-top: var(--space-7); padding: var(--space-5);
  background-color: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.mag-author img { width: 112px; height: 112px; border-radius: var(--radius) var(--radius) var(--radius) 24px; border: 1px solid var(--rule); object-fit: cover; }
.mag-author h2 { font-size: var(--step-1); margin-bottom: var(--space-2); }
.mag-author p { color: var(--muted); font-size: 0.95rem; }
.mag-author p:last-child { margin-bottom: 0; }

/* ---------- read also ---------- */
.mag-also { margin-top: var(--space-8); padding-block: var(--space-7); background-color: var(--dove-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.mag-also h2 { font-size: var(--step-2); margin-bottom: var(--space-5); }
.mag-also-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.mag-rel {
  background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  overflow: hidden; padding-bottom: var(--space-4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.mag-rel:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-24); }
.mag-rel-media { display: block; border-bottom: 1px solid var(--rule); background-color: var(--dove); }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-title { font-size: 1.05rem; line-height: 1.25; margin: var(--space-4) var(--space-4) var(--space-2); }
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.mag-rel-dek { color: var(--muted); font-size: 0.9rem; margin: 0 var(--space-4) var(--space-3); }
.mag-rel-meta { color: var(--muted); font-size: 0.82rem; margin: 0 var(--space-4); padding-top: var(--space-3); border-top: 1px dashed var(--rule); }
.mag-also-more { margin: var(--space-5) 0 0; font-weight: 700; }

/* ---------- home page magazine strip ---------- */
.mag-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.mag-home-more { margin-top: var(--space-6); }

/* ---------- author page article list ---------- */
.mag-list { list-style: none; margin: var(--space-5) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.mag-list li { padding: var(--space-4) 0; border-bottom: 1px solid var(--rule); }
.mag-list a { font-weight: 700; text-decoration: none; }
.mag-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mag-list time { display: block; font-size: 0.85rem; color: var(--muted); margin-top: var(--space-1); }

/* ---------- magazine responsive ---------- */
@media (max-width: 980px) {
  .mag-grid, .mag-also-grid, .mag-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card-media { flex: none; border-right: 0; border-bottom: 1px solid var(--rule); }
  .mag-card.lead .mag-card-media img { min-height: 0; aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card-body { padding: var(--space-5); }
  .mag-card.lead .mag-card-title { font-size: var(--step-2); }
}
@media (max-width: 640px) {
  .mag-grid, .mag-also-grid, .mag-home-grid { grid-template-columns: 1fr; }
  .mag-head h1 { font-size: var(--step-3); }
  .mag-body { font-size: 1.02rem; }
  .mag-cta, .mag-author { padding: var(--space-4); }
  .mag-author { grid-template-columns: 1fr; }
  .mag-author img { width: 88px; height: 88px; }
  .mag-byline { gap: var(--space-2); }
  .mag-byline p + p { padding-left: 0; border-left: 0; }
  .mag-body table { display: block; overflow-x: auto; }
  .mag-figure .tabstrip { left: 16px; }
}


/* Network column: five sibling products, rotated so every site is linked the same
   number of times. Sits in the footer link grid and inherits its type and colour. */
.site-network ul { list-style: none; margin: 0; padding: 0; }
.site-network li + li { margin-top: 0.4rem; }
.site-network a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { border-bottom-color: currentColor; }
