/* ============================================================
   CareCircleLog design system
   Steady comfort: warm oatmeal, heather blue, soft coral.
   Motif: the care circle, a ring of people around one parent.
   Texture: faint ruled notebook lines, the shared family log.
   ============================================================ */

:root {
  /* brief palette */
  --bg: #F8F7F5;
  --surface: #FFFFFF;
  --ink: #1F232A;
  --primary: #3D5A80;
  --accent: #EE8B72;
  --muted: #5E6570;

  /* derived tints and shades */
  --primary-deep: #2C4360;
  --primary-soft: #6C87AC;
  --primary-wash: #EAEFF6;
  --primary-line: rgba(61, 90, 128, 0.22);
  --accent-deep: #D96A4E;
  --accent-wash: #FCEEE9;
  --oat: #EFEAE1;
  --oat-deep: #E2DACB;
  --oat-line: rgba(160, 146, 122, 0.34);
  --ink-soft: rgba(31, 35, 42, 0.72);
  --hairline: rgba(31, 35, 42, 0.13);
  --rule: rgba(61, 90, 128, 0.07);

  /* spacing scale, generous by design */
  --s1: 0.375rem;
  --s2: 0.75rem;
  --s3: 1.125rem;
  --s4: 1.625rem;
  --s5: 2.25rem;
  --s6: 3.25rem;
  --s7: 4.5rem;
  --s8: 6.5rem;

  /* radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-round: 999px;

  /* shadows, soft and layered */
  --sh-1: 0 1px 2px rgba(31, 35, 42, 0.05), 0 2px 10px rgba(31, 35, 42, 0.04);
  --sh-2: 0 2px 6px rgba(31, 35, 42, 0.05), 0 14px 34px rgba(44, 67, 96, 0.09);
  --sh-3: 0 4px 12px rgba(31, 35, 42, 0.06), 0 26px 60px rgba(44, 67, 96, 0.14);

  /* type scale */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-md: 1.1875rem;
  --t-lg: 1.375rem;
  --t-xl: clamp(1.5rem, 1.2rem + 1.3vw, 2rem);
  --t-2xl: clamp(1.85rem, 1.4rem + 2.1vw, 2.7rem);
  --t-3xl: clamp(2.3rem, 1.6rem + 3.4vw, 3.6rem);
  --t-num: clamp(2.6rem, 1.9rem + 3.6vw, 4rem);

  /* fonts */
  --font-display: "Vollkorn", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  /* motion, gentle and generous */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 260ms;
  --t-mid: 460ms;
  --t-slow: 720ms;

  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }

body {
  margin: 0;
  background-color: var(--bg);
  /* ruled log paper: faint horizontal rules plus two warm washes */
  background-image:
    radial-gradient(58rem 34rem at 88% -6%, var(--accent-wash) 0%, rgba(252, 238, 233, 0) 62%),
    radial-gradient(52rem 40rem at -10% 8%, var(--primary-wash) 0%, rgba(234, 239, 246, 0) 58%),
    repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 34px);
  background-attachment: scroll, scroll, scroll;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.72;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 var(--s3);
  text-wrap: balance;
}

h1 { font-size: var(--t-3xl); letter-spacing: -0.02em; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); }

p { margin: 0 0 var(--s3); }
p.lede { font-size: var(--t-md); color: var(--ink-soft); max-width: 62ch; }

