/* StemCount design system. Garden editorial: blush petal, deep garden green, stem rules. */

:root {
  --bg: #FBF9F7;
  --surface: #FFFFFF;
  --ink: #1E221C;
  --primary: #3E5F3C;
  --accent: #EBB7BE;
  --muted: #616658;

  --primary-050: #F2F6F1;
  --primary-100: #E3EBE1;
  --primary-200: #C9D8C6;
  --primary-300: #A8BFA4;
  --primary-600: #35522F;
  --accent-050: #FDF4F5;
  --accent-100: #F9E5E8;
  --accent-200: #F3D2D7;
  --paper: #F6F2EE;
  --line: #DCD8D2;
  --line-soft: #ECE8E3;

  --font-display: "Sorts Mill Goudy", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Commissioner", "Helvetica Neue", Arial, system-ui, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0125rem;
  --step-1: 1.1875rem;
  --step-2: 1.4rem;
  --step-3: 1.75rem;
  --step-4: 2.2rem;
  --step-5: clamp(2.4rem, 1.5rem + 3.4vw, 4.05rem);

  --sp-1: 0.35rem;
  --sp-2: 0.7rem;
  --sp-3: 1.05rem;
  --sp-4: 1.6rem;
  --sp-5: 2.4rem;
  --sp-6: 3.6rem;
  --sp-7: 5.4rem;
  --sp-8: 7.2rem;

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(30, 34, 28, 0.06), 0 2px 10px rgba(30, 34, 28, 0.04);
  --shadow-md: 0 10px 34px rgba(30, 34, 28, 0.09);
  --wrap: 1180px;
}

*, *::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;
  /* petal texture: two faint blooms of blush and green over the paper ground */
  background-image:
    radial-gradient(circle at 12% 4%, var(--accent-050) 0, rgba(251, 249, 247, 0) 34%),
    radial-gradient(circle at 92% 18%, var(--primary-050) 0, rgba(251, 249, 247, 0) 28%);
  background-repeat: no-repeat;
}

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

h1 { font-size: var(--step-5); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--sp-3); }
a { color: var(--primary-600); }
a:hover { color: var(--ink); }

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

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.4rem, 760px); margin-inline: auto; }

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

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

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

/* ---------- stem rule motif ---------- */
.stem-rule {
  display: block;
  height: 22px;
  border: 0;
  margin: var(--sp-4) 0;
  background-image:
    linear-gradient(to right, var(--primary-200) 0 100%),
    radial-gradient(circle, var(--accent-200) 0 46%, rgba(255, 255, 255, 0) 47%);
  background-size: 100% 1px, 11px 11px;
  background-position: left 50%, left 50%;
  background-repeat: no-repeat, no-repeat;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin: 0 0 var(--sp-2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background-color: var(--primary-300);
  flex: none;
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  text-decoration: none;
  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;
  border-color: var(--primary);
}
.btn-primary:hover { background-color: var(--primary-600); color: #FFFFFF; transform: translateY(-2px); }
.btn-ghost {
  background-color: var(--surface);
  color: var(--primary-600);
  border-color: var(--primary-200);
}
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 249, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
  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(--font-display);
  font-size: 1.42rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark:hover { color: var(--primary-600); }
.wordmark svg { flex: none; }

.nav { margin-left: auto; }
.nav ul {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  list-style: none;
  margin: 0; padding: 0;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.header-cta { margin-left: var(--sp-3); }

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

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-3) 1.2rem var(--sp-4);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .header-cta { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: var(--sp-7) 0 var(--sp-6); position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-6);
  align-items: center;
}
.hero h1 { margin-bottom: var(--sp-4); max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--primary-600); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-5); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  list-style: none;
  margin: 0; padding: var(--sp-3) 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.trust-strip li { display: flex; align-items: center; gap: 0.45rem; }
.trust-strip li::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 1px solid var(--primary-300);
  flex: none;
}

