/* TableCadence design system. Quiet studio: warm sand, soft white, slate blue.
   Light mode only. Contrast comes from type, rules, tints and photography. */

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #1F2126;
  --primary: #41627E;
  --accent: #DCC7AE;
  --muted: #63666D;

  --primary-rgb: 65, 98, 126;
  --accent-rgb: 220, 199, 174;
  --ink-rgb: 31, 33, 38;

  --primary-wash: rgba(65, 98, 126, 0.06);
  --primary-tint: rgba(65, 98, 126, 0.12);
  --primary-line: rgba(65, 98, 126, 0.24);
  --primary-solid: rgba(65, 98, 126, 1);
  --primary-deep: rgba(48, 74, 96, 1);
  --accent-wash: rgba(220, 199, 174, 0.30);
  --accent-solid: rgba(220, 199, 174, 1);
  --sand-line: rgba(31, 33, 38, 0.10);
  --sand-hair: rgba(31, 33, 38, 0.06);

  --font-display: "Rosarivo", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Cabin", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: 1.9rem;
  --step-4: 2.35rem;
  --step-5: clamp(2.4rem, 1.5rem + 3.4vw, 4rem);

  --sp-1: 0.4rem;
  --sp-2: 0.75rem;
  --sp-3: 1.15rem;
  --sp-4: 1.8rem;
  --sp-5: 2.75rem;
  --sp-6: 4.25rem;
  --sp-7: 6.5rem;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 34px;

  --shadow-soft: 0 1px 2px rgba(31, 33, 38, 0.04), 0 14px 34px rgba(65, 98, 126, 0.08);
  --shadow-lift: 0 2px 4px rgba(31, 33, 38, 0.05), 0 24px 56px rgba(65, 98, 126, 0.13);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--bg);
  /* folded linen: two hairline weaves plus a soft fold running down the page */
  background-image:
    repeating-linear-gradient(90deg, rgba(31, 33, 38, 0.028) 0 1px, rgba(255, 255, 255, 0) 1px 5px),
    repeating-linear-gradient(0deg, rgba(31, 33, 38, 0.022) 0 1px, rgba(255, 255, 255, 0) 1px 5px),
    linear-gradient(100deg, rgba(220, 199, 174, 0.22) 0%, rgba(250, 247, 242, 0) 38%, rgba(65, 98, 126, 0.05) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.004em;
  margin: 0 0 var(--sp-3);
}
h1 { font-size: var(--step-5); line-height: 1.08; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 var(--sp-3); max-width: 68ch; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-deep); }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.15rem; }
li { margin-bottom: 0.35rem; }
hr { border: 0; border-top: 1px solid var(--sand-line); margin: var(--sp-5) 0; }

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

.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; z-index: 200;
  background-color: var(--surface); color: var(--primary);
  padding: 0.7rem 1.2rem; border: 1px solid var(--primary-line);
  border-radius: var(--r-sm); font-weight: 700; transition: top 0.4s ease;
}
.skip-link:focus { top: var(--sp-3); }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background-color: rgba(250, 247, 242, 0.90);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--sand-hair);
  transition: box-shadow 0.6s ease, background-color 0.6s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--sand-line), 0 12px 30px rgba(65, 98, 126, 0.07); }
.header-inner { display: flex; align-items: center; gap: var(--sp-4); min-height: 74px; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.wordmark svg { width: 32px; height: 32px; flex: none; }
.wordmark span { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.02em; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: var(--sp-4); list-style: none; margin: 0; padding: 0; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: 0.98rem; letter-spacing: 0.02em;
  padding: 0.35rem 0; border-bottom: 2px solid rgba(255, 255, 255, 0); transition: color 0.5s ease, border-color 0.5s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--ink); border-bottom-color: var(--accent-solid); }
