/* MoneyMapCoach design system. Ledger calm: paper white, cool sand, deep forest.
   Light mode only. Contrast comes from type, rules, borders and tints. */

:root {
  --bg: #F9FAF7;
  --surface: #FFFFFF;
  --ink: #1A1F1C;
  --primary: #2E5C3F;
  --accent: #D9C7A3;
  --muted: #5F665F;

  --sand-50: #FBF8F1;
  --sand-100: #F4EEE1;
  --sand-200: #EBE1CC;
  --forest-tint-04: #F2F6F3;
  --forest-tint-08: #E9F0EB;
  --forest-tint-16: #D6E2DA;
  --rule: #E2E6DF;
  --rule-strong: #C9D1C6;

  --btn: color-mix(in srgb, var(--primary) 100%, white 0%);
  --btn-hover: color-mix(in srgb, var(--primary) 88%, black 12%);
  --on-primary: #FFFFFF;

  --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: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(26, 31, 28, 0.06);
  --shadow: 0 10px 28px rgba(26, 31, 28, 0.07);
  --shadow-lift: 0 18px 44px rgba(26, 31, 28, 0.10);

  --font-display: "Rethink Sans", "Trebuchet MS", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.8rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.7rem + 2.6vw, 3.6rem);

  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(46, 92, 63, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 92, 63, 0.035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .wordmark-name, .metric-figure, .tier-price {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--ink);
}

h1 { font-size: var(--step-4); font-weight: 800; margin: 0 0 var(--space-5); }
h2 { font-size: var(--step-3); font-weight: 700; margin: 0 0 var(--space-4); }
h3 { font-size: var(--step-1); font-weight: 700; margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-4); }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--btn-hover); }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -4rem; z-index: 999;
  background-color: var(--surface); color: var(--primary);
  border: 2px solid var(--primary); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4); font-weight: 700;
  transition: top 0.18s ease;
}
.skip-link:focus { top: var(--space-4); }

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

/* ---------------- eyebrow and ledger rules ---------------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 var(--space-3);
  display: flex; align-items: center; gap: var(--space-3);
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px;
  background-color: var(--accent);
}

.section { padding-block: var(--space-9); position: relative; }
.section + .section { border-top: 1px solid var(--rule); }
.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: 60;
  background-color: rgba(249, 250, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--rule-strong); }
.header-inner { display: flex; align-items: center; gap: var(--space-5); min-height: 74px; }
.wordmark { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.wordmark svg { flex: none; }
.wordmark-name { font-size: 1.24rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding-block: var(--space-2); position: relative;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background-color: var(--accent); transition: right 0.22s ease;
}
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { right: 0; }
.nav-toggle {
  display: none; margin-left: auto; background-color: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background-color: var(--ink); margin: 4px 0; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  padding: 0.85rem 1.45rem; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.16s ease, background-color 0.16s ease;
}
.btn-primary { background: var(--btn); color: var(--on-primary); }
.btn-primary:hover { background: var(--btn-hover); color: var(--on-primary); transform: translateY(-1px); }
.btn-ghost {
  background-color: var(--surface); color: var(--primary);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-1px); }
.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ---------------- hero ---------------- */
.hero { padding-block: var(--space-9) var(--space-8); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background-image: repeating-linear-gradient(to right, var(--rule-strong) 0 14px, transparent 14px 26px);
}
.hero-grid { display: grid; gap: var(--space-8); grid-template-columns: 1.02fr 0.98fr; align-items: center; }
.hero p.lede { font-size: var(--step-1); color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }

.trust-strip {
  display: grid; gap: var(--space-4); grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule); padding-top: var(--space-5);
}
.trust-strip li { list-style: none; }
.trust-strip { margin: 0; padding-left: 0; }
.trust-label { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; display: block; }
.trust-note { color: var(--muted); font-size: var(--step--1); }

