/* VaultChalk design system. Competition bright: white, sport violet, chalk grey.
   Light only. Contrast comes from type scale, rules, tints and photography. */

:root {
  --bg: #F8F7FC;
  --surface: #FFFFFF;
  --ink: #171523;
  --primary: #5B2FCC;
  --accent: #FFC857;
  --muted: #5C5A6B;

  --primary-050: #F2EEFC;
  --primary-100: #E6DEFA;
  --primary-200: #D2C4F5;
  --primary-300: #B49FEC;
  --primary-600: #4B24AE;
  --accent-050: #FFF7E4;
  --accent-200: #FFE7AE;
  --chalk: #E7E5F0;
  --chalk-deep: #CFCBDF;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 18px;
  --space-5: 26px;
  --space-6: 38px;
  --space-7: 56px;
  --space-8: 80px;
  --space-9: 112px;

  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 0 rgba(23, 21, 35, .06), 0 2px 8px rgba(23, 21, 35, .05);
  --shadow-md: 0 12px 30px rgba(23, 21, 35, .09);
  --shadow-lift: 0 20px 44px rgba(91, 47, 204, .14);

  --font-display: "Big Shoulders Display", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0: clamp(1rem, .97rem + .16vw, 1.08rem);
  --step-1: clamp(1.14rem, 1.08rem + .3vw, 1.32rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-4: clamp(2.7rem, 1.9rem + 3.8vw, 5rem);
  --maxw: 1240px;
  --rule: 1px solid var(--chalk);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* chalk dust ground: faint violet grain plus a podium bar rhythm at the top */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(91, 47, 204, .07), transparent 42%),
    radial-gradient(circle at 88% 2%, rgba(255, 200, 87, .16), transparent 38%);
}

main, header, footer { position: relative; z-index: 1; }

h1, h2, h3, h4, .num, .wordmark-text, .tier-price, .stat-figure {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: .98;
  text-transform: uppercase;
}

h1 { font-size: var(--step-4); margin: 0 0 var(--space-4); }
h2 { font-size: var(--step-3); margin: 0 0 var(--space-4); }
h3 { font-size: var(--step-2); margin: 0 0 var(--space-3); line-height: 1.02; }
h4 { font-size: var(--step-1); margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-4); }
a { color: var(--primary-600); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.1rem; }
hr { border: 0; border-top: var(--rule); margin: var(--space-7) 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-8) 0; }
.section-tight { padding: var(--space-7) 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--space-3); top: -60px; z-index: 60;
  background-color: var(--primary); color: #FFFFFF; padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

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

/* ------------------------------------------------ eyebrow, rules and podium bars */
.eyebrow {
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--primary-600); margin: 0 0 var(--space-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 7px; border-radius: 2px;
  background-color: var(--accent);
}

.podium {
  display: flex; align-items: flex-end; gap: 5px; height: 34px; margin-bottom: var(--space-4);
}
.podium i {
  display: block; width: 11px; border-radius: 3px 3px 0 0;
  background-color: var(--primary-200);
  transform-origin: bottom;
  transform: scaleY(.12);
  transition: transform .7s cubic-bezier(.2, .9, .25, 1.4);
}
.podium i:nth-child(1) { height: 40%; }
.podium i:nth-child(2) { height: 68%; background-color: var(--primary-300); }
.podium i:nth-child(3) { height: 100%; background-color: var(--primary); }
.podium i:nth-child(4) { height: 76%; background-color: var(--accent); }
.podium i:nth-child(5) { height: 52%; background-color: var(--primary-200); }
.is-revealed .podium i { transform: scaleY(1); }
.podium i:nth-child(2) { transition-delay: .07s; }
.podium i:nth-child(3) { transition-delay: .14s; }
.podium i:nth-child(4) { transition-delay: .21s; }
.podium i:nth-child(5) { transition-delay: .28s; }

.rule-heavy { height: 5px; background-color: var(--ink); width: 62px; border-radius: 2px; }