a { color: var(--primary-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

strong { font-weight: 700; }

ul, ol { margin: 0 0 var(--s3); padding-left: 1.35rem; }
li { margin-bottom: var(--s1); }

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

::selection { background: var(--accent-wash); color: var(--ink); }

.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(--s3); top: -100px;
  z-index: 200;
  background: var(--primary-deep);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: var(--s3); color: #fff; }

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

section { padding-block: var(--s7); }
@media (min-width: 900px) { section { padding-block: var(--s8); } }

/* ---------- the care circle motif ---------- */
.motif {
  position: relative;
  width: 58px; height: 58px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: grid;
  place-items: center;
}
.motif::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px dotted var(--primary-line);
}
.motif::after {
  content: "";
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- section headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin: 0 0 var(--s2);
}
.eyebrow::before {
  content: "";
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background:
    radial-gradient(circle at 50% 50%, var(--accent) 0 3px, transparent 3px);
}
.sec-head { max-width: 44rem; margin-bottom: var(--s6); }
.sec-head p { color: var(--muted); font-size: var(--t-md); margin-bottom: 0; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--t-base);
  font-weight: 700;
  line-height: 1.2;
  padding: 1.05rem 1.85rem;
  border-radius: var(--r-round);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-mid) var(--ease),
              color var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              transform var(--t-mid) var(--ease);
}
.btn-primary {
  background: var(--primary-deep);
  color: #fff;
  box-shadow: var(--sh-2);
}
.btn-primary:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--primary-deep);
  border-color: var(--primary-line);
}
.btn-ghost:hover { background: var(--primary-wash); color: var(--primary-deep); border-color: var(--primary); }
.btn-accent {
  background: var(--accent);
  color: #26150F;
  box-shadow: var(--sh-1);
}
.btn-accent:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 0.7rem 1.25rem; font-size: var(--t-sm); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 245, 0.92);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow var(--t-slow) var(--ease), background-color var(--t-slow) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(44, 67, 96, 0.08); background: rgba(248, 247, 245, 0.98); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-block: 0.95rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark svg { width: 38px; height: 38px; flex: 0 0 auto; }
.wordmark span b { color: var(--primary-deep); font-weight: 700; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 2px solid var(--primary-line);
  border-radius: var(--r-round);
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  color: var(--primary-deep);
}
.nav-toggle svg { width: 24px; height: 24px; }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin: 0; padding: 0;
}
.site-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: var(--t-sm);
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: border-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.site-nav a:hover { color: var(--primary-deep); border-bottom-color: var(--accent); }

@media (max-width: 899px) {
  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--sh-2);
    padding: var(--s3) 1.25rem var(--s4);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--hairline); }
  .site-nav a { display: block; padding: 0.95rem 0.25rem; font-size: var(--t-md); }
  .header-cta { display: none; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
}

/* ---------- hero ---------- */
.hero { padding-block: var(--s6) var(--s7); position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -190px; right: -150px;
  width: 460px; height: 460px;
  border-radius: 50%;
  border: 2px dashed var(--primary-line);
  opacity: 0.55;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: var(--s6);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.02fr 0.98fr; gap: var(--s7); }
}
.hero-copy h1 { margin-bottom: var(--s3); }
.hero-copy h1 .accent-word {
  color: var(--primary-deep);
  background-image: linear-gradient(transparent 68%, var(--accent-wash) 68% 96%, transparent 96%);
  padding-inline: 0.08em;
}
.hero-copy .lede { font-size: 1.25rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }

.trust-strip {
  list-style: none;
  margin: 0; padding: var(--s3) 0 0;
  border-top: 2px solid var(--oat-line);
  display: grid;
  gap: var(--s2);
}
@media (min-width: 620px) { .trust-strip { grid-template-columns: repeat(3, 1fr); gap: var(--s3); } }
.trust-strip li {
  margin: 0;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: 1.5;
}
.trust-strip li::before {
  content: "";
  margin-top: 0.35rem;
  width: 13px; height: 13px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: radial-gradient(circle at 50% 50%, var(--accent) 0 2.5px, transparent 2.5px);
}
.trust-strip b { display: block; color: var(--ink); font-size: var(--t-base); }

/* photo frames: a window with a rounded, stitched edge */
.photo-frame {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: 10px;
  box-shadow: var(--sh-3);
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--r-xl) - 12px);
  border: 1px dashed rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.photo-frame img { border-radius: calc(var(--r-xl) - 8px); width: 100%; }
.photo-badge {
  position: absolute;
  left: -18px; bottom: 34px;
  background: var(--surface);
  border: 2px solid var(--oat-deep);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 17rem;
}
.photo-badge p { margin: 0; font-size: var(--t-xs); color: var(--muted); line-height: 1.45; }
.photo-badge b { display: block; color: var(--ink); font-size: var(--t-sm); }
@media (max-width: 620px) { .photo-badge { left: 8px; bottom: -14px; } }

/* ---------- panels and cards ---------- */
.panel-oat {
  background:
    repeating-linear-gradient(to bottom, var(--oat-line) 0 1px, transparent 1px 36px),
    var(--oat);
  border-block: 1px solid var(--oat-deep);
}
.panel-blue {
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 36px),
    linear-gradient(168deg, var(--primary-deep) 0%, var(--primary) 100%);
  color: #F4F6FA;
}
.panel-blue h2, .panel-blue h3 { color: #FFFFFF; }
.panel-blue .eyebrow { color: #E7C8BC; }
.panel-blue .eyebrow::before { border-color: var(--accent); }
.panel-blue .sec-head p { color: rgba(244, 246, 250, 0.86); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s4) var(--s4);
  box-shadow: var(--sh-1);
  transition: box-shadow var(--t-slow) var(--ease), border-color var(--t-slow) var(--ease);
}
.card:hover { box-shadow: var(--sh-2); border-color: var(--primary-line); }
/* notebook divider tab */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: var(--s4);
  width: 62px; height: 9px;
  border-radius: 0 0 7px 7px;
  background: var(--accent);
}
.card:nth-child(2n)::before { background: var(--primary); }
.card:nth-child(3n)::before { background: var(--oat-deep); }
.card h3 { margin-bottom: var(--s2); }
.card p { color: var(--muted); margin-bottom: 0; }

