/* TidyBlueprint design system
   Ordered calm: bright white, pale linen, soft navy.
   Onest headlines over Figtree. Modular label grid, container geometry, crisp edges.
   Light mode only. Contrast comes from type, rules, borders and tints. */

:root {
  --bg: #F8F9FB;
  --surface: #FFFFFF;
  --ink: #191C22;
  --primary: #2E4568;
  --accent: #C9D6E6;
  --muted: #5E646E;

  --primary-100: #EEF2F8;
  --primary-200: #DEE6F1;
  --primary-300: #C3D0E3;
  --primary-400: #93A6C2;
  --linen: #F4F1EA;
  --linen-deep: #EAE5DA;
  --line: #DFE3EA;
  --line-strong: #C6CCD7;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 10px;

  --shadow-flat: 0 1px 0 rgba(25, 28, 34, 0.06);
  --shadow-card: 0 2px 4px rgba(25, 28, 34, 0.05), 0 12px 28px rgba(46, 69, 104, 0.07);
  --shadow-lift: 0 6px 12px rgba(25, 28, 34, 0.07), 0 24px 48px rgba(46, 69, 104, 0.1);

  --font-display: "Onest", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-lg: 1.125rem;
  --t-xl: 1.375rem;
  --t-2xl: 1.75rem;
  --t-3xl: clamp(1.9rem, 1.3rem + 2vw, 2.6rem);
  --t-4xl: clamp(2.3rem, 1.4rem + 3.6vw, 3.6rem);

  --wrap: 1180px;
  --label: 0.68rem;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(46, 69, 104, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 69, 104, 0.035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0 0 var(--space-4);
  font-weight: 700;
}
h1 { font-size: var(--t-4xl); letter-spacing: -0.03em; }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }
p { margin: 0 0 var(--space-4); }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0 0 var(--space-4); padding-left: 1.15rem; }
li { margin-bottom: var(--space-2); }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-7) 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-5); }
.narrow { max-width: 780px; }

.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: 200;
  background: var(--primary); color: #FFFFFF; padding: 10px 18px;
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #FFFFFF; }

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

/* ---------- label motif: the small snapped-on tag that runs through the site ---------- */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: var(--label); font-weight: 700;
  letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--primary);
  background-color: var(--primary-100);
  border: 1px solid var(--primary-300);
  border-left-width: 4px;
  border-radius: 2px;
  padding: 5px 12px 5px 10px;
  margin-bottom: var(--space-4);
}
.label::before {
  content: ""; width: 7px; height: 7px;
  border: 1.5px solid var(--primary); border-radius: 1px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 13px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.btn-primary { background-color: var(--primary); color: #FFFFFF; box-shadow: var(--shadow-card); }
.btn-primary:hover { background-color: color-mix(in srgb, var(--primary) 88%, black); color: #FFFFFF; transform: translateY(-1px); }
.btn-ghost {
  background-color: var(--surface); color: var(--primary);
  border-color: var(--line-strong); box-shadow: var(--shadow-flat);
}
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-card); }
.header-inner { display: flex; align-items: center; gap: var(--space-5); min-height: 70px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.12rem;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
}
.wordmark svg { flex: none; }
.wordmark span b { color: var(--primary); font-weight: 800; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.main-nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--muted); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--ink); border-bottom-color: var(--accent); }
.header-cta { margin-left: var(--space-4); }
.nav-toggle {
  display: none; margin-left: auto;
  background-color: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 9px 11px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background-color: var(--ink); margin: 4px 0; }

/* ---------- hero ---------- */
.hero { padding: var(--space-9) 0 var(--space-8); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 auto 0 50%;
  width: 1px; background-color: var(--line); opacity: .5;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); align-items: center; }
