/* StrandRestore design system
   Gentle dignity: warm ivory, heather grey, muted violet.
   Unna headlines over Public Sans. Soft rounded frames, delicate rules.
   Light mode only. Every painted surface stays light. */

:root {
  --bg: #FAF8FA;
  --surface: #FFFFFF;
  --ink: #221F26;
  --primary: #5E4A78;
  --accent: #CBB8D6;
  --muted: #666070;

  --primary-deep: #4B3A61;
  --primary-soft: #EDE7F3;
  --primary-mist: #F5F1F8;
  --accent-soft: #F0E8F4;
  --ivory: #FBF7F2;
  --heather: #EDEAEF;
  --rule: #E3DEE8;
  --rule-strong: #D2C9DA;

  --sp-1: 0.375rem;
  --sp-2: 0.75rem;
  --sp-3: 1.125rem;
  --sp-4: 1.75rem;
  --sp-5: 2.5rem;
  --sp-6: 3.5rem;
  --sp-7: 5rem;
  --sp-8: 7rem;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 44px;
  --r-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(34, 31, 38, 0.04), 0 12px 34px rgba(94, 74, 120, 0.07);
  --shadow-lift: 0 2px 4px rgba(34, 31, 38, 0.05), 0 26px 60px rgba(94, 74, 120, 0.11);

  --f-display: "Unna", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Public Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --t-xs: 0.78rem;
  --t-sm: 0.9rem;
  --t-base: 1.0625rem;
  --t-md: 1.2rem;
  --t-lg: 1.45rem;
  --t-xl: 1.95rem;
  --t-2xl: 2.6rem;
  --t-3xl: 3.4rem;

  --wrap: 1180px;
  --ease: cubic-bezier(0.4, 0.1, 0.2, 1);
  --slow: 620ms;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 460px at 82% -6%, var(--accent-soft), transparent 70%),
    radial-gradient(760px 380px at 4% 12%, var(--ivory), transparent 68%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.68;
  font-weight: 400;
  letter-spacing: 0.002em;
}

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

h1 { font-size: clamp(2.2rem, 5.2vw, var(--t-3xl)); }
h2 { font-size: clamp(1.75rem, 3.6vw, var(--t-2xl)); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); }

p { margin: 0 0 var(--sp-3); }
img { max-width: 100%; height: auto; display: block; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-3); }
.narrow { max-width: 760px; }

.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: -100px; z-index: 200;
  background-color: var(--surface); color: var(--primary-deep);
  border: 1px solid var(--rule-strong); border-radius: var(--r-pill);
  padding: 0.7rem 1.3rem; font-weight: 600;
  transition: top var(--slow) var(--ease);
}
.skip-link:focus { top: var(--sp-2); }

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

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background-color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--slow) var(--ease), background-color var(--slow) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 12px 30px rgba(94, 74, 120, 0.08); }
.header-inner { display: flex; align-items: center; gap: var(--sp-3); min-height: 74px; }

.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.wordmark svg { flex: 0 0 auto; }
.wordmark b { font-family: var(--f-display); font-size: 1.35rem; font-weight: 400; letter-spacing: 0.01em; }
.wordmark span { color: var(--primary); }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: var(--sp-4); list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: var(--t-sm); font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: color var(--slow) var(--ease), border-color var(--slow) var(--ease);
}
.nav a:hover { color: var(--primary-deep); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none; margin-left: auto;
  background-color: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill); padding: 0.55rem 0.7rem; cursor: pointer; color: var(--primary-deep);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--f-body); font-size: var(--t-sm); font-weight: 600;
  letter-spacing: 0.03em; text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.6rem; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: opacity var(--slow) var(--ease), background-color var(--slow) var(--ease),
              border-color var(--slow) var(--ease), color var(--slow) var(--ease);
}
.btn-primary { background-color: var(--primary); color: #FFFFFF; }
.btn-primary:hover { background-color: var(--primary-deep); color: #FFFFFF; opacity: 0.94; }
.btn-ghost { background-color: var(--surface); color: var(--primary-deep); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-deep); }
.btn-quiet { background-color: var(--primary-soft); color: var(--primary-deep); }
.btn-quiet:hover { background-color: var(--accent-soft); }
.btn-lg { padding: 1rem 2rem; font-size: var(--t-base); }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- sections */
main { display: block; }
.section { padding-block: var(--sp-7); }
.section-tight { padding-block: var(--sp-6); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--sp-2);
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px; background-color: var(--accent); display: inline-block;
}
.lede { font-size: var(--t-md); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: var(--sp-5); }