.hero-figure { position: relative; }
.hero-figure img {
  display: block;
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.hero-figure figcaption {
  position: absolute;
  left: -12px; bottom: 22px;
  background-color: var(--surface);
  border: 1px solid var(--primary-200);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  max-width: 250px;
}
.hero-figure figcaption strong { color: var(--ink); font-weight: 600; }

/* growing stem behind the hero */
.stem-art {
  position: absolute;
  right: -30px; top: -40px;
  width: 220px; height: 320px;
  pointer-events: none;
  opacity: 0.5;
}
.stem-art path { stroke: var(--primary-200); fill: none; stroke-width: 1.4; }
.stem-art circle { fill: var(--accent-200); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero { padding-top: var(--sp-5); }
  .hero-figure figcaption { left: 10px; }
}

/* ---------- sections ---------- */
section { padding: var(--sp-7) 0; }
.band-paper { background-color: var(--paper); border-block: 1px solid var(--line-soft); }
.band-tint { background-color: var(--primary-050); border-block: 1px solid var(--primary-100); }
.band-petal { background-color: var(--accent-050); border-block: 1px solid var(--accent-100); }

.section-head { max-width: 720px; margin-bottom: var(--sp-5); }

/* ---------- cards ---------- */
.grid { display: grid; gap: var(--sp-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); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.card h3 { margin-bottom: var(--sp-2); }
.card p { margin-bottom: 0; color: var(--muted); }

.cost-card { border-top: 3px solid var(--accent); }
.cost-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary-600);
  background-color: var(--primary-050);
  border: 1px solid var(--primary-100);
  border-radius: var(--r-pill);
  padding: 0.25rem 0.7rem;
  margin-top: var(--sp-3);
}

.icon-card .ic {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--primary-200);
  border-radius: 50%;
  background-color: var(--primary-050);
  margin-bottom: var(--sp-3);
}
.ic svg { stroke: var(--primary); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: var(--sp-4); }
.step {
  position: relative;
  padding-left: 3.4rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: var(--sp-4);
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary-600);
  background-color: var(--surface);
  border: 1px solid var(--primary-200);
  border-radius: 50%;
}
.step h3 { margin-bottom: var(--sp-1); }
.step p { color: var(--muted); margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split img {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: block;
}

/* ---------- outcomes ---------- */
.outcome {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary-300);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}
.outcome .num {
  font-family: var(--font-display);
  font-size: 2.7rem;
  line-height: 1;
  color: var(--primary-600);
  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-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  margin: 0;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.testimonial::before {
  content: "";
  position: absolute; top: 0; left: var(--sp-4);
  width: 34px; height: 10px;
  background-image: radial-gradient(circle, var(--accent) 0 45%, rgba(255, 255, 255, 0) 46%);
  background-size: 10px 10px;
  background-repeat: repeat-x;
}
.testimonial p { font-size: 1.06rem; }
.testimonial footer {
  border-top: 1px solid var(--line-soft);
  padding-top: var(--sp-3);
  font-size: 0.9rem;
  color: var(--muted);
}
.testimonial footer strong { display: block; color: var(--ink); font-size: 0.98rem; }

.results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-4);
  text-align: center;
}
@media (max-width: 640px) { .results { grid-template-columns: 1fr; } }
.results b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.1rem;
  color: var(--primary-600);
}
.results span { font-size: 0.9rem; color: var(--muted); }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); align-items: start; }
@media (max-width: 940px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier.is-recommended {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
  background-color: var(--surface);
}
.tier .badge {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--primary-600);
  background-color: var(--accent-100);
  border-radius: var(--r-pill);
  padding: 0.28rem 0.75rem;
  margin-bottom: var(--sp-2);
}
.tier .price {
  font-family: var(--font-display);
  font-size: 2.9rem;
  line-height: 1;
  color: var(--ink);
}
.tier .per { font-size: 0.92rem; color: var(--muted); }
.tier ul {
  list-style: none;
  margin: var(--sp-4) 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.96rem;
  color: var(--muted);
  flex: 1;
}
.tier li { padding-left: 1.5rem; position: relative; }
.tier li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50% 0 50% 50%;
  background-color: var(--accent);
  transform: rotate(45deg);
}
.billing-note {
  margin-top: var(--sp-4);
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  text-align: left;
  background-color: transparent;
  border: 0;
  padding: var(--sp-4) 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--ink);
  cursor: pointer;
}
.faq-q .mark {
  flex: none;
  width: 26px; height: 26px;
  border: 1px solid var(--primary-200);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--primary-600);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.faq-q[aria-expanded="true"] .mark { transform: rotate(45deg); background-color: var(--primary-050); }
.faq-a { padding: 0 0 var(--sp-4); color: var(--muted); max-width: 70ch; }
.faq-a[hidden] { display: none; }

/* ---------- 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-sm);
}
.field { margin-bottom: var(--sp-3); }
.field label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.72rem 0.85rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: #A33A46; }
.err { display: block; color: #8E2F3A; font-size: 0.86rem; margin-top: 0.3rem; }
.err:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.consent input { width: auto; margin-top: 0.25rem; }
.form-alt { font-size: 0.9rem; color: var(--muted); margin-top: var(--sp-3); }

/* ---------- footer ---------- */
.site-footer {
  background-color: var(--primary-050);
  border-top: 1px solid var(--primary-100);
  padding: var(--sp-6) 0 var(--sp-4);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--sp-5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2, .site-footer h3 { font-size: 0.82rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink); margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: 0.94rem; }