/* ------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background-color: rgba(255, 255, 255, .92);
  backdrop-filter: blur(9px);
  border-bottom: var(--rule);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); border-bottom-color: var(--chalk-deep); }
.header-inner {
  display: flex; align-items: center; gap: var(--space-5);
  min-height: 70px; padding-top: 10px; padding-bottom: 10px;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark svg { flex: none; }
.wordmark-text { font-size: 1.62rem; letter-spacing: .02em; }
.wordmark-text span { 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: .93rem;
  padding: 6px 0; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 3px;
  background-color: var(--accent); transition: right .22s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }

.nav-toggle {
  display: none; margin-left: auto; background-color: var(--surface); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer;
}

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: 13px 24px; border-radius: var(--radius-pill); text-decoration: none;
  border: 2px solid transparent; cursor: pointer; line-height: 1.1;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn-primary { background-color: var(--primary); color: #FFFFFF; box-shadow: var(--shadow-lift); }
.btn-primary:hover { background-color: var(--primary-600); color: #FFFFFF; transform: translateY(-2px); }
.btn-ghost { background-color: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background-color: var(--primary-050); color: var(--primary-600); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ------------------------------------------------ hero */
.hero { padding: var(--space-8) 0 var(--space-7); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-7); align-items: center; }
.hero h1 span { color: var(--primary); display: block; }
.hero-lead { font-size: var(--step-1); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }

.hero-photo { position: relative; }
.hero-photo img {
  border-radius: var(--radius-lg); border: 5px solid var(--surface);
  box-shadow: var(--shadow-md); width: 100%;
}
.hero-photo::after {
  content: ""; position: absolute; left: -14px; bottom: -14px; width: 120px; height: 14px;
  border-radius: 4px;
  background-image: linear-gradient(90deg, var(--primary) 0 34%, var(--accent) 34% 67%, var(--primary-300) 67% 100%);
}
.score-chip {
  position: absolute; right: -10px; top: 22px;
  background-color: var(--surface); border: 2px solid var(--ink);
  border-radius: var(--radius); padding: 10px 16px; box-shadow: var(--shadow-sm);
}
.score-chip strong { font-family: var(--font-display); font-size: 2.1rem; display: block; line-height: .9; }
.score-chip span { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  border-top: 3px solid var(--ink); border-bottom: var(--rule);
  padding: var(--space-3) 0; list-style: none; margin: 0;
}
.trust-strip li {
  display: flex; align-items: center; gap: 8px;
  font-size: .86rem; font-weight: 600; letter-spacing: .02em;
}
.trust-strip li::before {
  content: ""; width: 12px; height: 12px; flex: none;
  background-color: var(--primary);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ------------------------------------------------ generic panels */
.panel {
  background-color: var(--surface); border: var(--rule); border-radius: var(--radius-lg);
  padding: var(--space-5); box-shadow: var(--shadow-sm);
}
.band-tint { background-color: var(--primary-050); border-top: var(--rule); border-bottom: var(--rule); }
.band-chalk { background-color: var(--surface); border-top: var(--rule); border-bottom: var(--rule); }

.section-head { max-width: 62ch; margin-bottom: var(--space-6); }
.section-head p { color: var(--muted); font-size: var(--step-1); margin-bottom: 0; }

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

/* problem cards */
.problem-card { border-left: 6px solid var(--accent); }
.problem-card .cost {
  display: inline-block; margin-top: var(--space-2);
  font-family: var(--font-display); font-size: 1.5rem; color: var(--primary-600);
}

/* steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding-left: 76px;
  padding-bottom: var(--space-5); margin-bottom: var(--space-5); border-bottom: var(--rule);
}
.steps li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -6px;
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 800;
  color: var(--primary-200); line-height: 1;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin-bottom: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
.split img { border-radius: var(--radius-lg); border: 5px solid var(--surface); box-shadow: var(--shadow-md); }

/* features */
.feature { border-top: 4px solid var(--primary-200); }
.feature:hover { border-top-color: var(--primary); }
.feature .icon { color: var(--primary); margin-bottom: var(--space-3); }
.feature p { color: var(--muted); margin-bottom: 0; }

/* outcomes with counting numerals */
.outcome { text-align: left; }
.stat-figure { font-size: clamp(3rem, 2rem + 4vw, 4.6rem); color: var(--primary); line-height: .9; }
.stat-figure sup { font-size: .38em; vertical-align: super; }
.outcome h3 { font-size: var(--step-1); }
.outcome p { color: var(--muted); margin-bottom: 0; }
.outcome .bar {
  height: 8px; border-radius: 4px; background-color: var(--chalk); margin: var(--space-3) 0;
  overflow: hidden;
}
.outcome .bar i {
  display: block; height: 100%; width: 0; background-color: var(--accent);
  transition: width 1s cubic-bezier(.2, .8, .2, 1);
}
.is-revealed .outcome .bar i { width: var(--fill, 70%); }

/* testimonials */
.testimonial {
  background-color: var(--surface); border: var(--rule); border-radius: var(--radius-lg);
  padding: var(--space-5); margin: 0; box-shadow: var(--shadow-sm); position: relative;
}
.testimonial::before {
  content: ""; position: absolute; top: 0; left: var(--space-5); width: 54px; height: 6px;
  background-color: var(--primary); border-radius: 0 0 3px 3px;
}
.testimonial p { font-size: 1.03rem; }
.testimonial footer { font-size: .86rem; color: var(--muted); border-top: var(--rule); padding-top: var(--space-3); }
.testimonial footer strong { color: var(--ink); display: block; font-size: .95rem; }

.results-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-6); }
.results-strip div { border-top: 5px solid var(--primary); padding-top: var(--space-3); }
.results-strip .stat-figure { font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.4rem); }
.results-strip p { color: var(--muted); font-size: .92rem; margin: 0; }