.rule-soft { height: 1px; border: 0; background-color: var(--rule); margin: 0; }

/* the arc motif: a hand drawn curve echoing a cap seam */
.arc-mark { display: block; margin-bottom: var(--sp-3); color: var(--accent); }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: var(--sp-7) var(--sp-6); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -12% -40% 62%;
  height: 420px; border-radius: 50%;
  background-color: var(--primary-mist);
  opacity: 0.7; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: var(--sp-6); align-items: center; }
.hero h1 { margin-bottom: var(--sp-3); }
.hero p.lede { margin-bottom: var(--sp-4); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
  padding-top: var(--sp-3); border-top: 1px solid var(--rule);
}
.trust-strip li { list-style: none; font-size: var(--t-sm); color: var(--muted); display: flex; gap: 0.5rem; align-items: center; }
.trust-strip strong { color: var(--ink); font-weight: 600; }
.trust-strip svg { color: var(--primary); flex: 0 0 auto; }
ul.trust-strip { margin: 0; padding: var(--sp-3) 0 0; }

.hero-figure { position: relative; }
.hero-figure img {
  border-radius: var(--r-xl) var(--r-xl) var(--r-lg) var(--r-lg);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-lift);
  width: 100%; object-fit: cover; aspect-ratio: 4 / 3;
}
.hero-figure figcaption {
  position: absolute; left: var(--sp-3); bottom: calc(-1 * var(--sp-3));
  background-color: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 0.7rem 1.1rem;
  font-size: var(--t-xs); color: var(--muted); box-shadow: var(--shadow-soft); max-width: 84%;
}

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

.card {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  transition: border-color var(--slow) var(--ease), box-shadow var(--slow) var(--ease);
}
.card:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-soft); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: var(--t-sm); }

.cost-note {
  display: inline-block; margin-top: var(--sp-3);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--primary-deep); background-color: var(--primary-soft);
  border-radius: var(--r-pill); padding: 0.35rem 0.85rem;
}

.icon-frame {
  width: 52px; height: 52px; border-radius: 50%;
  background-color: var(--primary-mist);
  border: 1px solid var(--rule);
  display: grid; place-items: center; color: var(--primary); margin-bottom: var(--sp-3);
}

/* ---------------------------------------------------------------- steps */
.steps-layout { display: grid; grid-template-columns: 1fr 0.86fr; gap: var(--sp-6); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative; padding: 0 0 var(--sp-4) var(--sp-6);
  border-left: 1px solid var(--rule);
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: -21px; top: -2px;
  width: 42px; height: 42px; border-radius: 50%;
  background-color: var(--surface); border: 1px solid var(--rule-strong);
  color: var(--primary); font-family: var(--f-display); font-size: 1.05rem;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--muted); margin-bottom: 0; }

.section-figure img {
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-soft);
  width: 100%; object-fit: cover; aspect-ratio: 3 / 4;
}
.section-figure figcaption { font-size: var(--t-xs); color: var(--muted); padding-top: var(--sp-2); }

/* ---------------------------------------------------------------- outcomes */
.outcome {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  border-top: 3px solid var(--accent);
}
.outcome .figure-num {
  font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 3.1rem);
  color: var(--primary); line-height: 1; display: block; margin-bottom: 0.4rem;
}
.outcome h3 { font-family: var(--f-body); font-size: var(--t-base); font-weight: 700; letter-spacing: 0.02em; }
.outcome p { color: var(--muted); font-size: var(--t-sm); margin-bottom: 0; }