.hero-figure { position: relative; }
.hero-figure img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid var(--rule);
}
.hero-figure::before {
  content: ""; position: absolute; inset: -14px -14px auto auto; width: 120px; height: 120px;
  border-top: 2px solid var(--accent); border-right: 2px solid var(--accent);
  border-radius: 0 var(--radius-lg) 0 0;
}
.hero-caption {
  position: absolute; left: var(--space-5); bottom: var(--space-5);
  background-color: var(--surface); border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-sm); font-size: var(--step--1); max-width: 17rem;
}
.hero-caption strong { font-family: var(--font-display); display: block; font-size: 1.15rem; }

/* ---------------- milestone path motif ---------------- */
.path-track {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-6);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}
.path-track::before {
  content: ""; position: absolute; top: 17px; left: 6%; right: 6%; height: 2px;
  background-image: repeating-linear-gradient(to right, var(--rule-strong) 0 8px, transparent 8px 16px);
}
.path-step { position: relative; padding-top: var(--space-7); }
.path-step .marker {
  position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%;
  background-color: var(--surface); border: 2px solid var(--rule-strong);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800;
  color: var(--muted); transition: border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.path-step.is-visible .marker {
  border-color: var(--primary); color: var(--primary);
  box-shadow: 0 0 0 6px rgba(46, 92, 63, 0.10);
}

/* ---------------- cards ---------------- */
.card {
  background-color: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--rule-strong); }

.grid-3 { display: grid; gap: var(--space-5); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { display: grid; gap: var(--space-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }

.problem-card { border-top: 3px solid var(--accent); }
.cost-line {
  display: inline-block; margin-top: var(--space-2);
  font-family: var(--font-display); font-weight: 800; color: var(--primary);
  background-color: var(--forest-tint-08);
  border-radius: var(--radius-sm); padding: 0.2rem 0.55rem; font-size: 0.95rem;
}

.feature-card .icon {
  width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: var(--space-4);
  border: 1px solid var(--forest-tint-16); border-radius: var(--radius);
  background-color: var(--forest-tint-04);
}
.feature-card .icon svg { stroke: var(--primary); fill: none; stroke-width: 1.6; }

/* ---------------- solution band ---------------- */
.band-sand { background-color: var(--sand-50); }
.solution-grid { display: grid; gap: var(--space-8); grid-template-columns: 1.05fr 0.95fr; align-items: start; }
.solution-figure img { border-radius: var(--radius-lg); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative; padding-left: 3.6rem; padding-bottom: var(--space-6);
  border-left: 2px solid var(--rule); margin-left: 17px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -18px; top: 0; width: 34px; height: 34px; border-radius: 50%;
  background-color: var(--surface); border: 2px solid var(--primary); color: var(--primary);
  font-family: var(--font-display); font-weight: 800;
  display: grid; place-items: center;
}

/* ---------------- ledger table ---------------- */
.ledger {
  width: 100%; border-collapse: collapse; background-color: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  font-size: 0.95rem;
}
.ledger caption { text-align: left; color: var(--muted); padding-bottom: var(--space-3); font-size: var(--step--1); }
.ledger th, .ledger td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--rule); }
.ledger thead th { background-color: var(--forest-tint-04); font-family: var(--font-display); font-weight: 700; }
.ledger tbody tr:nth-child(even) td { background-color: var(--sand-50); }
.ledger td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------- outcomes ---------------- */
.metric-figure { font-size: var(--step-3); font-weight: 800; color: var(--primary); display: block; }
.outcome { border-left: 4px solid var(--accent); padding-left: var(--space-5); }

/* ---------------- testimonials ---------------- */
.testimonial {
  background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: var(--space-6); margin: 0; position: relative;
}
.testimonial::before {
  content: ""; position: absolute; top: 0; left: var(--space-6); width: 46px; height: 3px;
  background-color: var(--accent);
}
.testimonial p { font-size: 1.03rem; }
.testimonial footer { font-size: var(--step--1); 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; font-family: var(--font-display); }

.results-strip {
  display: grid; gap: var(--space-5); grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--space-7); padding: var(--space-6);
  background-color: var(--forest-tint-04); border: 1px solid var(--forest-tint-16);
  border-radius: var(--radius-lg); text-align: center;
}