.header-cta { margin-left: var(--sp-3); }
.nav-toggle {
  display: none; margin-left: auto; background-color: var(--surface);
  border: 1px solid var(--primary-line); border-radius: var(--r-sm);
  padding: 0.5rem 0.6rem; cursor: pointer; color: var(--primary);
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: 0.015em;
  padding: 0.82rem 1.5rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0); transition: transform 0.5s ease, box-shadow 0.6s ease, background-color 0.6s ease, color 0.6s ease;
}
.btn-primary { background-color: var(--primary-solid); color: #FFFFFF; box-shadow: 0 10px 24px rgba(65, 98, 126, 0.22); }
.btn-primary:hover { background-color: var(--primary-deep); color: #FFFFFF; transform: translateY(-1px); }
.btn-ghost { background-color: var(--surface); color: var(--primary); border-color: var(--primary-line); }
.btn-ghost:hover { background-color: var(--primary-wash); }
.btn-quiet { background-color: var(--accent-wash); color: var(--ink); }
.btn-quiet:hover { background-color: var(--accent-solid); }
.btn-block { width: 100%; }

/* ---------- section shell ---------- */
.section { padding: var(--sp-7) 0; position: relative; }
.section-tint { background-color: rgba(255, 255, 255, 0.62); border-top: 1px solid var(--sand-hair); border-bottom: 1px solid var(--sand-hair); }
.eyebrow {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary);
  display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: var(--sp-2);
}
.eyebrow::before {
  content: ""; width: 30px; height: 2px; border-radius: 2px;
  background-color: var(--accent-solid);
}
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.7; }
.section-head { max-width: 720px; margin-bottom: var(--sp-5); }

/* ---------- hero ---------- */
.hero { padding: var(--sp-6) 0 var(--sp-7); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -12% -30% auto; width: 44rem; height: 44rem;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(220, 199, 174, 0.35), rgba(250, 247, 242, 0) 68%);
  animation: breathe 11s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.09); opacity: 1; }
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: var(--sp-6); align-items: center; position: relative; z-index: 1; }
.hero h1 span.pulse { color: var(--primary); position: relative; }
.hero h1 span.pulse::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.34em;
  background-color: var(--accent-wash); border-radius: 0.2em; z-index: -1;
  animation: breathe 9s ease-in-out infinite;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); 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(--sand-line); }
.trust-strip li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.94rem; color: var(--muted); margin: 0; }
.trust-strip svg { width: 18px; height: 18px; flex: none; color: var(--primary); }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--r-xl); box-shadow: var(--shadow-lift); }
.hero-figure::before {
  content: ""; position: absolute; inset: -14px -14px 34px 26px; border-radius: var(--r-xl);
  border: 1px solid var(--primary-line); z-index: -1;
}
.hero-card {
  position: absolute; left: -22px; bottom: -30px; background-color: var(--surface);
  border: 1px solid var(--sand-line); border-radius: var(--r-lg); padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-soft); max-width: 270px;
}
.hero-card strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--primary); }
.hero-card span { font-size: 0.9rem; color: var(--muted); line-height: 1.5; display: block; }

/* ---------- cards ---------- */
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background-color: var(--surface); border: 1px solid var(--sand-line);
  border-radius: var(--r-lg); padding: var(--sp-4);
  box-shadow: var(--shadow-soft); transition: transform 0.7s ease, box-shadow 0.7s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: var(--sp-2); }
.card p:last-child { margin-bottom: 0; }
.cost {
  display: inline-block; margin-top: var(--sp-2); font-weight: 700; font-size: 0.9rem;
  color: var(--primary); background-color: var(--primary-wash);
  padding: 0.3rem 0.75rem; border-radius: 999px;
}
.icon-wrap {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background-color: var(--accent-wash); margin-bottom: var(--sp-3);
}
.icon-wrap svg { width: 26px; height: 26px; color: var(--primary); }

/* ---------- steps ---------- */
.steps-layout { display: grid; grid-template-columns: 1fr 0.9fr; gap: var(--sp-6); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative; padding: 0 0 var(--sp-4) 4.2rem; counter-increment: step;
  border-left: 1px solid var(--primary-line); margin-left: 1.4rem;
}
.steps li:last-child { border-left-color: rgba(255, 255, 255, 0); padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: -1.4rem; top: 0;
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background-color: var(--surface); border: 1px solid var(--primary-line);
  color: var(--primary); font-family: var(--font-display); font-size: 1.2rem;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: 0.35rem; }
