/* GlowIntake design system. Fresh spa light: dew white, pale citrus, soft eucalyptus. */

:root {
  --bg: #F8FBF7;
  --surface: #FFFFFF;
  --ink: #1B231D;
  --primary: #3E7A5E;
  --accent: #EBD98A;
  --muted: #5F6B62;

  --primary-050: #F1F7F3;
  --primary-100: #E2EEE7;
  --primary-200: #C8DED2;
  --primary-300: #A6C9B7;
  --primary-600: #35694F;
  --primary-700: #2C5742;

  --accent-050: #FDFBEF;
  --accent-100: #FAF4D9;
  --accent-200: #F4E9B6;

  --line: #DCE7DE;
  --line-strong: #C2D3C6;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 18px;
  --space-5: 28px;
  --space-6: 42px;
  --space-7: 64px;
  --space-8: 92px;
  --space-9: 128px;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(27, 35, 29, .04), 0 10px 30px rgba(27, 35, 29, .06);
  --shadow-lift: 0 2px 4px rgba(27, 35, 29, .05), 0 24px 60px rgba(27, 35, 29, .10);
  --glass: rgba(255, 255, 255, .72);

  --f-display: "Antic Didone", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --f-body: "Barlow", "Helvetica Neue", Arial, system-ui, sans-serif;

  --t-xs: .78rem;
  --t-sm: .89rem;
  --t-base: 1.02rem;
  --t-md: 1.16rem;
  --t-lg: 1.42rem;
  --t-xl: 1.85rem;
  --t-2xl: 2.4rem;
  --t-3xl: 3.1rem;
  --t-4xl: clamp(2.6rem, 5.4vw, 4.3rem);

  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(60% 42% at 12% 0%, var(--primary-050) 0%, rgba(248, 251, 247, 0) 68%),
    radial-gradient(48% 36% at 92% 6%, var(--accent-050) 0%, rgba(248, 251, 247, 0) 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .004em;
  margin: 0 0 var(--space-4);
}

h1 { font-size: var(--t-4xl); }
h2 { font-size: clamp(2rem, 3.4vw, var(--t-3xl)); }
h3 { font-size: var(--t-lg); }
p { margin: 0 0 var(--space-4); }
a { color: var(--primary-700); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: var(--space-8) 0; position: relative; }
.section-tight { padding: var(--space-7) 0; }

.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;
}

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 90;
  background: var(--surface); color: var(--primary-700);
  padding: 10px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--primary-200); font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 14px; }

/* ---------- ripple motif ---------- */
.ripple-rule {
  height: 14px;
  background-image:
    repeating-radial-gradient(circle at 50% 140%, var(--primary-200) 0 1px, rgba(255,255,255,0) 1px 9px);
  opacity: .8;
  margin-bottom: var(--space-5);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: var(--primary-700);
  background: var(--primary-050);
  border: 1px solid var(--primary-200);
  padding: 6px 14px; border-radius: var(--r-pill);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 50% 0 50% 50%;
  background: var(--primary-300); transform: rotate(45deg);
}

.lede { font-size: var(--t-md); color: var(--muted); max-width: 62ch; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid rgba(220, 231, 222, .8);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-soft); background: rgba(255,255,255,.93); }
.header-inner { display: flex; align-items: center; gap: var(--space-5); padding: 14px 0; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark svg { width: 34px; height: 34px; flex: none; }
.wordmark strong { font-family: var(--f-display); font-size: 1.35rem; font-weight: 400; letter-spacing: .01em; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.nav a {
  text-decoration: none; color: var(--ink); font-size: var(--t-sm);
  font-weight: 500; padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--accent); }
.nav-cta { margin-left: var(--space-4); }

.nav-toggle {
  display: none; margin-left: auto; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  width: 44px; height: 40px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-body); font-weight: 600; font-size: var(--t-sm);
  letter-spacing: .015em; text-decoration: none; cursor: pointer;
  padding: 13px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn-primary { background-color: var(--primary); color: #FFFFFF; box-shadow: 0 8px 20px rgba(62, 122, 94, .22); }
.btn-primary:hover { background-color: var(--primary-600); transform: translateY(-1px); }
.btn-ghost { background-color: var(--surface); color: var(--primary-700); border-color: var(--primary-200); }
.btn-ghost:hover { border-color: var(--primary); background-color: var(--primary-050); }
.btn-wide { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: var(--space-8) 0 var(--space-7); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 120px; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, rgba(62,122,94,.05) 0 1px, rgba(255,255,255,0) 1px 14px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,1));
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-7); align-items: center; }
.hero h1 { margin-bottom: var(--space-4); max-width: 15ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-5) 0 var(--space-6); }