.grid-2 { display: grid; gap: var(--s4); }
.grid-3 { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- problem section ---------- */
.problem-layout { display: grid; gap: var(--s6); }
@media (min-width: 1000px) {
  .problem-layout { grid-template-columns: 0.85fr 1.15fr; gap: var(--s7); align-items: start; }
  .problem-layout .sec-head { position: sticky; top: 7.5rem; margin-bottom: 0; }
}
.cost-tag {
  display: inline-block;
  margin-top: var(--s3);
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-weight: 700;
  color: var(--primary-deep);
  border-top: 2px solid var(--accent);
  padding-top: 0.5rem;
}

/* ---------- steps ---------- */
.steps-layout { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 1000px) { .steps-layout { grid-template-columns: 1.05fr 0.95fr; gap: var(--s7); } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  counter-increment: step;
  padding: 0 0 var(--s5) 4.6rem;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -0.2rem;
  width: 3.1rem; height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-deep);
}
.steps li::after {
  content: "";
  position: absolute;
  left: 1.5rem; top: 3.2rem; bottom: 0.6rem;
  border-left: 2px dashed var(--primary-line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--muted); margin-bottom: 0; }

/* ---------- features ---------- */
.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s4);
  box-shadow: var(--sh-1);
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.feature-icon {
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-wash);
  border: 2px solid var(--primary-line);
  margin-bottom: var(--s3);
}
.feature-icon svg { width: 34px; height: 34px; stroke: var(--primary-deep); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature:nth-child(3n+2) .feature-icon { background: var(--accent-wash); border-color: rgba(217, 106, 78, 0.34); }
.feature:nth-child(3n+2) .feature-icon svg { stroke: var(--accent-deep); }
.feature:nth-child(3n) .feature-icon { background: var(--oat); border-color: var(--oat-deep); }
.feature h3 { margin-bottom: var(--s1); }
.feature p { color: var(--muted); margin-bottom: 0; font-size: var(--t-base); }

/* ---------- outcomes ---------- */
.outcome {
  position: relative;
  padding-top: var(--s4);
  border-top: 3px solid rgba(255, 255, 255, 0.28);
}
.outcome-number {
  font-family: var(--font-display);
  font-size: var(--t-num);
  font-weight: 700;
  line-height: 1;
  color: #FFFFFF;
  display: block;
  margin-bottom: var(--s2);
  letter-spacing: -0.03em;
}
.outcome-number em { font-style: normal; color: var(--accent); }
.outcome h3 { font-size: var(--t-lg); margin-bottom: var(--s2); }
.outcome p { color: rgba(244, 246, 250, 0.88); margin-bottom: 0; font-size: var(--t-base); }

/* ---------- testimonials ---------- */
.testimonial {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s4) var(--s4);
  margin: 0;
  box-shadow: var(--sh-1);
  background-image: repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 36px);
  background-position: 0 var(--s6);
}
.testimonial::before {
  content: "";
  position: absolute;
  top: -14px; left: var(--s4);
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--surface) radial-gradient(circle at 50% 50%, var(--accent) 0 6px, transparent 6px);
}
.testimonial p {
  font-family: var(--font-display);
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: var(--s3);
}
.testimonial footer {
  border-top: 2px solid var(--oat-deep);
  padding-top: var(--s2);
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: 1.5;
}
.testimonial footer b { display: block; color: var(--ink); font-size: var(--t-base); font-weight: 700; }

.results-strip {
  list-style: none;
  margin: var(--s6) 0 0;
  padding: var(--s5) var(--s4);
  background: var(--surface);
  border: 2px solid var(--oat-deep);
  border-radius: var(--r-lg);
  display: grid;
  gap: var(--s4);
  text-align: center;
}
@media (min-width: 760px) { .results-strip { grid-template-columns: repeat(3, 1fr); } }
.results-strip li { margin: 0; }
.results-strip b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2.2vw, 2.9rem);
  line-height: 1.05;
  color: var(--primary-deep);
  margin-bottom: 0.35rem;
}
.results-strip span { font-size: var(--t-sm); color: var(--muted); }
@media (min-width: 760px) {
  .results-strip li + li { border-left: 2px dotted var(--oat-deep); }
}