/* ---------------- pricing ---------------- */
.tier { display: flex; flex-direction: column; position: relative; }
.tier.is-recommended { border-color: var(--primary); box-shadow: var(--shadow); }
.tier-flag {
  position: absolute; top: -13px; left: var(--space-6);
  background: var(--btn); color: var(--on-primary);
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.28rem 0.7rem; border-radius: 999px;
}
.tier-price { font-size: var(--step-3); font-weight: 800; }
.tier-price span { font-size: 1rem; font-weight: 400; color: var(--muted); font-family: var(--font-body); }
.tier ul { list-style: none; margin: var(--space-4) 0 var(--space-6); padding: 0; display: grid; gap: 0.55rem; }
.tier li { position: relative; padding-left: 1.6rem; font-size: 0.96rem; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px;
  border-radius: 50%; border: 2px solid var(--primary);
}
.tier .btn { margin-top: auto; }
.billing-note { margin-top: var(--space-5); color: var(--muted); font-size: var(--step--1); }

/* ---------------- faq ---------------- */
.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--ink);
  padding: var(--space-5) 2.5rem var(--space-5) 0; position: relative;
}
.faq-q::after {
  content: ""; position: absolute; right: 6px; 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 0.22s ease;
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 0 var(--space-5); max-width: 76ch; color: var(--muted); }
.faq-a[hidden] { display: none; }

/* ---------------- form ---------------- */
.contact-grid { display: grid; gap: var(--space-8); grid-template-columns: 0.85fr 1.15fr; align-items: start; }
.form-card { background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-weight: 700; font-size: 0.93rem; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink);
  background-color: var(--bg); border: 1px solid var(--rule-strong);
  border-radius: var(--radius); padding: 0.7rem 0.85rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: #A03328; }
.field-error { color: #A03328; font-size: var(--step--1); margin-top: 0.3rem; display: block; }
.field-row { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: var(--space-5); }
.consent input { width: 18px; height: 18px; margin-top: 0.25rem; flex: none; }
.consent label { font-weight: 400; font-size: 0.92rem; }
.form-reassure { margin-top: var(--space-4); color: var(--muted); font-size: var(--step--1); }

/* ---------------- footer ---------------- */
.site-footer {
  background-color: var(--sand-50);
  border-top: 2px solid var(--accent);
  padding-block: var(--space-8) var(--space-5);
  margin-top: var(--space-8);
}
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
.footer-grid h2 { font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--space-4); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-grid a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--primary); text-decoration: underline; }
.social-row { display: flex; gap: 0.6rem; margin-top: var(--space-4); }
.social-row a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--rule-strong); border-radius: 50%; background-color: var(--surface);
}
.social-row svg { stroke: var(--primary); fill: none; stroke-width: 1.7; }
.footer-base {
  margin-top: var(--space-7); padding-top: var(--space-4); border-top: 1px solid var(--rule-strong);
  display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between;
  font-size: var(--step--1); color: var(--muted);
}
.author-byline {
  margin-top: var(--space-8); padding: var(--space-5);
  background-color: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--primary);
  border-radius: var(--radius); font-size: 0.95rem;
}

/* ---------------- prose pages ---------------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: var(--space-7); font-size: var(--step-2); }
.prose h3 { margin-top: var(--space-5); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.fact-list { list-style: none; padding: 0; }
.fact-list li { border-bottom: 1px dashed var(--rule-strong); padding: 0.55rem 0; }
.portrait { border-radius: var(--radius-lg); border: 1px solid var(--rule); box-shadow: var(--shadow-sm); }
.author-head { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-7); align-items: start; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.pill-row li {
  background-color: var(--forest-tint-08); border: 1px solid var(--forest-tint-16);
  border-radius: 999px; padding: 0.28rem 0.8rem; font-size: 0.88rem; color: var(--primary); font-weight: 700;
}

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

@media (max-width: 980px) {
  .hero-grid, .solution-grid, .contact-grid, .author-head { grid-template-columns: 1fr; }
  .grid-3, .path-track, .results-strip, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-track::before { display: none; }
}

@media (max-width: 760px) {
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background-color: var(--surface); border-bottom: 1px solid var(--rule-strong); padding: var(--space-4);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: var(--space-4); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .grid-3, .grid-2, .path-track, .results-strip, .footer-grid, .field-row, .trust-strip { grid-template-columns: 1fr; }
  .hero-caption { position: static; margin-top: var(--space-4); max-width: none; }
  .section { padding-block: var(--space-8); }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ================= The Coaching Ledger: the magazine ================= */