/* ---------------------------------------------------------------- proof */
.proof-band { background-color: var(--ivory); border-block: 1px solid var(--rule); }
.testimonial {
  background-color: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-sm);
  padding: var(--sp-4); margin: 0; position: relative;
}
.testimonial::before {
  content: ""; position: absolute; top: var(--sp-4); left: var(--sp-4);
  width: 44px; height: 1px; background-color: var(--accent);
}
.testimonial blockquote { margin: var(--sp-4) 0 var(--sp-3); padding: 0; }
.testimonial blockquote p { font-family: var(--f-display); font-size: var(--t-md); line-height: 1.5; color: var(--ink); }
.testimonial figcaption { font-size: var(--t-sm); color: var(--muted); border-top: 1px solid var(--rule); padding-top: var(--sp-2); }
.testimonial figcaption b { display: block; color: var(--ink); font-weight: 600; }

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-5); }
.metric { text-align: center; padding: var(--sp-3); border: 1px solid var(--rule); border-radius: var(--r-md); background-color: var(--surface); }
.metric b { display: block; font-family: var(--f-display); font-size: 2rem; color: var(--primary); }
.metric span { font-size: var(--t-sm); color: var(--muted); }

/* ---------------------------------------------------------------- pricing */
.tier {
  background-color: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-lg); padding: var(--sp-4); display: flex; flex-direction: column;
}
.tier.is-recommended { border-color: var(--primary); box-shadow: var(--shadow-lift); }
.tier-flag {
  display: inline-block; font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary-deep); background-color: var(--primary-soft);
  border-radius: var(--r-pill); padding: 0.3rem 0.8rem; margin-bottom: var(--sp-2);
}
.tier h3 { font-family: var(--f-body); font-size: var(--t-base); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.price { font-family: var(--f-display); font-size: 3rem; color: var(--ink); line-height: 1; }
.price small { font-family: var(--f-body); font-size: var(--t-sm); color: var(--muted); font-weight: 500; }
.tier ul { list-style: none; margin: var(--sp-3) 0 var(--sp-4); padding: 0; }
.tier li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; font-size: var(--t-sm); color: var(--muted); }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 10px; height: 6px; border-left: 1.2px solid var(--primary); border-bottom: 1.2px solid var(--primary);
  transform: rotate(-45deg);
}
.tier .btn { margin-top: auto; }
.billing-note { text-align: center; font-size: var(--t-sm); color: var(--muted); margin-top: var(--sp-4); }

/* ---------------------------------------------------------------- faq */
.faq-list { border-top: 1px solid var(--rule); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; text-align: left; background-color: transparent; border: 0; cursor: pointer;
  font-family: var(--f-display); font-size: var(--t-md); color: var(--ink);
  padding: var(--sp-3) 2.5rem var(--sp-3) 0; position: relative;
  transition: color var(--slow) var(--ease);
}
.faq-q:hover { color: var(--primary-deep); }
.faq-q::after {
  content: ""; position: absolute; right: 0.5rem; top: 50%;
  width: 11px; height: 11px; margin-top: -8px;
  border-right: 1.2px solid var(--primary); border-bottom: 1.2px solid var(--primary);
  transform: rotate(45deg); transition: transform var(--slow) var(--ease), opacity var(--slow) var(--ease);
}
.faq-q[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: -3px; }
.faq-a { padding: 0 3rem var(--sp-4) 0; color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a[hidden] { display: none; }

/* ---------------------------------------------------------------- form */
.contact-shell {
  background-color: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, var(--sp-6));
  box-shadow: var(--shadow-soft);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: var(--t-base); color: var(--ink);
  background-color: var(--bg); border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
  padding: 0.75rem 0.9rem; width: 100%;
  transition: border-color var(--slow) var(--ease), background-color var(--slow) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); background-color: var(--surface); }