/* ---------- pricing ---------- */
.pricing-grid { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 980px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s3); } }
.tier {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--oat-deep);
  border-radius: var(--r-xl);
  padding: var(--s5) var(--s4) var(--s4);
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier--featured {
  border-color: var(--primary);
  box-shadow: var(--sh-3);
  background:
    radial-gradient(30rem 14rem at 50% 0%, var(--primary-wash) 0%, rgba(234, 239, 246, 0) 70%),
    var(--surface);
}
.tier-flag {
  position: absolute;
  top: -0.95rem; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #26150F;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--r-round);
  white-space: nowrap;
}
.tier h3 { font-size: var(--t-xl); margin-bottom: 0.2rem; }
.tier .tier-for { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s3); }
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-display);
  margin-bottom: var(--s3);
  padding-bottom: var(--s3);
  border-bottom: 2px dotted var(--oat-deep);
}
.tier-price b { font-size: clamp(2.4rem, 1.9rem + 2vw, 3.1rem); line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.tier-price span { font-family: var(--font-body); font-size: var(--t-sm); color: var(--muted); }
.tier ul { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.tier li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.65rem;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  line-height: 1.55;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.34rem;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: radial-gradient(circle at 50% 50%, var(--accent) 0 3.5px, transparent 3.5px);
}
.tier .btn { margin-top: auto; }
.billing-note {
  margin: var(--s5) auto 0;
  max-width: 46rem;
  text-align: center;
  font-size: var(--t-sm);
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--primary-line);
  border-radius: var(--r-md);
  padding: var(--s3);
}

/* ---------- faq ---------- */
.faq-list { max-width: 54rem; margin-inline: auto; border-top: 2px solid var(--oat-deep); }
.faq-item { border-bottom: 2px solid var(--oat-deep); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  background: none;
  border: 0;
  padding: var(--s4) 0.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--t-mid) var(--ease);
}
.faq-q:hover { color: var(--primary-deep); }
.faq-sign {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  margin-top: 0.15rem;
  border-radius: 50%;
  border: 2px solid var(--primary);
  position: relative;
  transition: background-color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.faq-sign::before, .faq-sign::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--primary-deep);
  transform: translate(-50%, -50%);
  transition: opacity var(--t-mid) var(--ease);
}
.faq-sign::before { width: 15px; height: 2.5px; }
.faq-sign::after { width: 2.5px; height: 15px; }
.faq-q[aria-expanded="true"] .faq-sign { background: var(--accent); border-color: var(--accent-deep); }
.faq-q[aria-expanded="true"] .faq-sign::after { opacity: 0; }
.faq-a { padding: 0 0.25rem var(--s4); max-width: 62ch; }
.faq-a p { color: var(--muted); margin-bottom: 0; }
.faq-a[hidden] { display: none; }

/* ---------- contact ---------- */
.contact-layout { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: 0.9fr 1.1fr; gap: var(--s7); } }
.contact-points { list-style: none; margin: var(--s4) 0 0; padding: 0; }
.contact-points li {
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: var(--s3);
  color: rgba(244, 246, 250, 0.9);
  font-size: var(--t-base);
}
.contact-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.32rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: radial-gradient(circle at 50% 50%, rgba(238, 139, 114, 0.9) 0 4px, transparent 4px);
}
.form-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s5) var(--s4);
  box-shadow: var(--sh-3);
  color: var(--ink);
}
@media (min-width: 700px) { .form-card { padding: var(--s6) var(--s5); } }
.field { margin-bottom: var(--s3); }
.field label { display: block; font-weight: 700; font-size: var(--t-sm); margin-bottom: 0.4rem; color: var(--ink); }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-xs); margin-top: 0.15rem; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--t-base);
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--oat-deep);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  transition: border-color var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--primary-deep) 50%), linear-gradient(135deg, var(--primary-deep) 50%, transparent 50%);
  background-position: calc(100% - 22px) 1.45rem, calc(100% - 15px) 1.45rem;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-right: 3rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); background: var(--surface); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--accent-deep); background: var(--accent-wash); }