.section-figure img { border-radius: var(--r-xl); box-shadow: var(--shadow-lift); }
.section-figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: var(--sp-2); }

/* ---------- outcomes ---------- */
.outcome { border-top: 2px solid var(--accent-solid); padding-top: var(--sp-3); }
.outcome .big {
  font-family: var(--font-display); font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.3rem);
  color: var(--primary); line-height: 1; display: block; margin-bottom: var(--sp-2);
}

/* ---------- testimonials ---------- */
.testimonial {
  background-color: var(--surface); border: 1px solid var(--sand-line);
  border-radius: var(--r-lg); padding: var(--sp-4); margin: 0;
  box-shadow: var(--shadow-soft); position: relative;
}
.testimonial::before {
  content: ""; position: absolute; top: var(--sp-4); left: var(--sp-4); width: 34px; height: 8px;
  border-radius: 999px; background-color: var(--accent-solid);
}
.testimonial p { margin: var(--sp-4) 0 var(--sp-3); font-size: 1.05rem; }
.testimonial footer { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.testimonial footer strong { display: block; color: var(--ink); font-size: 1rem; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-5);
  border-top: 1px solid var(--sand-line); padding-top: var(--sp-4); }
.results div { text-align: center; }
.results b { font-family: var(--font-display); font-size: 2.1rem; color: var(--primary); display: block; font-weight: 400; }
.results span { font-size: 0.92rem; color: var(--muted); }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); align-items: start; }
.tier {
  background-color: var(--surface); border: 1px solid var(--sand-line);
  border-radius: var(--r-lg); padding: var(--sp-5) var(--sp-4); display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.tier.featured { border: 1px solid var(--primary-line); box-shadow: var(--shadow-lift); background-color: rgba(255, 255, 255, 1); }
.tier.featured::before {
  content: "Recommended"; align-self: flex-start; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary);
  background-color: var(--primary-wash); padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: var(--sp-2);
}
.price { font-family: var(--font-display); font-size: 2.7rem; color: var(--ink); line-height: 1; }
.price small { font-family: var(--font-body); font-size: 0.95rem; color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: var(--sp-3) 0 var(--sp-4); }
.tier li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.98rem; }
.tier li svg { width: 17px; height: 17px; flex: none; margin-top: 0.4rem; color: var(--primary); }
.tier .btn { margin-top: auto; }
.billing-note { margin-top: var(--sp-4); font-size: 0.95rem; color: var(--muted); text-align: center; }

/* ---------- faq ---------- */
.faq-item { border-bottom: 1px solid var(--sand-line); }
.faq-q {
  width: 100%; text-align: left; background-color: rgba(255, 255, 255, 0); border: 0;
  font-family: var(--font-display); font-size: var(--step-1); color: var(--ink);
  padding: var(--sp-3) 2.5rem var(--sp-3) 0; cursor: pointer; position: relative; line-height: 1.35;
}
.faq-q::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.5s ease;
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 3rem var(--sp-4) 0; color: var(--muted); }
.faq-a[hidden] { display: none; }

