/* DownsizeRoute design system
   Gentle transition: soft white, warm greige, steady sage.
   Halant headlines over Titillium Web, floor plan line art, measured grid. */

:root {
  --bg: #F9F9F6;
  --surface: #FFFFFF;
  --ink: #1F2220;
  --primary: #4C6B54;
  --accent: #D6CDBE;
  --muted: #646862;

  --primary-050: #F1F5F1;
  --primary-100: #E3EBE4;
  --primary-200: #CBDACE;
  --primary-300: #A9C0AE;
  --primary-500: #6E8A75;
  --primary-700: #3D5744;
  --accent-050: #FAF8F4;
  --accent-100: #F2EEE6;
  --accent-200: #E7E0D3;
  --line: #DFDCD3;
  --line-strong: #C6C2B6;

  --ff-display: "Halant", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ff-body: "Titillium Web", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1.02rem;
  --fs-md: 1.16rem;
  --fs-lg: 1.4rem;
  --fs-xl: 1.85rem;
  --fs-2xl: 2.35rem;
  --fs-3xl: clamp(2.4rem, 1.5rem + 3.6vw, 4rem);

  --sp-1: 0.35rem;
  --sp-2: 0.65rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2.25rem;
  --sp-6: 3.25rem;
  --sp-7: 4.75rem;
  --sp-8: 6.5rem;

  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(31, 34, 32, 0.06);
  --shadow-md: 0 10px 30px rgba(31, 34, 32, 0.07);
  --grid-unit: 34px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

/* the measured grid: a faint floor plan graticule behind the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(76, 107, 84, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(76, 107, 84, 0.055) 1px, transparent 1px);
  background-size: var(--grid-unit) var(--grid-unit);
  mask-image: radial-gradient(circle at 50% 24%, #000 0%, rgba(0,0,0,0.35) 58%, transparent 88%);
}

body > * { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.002em;
  margin: 0 0 var(--sp-3);
  color: var(--ink);
}

h1 { font-size: var(--fs-3xl); font-weight: 500; letter-spacing: -0.012em; }
h2 { font-size: var(--fs-2xl); font-weight: 500; }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--sp-3); }
a { color: var(--primary-700); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0 0 var(--sp-3); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-1); }
small { font-size: var(--fs-xs); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-3); top: -60px;
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  z-index: 60;
  transition: top 0.16s ease;
}
.skip-link:focus { top: var(--sp-3); }

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(249, 249, 246, 0.93);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); background-color: rgba(255, 255, 255, 0.96); }
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 74px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--ff-display);
  font-size: 1.36rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark svg { flex: none; }
.wordmark span em { font-style: normal; color: var(--primary); }

.nav { margin-left: auto; }
.nav ul {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  list-style: none;
  margin: 0; padding: 0;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-sm);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--primary-300); color: var(--primary-700); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.78rem 1.35rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.btn-primary { background-color: var(--primary); color: #FFFFFF; }
.btn-primary:hover { background-color: var(--primary-700); color: #FFFFFF; transform: translateY(-1px); }
.btn-ghost {
  background-color: var(--surface);
  color: var(--primary-700);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--primary-300); background-color: var(--primary-050); }
.btn-block { width: 100%; }

/* ---------- sections ---------- */
section { padding: var(--sp-7) 0; }
.section-head { max-width: 720px; margin-bottom: var(--sp-6); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--sp-2);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 9px;
  border: 1px solid var(--primary-300);
  border-right: none;
}
.lede { font-size: var(--fs-md); color: var(--muted); }

.band-tint { background-color: var(--primary-050); border-block: 1px solid var(--line); }
.band-paper { background-color: var(--accent-050); border-block: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { padding-top: var(--sp-6); padding-bottom: var(--sp-7); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: var(--sp-6);
  align-items: center;
}
.hero h1 { margin-bottom: var(--sp-3); }
.hero h1 .rule-word {
  display: inline-block;
  border-bottom: 2px solid var(--primary-300);
  padding-bottom: 2px;
}
.hero-sub { font-size: var(--fs-md); color: var(--muted); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-5); }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background-color: var(--surface);
  border-radius: var(--r-md);
}
.trust-strip div { padding: var(--sp-3); border-right: 1px solid var(--line); }
.trust-strip div:last-child { border-right: none; }
.trust-strip strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 600;
}
.trust-strip span { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* the hero photo sits inside a drawn floor plan frame */
.plan-frame { position: relative; padding: 14px; }
.plan-frame img { border-radius: var(--r-sm); box-shadow: var(--shadow-md); }
.plan-frame::before,
.plan-frame::after {
  content: "";
  position: absolute;
  border: 1px solid var(--primary-300);
  pointer-events: none;
}
.plan-frame::before { inset: 0 34% 44% 0; border-right: none; border-bottom: none; }
.plan-frame::after { inset: 46% 0 0 36%; border-left: none; border-top: none; }

.plan-scale {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-scale i {
  display: block;
  flex: 1;
  height: 7px;
  border: 1px solid var(--line-strong);
  border-top: none;
}

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

.card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--primary-300); transform: translateY(-2px); }
.card h3 { margin-bottom: var(--sp-2); }
.card p { margin-bottom: 0; color: var(--muted); }