.field-error { display: block; color: #A83C22; font-size: var(--t-sm); font-weight: 600; margin-top: 0.35rem; }
.field-error[hidden] { display: none; }
.field-2 { display: grid; gap: var(--s3); }
@media (min-width: 620px) { .field-2 { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: var(--s4); }
.consent input { width: 24px; height: 24px; margin-top: 0.28rem; accent-color: var(--primary-deep); flex: 0 0 auto; }
.consent label { font-weight: 400; font-size: var(--t-sm); color: var(--muted); }
.form-foot { margin: var(--s3) 0 0; font-size: var(--t-sm); color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  background: #1B2029;
  color: #D9DEE6;
  padding-block: var(--s7) var(--s4);
  background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 36px);
}
.footer-grid { display: grid; gap: var(--s5); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--s5); } }
.site-footer h2 { font-size: var(--t-md); color: #FFFFFF; margin-bottom: var(--s3); letter-spacing: 0.02em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: #D9DEE6; text-decoration: none; font-size: var(--t-sm); }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-brand .wordmark { color: #FFFFFF; margin-bottom: var(--s2); }
.footer-brand p { color: #A8B1BE; font-size: var(--t-sm); max-width: 30ch; }
.social-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--s3); }
.social-row a {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.24);
  display: grid;
  place-items: center;
  transition: border-color var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease);
}
.social-row a:hover { background: var(--primary-deep); border-color: var(--accent); }
.social-row svg { width: 22px; height: 22px; stroke: #E7ECF3; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-base {
  margin-top: var(--s6);
  padding-top: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  justify-content: space-between;
  font-size: var(--t-xs);
  color: #97A1AF;
}

/* ---------- author byline ---------- */
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 6px solid var(--accent);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
  margin-top: var(--s6);
  font-size: var(--t-sm);
  color: var(--muted);
}
.byline b { color: var(--ink); }

/* ---------- prose pages ---------- */
.page-head { padding-block: var(--s6) var(--s5); border-bottom: 1px solid var(--hairline); }
.breadcrumb { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s2); }
.breadcrumb a { color: var(--primary-deep); }
.prose { padding-block: var(--s6); }
.prose h2 { font-size: var(--t-xl); margin-top: var(--s5); }
.prose h3 { font-size: var(--t-md); margin-top: var(--s4); }
.prose p, .prose li { color: var(--ink-soft); max-width: 72ch; }
.prose ul, .prose ol { max-width: 72ch; }
.fact-list {
  list-style: none;
  padding: var(--s4);
  margin: var(--s4) 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}
.fact-list li { display: grid; gap: 0.1rem; margin-bottom: var(--s2); }
.fact-list b { font-size: var(--t-sm); text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary-deep); }
.author-layout { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 900px) { .author-layout { grid-template-columns: 300px 1fr; gap: var(--s6); } }
.author-portrait { border-radius: var(--r-lg); border: 2px solid var(--oat-deep); box-shadow: var(--sh-2); }
.map-group { margin-bottom: var(--s5); }
.map-group ul { list-style: none; padding: 0; }
.map-group li { padding: var(--s2) 0; border-bottom: 1px dotted var(--oat-deep); }
.map-group a { font-weight: 700; }
.map-group span { display: block; color: var(--muted); font-size: var(--t-sm); }
.mini-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.js-on .reveal { transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal, html:not(.js-on) .reveal { opacity: 1; transform: none; }

@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 !important; transform: none !important; }
  .btn:hover, .feature:hover { transform: none !important; }
}

/* ============================================================
   Kitchen Table Care: the magazine
   Same tokens, same typefaces. The card is a page torn from the
   shared log: ruled paper, an oat edge, one coral thread on top.
   ============================================================ */

/* current section in the header and footer */
.site-nav a[aria-current="page"] {
  color: var(--primary-deep);
  border-bottom-color: var(--accent);
}
@media (min-width: 900px) and (max-width: 1099px) {
  .site-nav ul { gap: var(--s3); }
  .site-nav a { font-size: var(--t-xs); }
}

/* ---------- shared magazine pieces ---------- */
.mag-crumb { margin-bottom: var(--s4); }
.mag-crumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0; padding: 0;
  font-size: var(--t-sm);
  color: var(--muted);
}
.mag-crumb li { margin: 0; display: flex; align-items: baseline; gap: 0.55rem; }
.mag-crumb li + li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}
.mag-crumb a { color: var(--primary-deep); font-weight: 600; }
.mag-crumb li:last-child { color: var(--muted); }

.mag-kicker {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin: 0 0 var(--s2);
}
.mag-standfirst {
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: var(--s4);
}

/* ---------- magazine masthead ---------- */
.mag-masthead {
  padding-block: var(--s6) var(--s5);
  background:
    radial-gradient(46rem 26rem at 12% 0%, var(--primary-wash) 0%, rgba(234, 239, 246, 0) 66%),
    linear-gradient(to bottom, var(--oat) 0%, rgba(239, 234, 225, 0) 100%);
  border-bottom: 1px solid var(--hairline);
}
.mag-masthead-inner { max-width: 52rem; }
.mag-masthead h1 { margin-bottom: var(--s3); }
.mag-masthead .mag-standfirst { font-size: var(--t-lg); color: var(--ink); margin-bottom: var(--s3); }
.mag-masthead-note {
  max-width: 58ch;
  color: var(--muted);
  font-size: var(--t-sm);
  margin-bottom: 0;
  padding-top: var(--s3);
  border-top: 2px solid var(--oat-deep);
}