.mag-crumb { padding-block: var(--space-6) var(--space-4); }
.mag-crumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  font-size: var(--step--1); color: var(--muted);
}
.mag-crumb li { display: flex; align-items: center; gap: 0.45rem; }
.mag-crumb li + li::before { content: "/"; color: var(--rule-strong); }
.mag-crumb a { color: var(--muted); text-decoration: none; }
.mag-crumb a:hover { color: var(--primary); text-decoration: underline; }
.mag-crumb [aria-current="page"] {
  color: var(--ink); font-weight: 700;
  max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- masthead on the magazine index ---- */
.mag-masthead {
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid var(--rule);
  padding-block: var(--space-6) var(--space-7);
  margin-bottom: var(--space-7);
  max-width: 70ch;
}
.mag-masthead h1 { font-size: var(--step-4); margin-bottom: var(--space-4); }
.mag-masthead-note { color: var(--muted); font-size: var(--step--1); margin: 0; max-width: 62ch; }
.mag-standfirst {
  font-size: var(--step-1); color: var(--muted); line-height: 1.55;
  max-width: 60ch; margin: 0 0 var(--space-4);
}

/* ---- index grid and cards ---- */
.mag-grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: var(--space-8);
}
.mag-card {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.mag-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--rule-strong); }
.mag-card-media { display: block; border-bottom: 1px solid var(--rule); }
.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; gap: var(--space-3); flex: 1; }
.mag-kicker {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary); margin: 0;
}
.mag-card-title { font-size: var(--step-1); margin: 0; line-height: 1.22; }
.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.96rem; margin: 0; }
.mag-card-meta {
  margin: auto 0 0; padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
  color: var(--muted); font-size: var(--step--1);
  display: flex; align-items: center; gap: 0.6rem;
}
.mag-dot { width: 4px; height: 4px; border-radius: 50%; background-color: var(--accent); display: inline-block; flex: none; }

.mag-card.lead {
  grid-column: 1 / -1;
  flex-direction: row;
  border-top: 3px solid var(--accent);
}
.mag-card.lead .mag-card-media {
  flex: 0 0 52%; 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); 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; }

/* ---- article header ---- */
.mag-article { max-width: 100%; }
.mag-head {
  border-top: 3px solid var(--primary);
  padding-top: var(--space-6);
  margin-bottom: var(--space-6);
  max-width: 72ch;
}
.mag-head h1 { font-size: var(--step-3); margin-bottom: var(--space-4); }
.mag-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem;
  font-size: var(--step--1); color: var(--muted);
  border-top: 1px solid var(--rule); padding-top: var(--space-4);
}
.mag-by { font-weight: 700; color: var(--ink); }
.mag-by a { color: var(--primary); }

.mag-figure { margin: 0 0 var(--space-7); }
.mag-figure img {
  width: 100%; border-radius: var(--radius-lg);
  border: 1px solid var(--rule); box-shadow: var(--shadow);
}
.mag-figure figcaption {
  margin-top: var(--space-3); color: var(--muted);
  font-size: var(--step--1); max-width: 70ch;
  border-left: 3px solid var(--accent); padding-left: var(--space-3);
}