.cost-tag {
  display: inline-block;
  margin-top: var(--sp-3);
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-700);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-2);
  width: 100%;
}

/* feature icons */
.feature-card .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--primary-200);
  background-color: var(--primary-050);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-3);
}
.feature-card .ico svg { display: block; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: var(--sp-4); }
.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--ff-display);
  font-size: 1.5rem;
  color: var(--primary);
  border: 1px solid var(--primary-200);
  background-color: var(--surface);
  border-radius: var(--r-sm);
  width: 52px; height: 52px;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: var(--sp-1); }
.step p { color: var(--muted); margin-bottom: 0; }

/* ---------- outcomes ---------- */
.outcome {
  border-left: 3px solid var(--primary-200);
  padding-left: var(--sp-3);
}
.outcome .figure {
  font-family: var(--ff-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--primary-700);
  display: block;
  margin-bottom: var(--sp-2);
}
.outcome p { color: var(--muted); margin-bottom: 0; }

/* ---------- testimonials ---------- */
.testimonial {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  margin: 0;
}
.testimonial p { font-size: var(--fs-md); font-family: var(--ff-display); line-height: 1.45; }
.testimonial footer { font-size: var(--fs-sm); color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--sp-2); }
.testimonial footer strong { color: var(--ink); display: block; font-weight: 700; }

.results-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background-color: var(--accent-050);
}
.results-strip b { font-family: var(--ff-display); font-size: 1.9rem; display: block; color: var(--primary-700); }
.results-strip span { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- pricing ---------- */
.tier {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
}
.tier.featured { border-color: var(--primary); box-shadow: var(--shadow-md); }
.tier .badge {
  display: inline-block;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #FFFFFF;
  background-color: var(--primary);
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-2);
}
.tier .price { font-family: var(--ff-display); font-size: 2.7rem; line-height: 1; }
.tier .price small { font-family: var(--ff-body); font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.tier ul { list-style: none; padding: 0; margin: var(--sp-3) 0 var(--sp-4); }
.tier li {
  padding-left: 1.5rem;
  position: relative;
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 9px; height: 9px;
  border: 1px solid var(--primary);
  background-color: var(--primary-100);
}
.tier .btn { margin-top: auto; }
.billing-note { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--muted); }

/* ---------- faq ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  text-align: left;
  background: none;
  border: 0;
  padding: var(--sp-3) 0;
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  color: var(--ink);
  cursor: pointer;
}
.faq-item button .mark {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
  border: 1px solid var(--primary-300);
}
.faq-item button .mark::before,
.faq-item button .mark::after {
  content: "";
  position: absolute;
  background-color: var(--primary);
  transition: transform 0.2s ease;
}
.faq-item button .mark::before { left: 4px; right: 4px; top: 9.5px; height: 1.5px; }
.faq-item button .mark::after { top: 4px; bottom: 4px; left: 9.5px; width: 1.5px; }
.faq-item button[aria-expanded="true"] .mark::after { transform: scaleY(0); }
.faq-answer { padding: 0 0 var(--sp-4); color: var(--muted); max-width: 62ch; }

/* ---------- form ---------- */
.form-shell {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: var(--sp-3); }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--ink);
  background-color: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.8rem;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: #A23A2E; }
.err { display: block; color: #8E3226; font-size: var(--fs-sm); margin-top: 0.25rem; min-height: 1px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.consent { display: flex; gap: 0.65rem; align-items: flex-start; font-size: var(--fs-sm); }
.consent input { width: auto; margin-top: 0.3rem; }
.form-note { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-3); }

/* ---------- footer ---------- */
.site-footer {
  background-color: var(--accent-050);
  border-top: 1px solid var(--line-strong);
  padding: var(--sp-6) 0 var(--sp-4);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-5); }