/* ---------- index grid ---------- */
.mag-index { padding-block: var(--s6) var(--s7); }
.mag-grid { display: grid; gap: var(--s4); }

.mag-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--oat-deep);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  position: relative;
  transition: box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.mag-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--accent);
  z-index: 2;
}
.mag-card:nth-child(3n+2)::before { background: var(--primary); }
.mag-card:nth-child(3n)::before { background: var(--oat-deep); }
.mag-card:hover { box-shadow: var(--sh-2); border-color: var(--primary-line); transform: translateY(-3px); }

.mag-card-media { background: var(--oat); overflow: hidden; }
.mag-card-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.mag-card:hover .mag-card-media img { transform: scale(1.02); }

.mag-card-copy {
  padding: var(--s4) var(--s4) var(--s4);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.mag-card-title { font-size: var(--t-lg); line-height: 1.22; margin-bottom: var(--s2); }
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary-deep); text-decoration: underline; text-underline-offset: 3px; }
.mag-card-dek {
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: 1.62;
  margin-bottom: var(--s3);
}
.mag-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: var(--t-xs);
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: auto 0 var(--s2);
  padding-top: var(--s2);
  border-top: 1px dotted var(--oat-deep);
}
.mag-sep {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.mag-card-more {
  font-weight: 700;
  font-size: var(--t-sm);
  color: var(--primary-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.mag-card-more::after {
  content: "";
  width: 16px; height: 2px;
  background: var(--accent);
  transition: width var(--t-mid) var(--ease);
}
.mag-card-more:hover { color: var(--accent-deep); }
.mag-card-more:hover::after { width: 26px; }

/* the lead card carries the newest report */
.mag-card.lead { border-color: var(--primary-line); box-shadow: var(--sh-2); }
.mag-card.lead .mag-card-copy { padding: var(--s5) var(--s4); }
.mag-card.lead .mag-card-title { font-size: var(--t-xl); }
.mag-card.lead .mag-card-dek { font-size: var(--t-base); color: var(--ink-soft); }
.mag-card.lead .mag-kicker { color: var(--accent-deep); }

@media (min-width: 700px) {
  .mag-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-card.lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
  .mag-card.lead .mag-card-media { flex: 0 0 46%; }
  .mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 20rem; }
  .mag-card.lead .mag-card-copy { justify-content: center; padding: var(--s5); }
}
@media (min-width: 1080px) {
  .mag-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
  .mag-card.lead .mag-card-media { flex: 0 0 52%; }
  .mag-card.lead .mag-card-title { font-size: var(--t-2xl); }
}

/* ---------- article header ---------- */
.mag-head {
  padding-block: var(--s6) var(--s5);
  background:
    radial-gradient(44rem 24rem at 88% 0%, var(--accent-wash) 0%, rgba(252, 238, 233, 0) 64%),
    linear-gradient(to bottom, var(--oat) 0%, rgba(239, 234, 225, 0) 100%);
  border-bottom: 1px solid var(--hairline);
}
.mag-head-inner { max-width: 46rem; }
.mag-head h1 { font-size: var(--t-2xl); margin-bottom: var(--s3); }
.mag-head .mag-standfirst { font-size: var(--t-lg); line-height: 1.5; color: var(--ink); }

.mag-byline {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-top: var(--s3);
  border-top: 2px solid var(--oat-deep);
}
.mag-byline .motif { width: 46px; height: 46px; }
.mag-byline .motif::after { width: 12px; height: 12px; }
.mag-byline-text { margin: 0; font-size: var(--t-sm); }
.mag-author-line { display: block; font-weight: 700; color: var(--ink); font-size: var(--t-base); }
.mag-author-line a { color: var(--ink); text-decoration-color: var(--accent); }
.mag-author-line a:hover { color: var(--primary-deep); }
.mag-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  color: var(--muted);
  font-size: var(--t-xs);
  letter-spacing: 0.02em;
  margin-top: 0.2rem;
}
.mag-meta > span { display: inline-flex; align-items: center; gap: 0.45rem; }
.mag-meta > span + span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

.mag-figure {
  margin: var(--s5) 0 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--oat-deep);
  box-shadow: var(--sh-2);
  background: var(--oat);
}
.mag-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- article body ---------- */
.mag-body {
  max-width: 68ch;
  margin: var(--s6) 0 var(--s6);
  font-size: var(--t-md);
  line-height: 1.78;
  color: var(--ink);
}
.mag-body > p { margin-bottom: var(--s4); }
.mag-body p, .mag-body li { overflow-wrap: break-word; }
.mag-body h2 {
  font-size: var(--t-xl);
  margin-top: var(--s6);
  margin-bottom: var(--s3);
  padding-top: var(--s3);
  border-top: 2px solid var(--oat-deep);
  position: relative;
}
.mag-body h2::before {
  content: "";
  position: absolute;
  top: -7px; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}