.trust-strip { display: grid; gap: var(--space-3); border-top: 1px solid var(--line); padding-top: var(--space-4); }
.trust-strip li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); color: var(--muted); }
.trust-strip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trust-strip svg { width: 17px; height: 17px; flex: none; margin-top: 4px; }

.hero-frame { position: relative; }
.hero-frame img {
  width: 100%; border-radius: var(--r-xl) var(--r-xl) var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-lift); position: relative; z-index: 2;
}
.hero-frame::before {
  content: ""; position: absolute; inset: -26px -26px 40px 26px; z-index: 1;
  border-radius: var(--r-xl); border: 1px solid var(--primary-200);
  background-image: linear-gradient(150deg, var(--accent-050), var(--primary-050));
}
.hero-card {
  position: absolute; z-index: 3; left: -24px; bottom: -26px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 18px; box-shadow: var(--shadow-soft);
  max-width: 250px;
}
.hero-card b { font-family: var(--f-display); font-size: 1.6rem; font-weight: 400; display: block; color: var(--primary-700); }
.hero-card span { font-size: var(--t-xs); color: var(--muted); line-height: 1.4; display: block; }

/* ---------- cards ---------- */
.grid { display: grid; gap: var(--space-4); }
.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: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--space-5);
  box-shadow: 0 1px 2px rgba(27, 35, 29, .03);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover { box-shadow: var(--shadow-soft); border-color: var(--primary-200); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: var(--t-sm); }

.cost { display: block; margin-top: 14px; font-weight: 600; font-size: var(--t-sm); color: var(--primary-700); }
.cost::before { content: ""; display: block; width: 34px; height: 2px; background: var(--accent); margin-bottom: 9px; }

.feature-icon {
  width: 46px; height: 46px; border-radius: 50% 4px 50% 50%;
  background-image: linear-gradient(140deg, var(--primary-050), var(--accent-050));
  border: 1px solid var(--primary-200);
  display: grid; place-items: center; margin-bottom: var(--space-4);
}
.feature-icon svg { width: 23px; height: 23px; }

/* ---------- steps timeline ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.step {
  position: relative; padding: var(--space-5) var(--space-5) var(--space-5) 76px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.step::before {
  content: attr(data-step);
  position: absolute; left: 22px; top: 24px;
  font-family: var(--f-display); font-size: 1.5rem; color: var(--primary-700);
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--primary-200); background: var(--primary-050);
  display: grid; place-items: center;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: var(--t-sm); }

.unroll { position: relative; height: 3px; background: var(--primary-100); border-radius: var(--r-pill); overflow: hidden; margin: var(--space-5) 0; }
.unroll::after {
  content: ""; position: absolute; inset: 0; width: 0;
  background-image: linear-gradient(to right, var(--primary-300), var(--accent));
  transition: width 1.6s cubic-bezier(.22,.61,.36,1);
}
.unroll.is-visible::after { width: 100%; }

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

/* ---------- outcomes ---------- */
.outcome {
  border-left: 2px solid var(--primary-200); padding-left: var(--space-4);
}
.outcome b {
  display: block; font-family: var(--f-display); font-weight: 400;
  font-size: var(--t-2xl); color: var(--primary-700); line-height: 1;
  margin-bottom: 6px;
}
.outcome p { color: var(--muted); font-size: var(--t-sm); margin: 0; }

/* ---------- testimonials ---------- */
.testimonial {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--space-5); margin: 0;
  position: relative; overflow: hidden;
}
.testimonial::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background-image: linear-gradient(to right, var(--primary-200), var(--accent-200));
}
.testimonial p { font-size: var(--t-md); line-height: 1.55; }
.testimonial footer { font-size: var(--t-sm); color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--ink); display: block; }

.metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
  margin-top: var(--space-5); background: var(--primary-050);
  border: 1px solid var(--primary-200); border-radius: var(--r-lg); padding: var(--space-5);
}
.metrics div { text-align: center; }
.metrics b { display: block; font-family: var(--f-display); font-size: var(--t-2xl); color: var(--primary-700); font-weight: 400; }
.metrics span { font-size: var(--t-xs); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- pricing ---------- */
.tier {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-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: -13px; left: var(--space-5);
  background: var(--accent-100); border: 1px solid var(--accent);
  color: var(--primary-700); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: 4px 12px; border-radius: var(--r-pill);
}
.price { font-family: var(--f-display); font-size: 2.8rem; line-height: 1; color: var(--ink); }
.price small { font-family: var(--f-body); font-size: var(--t-sm); color: var(--muted); font-weight: 500; }
.tier ul { list-style: none; margin: var(--space-4) 0 var(--space-5); padding: 0; display: grid; gap: 10px; }
.tier li { display: flex; gap: 10px; font-size: var(--t-sm); }
.tier li svg { width: 16px; height: 16px; flex: none; margin-top: 5px; }
.tier .btn { margin-top: auto; }
.billing-note { text-align: center; color: var(--muted); font-size: var(--t-sm); margin-top: var(--space-5); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--f-display); font-size: var(--t-lg); color: var(--ink);
  padding: var(--space-4) 44px var(--space-4) 0; position: relative;
}
.faq-q::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 11px; height: 11px;
  border-right: 1.5px solid var(--primary); border-bottom: 1.5px solid var(--primary);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease;
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-20%) rotate(-135deg); }
.faq-a { padding: 0 0 var(--space-4); color: var(--muted); max-width: 78ch; }
.faq-a[hidden] { display: none; }

/* ---------- form ---------- */
.contact-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--space-6); box-shadow: var(--shadow-soft);
}
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-size: var(--t-sm); font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: var(--t-base); color: var(--ink);
  background-color: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 11px 13px;
}
.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: #A2402F; background-color: #FDF4F2; }
.err { display: block; color: #8E3524; font-size: var(--t-sm); margin-top: 5px; }
.err[hidden] { display: none; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: var(--t-sm); }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 4px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-4); }
.form-note { font-size: var(--t-sm); color: var(--muted); margin-top: var(--space-4); }

/* ---------- footer ---------- */
.site-footer {
  background-color: var(--primary-050);
  border-top: 1px solid var(--primary-200);
  padding: var(--space-7) 0 var(--space-5);
  margin-top: var(--space-8);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-6); }
.site-footer h2 { font-size: var(--t-sm); font-family: var(--f-body); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: var(--t-sm); }
.site-footer a:hover { color: var(--primary-700); text-decoration: underline; }
.footer-brand p { font-size: var(--t-sm); color: var(--muted); max-width: 34ch; }
.social { display: flex; gap: 10px; margin-top: var(--space-4); }
.social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--primary-200);
  background: var(--surface); display: grid; place-items: center;
}
.social svg { width: 17px; height: 17px; }
.footer-base {
  margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--primary-200);
  display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between;
  font-size: var(--t-xs); color: var(--muted);
}

.byline {
  display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: var(--space-4) 0; font-size: var(--t-sm); color: var(--muted);
  margin-top: var(--space-6);
}

/* ---------- prose pages ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: var(--t-xl); margin-top: var(--space-6); }
.prose h3 { font-size: var(--t-md); margin-top: var(--space-5); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose dl { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--space-4); background: var(--surface); }
.prose dt { font-weight: 600; }
.prose dd { margin: 0 0 12px; color: var(--muted); }

.author-head { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-6); align-items: start; }
.author-head img { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }

.map-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--space-5); }
.map-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.map-group li span { display: block; color: var(--muted); font-size: var(--t-sm); }

/* ---------- reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid, .split, .author-head { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--space-4) 20px;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: var(--space-3); }
  .nav-cta { margin: var(--space-3) 0 0; }
  .header-inner { position: relative; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .metrics, .form-2, .footer-grid { grid-template-columns: 1fr; }
  .contact-panel { padding: var(--space-5); }
  .hero-card { position: static; margin-top: var(--space-4); max-width: none; }
  .section { padding: var(--space-7) 0; }
}

@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; }
  .unroll::after { width: 100%; }
}

/* ================= magazine ================= */
.mag-shell { padding: var(--space-6) 0 var(--space-8); }