/* pricing */
.tier {
  background-color: var(--surface); border: 2px solid var(--chalk-deep); border-radius: var(--radius-lg);
  padding: var(--space-5); display: flex; flex-direction: column;
}
.tier.is-recommended { border-color: var(--primary); box-shadow: var(--shadow-lift); position: relative; }
.tier-flag {
  position: absolute; top: -15px; left: var(--space-5);
  background-color: var(--accent); color: var(--ink);
  font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.tier-price { font-size: 3.4rem; color: var(--ink); line-height: .9; }
.tier-price small { font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.tier ul { list-style: none; padding: 0; margin: var(--space-4) 0; flex: 1; }
.tier li { padding: 8px 0 8px 28px; border-bottom: var(--rule); position: relative; font-size: .94rem; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 14px;
  background-color: var(--primary-100); border-left: 3px solid var(--primary); border-radius: 2px;
}
.billing-note { margin-top: var(--space-5); font-size: .9rem; color: var(--muted); }

/* faq */
.faq-item { border-bottom: var(--rule); }
.faq-q {
  width: 100%; text-align: left; background-color: transparent; border: 0; cursor: pointer;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; text-transform: uppercase;
  color: var(--ink); padding: var(--space-4) 44px var(--space-4) 0; position: relative;
}
.faq-q::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 4px;
  background-color: var(--primary); transform: translateY(-50%);
}
.faq-q::before {
  content: ""; position: absolute; right: 14px; top: 50%; width: 4px; height: 16px;
  background-color: var(--primary); transform: translateY(-50%); transition: opacity .2s ease;
}
.faq-q[aria-expanded="true"]::before { opacity: 0; }
.faq-a { padding: 0 0 var(--space-5); color: var(--muted); max-width: 76ch; }
.faq-a p:last-child { margin-bottom: 0; }

/* form */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .88rem; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background-color: var(--surface); border: 2px solid var(--chalk-deep);
  border-radius: var(--radius); padding: 11px 13px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: none; }