.site-footer a:hover { color: var(--primary-600); text-decoration: underline; }
.footer-about p { color: var(--muted); font-size: 0.94rem; max-width: 34ch; }
.socials { display: flex; gap: 0.6rem; margin-top: var(--sp-3); }
.socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--primary-200);
  border-radius: 50%;
  background-color: var(--surface);
}
.socials svg { stroke: var(--primary-600); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.socials a:hover { border-color: var(--primary); }
.footer-base {
  margin-top: var(--sp-5);
  border-top: 1px solid var(--primary-100);
  padding-top: var(--sp-3);
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
  justify-content: space-between;
  font-size: 0.87rem;
  color: var(--muted);
}

.byline {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background-color: var(--surface);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  margin-top: var(--sp-6);
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- prose pages ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: 1.65rem; margin-top: var(--sp-5); }
.prose h3 { font-size: 1.22rem; margin-top: var(--sp-4); }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose p { color: var(--muted); }
.page-head { padding: var(--sp-6) 0 var(--sp-4); border-bottom: 1px solid var(--line); }
.dl-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem var(--sp-4); margin: 0 0 var(--sp-4); }
.dl-facts dt { font-weight: 600; }
.dl-facts dd { margin: 0; color: var(--muted); }

.author-grid { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-5); align-items: start; }
@media (max-width: 780px) { .author-grid { grid-template-columns: 1fr; } }
.author-portrait {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: block;
}

.map-group { margin-bottom: var(--sp-5); }
.map-group ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.map-group li { border-bottom: 1px dotted var(--line); padding-bottom: 0.55rem; }
.map-group span { display: block; color: var(--muted); font-size: 0.9rem; }

/* ---------- reveal motion: stems draw up, petals fade in ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.75, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stem { clip-path: inset(100% 0 0 0); transition: clip-path 0.9s ease, opacity 0.6s ease; opacity: 0; }
.reveal-stem.is-visible { clip-path: inset(0 0 0 0); opacity: 1; }

@keyframes petal-in { from { opacity: 0; transform: translateY(10px) rotate(-2deg); } to { opacity: 1; transform: none; } }
.petal-in { animation: petal-in 0.8s ease both; }

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

/* ============================================================
   Stem and Ledger, the magazine. Extends the tokens above.
   ============================================================ */

.mag-crumb { padding: var(--sp-4) 0 0; font-size: var(--step--1); color: var(--muted); }
.mag-crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; }
.mag-crumb li + li::before { content: "/"; color: var(--primary-300); margin-right: 0.45rem; }
.mag-crumb a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.mag-crumb a:hover { color: var(--primary-600); }
.mag-crumb [aria-current="page"] { color: var(--ink); }

/* ---------- article header ---------- */
.mag-head { padding: var(--sp-4) 0 var(--sp-3); }
.mag-head h1 { font-size: clamp(2rem, 1.2rem + 3.1vw, 3.2rem); max-width: 20ch; max-width: 22ch; }
.mag-head .eyebrow { color: var(--primary-600); }
.mag-standfirst {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
  max-width: 60ch;
}
.mag-byline { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); align-items: baseline; }
.mag-by { margin: 0; font-weight: 600; }
.mag-by a { text-decoration: none; border-bottom: 1px solid var(--accent); }
.mag-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem var(--sp-3); font-size: var(--step--1); color: var(--muted); }
.mag-meta span + span::before { content: ""; }

.mag-figure { margin: var(--sp-4) 0 var(--sp-5); }
.mag-figure img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.mag-figure figcaption {
  margin-top: var(--sp-2);
  font-size: var(--step--1);
  color: var(--muted);
  max-width: 68ch;
}

/* ---------- article body ---------- */
.mag-body { max-width: 68ch; margin-inline: auto; font-size: 1.06rem; line-height: 1.72; }
.mag-body > p { color: var(--ink); margin-bottom: var(--sp-3); }
.mag-body h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem); margin: var(--sp-5) 0 var(--sp-2); }
.mag-body h3 { font-size: var(--step-2); margin: var(--sp-4) 0 var(--sp-2); }
.mag-body h2 + p, .mag-body h3 + p { margin-top: 0; }
.mag-body ul, .mag-body ol { margin: 0 0 var(--sp-3); padding-left: 1.25rem; }
.mag-body li { margin-bottom: 0.45rem; }
.mag-body a { text-underline-offset: 2px; }
.mag-body blockquote {
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  background-color: var(--accent-050);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--ink);
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%; border-collapse: collapse; margin: var(--sp-4) 0;
  font-size: 0.95rem; background-color: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.mag-body th, .mag-body td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line-soft); }