.footer-col h4 {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.social { display: flex; gap: 0.5rem; margin-top: var(--sp-3); }
.social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background-color: var(--surface);
}
.social a:hover { border-color: var(--primary); }
.footer-base {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.byline {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ---------- prose pages ---------- */
.prose { max-width: 800px; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-5); }
.prose h3 { font-size: var(--fs-md); margin-top: var(--sp-4); }
.prose dl { margin: 0 0 var(--sp-4); }
.prose dt { font-weight: 700; margin-top: var(--sp-2); }
.prose dd { margin: 0 0 var(--sp-2); color: var(--muted); }
.page-head { padding: var(--sp-6) 0 var(--sp-4); border-bottom: 1px solid var(--line); }
.author-grid { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-5); align-items: start; }
.author-portrait { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; background-color: var(--surface); }
.map-group { margin-bottom: var(--sp-5); }
.map-group li { margin-bottom: 0.6rem; }
.map-group li span { color: var(--muted); font-size: var(--fs-sm); display: block; }

/* ---------- motion: plan lines draw, blocks settle ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@keyframes drawline { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@keyframes settle { from { opacity: 0; transform: translateY(-8px) scale(0.94); } to { opacity: 1; transform: none; } }
.plan-art .line { stroke-dasharray: 260; stroke-dashoffset: 260; }
.plan-art.is-visible .line { animation: drawline 1.5s ease forwards; }
.plan-art.is-visible .line:nth-of-type(2) { animation-delay: 0.25s; }
.plan-art.is-visible .line:nth-of-type(3) { animation-delay: 0.5s; }
.plan-art .blk { opacity: 0; }
.plan-art.is-visible .blk { animation: settle 0.55s ease forwards; animation-delay: 0.9s; }
.plan-art.is-visible .blk:nth-of-type(2) { animation-delay: 1.05s; }
.plan-art.is-visible .blk:nth-of-type(3) { animation-delay: 1.2s; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-3) var(--sp-4);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { border-right: none; border-bottom: 1px solid var(--line); }
  .trust-strip div:last-child { border-bottom: none; }
  .results-strip { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: var(--sp-6) 0; }
  .form-shell { padding: var(--sp-4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .plan-art .line { stroke-dashoffset: 0; }
  .plan-art .blk { opacity: 1; }
}

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

.mag-crumb { margin: var(--sp-5) 0 var(--sp-4); }
.mag-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0; padding: 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-crumb li + li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  margin-right: 0.5rem;
  vertical-align: middle;
  background-color: var(--line-strong);
}
.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-300); }
.mag-crumb li[aria-current] {
  color: var(--ink);
  max-width: 46ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mag-standfirst {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--muted);
  max-width: 46rem;
}

/* ---------- magazine index ---------- */
.mag-index-head {
  padding: 0 0 var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.mag-index-head h1 { max-width: 20ch; }
.mag-index-note { max-width: 44rem; color: var(--muted); margin-top: var(--sp-3); }
.mag-index { padding-top: var(--sp-6); }

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

.mag-card {
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.mag-card:hover { border-color: var(--primary-300); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.mag-card-media { display: block; border-bottom: 1px solid var(--line); background-color: var(--accent-050); }
.mag-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-text { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.mag-card-angle {
  font-size: var(--fs-xs);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--sp-2);
}
.mag-card-title {
  font-size: var(--fs-lg);
  line-height: 1.22;
  margin-bottom: var(--sp-2);
}
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary-700); text-decoration: underline; }
.mag-card-dek { color: var(--muted); font-size: var(--fs-sm); }
.mag-card-meta {
  margin: auto 0 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-byline-dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background-color: var(--line-strong);
  flex: none;
}

/* the lead card takes the full first row */
.mag-card.lead {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}
.mag-card.lead .mag-card-media {
  flex: 0 0 56%;
  border-bottom: none;
  border-right: 1px solid var(--line);
}
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: 16 / 10; }
.mag-card.lead .mag-card-text { padding: var(--sp-5); justify-content: center; }
.mag-card.lead .mag-card-title { font-size: var(--fs-2xl); font-weight: 500; }
.mag-card.lead .mag-card-dek { font-size: var(--fs-base); max-width: 42ch; }

.mag-index-cta { padding-top: var(--sp-6); }

/* ---------- article page ---------- */
.mag-article { padding-bottom: var(--sp-7); }
.mag-head { max-width: 46rem; margin-bottom: var(--sp-5); }
.mag-head h1 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.1rem); margin-bottom: var(--sp-3); }
.mag-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-byline-who { color: var(--ink); font-weight: 600; }
.mag-byline a { color: var(--primary-700); }

.mag-figure { margin: 0 0 var(--sp-6); }
.mag-figure img { width: 100%; border-radius: var(--r-sm); }
.mag-figure figcaption {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.02em;
  border-left: 2px solid var(--primary-300);
  padding-left: 0.7rem;
}

/* body typography: a measure of roughly 68 characters */
.mag-body {
  max-width: 68ch;
  font-size: var(--fs-md);
  line-height: 1.72;
}
.mag-body > * { max-width: 100%; }
.mag-body h2 {
  font-size: var(--fs-xl);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}