.mag-body h2:first-child { margin-top: 0; }
.mag-body h3 {
  font-size: var(--t-lg);
  margin-top: var(--s5);
  margin-bottom: var(--s2);
  color: var(--primary-deep);
}
.mag-body ul, .mag-body ol { margin: 0 0 var(--s4); padding-left: 0; list-style: none; }
.mag-body ul li, .mag-body ol li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: var(--s2);
}
.mag-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}
.mag-body ol { counter-reset: magstep; }
.mag-body ol li { counter-increment: magstep; }
.mag-body ol li::before {
  content: counter(magstep);
  position: absolute;
  left: 0; top: 0.16em;
  width: 1.4rem; height: 1.4rem;
  border-radius: 50%;
  background: var(--primary-wash);
  color: var(--primary-deep);
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.mag-body strong { color: var(--ink); font-weight: 700; }
.mag-body a { color: var(--primary-deep); text-decoration-color: var(--accent); }
.mag-body a:hover { color: var(--accent-deep); }
.mag-body blockquote {
  margin: var(--s5) 0;
  padding: var(--s4) var(--s4) var(--s4) var(--s5);
  background: var(--primary-wash);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display);
  font-size: var(--t-lg);
  line-height: 1.5;
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s4) 0 var(--s5);
  font-size: var(--t-sm);
  background: var(--surface);
  border: 1px solid var(--oat-deep);
  border-radius: var(--r-md);
  overflow: hidden;
}
.mag-body th, .mag-body td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--hairline); }
.mag-body th { background: var(--oat); font-weight: 700; }
.mag-body tr:last-child td { border-bottom: 0; }

/* the keep reading note dropped between sections */
.inline-read {
  margin: var(--s5) 0;
  padding: var(--s3) var(--s4);
  background: var(--surface);
  border: 1px solid var(--oat-deep);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  box-shadow: var(--sh-1);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1.55;
  color: var(--muted);
}
.inline-read a { color: var(--primary-deep); font-weight: 700; text-decoration-color: var(--accent); }
.inline-read a:hover { color: var(--accent-deep); }