.field [aria-invalid="true"] { border-color: #B3261E; }
.error-msg { color: #B3261E; font-size: .82rem; font-weight: 600; min-height: 1em; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; grid-column: 1 / -1; font-size: .9rem; }
.consent-row input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--primary); }
.form-note { font-size: .88rem; color: var(--muted); margin-top: var(--space-4); }

/* author byline */
.byline {
  display: flex; gap: var(--space-4); align-items: center;
  border-top: 3px solid var(--ink); padding-top: var(--space-4); margin-top: var(--space-7);
  font-size: .93rem; color: var(--muted);
}
.byline img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--primary-100); }

/* footer, light tint only */
.site-footer {
  background-color: var(--primary-050);
  border-top: 5px solid var(--primary);
  padding: var(--space-8) 0 var(--space-5);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-6); }
.site-footer h2 { font-size: 1rem; letter-spacing: .14em; margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: var(--primary-600); text-decoration: underline; }
.footer-tag { color: var(--muted); font-size: .93rem; max-width: 32ch; }
.social { display: flex; gap: 10px; margin-top: var(--space-4); }
.social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  background-color: var(--surface); border: 2px solid var(--chalk-deep); border-radius: 50%;
  color: var(--primary-600);
}
.social a:hover { border-color: var(--primary); background-color: var(--surface); }
.footer-base {
  margin-top: var(--space-7); padding-top: var(--space-4); border-top: var(--rule);
  display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between;
  font-size: .86rem; color: var(--muted);
}

/* legal and long form pages */
.prose { max-width: 74ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-7); }
.prose h3 { font-size: var(--step-1); margin-top: var(--space-5); }
.prose li { margin-bottom: 6px; }
.page-head { border-bottom: 5px solid var(--primary); padding-bottom: var(--space-4); margin-bottom: var(--space-6); }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: var(--space-3); }
.crumbs a { color: var(--muted); }
.map-group { margin-bottom: var(--space-6); }
.map-group ul { list-style: none; padding: 0; }
.map-group li { border-bottom: var(--rule); padding: 10px 0; }
.map-group li span { display: block; color: var(--muted); font-size: .88rem; }

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