/* ---------- form ---------- */
.contact-shell {
  background-color: var(--surface); border: 1px solid var(--sand-line);
  border-radius: var(--r-xl); padding: var(--sp-5); box-shadow: var(--shadow-lift);
}
.field { margin-bottom: var(--sp-3); }
.field label { display: block; font-weight: 700; font-size: 0.93rem; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background-color: var(--bg); border: 1px solid var(--sand-line); border-radius: var(--r-md);
  padding: 0.72rem 0.9rem; transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); outline: none;
}
.field [aria-invalid="true"] { border-color: #A03A2E; }
.err { display: block; color: #A03A2E; font-size: 0.86rem; margin-top: 0.3rem; min-height: 1rem; }
.consent { display: flex; gap: 0.65rem; align-items: flex-start; margin: var(--sp-3) 0; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 0.2rem; }
.consent label { font-size: 0.92rem; font-weight: 400; color: var(--muted); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-3); }
.after-form { margin-top: var(--sp-3); font-size: 0.92rem; color: var(--muted); }

/* ---------- author byline ---------- */
.byline {
  display: flex; gap: var(--sp-3); align-items: center; margin-top: var(--sp-6);
  border-top: 1px solid var(--sand-line); padding-top: var(--sp-4); font-size: 0.95rem; color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer {
  background-color: rgba(220, 199, 174, 0.22);
  border-top: 1px solid var(--sand-line); padding: var(--sp-6) 0 var(--sp-3); margin-top: var(--sp-7);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-5); }
.footer-col h2 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--sp-3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 0.96rem; }
.footer-col a:hover { text-decoration: underline; color: var(--primary); }
.socials { display: flex; gap: 0.6rem; margin-top: var(--sp-3); }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background-color: var(--surface); border: 1px solid var(--sand-line); color: var(--primary);
  transition: transform 0.5s ease, background-color 0.5s ease;
}
.socials a:hover { transform: translateY(-2px); background-color: var(--primary-wash); }
.socials svg { width: 18px; height: 18px; }
.footer-base {
  margin-top: var(--sp-5); border-top: 1px solid var(--sand-line); padding-top: var(--sp-3);
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); justify-content: space-between;
  font-size: 0.9rem; color: var(--muted);
}

/* ---------- prose pages ---------- */
.page-head { padding: var(--sp-6) 0 var(--sp-4); border-bottom: 1px solid var(--sand-line); }
.prose h2 { margin-top: var(--sp-5); font-size: var(--step-3); }
.prose h3 { margin-top: var(--sp-4); }
.prose ul { max-width: 68ch; }
.fact-list { list-style: none; padding: 0; }
.fact-list li { border-bottom: 1px solid var(--sand-hair); padding: 0.5rem 0; }
.map-group { margin-bottom: var(--sp-5); }
.map-group ul { list-style: none; padding: 0; }
.map-group li { border-left: 2px solid var(--accent-solid); padding: 0.3rem 0 0.3rem 0.9rem; margin-bottom: 0.6rem; }
.portrait { border-radius: var(--r-lg); box-shadow: var(--shadow-soft); width: 220px; }
.author-top { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-5); align-items: start; }
.profile-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.profile-links a {
  display: inline-block; background-color: var(--surface); border: 1px solid var(--sand-line);
  border-radius: 999px; padding: 0.4rem 1rem; text-decoration: none; font-size: 0.93rem;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1.4s ease, transform 1.4s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .steps-layout, .grid-3, .tiers, .footer-grid, .author-top { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr; }
  .nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    background-color: var(--surface); border-bottom: 1px solid var(--sand-line); padding: var(--sp-3) var(--sp-4);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: var(--sp-2); }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .hero-card { position: static; margin-top: var(--sp-4); max-width: none; }
  .portrait { width: 100%; max-width: 260px; }
}
@media (max-width: 620px) {
  .grid-2, .form-2 { grid-template-columns: 1fr; }
  .section { padding: var(--sp-6) 0; }
  .contact-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; }
}

/* ================= The Quiet Table: the magazine =================
   Same tokens, same typefaces, same light surfaces as the rest of the site. */

/* ---------- breadcrumb ---------- */
.mag-crumb { padding: var(--sp-4) 0 0; }
.mag-crumb ol {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  gap: 0.35rem 0.7rem; font-size: 0.86rem; color: var(--muted);
}
.mag-crumb li { margin: 0; display: flex; align-items: center; gap: 0.7rem; }
.mag-crumb li + li::before {
  content: ""; width: 14px; height: 1px; background-color: var(--primary-line); display: block;
}
.mag-crumb a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--sand-line); }
.mag-crumb a:hover { color: var(--primary); border-bottom-color: var(--primary-line); }
.mag-crumb li[aria-current] {
  color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- magazine masthead ---------- */
.mag-masthead { padding: var(--sp-5) 0 var(--sp-4); position: relative; overflow: hidden; }
.mag-masthead::after {
  content: ""; position: absolute; inset: auto -8% -60% auto; width: 34rem; height: 34rem;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(220, 199, 174, 0.32), rgba(250, 247, 242, 0) 70%);
  animation: breathe 12s ease-in-out infinite;
}
.mag-masthead .wrap { position: relative; z-index: 1; }
.mag-masthead h1 { max-width: 16ch; }
.mag-masthead-note { max-width: 62ch; color: var(--muted); border-top: 1px solid var(--sand-line); padding-top: var(--sp-3); margin-top: var(--sp-4); }