.hero p.lede { font-size: var(--t-lg); color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-6) 0 var(--space-6); }
.trust-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background-color: var(--surface); overflow: hidden;
}
.trust-strip div { padding: var(--space-4); border-right: 1px solid var(--line); }
.trust-strip div:last-child { border-right: 0; }
.trust-strip b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--primary); }
.trust-strip span { font-size: var(--t-sm); color: var(--muted); }

.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.hero-figure::after {
  content: ""; position: absolute; inset: 14px 14px auto auto;
  width: 62px; height: 26px;
  background-color: var(--linen);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}
.figure-tag {
  position: absolute; left: -14px; bottom: 26px;
  background-color: var(--surface); border: 1px solid var(--primary-300);
  border-left: 4px solid var(--primary);
  border-radius: 2px; padding: 10px 14px; box-shadow: var(--shadow-card);
  font-family: var(--font-display); font-size: var(--t-sm); font-weight: 600;
  max-width: 230px;
}
.figure-tag em { display: block; font-style: normal; color: var(--muted); font-weight: 500; font-size: var(--t-xs); }

/* ---------- section rhythm ---------- */
section { padding: var(--space-9) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.section-head p { color: var(--muted); font-size: var(--t-lg); margin-bottom: 0; }
.band-linen { background-color: var(--linen); }
.band-tint { background-color: var(--primary-100); }

/* ---------- cards, container geometry ---------- */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-flat);
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); border-color: var(--line-strong); }
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--muted); margin-bottom: 0; }
.card .cost {
  display: inline-block; margin-top: var(--space-4);
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-sm);
  color: var(--primary); border-top: 2px solid var(--accent); padding-top: 8px;
}
.card-icon {
  width: 44px; height: 44px; border: 1px solid var(--primary-300);
  border-radius: var(--radius-sm); background-color: var(--primary-100);
  display: grid; place-items: center; margin-bottom: var(--space-4);
}
.card-icon svg { width: 24px; height: 24px; }

/* ---------- steps ---------- */
.steps-layout { 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;
  position: relative;
  padding: var(--space-5) 0 var(--space-5) 72px;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: var(--space-5);
  width: 48px; height: 48px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  color: var(--primary); background-color: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); margin-bottom: 0; }
.section-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.section-figure figcaption { font-size: var(--t-sm); color: var(--muted); margin-top: var(--space-3); }

/* ---------- outcomes ---------- */
.outcome {
  background-color: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--primary); border-radius: var(--radius);
  padding: var(--space-6);
}
.outcome .figurehead {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.5rem; line-height: 1; color: var(--primary); display: block;
  margin-bottom: var(--space-3);
}
.outcome p { color: var(--muted); margin-bottom: 0; }

/* ---------- testimonials ---------- */
.testimonial {
  background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-6); margin: 0;
  box-shadow: var(--shadow-flat);
}
.testimonial p { font-size: var(--t-lg); line-height: 1.55; }
.testimonial footer { font-size: var(--t-sm); color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--space-3); }
.testimonial footer b { display: block; color: var(--ink); font-family: var(--font-display); font-size: var(--t-base); }
.results-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background-color: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: var(--space-6);
}
.results-strip div { background-color: var(--surface); padding: var(--space-5); text-align: center; }
.results-strip b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--primary); }
.results-strip span { font-size: var(--t-sm); color: var(--muted); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); align-items: start; }
.tier {
  background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-6); position: relative;
}
.tier.is-recommended { border: 2px solid var(--primary); box-shadow: var(--shadow-lift); }
.tier .rec {
  position: absolute; top: -13px; left: var(--space-6);
  background-color: var(--primary); color: #FFFFFF;
  font-family: var(--font-display); font-size: var(--label); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 2px;
}
.tier .amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--ink); }
.tier .per { color: var(--muted); font-size: var(--t-sm); }
.tier ul { list-style: none; padding: 0; margin: var(--space-5) 0; }
.tier li { padding-left: 26px; position: relative; font-size: 0.95rem; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 8px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.billing-note { margin-top: var(--space-6); font-size: var(--t-sm); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line-strong); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background-color: transparent; border: 0;
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-lg); color: var(--ink);
  padding: var(--space-5) 44px var(--space-5) 0; cursor: pointer; position: relative;
}
.faq-q::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(225deg); }
.faq-a { padding: 0 0 var(--space-5); color: var(--muted); max-width: 72ch; }
.faq-a[hidden] { display: none; }