/* ------------------------------------------------ responsive */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .results-strip, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; width: 100%; order: 3; margin-left: 0;
    border-top: var(--rule); padding: var(--space-4) 0;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: var(--space-3); }
  .header-inner { flex-wrap: wrap; }
  .header-cta { display: none; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .results-strip, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .section { padding: var(--space-7) 0; }
  .steps li { padding-left: 58px; }
  .steps li::before { font-size: 2.4rem; }
  .score-chip { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .podium i { transform: scaleY(1); }
  .outcome .bar i { width: var(--fill, 70%); }
}

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

/* ================================================================ magazine: Chalk Line
   Light only, built from the same tokens as the rest of the site: chalk rules, podium
   bars, violet tints, Big Shoulders headlines over Archivo. */

.mag-crumbs { margin-bottom: var(--space-4); }
.mag-crumbs ol {
  display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; margin: 0; padding: 0;
  font-size: .82rem; color: var(--muted);
}
.mag-crumbs li { display: flex; align-items: center; gap: 10px; max-width: 100%; }
.mag-crumbs li + li::before {
  content: ""; width: 12px; height: 3px; border-radius: 2px; flex: none;
  background-color: var(--chalk-deep);
}
.mag-crumbs a { color: var(--muted); }
.mag-crumbs a:hover { color: var(--primary-600); }
.mag-crumbs [aria-current="page"] {
  color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.mag-kicker {
  font-family: var(--font-body); font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--primary-600);
  margin: 0 0 var(--space-2);
}
.mag-tag {
  display: inline-block; margin: 0 0 var(--space-3);
  background-color: var(--primary-050); color: var(--primary-600);
  border: 1px solid var(--primary-200); border-radius: var(--radius-pill);
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 12px;
}
.mag-dot {
  display: inline-block; width: 12px; height: 3px; border-radius: 2px;
  background-color: var(--chalk-deep); margin: 0 4px; vertical-align: middle;
}

/* ---------------------------------------------- magazine index */
.mag-index-head { padding-bottom: var(--space-6); }
.mag-index-head h1 { max-width: 14ch; }
.mag-index-note { max-width: 66ch; color: var(--muted); font-size: .95rem; margin-top: var(--space-4); }
.mag-index-body { padding-top: 0; }

.mag-standfirst {
  font-size: var(--step-1); line-height: 1.5; color: var(--muted);
  max-width: 40em; margin: 0 0 var(--space-5);
  border-left: 5px solid var(--accent); padding-left: var(--space-4);
}

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

.mag-card {
  background-color: var(--surface); border: var(--rule); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  border-top: 4px solid var(--primary-200);
  transition: transform .2s ease, box-shadow .2s ease, border-top-color .2s ease;
}
.mag-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-top-color: var(--primary); }
.mag-card-media { display: block; background-color: var(--chalk); }
.mag-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; flex: 1; }
.mag-card-title { font-size: var(--step-1); line-height: 1.04; margin: 0 0 var(--space-3); }
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary-600); text-decoration: underline; text-underline-offset: 3px; }
.mag-card-dek { color: var(--muted); font-size: .92rem; margin-bottom: var(--space-4); flex: 1; }
.mag-card-meta {
  margin: 0; padding-top: var(--space-3); border-top: var(--rule);
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

.mag-card.lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; border-top-color: var(--primary); }
.mag-card.lead .mag-card-media { flex: 1 1 56%; }
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 340px; }
.mag-card.lead .mag-card-body { flex: 1 1 44%; justify-content: center; padding: var(--space-6); }
.mag-card.lead .mag-card-title { font-size: var(--step-2); }
.mag-card.lead .mag-card-dek { font-size: 1.02rem; }

/* ---------------------------------------------- article page */
.mag-article { padding: var(--space-7) 0 var(--space-8); }
.mag-head { max-width: 30ch; max-width: min(100%, 46rem); margin-bottom: var(--space-6); }
.mag-head h1 { font-size: var(--step-3); max-width: 20ch; }
.mag-head .mag-standfirst { margin-bottom: var(--space-4); }

.mag-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  border-top: 3px solid var(--ink); border-bottom: var(--rule);
  padding: var(--space-3) 0; font-size: .84rem; color: var(--muted); font-weight: 500;
}
.mag-by { font-weight: 700; color: var(--ink); }
.mag-read { color: var(--primary-600); font-weight: 700; }

.mag-figure { margin: 0 0 var(--space-6); }
.mag-figure img {
  width: 100%; border-radius: var(--radius-lg); border: 5px solid var(--surface);
  box-shadow: var(--shadow-md);
}
.mag-figure figcaption {
  font-size: .8rem; color: var(--muted); margin-top: var(--space-3);
  border-left: 4px solid var(--primary-200); padding-left: var(--space-3); max-width: 60ch;
}

.mag-body { max-width: 68ch; font-size: 1.06rem; line-height: 1.72; }
.mag-body h2 {
  font-size: var(--step-2); margin-top: var(--space-7); margin-bottom: var(--space-3);
  padding-top: var(--space-4); border-top: 3px solid var(--primary-200);
}
.mag-body h3 { font-size: var(--step-1); margin-top: var(--space-5); margin-bottom: var(--space-2); }
.mag-body p { margin-bottom: var(--space-4); }
.mag-body ul, .mag-body ol { margin: 0 0 var(--space-4); padding-left: 1.3rem; }
.mag-body li { margin-bottom: 8px; }
.mag-body li::marker { color: var(--primary); font-weight: 700; }
.mag-body a { text-underline-offset: 3px; }
.mag-body blockquote {
  margin: var(--space-5) 0; padding: var(--space-4) var(--space-5);
  background-color: var(--primary-050); border-left: 6px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.05rem;
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%; border-collapse: collapse; margin: var(--space-5) 0; font-size: .93rem;
  background-color: var(--surface);
}
.mag-body th, .mag-body td { border: var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.mag-body thead th {
  background-color: var(--primary-050); font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .04em; font-size: 1.02rem;
}
.mag-body table + p { font-size: .95rem; }

.inline-read {
  background-color: var(--accent-050); border: 1px solid var(--accent-200);
  border-left: 6px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-3) var(--space-4); margin: var(--space-5) 0;
  font-size: .93rem; font-weight: 600;
}
.inline-read a { color: var(--primary-600); }