.field [aria-invalid="true"] { border-color: #9A2C4B; }
.field-error { font-size: var(--t-xs); color: #8E2545; min-height: 1em; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--t-sm); color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 0.25rem; flex: 0 0 auto; accent-color: #5E4A78; }
.form-reassure { font-size: var(--t-sm); color: var(--muted); margin-top: var(--sp-3); }

/* ---------------------------------------------------------------- footer */
.site-footer {
  background-color: var(--primary-mist);
  border-top: 1px solid var(--rule);
  padding-block: var(--sp-6) 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 h4 { font-family: var(--f-body); font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-2); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: var(--t-sm); transition: color var(--slow) var(--ease); }
.footer-col a:hover { color: var(--primary-deep); text-decoration: underline; }
.footer-blurb { color: var(--muted); font-size: var(--t-sm); max-width: 34ch; }
.social { display: flex; gap: 0.6rem; margin-top: var(--sp-3); }
.social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--rule-strong); background-color: var(--surface);
  display: grid; place-items: center; color: var(--primary);
  transition: border-color var(--slow) var(--ease), opacity var(--slow) var(--ease);
}
.social a:hover { border-color: var(--primary); opacity: 0.9; }
.footer-base {
  margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: space-between;
  font-size: var(--t-xs); color: var(--muted);
}
.author-byline {
  margin-top: var(--sp-6); padding: var(--sp-4);
  background-color: var(--heather); border-radius: var(--r-lg);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between;
}
.author-byline p { margin: 0; color: var(--muted); font-size: var(--t-sm); max-width: 60ch; }

/* ---------------------------------------------------------------- prose pages */
.page-head { padding-block: var(--sp-6) var(--sp-4); border-bottom: 1px solid var(--rule); }
.prose { max-width: 74ch; }
.prose h2 { font-size: var(--t-xl); margin-top: var(--sp-5); }
.prose h3 { font-size: var(--t-md); margin-top: var(--sp-4); }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); }
.fact-table { width: 100%; border-collapse: collapse; margin-block: var(--sp-3); }
.fact-table th, .fact-table td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--rule); font-size: var(--t-sm); }
.fact-table th { color: var(--ink); width: 40%; font-weight: 600; }
.fact-table td { color: var(--muted); }

.author-layout { display: grid; grid-template-columns: 300px 1fr; gap: var(--sp-6); align-items: start; }
.author-portrait img { border-radius: var(--r-lg); border: 1px solid var(--rule); box-shadow: var(--shadow-soft); }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin-bottom: 0.5rem; }

.map-group { background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--sp-4); }
.map-group ul { list-style: none; padding: 0; margin: 0; }
.map-group li { padding-block: 0.5rem; border-bottom: 1px solid var(--rule); font-size: var(--t-sm); color: var(--muted); }
.map-group li:last-child { border-bottom: 0; }
.map-group li a { font-weight: 600; }

.status-page { text-align: center; padding-block: var(--sp-8); }
.status-page .arc-mark { margin-inline: auto; }

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transition: opacity 900ms var(--ease); }
.reveal.is-visible { opacity: 1; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-grid, .steps-layout, .author-layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-figure img { aspect-ratio: 16 / 10; }
  .section-figure img { aspect-ratio: 4 / 3; }
}

@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background-color: var(--surface); border-bottom: 1px solid var(--rule);
    padding: var(--sp-3);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-header { position: relative; }
  .grid-2, .grid-3, .grid-4, .form-grid, .metrics { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-6); }
  .hero-figure figcaption { position: static; max-width: none; margin-top: var(--sp-2); }
}

@media (max-width: 400px) {
  body { font-size: 1rem; }
  .price { font-size: 2.4rem; }
}

@media print {
  .site-header, .site-footer, .hero-ctas { display: 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; }
}

/* ---------------------------------------------------------------- magazine
   The Fitting Room. Same ivory, heather and muted violet as the rest of the
   site. Every surface stays light. */

.mag-crumb { padding-block: var(--sp-4) 0; }
.mag-crumb ol {
  display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0;
  font-size: var(--t-xs); color: var(--muted); letter-spacing: 0.04em;
}
.mag-crumb li + li::before { content: "/"; color: var(--rule-strong); margin-right: 0.5rem; }
.mag-crumb a { color: var(--muted); text-decoration: none; }
.mag-crumb a:hover { color: var(--primary-deep); text-decoration: underline; }
.mag-crumb [aria-current="page"] { color: var(--ink); }