/* ---------- form ---------- */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-8); align-items: start; }
.form-card {
  background-color: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: var(--space-7); box-shadow: var(--shadow-card);
}
.field { margin-bottom: var(--space-5); }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.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-color: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 11px 13px;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: #9B2C2C; background-color: #FDF4F4; }
.err { display: block; color: #9B2C2C; font-size: var(--t-sm); margin-top: 5px; }
.err[hidden] { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.consent input { margin-top: 5px; }
.form-note { font-size: var(--t-sm); color: var(--muted); margin-top: var(--space-4); }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 24px; position: relative; color: var(--muted); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px;
  border: 2px solid var(--primary); border-radius: 1px;
}

/* ---------- author byline ---------- */
.byline {
  display: flex; gap: var(--space-4); align-items: center;
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  background-color: var(--surface); border-radius: var(--radius);
  padding: var(--space-5); margin-top: var(--space-7); font-size: 0.95rem; color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer {
  background-color: var(--primary-100);
  border-top: 1px solid var(--primary-300);
  padding: var(--space-9) 0 var(--space-5);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-7); }
.footer-col h3 {
  font-size: var(--label); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 0.93rem; }
.footer-col a:hover { text-decoration: underline; color: var(--primary); }
.footer-tagline { color: var(--muted); font-size: 0.93rem; max-width: 34ch; }
.social { display: flex; gap: 10px; margin-top: var(--space-4); }
.social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  background-color: var(--surface); border: 1px solid var(--primary-300);
  border-radius: var(--radius-sm);
}
.social a:hover { border-color: var(--primary); }
.social svg { width: 18px; height: 18px; }
.footer-base {
  margin-top: var(--space-8); padding-top: var(--space-5);
  border-top: 1px solid var(--primary-300);
  display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between;
  font-size: var(--t-sm); color: var(--muted);
}

/* ---------- legal and content pages ---------- */
.page-head { padding: var(--space-8) 0 var(--space-6); border-bottom: 1px solid var(--line); }
.prose { max-width: 780px; padding: var(--space-8) 0; }
.prose h2 { font-size: var(--t-2xl); margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-5); }
.prose li { color: var(--ink); }
.crumbs { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--space-4); }
.crumbs a { color: var(--muted); }
.map-group { margin-bottom: var(--space-7); }
.map-group li { margin-bottom: var(--space-3); }
.map-group span { color: var(--muted); }
.portrait {
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-card); background-color: var(--surface);
}
.author-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-8); align-items: start; }

/* ---------- reveal motion: modules slide into their grid ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,.75,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .07s; }
.reveal-delay-2 { transition-delay: .14s; }
.reveal-delay-3 { transition-delay: .21s; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .steps-layout, .contact-layout, .author-layout { grid-template-columns: 1fr; }
  .hero::before { display: none; }
  .grid-3, .grid-4, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background-color: var(--surface); border-bottom: 1px solid var(--line); padding: var(--space-5);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: var(--space-4); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .figure-tag { left: 10px; }
}
@media (max-width: 640px) {
  section { padding: var(--space-8) 0; }
  .grid-2, .grid-3, .grid-4, .price-grid, .trust-strip, .results-strip, .footer-grid { grid-template-columns: 1fr; }
  .trust-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero { padding-top: var(--space-7); }
  .form-card { padding: var(--space-5); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

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

/* ================================================================
   The Zone Plan: the magazine
   Built from the same tokens as the rest of the site. Light only.
   ================================================================ */