.mag-body th { background-color: var(--primary-050); font-weight: 600; }
.mag-body tr:last-child td { border-bottom: 0; }

.inline-read {
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  background-color: var(--primary-050);
  border: 1px solid var(--primary-100);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-md);
  font-size: 0.97rem;
  color: var(--muted);
}
.inline-read a { font-weight: 600; }

/* ---------- call to action ---------- */
.mag-cta {
  margin: var(--sp-6) 0 var(--sp-5);
  padding: var(--sp-5) var(--sp-4);
  background-color: var(--accent-050);
  border: 1px solid var(--accent-200);
  border-radius: var(--r-lg);
  text-align: center;
}
.mag-cta h2 { margin-top: 0; font-size: var(--step-3); }
.mag-cta p { color: var(--muted); max-width: 52ch; margin-inline: auto; }

/* ---------- author box ---------- */
.mag-author {
  display: grid; grid-template-columns: 120px 1fr; gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.mag-author img { border-radius: var(--r-pill); border: 1px solid var(--line); display: block; }
.mag-author p { font-size: 0.96rem; color: var(--muted); }
.mag-author-name { font-family: var(--font-display); font-size: var(--step-2); color: var(--ink); margin-bottom: var(--sp-1); }

/* ---------- read also ---------- */
.mag-related { margin: var(--sp-6) 0 var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.mag-related h2 { font-size: var(--step-3); }
.mag-related-grid, .mag-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(3, 1fr); }
.mag-rel {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.mag-rel:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.mag-rel-media { display: block; }
.mag-rel-media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-title { font-size: var(--step-1); line-height: 1.22; margin: var(--sp-3) var(--sp-3) var(--sp-2); }
.mag-rel-title a { text-decoration: none; }
.mag-rel-title a:hover { text-decoration: underline; }
.mag-rel-dek { margin: 0 var(--sp-3) var(--sp-2); font-size: 0.92rem; color: var(--muted); }
.mag-rel-meta { margin: auto var(--sp-3) var(--sp-3); font-size: var(--step--1); color: var(--muted); }

/* ---------- magazine index ---------- */
.mag-index-head { padding: var(--sp-4) 0 var(--sp-4); }
.mag-index-head h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); }
.mag-index-note { max-width: 66ch; color: var(--muted); }
.mag-index { padding-bottom: var(--sp-7); }
.mag-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.mag-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.mag-card-media { display: block; }
.mag-card-media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-body { padding: var(--sp-3) var(--sp-4) var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.mag-kicker {
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--primary-600); margin-bottom: var(--sp-2);
}
.mag-card-title { font-size: var(--step-2); line-height: 1.2; margin-bottom: var(--sp-2); }
.mag-card-title a { text-decoration: none; color: var(--ink); }
.mag-card-title a:hover { color: var(--primary-600); text-decoration: underline; }
.mag-card-dek { color: var(--muted); font-size: 0.95rem; margin-bottom: var(--sp-3); }
.mag-card-meta {
  margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem var(--sp-3);
  font-size: var(--step--1); color: var(--muted);
  border-top: 1px solid var(--line-soft); padding-top: var(--sp-2);
}
.mag-card.lead { grid-column: 1 / -1; }
.mag-card.lead .mag-card-media img { aspect-ratio: 21 / 9; }
.mag-card.lead .mag-card-body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.mag-card.lead .mag-card-title { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); max-width: 26ch; }
.mag-card.lead .mag-card-dek { font-size: 1.05rem; max-width: 62ch; }

/* ---------- home page teaser ---------- */
.mag-teaser-head { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: end; justify-content: space-between; }
.mag-more { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }

@media (max-width: 960px) {
  .mag-related-grid, .mag-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mag-related-grid, .mag-grid { grid-template-columns: 1fr; }
  .mag-body { font-size: 1.02rem; }
  .mag-author { grid-template-columns: 1fr; }
  .mag-author img { width: 96px; height: 96px; }
  .mag-cta { padding: var(--sp-4) var(--sp-3); }
  .mag-card.lead .mag-card-media img { aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card-body { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
}


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