.mag-crumb ol {
  list-style: none; margin: 0 0 var(--space-5); padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  font-size: var(--t-xs); color: var(--muted);
}
.mag-crumb li { display: flex; align-items: center; gap: 10px; max-width: 100%; }
.mag-crumb li + li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50% 0 50% 50%;
  background: var(--primary-300); transform: rotate(45deg); flex: none;
}
.mag-crumb a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.mag-crumb a:hover { color: var(--primary-700); border-bottom-color: var(--primary); }
.mag-crumb [aria-current="page"] { color: var(--ink); }

/* ---------- magazine masthead ---------- */
.mag-masthead { max-width: 34ch; margin-bottom: var(--space-6); }
.mag-masthead h1 { font-size: clamp(2.7rem, 6vw, 4rem); }
.mag-masthead-note { font-size: var(--t-sm); color: var(--muted); max-width: 62ch; }
.mag-standfirst {
  font-family: var(--f-body); font-size: var(--t-md); line-height: 1.55;
  color: var(--muted); max-width: 64ch;
}
.mag-masthead .mag-standfirst { max-width: 60ch; }

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

.mag-card {
  background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(27, 35, 29, .03);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.mag-card:hover { box-shadow: var(--shadow-soft); border-color: var(--primary-200); transform: translateY(-2px); }
.mag-card-media { display: block; background-color: var(--primary-050); }
.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-tag {
  align-self: flex-start; font-size: var(--t-xs); letter-spacing: .16em;
  text-transform: uppercase; font-weight: 600; color: var(--primary-700);
  background-color: var(--primary-050); border: 1px solid var(--primary-200);
  padding: 4px 11px; border-radius: var(--r-pill); margin-bottom: var(--space-3);
}
.mag-card-title { font-size: var(--t-lg); line-height: 1.2; margin: 0 0 10px; }
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary-700); text-decoration: underline; text-underline-offset: 3px; }
.mag-card-dek { color: var(--muted); font-size: var(--t-sm); margin: 0 0 var(--space-4); }
.mag-card-meta {
  margin: auto 0 0; padding-top: var(--space-3); border-top: 1px solid var(--line);
  font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}

.mag-card.lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.mag-card.lead .mag-card-media { flex: 1 1 56%; }
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.mag-card.lead .mag-card-body { flex: 1 1 44%; padding: var(--space-6); justify-content: center; }
.mag-card.lead .mag-card-title { font-size: clamp(1.7rem, 2.6vw, var(--t-2xl)); }
.mag-card.lead .mag-card-dek { font-size: var(--t-base); }

/* ---------- article header ---------- */
.mag-article-head { max-width: 75ch; }
.mag-article-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 22ch; }
.mag-article-head .mag-standfirst { font-size: var(--t-lg); line-height: 1.45; color: var(--ink); font-family: var(--f-body); font-weight: 400; }

.mag-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: var(--space-3) 0; margin: var(--space-5) 0 var(--space-6);
  font-size: var(--t-sm); color: var(--muted);
}
.mag-byline p { margin: 0; }
.mag-byline-face {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--primary-200); flex: none;
}
.mag-byline-who { color: var(--ink); font-weight: 600; }
.mag-byline-who a { color: var(--primary-700); text-decoration: none; border-bottom: 1px solid var(--primary-200); }
.mag-byline-who a:hover { border-bottom-color: var(--primary); }

.mag-figure { margin: 0 0 var(--space-6); }
.mag-figure img {
  width: 100%; border-radius: var(--r-lg) var(--r-lg) var(--r-md) var(--r-md);
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.mag-figure figcaption {
  font-size: var(--t-xs); color: var(--muted); margin-top: var(--space-3);
  padding-left: var(--space-3); border-left: 2px solid var(--accent);
}

/* ---------- article body ---------- */
.mag-body { max-width: 68ch; font-size: var(--t-md); line-height: 1.72; }
.mag-body p { margin: 0 0 var(--space-4); }
.mag-body h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem); margin: var(--space-7) 0 var(--space-4);
  padding-top: var(--space-4); border-top: 1px solid var(--line);
}
.mag-body h3 { font-size: var(--t-lg); margin: var(--space-6) 0 var(--space-3); }
.mag-body ul, .mag-body ol { padding-left: 24px; margin: 0 0 var(--space-4); }
.mag-body li { margin-bottom: 10px; }
.mag-body a { color: var(--primary-700); 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: 1px solid var(--primary-200);
  border-left: 3px solid var(--primary); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.35;
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%; border-collapse: collapse; margin: var(--space-5) 0;
  font-size: var(--t-sm); background-color: var(--surface);
  border: 1px solid var(--line);
}
.mag-body th, .mag-body td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.mag-body thead th { background-color: var(--primary-050); font-weight: 600; color: var(--primary-700); }
.mag-body tbody tr:last-child td { border-bottom: 0; }