/* ---------- magazine index head ---------- */
.mag-index-head { padding: var(--space-8) 0 var(--space-7); border-bottom: 1px solid var(--line); }
.mag-index-head h1 { max-width: 16ch; }
.mag-standfirst {
  font-family: var(--font-body); font-size: var(--t-lg); line-height: 1.55;
  color: var(--muted); max-width: 60ch; margin-bottom: var(--space-4);
}
.mag-index-note { max-width: 62ch; color: var(--ink); margin-bottom: 0; }

.mag-index-list { border-top: 0; padding-top: var(--space-8); }
.mag-index-cta { margin-top: var(--space-8); }

/* ---------- the card grid: modules snapped into a label grid ---------- */
.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6) var(--space-5); }

.mag-card {
  display: flex; flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-flat);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.mag-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); border-color: var(--line-strong); }
.mag-card-media { display: block; border-bottom: 1px solid var(--line); background-color: var(--linen); }
.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-card-body .label { margin-bottom: var(--space-3); align-self: flex-start; }
.mag-card-title { font-size: var(--t-lg); line-height: 1.22; margin-bottom: var(--space-3); }
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary); text-decoration: underline; }
.mag-card-dek { color: var(--muted); font-size: 0.95rem; margin-bottom: var(--space-4); }
.mag-card-meta {
  margin-top: auto; margin-bottom: 0;
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary);
  border-top: 1px solid var(--line); padding-top: var(--space-3);
}

/* the lead article takes the full first row and reads as a cover story */
.mag-card.lead { grid-column: 1 / -1; flex-direction: row; border-color: var(--line-strong); }
.mag-card.lead .mag-card-media { flex: 0 0 52%; border-bottom: 0; border-right: 1px solid var(--line); }
.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); justify-content: center; }
.mag-card.lead .mag-card-title { font-size: var(--t-2xl); letter-spacing: -0.02em; }
.mag-card.lead .mag-card-dek { font-size: var(--t-lg); line-height: 1.5; max-width: 46ch; }

/* ---------- article page ---------- */
.mag-article { padding-bottom: var(--space-8); }
.mag-article .crumbs { padding-top: var(--space-6); }
.mag-head { max-width: 800px; padding-bottom: var(--space-6); }
.mag-head h1 { font-size: var(--t-3xl); max-width: 22ch; }
.mag-byline {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  align-items: baseline; margin-top: var(--space-5);
  padding: var(--space-3) 0 var(--space-3) var(--space-4);
  border-left: 4px solid var(--accent);
  font-size: var(--t-sm); color: var(--muted);
}
.mag-byline-name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--t-base); }
.mag-byline-name a { color: var(--ink); }
.mag-byline-item { white-space: nowrap; }

.mag-figure { margin: 0 0 var(--space-8); position: relative; max-width: 1000px; }
.mag-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.mag-figure .figure-tag { left: auto; right: 18px; bottom: 18px; }

/* ---------- article body typography ---------- */
.mag-body { max-width: 68ch; font-size: 1.06rem; line-height: 1.7; }
.mag-body > h2 {
  font-size: var(--t-2xl); margin-top: var(--space-8); margin-bottom: var(--space-4);
  padding-top: var(--space-4); border-top: 1px solid var(--line);
}
.mag-body > h3 { font-size: var(--t-xl); margin-top: var(--space-6); margin-bottom: var(--space-3); }
.mag-body p { margin-bottom: var(--space-5); }
.mag-body ul, .mag-body ol { margin-bottom: var(--space-5); padding-left: 1.35rem; }
.mag-body li { margin-bottom: var(--space-3); }
.mag-body blockquote {
  margin: var(--space-6) 0; padding: var(--space-5) var(--space-6);
  background-color: var(--linen); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-size: var(--t-lg); line-height: 1.5;
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%; border-collapse: collapse; margin: var(--space-6) 0;
  font-size: 0.95rem; background-color: var(--surface);
  border: 1px solid var(--line);
}
.mag-body th, .mag-body td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.mag-body thead th { background-color: var(--primary-100); font-family: var(--font-display); color: var(--primary); }
.mag-body tbody tr:last-child td { border-bottom: 0; }