/* ---- magazine index */
.mag-head { border-bottom: 1px solid var(--rule); }
.mag-head-note { color: var(--muted); font-size: var(--t-sm); max-width: 62ch; margin-top: var(--sp-3); }
.mag-standfirst { font-family: var(--f-display); font-size: var(--t-md); line-height: 1.5; color: var(--muted); max-width: 64ch; }

.mag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.mag-card {
  display: flex; flex-direction: column; overflow: hidden;
  background-color: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  transition: border-color var(--slow) var(--ease), box-shadow var(--slow) var(--ease);
}
.mag-card:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-soft); }
.mag-card-img { display: block; background-color: var(--heather); }
.mag-card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-body { padding: var(--sp-3) var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: 0.55rem; }
.mag-kicker {
  margin: 0; font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--primary);
}
.mag-card h2 { font-size: var(--t-md); line-height: 1.25; margin: 0; }
.mag-card h2 a { color: var(--ink); text-decoration: none; }
.mag-card h2 a:hover { color: var(--primary-deep); text-decoration: underline; }
.mag-card-dek { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.mag-card-meta { margin: 0; color: var(--muted); font-size: var(--t-xs); letter-spacing: 0.04em; }

.mag-card.lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; background-color: var(--ivory); }
.mag-card.lead .mag-card-img { flex: 0 0 54%; }
.mag-card.lead .mag-card-img img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.mag-card.lead .mag-card-body { justify-content: center; padding: var(--sp-5); gap: var(--sp-2); }
.mag-card.lead h2 { font-size: var(--t-xl); }
.mag-card.lead .mag-card-dek { font-size: var(--t-base); }

.mag-index-foot { margin-top: var(--sp-5); font-size: var(--t-sm); color: var(--muted); max-width: 66ch; }

/* ---- article page */
.mag-article { padding-block: var(--sp-4) var(--sp-7); }
.mag-article-head { max-width: 74ch; margin-block: var(--sp-4) var(--sp-5); }
.mag-article-head h1 { font-size: clamp(2rem, 4.4vw, var(--t-2xl)); margin-bottom: var(--sp-3); }
.mag-byline {
  display: flex; align-items: center; gap: var(--sp-2);
  border-top: 1px solid var(--rule); padding-top: var(--sp-3); margin-top: var(--sp-4);
}
.mag-byline img { width: 48px; height: 48px; border-radius: var(--r-pill); border: 1px solid var(--rule); }
.mag-byline p { margin: 0; font-size: var(--t-sm); color: var(--muted); }
.mag-byline a { font-weight: 600; }
.mag-byline span { white-space: nowrap; }

.mag-figure { margin: 0 0 var(--sp-5); }
.mag-figure img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r-xl); border: 1px solid var(--rule); box-shadow: var(--shadow-soft);
}
.mag-figure figcaption { font-size: var(--t-xs); color: var(--muted); padding-top: var(--sp-2); }

.mag-body { max-width: 68ch; font-size: 1.09rem; line-height: 1.72; }
.mag-body p { margin: 0 0 var(--sp-3); color: var(--ink); }
.mag-body h2 { font-size: var(--t-xl); margin: var(--sp-6) 0 var(--sp-2); }
.mag-body h3 { font-size: var(--t-lg); margin: var(--sp-5) 0 var(--sp-2); }
.mag-body ul, .mag-body ol { margin: 0 0 var(--sp-3); padding-left: 1.3rem; }
.mag-body li { margin-bottom: 0.5rem; }
.mag-body strong { color: var(--ink); font-weight: 600; }
.mag-body blockquote {
  margin: var(--sp-4) 0; padding: var(--sp-3) var(--sp-4);
  background-color: var(--primary-mist); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.mag-body blockquote p { font-family: var(--f-display); font-size: var(--t-md); line-height: 1.5; margin: 0; }
.mag-body table { width: 100%; border-collapse: collapse; margin-block: var(--sp-4); font-size: var(--t-sm); }
.mag-body th, .mag-body td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--rule); }
.mag-body th { color: var(--ink); font-weight: 600; background-color: var(--primary-mist); }
.mag-body td { color: var(--muted); }