/* ---- article body typography ---- */
.mag-body { max-width: 68ch; font-size: 1.06rem; line-height: 1.72; }
.mag-body h2 {
  font-size: var(--step-2); margin: var(--space-8) 0 var(--space-4);
  padding-top: var(--space-4); border-top: 1px solid var(--rule);
}
.mag-body h3 { font-size: var(--step-1); margin: var(--space-6) 0 var(--space-3); }
.mag-body p { margin: 0 0 var(--space-5); }
.mag-body ul, .mag-body ol { margin: 0 0 var(--space-5); padding-left: 1.35rem; }
.mag-body li { margin-bottom: 0.5rem; }
.mag-body blockquote {
  margin: var(--space-6) 0; padding: var(--space-5) var(--space-6);
  background-color: var(--forest-tint-04);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--step-1); line-height: 1.55;
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%; border-collapse: collapse; margin: 0 0 var(--space-6);
  font-size: 0.95rem; background-color: var(--surface);
  border: 1px solid var(--rule);
}
.mag-body caption { text-align: left; color: var(--muted); font-size: var(--step--1); padding-bottom: var(--space-2); }
.mag-body th, .mag-body td { padding: 0.65rem 0.85rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.mag-body thead th { background-color: var(--forest-tint-08); font-family: var(--font-display); font-weight: 700; }
.mag-body tbody tr:nth-child(even) td { background-color: var(--sand-50); }
.mag-table-scroll, .mag-body .table-wrap { overflow-x: auto; }

.inline-read {
  margin: var(--space-6) 0; padding: var(--space-4) var(--space-5);
  background-color: var(--sand-50);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  font-family: var(--font-display); font-size: 0.97rem; font-weight: 500;
}
.inline-read a { font-weight: 700; }

/* ---- call to action ---- */
.mag-cta {
  margin: var(--space-8) 0;
  background-color: var(--forest-tint-04);
  border: 1px solid var(--forest-tint-16);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 74ch;
}
.mag-cta h2 { font-size: var(--step-2); margin-bottom: var(--space-4); }
.mag-cta p { color: var(--ink); max-width: 62ch; }
.mag-cta p:last-child { margin-bottom: 0; }

/* ---- author box ---- */
.mag-author {
  display: grid; grid-template-columns: 160px 1fr; gap: var(--space-6);
  align-items: start;
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  max-width: 74ch;
}
.mag-author h2 { font-size: var(--step-1); margin-bottom: var(--space-3); }
.mag-author p { color: var(--muted); font-size: 0.98rem; }
.mag-author p:last-child { margin-bottom: 0; }
.mag-author .portrait { width: 160px; height: 160px; object-fit: cover; }

/* ---- read also ---- */
.mag-related {
  margin: var(--space-8) 0 var(--space-9);
  border-top: 1px solid var(--rule);
  padding-top: var(--space-6);
}
.mag-related h2 { font-size: var(--step-2); margin-bottom: var(--space-6); }
.mag-related-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mag-rel {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.mag-rel:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.mag-rel-media { display: block; }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 1px solid var(--rule); }
.mag-rel-title { font-size: 1.02rem; line-height: 1.3; 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; }
.mag-rel-dek { color: var(--muted); font-size: 0.9rem; margin: 0 var(--space-4) var(--space-4); }
.mag-rel-meta {
  margin: auto var(--space-4) var(--space-4); color: var(--muted);
  font-size: var(--step--1); border-top: 1px solid var(--rule); padding-top: var(--space-3);
}
.mag-related-all { margin-top: var(--space-5); font-weight: 700; }

/* ---- the magazine strip on the home page ---- */
.mag-home-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mag-home-more { margin-top: var(--space-6); font-weight: 700; }
.mag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); max-width: 80ch; }
.mag-list li { border-bottom: 1px dashed var(--rule-strong); padding-bottom: var(--space-4); }
.mag-list a { font-family: var(--font-display); font-weight: 700; }
.mag-list .mag-list-meta { display: block; color: var(--muted); font-size: var(--step--1); margin-top: 0.3rem; }

@media (max-width: 980px) {
  .mag-grid, .mag-related-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); }
}

@media (max-width: 760px) {
  .mag-grid, .mag-related-grid, .mag-home-grid { grid-template-columns: 1fr; }
  .mag-author { grid-template-columns: 1fr; }
  .mag-author .portrait { width: 120px; height: 120px; }
  .mag-head h1 { font-size: var(--step-2); }
  .mag-card.lead .mag-card-title { font-size: var(--step-2); }
  .mag-card.lead .mag-card-dek { font-size: 1rem; }
  .mag-body { font-size: 1.02rem; }
  .mag-cta, .mag-author { padding: var(--space-5); }
  .mag-crumb [aria-current="page"] { max-width: 24ch; }
  .mag-body table { display: block; overflow-x: auto; white-space: normal; }
}


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