/* the contextual keep reading line dropped between sections */
.mag-body .inline-read {
  background-color: var(--primary-100);
  border: 1px solid var(--primary-300);
  border-left-width: 4px;
  border-radius: 2px;
  padding: var(--space-3) var(--space-4);
  margin: var(--space-6) 0;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
}
.mag-body .inline-read a { color: var(--primary); }

/* ---------- call to action ---------- */
.mag-cta {
  margin-top: var(--space-8);
  background-color: var(--linen);
  border: 1px solid var(--linen-deep);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: var(--space-7) var(--space-6);
}
.mag-cta h2 { font-size: var(--t-xl); margin-bottom: var(--space-3); }
.mag-cta p { color: var(--muted); }
.mag-cta p:last-child { margin-bottom: 0; }
.mag-cta .btn-primary { color: #FFFFFF; }

/* ---------- author box ---------- */
.mag-author {
  display: grid; grid-template-columns: 120px 1fr; gap: var(--space-5);
  align-items: start; margin-top: var(--space-7);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-6);
}
.mag-author img {
  width: 120px; height: 120px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); object-fit: cover;
  background-color: var(--linen);
}
.mag-author h2 { font-size: var(--t-lg); margin-bottom: var(--space-3); }
.mag-author p { color: var(--muted); font-size: 0.95rem; }
.mag-author p:last-child { margin-bottom: 0; }

/* ---------- read also ---------- */
.mag-related { background-color: var(--primary-100); border-top: 1px solid var(--primary-300); margin-top: var(--space-9); }
.mag-related h2 { font-size: var(--t-2xl); margin-bottom: var(--space-6); }
.mag-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.mag-rel {
  background-color: var(--surface);
  border: 1px solid var(--primary-300);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.mag-rel-media { display: block; background-color: var(--linen); border-bottom: 1px solid var(--line); }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-title { font-size: var(--t-base); line-height: 1.3; margin: var(--space-4) var(--space-5) var(--space-2); }
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary); text-decoration: underline; }
.mag-rel-dek { margin: 0 var(--space-5) var(--space-4); color: var(--muted); font-size: 0.9rem; }
.mag-rel-meta {
  margin: auto var(--space-5) var(--space-5); font-size: var(--t-xs);
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary);
}
.mag-related-all { margin: var(--space-6) 0 0; font-weight: 600; }

/* ---------- home page magazine teaser ---------- */
.mag-home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.mag-home-more { margin: var(--space-7) 0 0; font-family: var(--font-display); font-weight: 600; }

/* ---------- magazine responsive ---------- */
@media (max-width: 980px) {
  .mag-grid, .mag-related-grid, .mag-home-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card-media { flex: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .mag-card.lead .mag-card-media img { aspect-ratio: 3 / 2; min-height: 0; }
  .mag-card.lead .mag-card-body { padding: var(--space-6); }
}
@media (max-width: 640px) {
  .mag-grid, .mag-related-grid, .mag-home-grid { grid-template-columns: 1fr; }
  .mag-head h1 { font-size: var(--t-2xl); max-width: none; }
  .mag-body { font-size: 1.02rem; }
  .mag-body blockquote { padding: var(--space-4); }
  .mag-figure .figure-tag { position: static; margin-top: var(--space-3); max-width: none; }
  .mag-author { grid-template-columns: 1fr; }
  .mag-author img { width: 96px; height: 96px; }
  .mag-cta { padding: var(--space-5); }
  .mag-byline { gap: var(--space-1) var(--space-4); }
  .mag-index-head h1 { max-width: none; }
}


/* 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; }