/* ---------- call to action after the body ---------- */
.mag-cta {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  max-width: 68ch;
  margin: 0 0 var(--s5);
  padding: var(--s5) var(--s4);
  background: var(--primary-deep);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
  color: #FFFFFF;
}
.mag-cta .motif { border-color: rgba(255, 255, 255, 0.6); }
.mag-cta .motif::before { border-color: rgba(255, 255, 255, 0.32); }
.mag-cta .eyebrow { color: #E7C8BC; }
.mag-cta .eyebrow::before { border-color: var(--accent); }
.mag-cta h2 { color: #FFFFFF; font-size: var(--t-xl); margin-bottom: var(--s2); }
.mag-cta p { color: rgba(244, 246, 250, 0.88); margin-bottom: var(--s4); }
.mag-cta .btn-primary { background: var(--accent); color: #26150F; }
.mag-cta .btn-primary:hover { background: var(--accent-deep); color: #FFFFFF; }
.mag-cta--index { max-width: none; margin-top: var(--s6); }

/* ---------- author box ---------- */
.mag-authorbox {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  max-width: 68ch;
  margin: 0 0 var(--s6);
  padding: var(--s4);
  background: var(--oat);
  border: 1px solid var(--oat-deep);
  border-radius: var(--r-lg);
}
.mag-authorbox-photo {
  width: 96px; height: 96px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: var(--sh-1);
}
.mag-authorbox-copy h2 { font-size: var(--t-lg); margin-bottom: var(--s2); }
.mag-authorbox-copy p { color: var(--muted); font-size: var(--t-sm); line-height: 1.65; margin-bottom: var(--s2); }
.mag-authorbox-copy a { font-weight: 700; font-size: var(--t-sm); color: var(--primary-deep); }

/* ---------- read also ---------- */
.mag-related {
  padding-block: var(--s6);
  border-top: 1px solid var(--hairline);
  background:
    radial-gradient(40rem 22rem at 90% 100%, var(--primary-wash) 0%, rgba(234, 239, 246, 0) 68%);
}
.mag-related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.mag-related-head h2 { font-size: var(--t-xl); margin-bottom: 0; }
.mag-related-grid { display: grid; gap: var(--s4); }
.mag-rel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--oat-deep);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.mag-rel:hover { box-shadow: var(--sh-2); border-color: var(--primary-line); transform: translateY(-3px); }
.mag-rel-media { background: var(--oat); }
.mag-rel-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mag-rel-copy { padding: var(--s3) var(--s4) var(--s4); display: flex; flex-direction: column; flex: 1 1 auto; }
.mag-rel-title { font-size: var(--t-md); line-height: 1.28; margin-bottom: var(--s2); }
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary-deep); text-decoration: underline; text-underline-offset: 3px; }
.mag-rel-dek {
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: 1.58;
  margin-bottom: var(--s3);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mag-rel-meta {
  margin: auto 0 0;
  padding-top: var(--s2);
  border-top: 1px dotted var(--oat-deep);
  font-size: var(--t-xs);
  color: var(--muted);
}
@media (min-width: 760px) { .mag-related-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- home page magazine strip ---------- */
.mag-home-grid { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .mag-home-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .mag-home-grid { grid-template-columns: repeat(3, 1fr); } }
.mag-home-foot { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

/* ---------- author page article list ---------- */
.mag-list { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.mag-list li {
  padding: var(--s2) 0;
  border-bottom: 1px dotted var(--oat-deep);
  display: grid;
  gap: 0.15rem;
}
.mag-list a { font-weight: 700; text-decoration-color: var(--accent); }
.mag-list time { display: block; color: var(--muted); font-size: var(--t-sm); }

/* ---------- narrow screens, down to 360 ---------- */
@media (max-width: 560px) {
  .mag-head, .mag-masthead { padding-block: var(--s5) var(--s4); }
  .mag-head h1 { font-size: var(--t-xl); }
  .mag-head .mag-standfirst, .mag-masthead .mag-standfirst { font-size: var(--t-base); }
  .mag-body { font-size: var(--t-base); line-height: 1.72; margin-block: var(--s5); }
  .mag-body h2 { font-size: var(--t-lg); margin-top: var(--s5); }
  .mag-figure { border-radius: var(--r-lg); }
  .mag-byline { flex-direction: column; align-items: flex-start; gap: var(--s2); }
  .mag-cta, .mag-authorbox { flex-direction: column; gap: var(--s3); padding: var(--s4) var(--s3); }
  .mag-cta { border-radius: var(--r-lg); }
  .mag-cta .btn { width: 100%; text-align: center; }
  .mag-card-copy, .mag-card.lead .mag-card-copy { padding: var(--s3); }
  .mag-related-head { align-items: flex-start; }
  .mag-body blockquote { padding: var(--s3); font-size: var(--t-md); }
  .mag-body table { display: block; overflow-x: auto; }
  .mag-related-head .btn { width: 100%; }
}

/* the article runs in a narrower column than the rest of the site */
.mag-head .wrap,
.mag-article > .wrap { max-width: 58rem; }
.mag-home-foot p { margin: 0; color: var(--muted); font-size: var(--t-sm); max-width: 46ch; }



/* Network strip: five sibling products, rotated so every site is linked the same
   number of times. Spans the full footer grid rather than adding a fifth column,
   because each footer declares a fixed column count and a fifth item would wrap. */
.site-network { grid-column: 1 / -1; flex-basis: 100%; width: 100%;
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.site-network h2 { font: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.7rem; opacity: 0.72; }
.site-network ul { list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-network li + li { margin-top: 0; }
.site-network a { font-size: 0.86rem; text-decoration: none; opacity: 0.9;
  border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { opacity: 1; border-bottom-color: currentColor; }
@media (max-width: 620px) { .site-network ul { gap: 0.45rem 1.1rem; } }


/* Decorative bleed guard. Several sections intentionally hang a rotated or offset
   pseudo element past the viewport edge. overflow-x: clip contains them without
   creating a scroll container, so position: sticky keeps working, unlike overflow
   hidden. Genuine content overflow is still reported by the element level check in
   the browser pass. */
html { overflow-x: clip; }
body { overflow-x: clip; }


/* Wide content on phones. Class names for the prose wrapper differ from site to site,
   so this targets tables and pre blocks directly: they scroll inside their own box
   rather than pushing cells past the right edge, per the build contract. */
@media (max-width: 700px) {
  table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { overflow-wrap: anywhere; }
  pre { overflow-x: auto; max-width: 100%; }
}