.inline-read {
  margin: var(--sp-4) 0; padding: var(--sp-3);
  background-color: var(--accent-soft); border: 1px solid var(--rule);
  border-radius: var(--r-md); font-size: var(--t-sm); color: var(--primary-deep);
}
.inline-read a { font-weight: 600; }

.mag-cta {
  max-width: 68ch; margin-top: var(--sp-6);
  background-color: var(--primary-soft); border: 1px solid var(--rule-strong);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.mag-cta h2 { font-size: var(--t-lg); margin-bottom: var(--sp-2); }
.mag-cta p { color: var(--muted); max-width: 56ch; }

.mag-author {
  max-width: 68ch; display: flex; gap: var(--sp-4); align-items: flex-start;
  margin-top: var(--sp-5); padding: var(--sp-4);
  background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg);
}
.mag-author img { width: 96px; height: 96px; flex: 0 0 auto; border-radius: var(--r-md); border: 1px solid var(--rule); object-fit: cover; }
.mag-author h2 { font-size: var(--t-md); margin-bottom: 0.4rem; }
.mag-author p { color: var(--muted); font-size: var(--t-sm); margin-bottom: 0.6rem; }

.mag-related { margin-top: var(--sp-7); border-top: 1px solid var(--rule); padding-top: var(--sp-5); }
.mag-related > h2 { font-size: var(--t-lg); margin-bottom: var(--sp-4); }
.mag-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.mag-rel {
  background-color: var(--ivory); border: 1px solid var(--rule); border-radius: var(--r-md);
  overflow: hidden; padding-bottom: var(--sp-3);
  transition: border-color var(--slow) var(--ease), box-shadow var(--slow) var(--ease);
}
.mag-rel:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-soft); }
.mag-rel-img { display: block; background-color: var(--heather); }
.mag-rel-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel h3 { font-size: var(--t-base); line-height: 1.3; margin: var(--sp-3) var(--sp-3) 0.4rem; }
.mag-rel h3 a { color: var(--ink); text-decoration: none; }
.mag-rel h3 a:hover { color: var(--primary-deep); text-decoration: underline; }
.mag-rel p { margin: 0 var(--sp-3) 0.4rem; color: var(--muted); font-size: var(--t-xs); }
.mag-rel-meta { letter-spacing: 0.04em; }
.mag-related-all { margin-top: var(--sp-4); font-size: var(--t-sm); }

/* ---- home page magazine teaser */
.mag-teaser-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.mag-teaser-foot { margin-top: var(--sp-4); font-size: var(--t-sm); }

@media (max-width: 900px) {
  .mag-grid, .mag-related-grid, .mag-teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card-img img { min-height: 0; aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card-body { padding: var(--sp-4); }
}

@media (max-width: 640px) {
  .mag-grid, .mag-related-grid, .mag-teaser-grid { grid-template-columns: minmax(0, 1fr); }
  .mag-article { padding-block: var(--sp-3) var(--sp-6); }
  .mag-byline { flex-wrap: wrap; }
  .mag-byline span { white-space: normal; }
  .mag-figure img { border-radius: var(--r-lg); }
  .mag-body { font-size: var(--t-base); }
  .mag-cta, .mag-author { padding: var(--sp-4); }
  .mag-author { flex-direction: column; }
  .mag-card.lead h2 { font-size: var(--t-lg); }
}


/* Network column: five sibling products, rotated so every site is linked the same
   number of times. Sits in the footer link grid and inherits its type and colour. */
.site-network ul { list-style: none; margin: 0; padding: 0; }
.site-network li + li { margin-top: 0.4rem; }
.site-network a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { border-bottom-color: currentColor; }