/* ---------- index grid ---------- */
.mag-index { padding-top: var(--sp-5); }
.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5) var(--sp-4); }
.mag-card {
  background-color: var(--surface); border: 1px solid var(--sand-line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft); transition: transform 0.7s ease, box-shadow 0.7s ease;
}
.mag-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.mag-card-media { display: block; background-color: var(--accent-wash); }
.mag-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1 1 auto; }
.mag-kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 var(--sp-2);
}
.mag-card-title { font-size: var(--step-2); line-height: 1.22; margin: 0 0 var(--sp-2); }
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary); }
.mag-card-dek { color: var(--muted); font-size: 0.97rem; margin-bottom: var(--sp-3); }
.mag-card-meta {
  margin: auto 0 0; font-size: 0.85rem; color: var(--muted);
  display: flex; align-items: center; gap: 0.6rem; border-top: 1px solid var(--sand-hair); padding-top: var(--sp-2);
}
.mag-byline-dot { width: 4px; height: 4px; border-radius: 50%; background-color: var(--accent-solid); display: inline-block; flex: none; }

.mag-card.lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.mag-card.lead .mag-card-media { flex: 0 0 56%; }
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 340px; }
.mag-card.lead .mag-card-body { padding: var(--sp-5); justify-content: center; }
.mag-card.lead .mag-card-title { font-size: var(--step-4); }
.mag-card.lead .mag-card-dek { font-size: var(--step-1); line-height: 1.6; }

.mag-index-foot {
  margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--sand-line);
  color: var(--muted); max-width: none;
}

/* ---------- article header ---------- */
.mag-head { padding: var(--sp-4) var(--sp-4) var(--sp-4); max-width: 900px; }
.mag-head h1 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.05rem); margin-bottom: var(--sp-3); }
.mag-standfirst {
  font-family: var(--font-display); font-style: italic; font-size: var(--step-2);
  line-height: 1.5; color: var(--muted); max-width: 60ch;
}
.mag-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 0.85rem;
  font-size: 0.9rem; color: var(--muted);
  border-top: 1px solid var(--sand-line); border-bottom: 1px solid var(--sand-line);
  padding: var(--sp-2) 0; margin-top: var(--sp-4);
}
.mag-byline-name { color: var(--ink); font-weight: 600; }
.mag-byline a { color: var(--primary); }

.mag-figure { margin: var(--sp-4) 0 var(--sp-6); }
.mag-figure img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r-xl); box-shadow: var(--shadow-lift);
}

/* ---------- article body typography ---------- */
.mag-body { max-width: 68ch; margin: 0 auto; font-size: 1.09rem; line-height: 1.78; }
.mag-body > * { max-width: 100%; }
.mag-body p { max-width: 100%; margin: 0 0 var(--sp-3); }
.mag-body h2 {
  font-size: var(--step-3); line-height: 1.24; margin: var(--sp-6) 0 var(--sp-3);
  padding-top: var(--sp-3); border-top: 1px solid var(--sand-line);
}
.mag-body h3 { font-size: var(--step-1); margin: var(--sp-5) 0 var(--sp-2); }
.mag-body ul, .mag-body ol { margin: 0 0 var(--sp-4); padding-left: 1.35rem; }
.mag-body li { margin-bottom: 0.5rem; }
.mag-body blockquote {
  margin: var(--sp-4) 0; padding: var(--sp-3) var(--sp-4);
  background-color: var(--primary-wash); border-left: 3px solid var(--accent-solid);
  border-radius: 0 var(--r-md) var(--r-md) 0; font-family: var(--font-display); font-size: 1.12rem;
}
.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(--sand-line); border-radius: var(--r-md);
  overflow: hidden; display: block; overflow-x: auto;
}
.mag-body th, .mag-body td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--sand-hair); }
.mag-body th { background-color: var(--accent-wash); font-family: var(--font-body); font-weight: 700; }
.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(--surface); border: 1px solid var(--primary-line);
  border-left: 4px solid var(--accent-solid); border-radius: var(--r-md);
  font-size: 0.97rem; color: var(--muted); box-shadow: var(--shadow-soft);
}
.inline-read a { font-weight: 600; }