/* call to action after the body */
.mag-cta {
  max-width: 68ch; margin: var(--space-7) 0 0;
  background-color: var(--primary-050); border: 1px solid var(--primary-200);
  border-top: 5px solid var(--primary); border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-5) var(--space-6);
}
.mag-cta h2 { font-size: var(--step-2); margin-bottom: var(--space-3); }
.mag-cta p { color: var(--muted); }
.mag-cta-action { margin: var(--space-5) 0 0; }
.mag-index-cta .mag-cta { max-width: none; display: grid; grid-template-columns: 1.6fr auto; gap: var(--space-6); align-items: center; }
.mag-index-cta .mag-cta-action { margin: 0; }

/* author box */
.mag-authorbox {
  max-width: 68ch; margin: var(--space-6) 0 0; display: flex; gap: var(--space-5);
  background-color: var(--surface); border: var(--rule); border-left: 6px solid var(--accent);
  border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm);
}
.mag-authorbox img {
  width: 132px; height: 132px; flex: none; border-radius: var(--radius);
  border: 4px solid var(--primary-100); object-fit: cover;
}
.mag-authorbox h2 { font-size: var(--step-1); margin-bottom: var(--space-3); }
.mag-authorbox p { color: var(--muted); font-size: .94rem; }
.mag-authorbox p:last-child { margin-bottom: 0; }
.mag-authorlink { font-weight: 700; }

/* read also */
.mag-related { margin-top: var(--space-8); border-top: 5px solid var(--primary); padding-top: var(--space-5); }
.mag-related-title { font-size: var(--step-2); margin-bottom: var(--space-5); }
.mag-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.mag-rel {
  background-color: var(--surface); border: var(--rule); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mag-rel:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mag-rel-media { display: block; background-color: var(--chalk); }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-body { padding: var(--space-4); display: flex; flex-direction: column; flex: 1; }
.mag-rel-title { font-size: 1.18rem; line-height: 1.06; margin-bottom: var(--space-2); }
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary-600); text-decoration: underline; text-underline-offset: 3px; }
.mag-rel-dek { color: var(--muted); font-size: .86rem; margin-bottom: var(--space-3); flex: 1; }

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

/* author page article list */
.mag-list { list-style: none; padding: 0; margin: var(--space-5) 0 0; }
.mag-list li { border-bottom: var(--rule); padding: var(--space-3) 0; }
.mag-list a { font-weight: 600; }
.mag-list time { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

@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 img { min-height: 0; aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card-body { padding: var(--space-5); }
  .mag-index-cta .mag-cta { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .mag-grid, .mag-related-grid, .mag-home-grid { grid-template-columns: 1fr; }
  .mag-article { padding-top: var(--space-6); }
  .mag-head h1 { font-size: var(--step-2); max-width: none; }
  .mag-body { font-size: 1rem; }
  .mag-body h2 { margin-top: var(--space-6); }
  .mag-authorbox { flex-direction: column; }
  .mag-authorbox img { width: 96px; height: 96px; }
  .mag-standfirst { padding-left: var(--space-3); }
  .mag-figure img { border-width: 3px; }
  .mag-crumbs [aria-current="page"] { white-space: normal; }
  .mag-body table { display: block; overflow-x: auto; }
}


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