.mag-body h3 {
  font-size: var(--fs-lg);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}
.mag-body p { margin-bottom: var(--sp-4); }
.mag-body ul, .mag-body ol { margin: 0 0 var(--sp-4); padding-left: 1.3rem; }
.mag-body li { margin-bottom: var(--sp-2); }
.mag-body a { color: var(--primary-700); text-decoration: underline; }
.mag-body a:hover { color: var(--primary); }
.mag-body blockquote {
  margin: var(--sp-5) 0;
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-4);
  border-left: 3px solid var(--primary-300);
  background-color: var(--primary-050);
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  line-height: 1.4;
  color: var(--ink);
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--sp-5);
  font-size: var(--fs-sm);
  background-color: var(--surface);
}
.mag-body th, .mag-body td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.mag-body thead th { background-color: var(--accent-100); font-family: var(--ff-display); font-weight: 600; }

/* the contextual read on links dropped into the body */
.mag-body .inline-read,
.inline-read {
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  background-color: var(--accent-050);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.inline-read a { color: var(--primary-700); }

/* ---------- call to action after the body ---------- */
.mag-cta {
  max-width: 68ch;
  margin: var(--sp-6) 0 0;
  padding: var(--sp-5);
  background-color: var(--primary-050);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: var(--r-md);
}
.mag-cta h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.mag-cta p { color: var(--muted); }
.mag-cta p:last-child { margin-bottom: 0; margin-top: var(--sp-4); }
.mag-index-cta .mag-cta { max-width: none; margin-top: 0; }

/* ---------- author box ---------- */
.mag-author {
  max-width: 68ch;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--sp-4);
  align-items: start;
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.mag-author-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background-color: var(--accent-050);
}
.mag-author-text h2 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.mag-author-text p { color: var(--muted); font-size: var(--fs-sm); }
.mag-author-text p:last-child { margin-bottom: 0; }

/* ---------- read also ---------- */
.mag-related {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-strong);
}
.mag-related > h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-5);
}
.mag-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}
.mag-rel {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.mag-rel:hover { border-color: var(--primary-300); transform: translateY(-2px); }
.mag-rel-media { display: block; background-color: var(--accent-050); border-bottom: 1px solid var(--line); }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-title { font-size: var(--fs-md); line-height: 1.25; margin: var(--sp-4) var(--sp-4) var(--sp-2); }
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary-700); text-decoration: underline; }
.mag-rel-dek {
  margin: 0 var(--sp-4) var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.mag-rel-meta {
  margin: auto var(--sp-4) var(--sp-4);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-related-all { margin-top: var(--sp-5); font-weight: 600; font-size: var(--fs-sm); }

/* ---------- the home page magazine section ---------- */
#magazine .mag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#magazine .mag-card-title { font-size: var(--fs-md); }
.mag-home-all { margin-top: var(--sp-5); }

/* ---------- author page article list ---------- */
.mag-list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
.mag-list li {
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}
.mag-list li:first-child { border-top: 1px solid var(--line); }
.mag-list a { font-family: var(--ff-display); font-size: var(--fs-md); color: var(--ink); text-decoration: none; }
.mag-list a:hover { color: var(--primary-700); text-decoration: underline; }
.mag-list time {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- magazine responsive ---------- */
@media (max-width: 960px) {
  .mag-grid, .mag-related-grid, #magazine .mag-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: none; border-bottom: 1px solid var(--line); }
  .mag-card.lead .mag-card-media img { height: auto; aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card-text { padding: var(--sp-4); }
  .mag-author { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .mag-grid, .mag-related-grid, #magazine .mag-grid { grid-template-columns: 1fr; }
  .mag-body { font-size: var(--fs-base); }
  .mag-card.lead .mag-card-title { font-size: var(--fs-xl); }
  .mag-cta, .mag-author { padding: var(--sp-4); }
  .mag-crumb li[aria-current] { max-width: 100%; white-space: normal; }
  .mag-author-photo { width: 128px; height: 128px; }
  .mag-body table, .mag-body thead th { font-size: var(--fs-xs); }
  .mag-figure { margin-left: calc(-1 * var(--sp-4)); margin-right: calc(-1 * var(--sp-4)); }
  .mag-figure img { border-radius: 0; }
  .mag-figure figcaption { margin-left: var(--sp-4); margin-right: var(--sp-4); }
}

@media (max-width: 420px) {
  .mag-byline { gap: 0.4rem; letter-spacing: 0.04em; }
  .mag-head h1 { font-size: 1.72rem; }
  .mag-related > h2, .mag-cta h2 { font-size: var(--fs-lg); }
}


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