/* ---------- call to action ---------- */
.mag-cta {
  max-width: 68ch; margin: var(--sp-6) auto 0; padding: var(--sp-5);
  background-color: var(--surface); border: 1px solid var(--primary-line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-soft);
  background-image: radial-gradient(circle at 100% 0%, rgba(220, 199, 174, 0.28), rgba(255, 255, 255, 0) 62%);
}
.mag-cta h2 { font-size: var(--step-3); margin-bottom: var(--sp-2); }
.mag-cta p { color: var(--muted); max-width: 54ch; }
.mag-cta-action { margin: var(--sp-3) 0 0; }

/* ---------- author box ---------- */
.mag-author {
  max-width: 68ch; margin: var(--sp-5) auto var(--sp-6); padding: var(--sp-4);
  display: grid; grid-template-columns: 160px 1fr; gap: var(--sp-4);
  background-color: var(--surface); border: 1px solid var(--sand-line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-soft);
}
.mag-author img { border-radius: var(--r-lg); width: 160px; height: 160px; object-fit: cover; }
.mag-author h2 { font-size: var(--step-2); margin-bottom: var(--sp-2); }
.mag-author p { color: var(--muted); font-size: 0.97rem; }
.mag-author p:last-child { margin-bottom: 0; }

/* ---------- read also ---------- */
.mag-related-band { background-color: rgba(255, 255, 255, 0.62); border-top: 1px solid var(--sand-hair); padding: var(--sp-6) 0; }
.mag-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.mag-rel {
  background-color: var(--surface); border: 1px solid var(--sand-line); border-radius: var(--r-lg);
  overflow: hidden; padding-bottom: var(--sp-3);
  box-shadow: var(--shadow-soft); transition: transform 0.7s ease, box-shadow 0.7s ease;
}
.mag-rel:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.mag-rel-media { display: block; background-color: var(--accent-wash); }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-title { font-size: var(--step-1); line-height: 1.28; margin: var(--sp-3) var(--sp-4) var(--sp-2); }
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary); }
.mag-rel-dek { margin: 0 var(--sp-4) var(--sp-2); font-size: 0.92rem; color: var(--muted); }
.mag-rel-meta { margin: 0 var(--sp-4); font-size: 0.82rem; color: var(--muted); }
.mag-related-more { margin: var(--sp-5) 0 0; }

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

/* ---------- author page and site map lists ---------- */
.mag-list { list-style: none; margin: 0; padding: 0; }
.mag-list li {
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--sand-hair);
  display: flex; flex-wrap: wrap; gap: 0.35rem var(--sp-3); align-items: baseline;
}
.mag-list li:last-child { border-bottom: 0; }
.mag-list a { font-weight: 600; flex: 1 1 22rem; }
.mag-list time, .mag-list span { font-size: 0.88rem; color: var(--muted); }

/* ---------- magazine responsive ---------- */
@media (max-width: 960px) {
  .mag-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-related, .mag-teaser { grid-template-columns: 1fr; }
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card-media img { min-height: 0; aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card-body { padding: var(--sp-4); }
  .mag-card.lead .mag-card-title { font-size: var(--step-3); }
}
@media (max-width: 620px) {
  .mag-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .mag-head { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .mag-body { font-size: 1.04rem; }
  .mag-cta, .mag-author { padding: var(--sp-4); border-radius: var(--r-lg); }
  .mag-author { grid-template-columns: 1fr; }
  .mag-author img { width: 120px; height: 120px; }
  .mag-figure img { border-radius: var(--r-lg); }
  .mag-crumb li[aria-current] { max-width: 100%; white-space: normal; }
  .mag-card.lead .mag-card-dek { font-size: 1rem; }
}


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