.inline-read {
  margin: var(--space-5) 0; padding: var(--space-3) var(--space-4) var(--space-3) var(--space-5);
  background-color: var(--accent-050); border: 1px solid var(--accent-200);
  border-left: 3px solid var(--accent); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--t-sm); color: var(--muted); line-height: 1.5;
}
.inline-read a { color: var(--primary-700); font-weight: 600; }

/* ---------- call to action ---------- */
.mag-cta {
  max-width: 75ch; margin: var(--space-7) 0 0;
  background-color: var(--primary-050); border: 1px solid var(--primary-200);
  border-radius: var(--r-xl); padding: var(--space-6);
}
.mag-cta h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: var(--space-3); }
.mag-cta p { color: var(--muted); max-width: 62ch; }
.mag-cta .btn { margin-top: var(--space-2); }
.mag-cta .ripple-rule { margin-bottom: var(--space-4); }

/* ---------- author box ---------- */
.mag-author {
  max-width: 75ch; margin: var(--space-6) 0 0;
  display: grid; grid-template-columns: 130px 1fr; gap: var(--space-5);
  background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--space-5);
}
.mag-author img { width: 130px; height: 130px; border-radius: var(--r-md); object-fit: cover; border: 1px solid var(--line); }
.mag-author h2 { font-size: var(--t-lg); margin-bottom: 8px; }
.mag-author p { font-size: var(--t-sm); color: var(--muted); margin-bottom: 10px; }
.mag-author a { color: var(--primary-700); }

/* ---------- read also ---------- */
.mag-related { margin-top: var(--space-8); }
.mag-related h2 {
  font-size: var(--t-xl); margin-bottom: var(--space-5);
  padding-bottom: var(--space-3); border-bottom: 1px solid var(--line-strong);
}
.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(--line);
  border-radius: var(--r-md); overflow: hidden; padding-bottom: var(--space-4);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.mag-rel:hover { box-shadow: var(--shadow-soft); border-color: var(--primary-200); }
.mag-rel-media { display: block; background-color: var(--primary-050); }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-title { font-size: var(--t-md); line-height: 1.25; margin: var(--space-4) var(--space-4) 8px; }
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary-700); text-decoration: underline; text-underline-offset: 3px; }
.mag-rel-dek { font-size: var(--t-sm); color: var(--muted); margin: 0 var(--space-4) 10px; }
.mag-rel-meta { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 var(--space-4); }
.mag-related-all { margin-top: var(--space-5); font-size: var(--t-sm); }

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

/* ---------- author page article list ---------- */
.mag-list { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.mag-list li {
  background-color: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--primary-200);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: var(--space-4);
}
.mag-list a { color: var(--ink); text-decoration: none; font-family: var(--f-display); font-size: var(--t-md); }
.mag-list a:hover { color: var(--primary-700); text-decoration: underline; text-underline-offset: 3px; }
.mag-list time { display: block; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 6px; }

@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-body { max-width: none; }
}

@media (max-width: 640px) {
  .mag-grid, .mag-related-grid, .mag-home-grid { grid-template-columns: 1fr; }
  .mag-shell { padding: var(--space-5) 0 var(--space-7); }
  .mag-body { font-size: var(--t-base); }
  .mag-cta, .mag-author { padding: var(--space-5); border-radius: var(--r-lg); }
  .mag-author { grid-template-columns: 1fr; }
  .mag-author img { width: 96px; height: 96px; }
  .mag-byline { gap: var(--space-2) var(--space-4); }
  .mag-figure figcaption { padding-left: var(--space-2); }
  .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; }
