/* WickAndWax design system: craft studio, cream and clay, deep teal, poured wax curves */

:root {
  --bg: #FBF7F2;
  --surface: #FFFFFF;
  --ink: #211E1B;
  --primary: #2C6360;
  --accent: #D9A487;
  --muted: #6A6259;

  --primary-050: #F0F6F5;
  --primary-100: #E0EDEC;
  --primary-200: #C6DEDC;
  --primary-300: #A7CBC8;
  --accent-050: #FCF3ED;
  --accent-100: #F7E5D9;
  --accent-200: #EFCDB8;
  --kraft: #F5EDE3;
  --kraft-edge: #E3D5C3;
  --rule: #E6DED3;
  --rule-strong: #D3C6B6;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(33, 30, 27, 0.06);
  --shadow: 0 8px 24px rgba(33, 30, 27, 0.08);
  --shadow-lift: 0 18px 46px rgba(33, 30, 27, 0.12);

  --font-display: "Vidaloka", "Georgia", "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.3vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.65rem + 2.4vw, 3.7rem);

  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, var(--accent-050) 0, rgba(251, 247, 242, 0) 42%),
    radial-gradient(circle at 88% 4%, var(--primary-050) 0, rgba(251, 247, 242, 0) 38%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-4);
  color: var(--ink);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-4); }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: #1F4B49; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.15rem; }
li { margin-bottom: var(--space-2); }
strong { font-weight: 800; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: var(--space-8) 0; }
.section-tight { padding: var(--space-7) 0; }

.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(--space-4); top: -3.5rem; z-index: 100;
  background-color: var(--primary); color: #FFFFFF; padding: 0.6rem 1rem;
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus { top: var(--space-3); color: #FFFFFF; }

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

/* ---------- eyebrow, rules, wax motif ---------- */
.eyebrow {
  font-size: var(--step--1); font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--primary); margin-bottom: var(--space-3);
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background-color: var(--accent); display: block;
}

.wax-rule {
  height: 26px; border: 0; margin: 0;
  background-image:
    radial-gradient(20px 26px at 20px 0, var(--accent-100) 0 99%, rgba(0,0,0,0) 100%),
    radial-gradient(20px 26px at 60px 0, var(--primary-100) 0 99%, rgba(0,0,0,0) 100%);
  background-repeat: repeat-x;
  background-size: 80px 26px;
  opacity: 0.85;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 800; font-size: var(--step-0);
  padding: 0.78rem 1.5rem; border-radius: var(--radius-pill);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn-primary {
  background-color: var(--primary); color: #FFFFFF; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ""; position: absolute; inset: auto 0 -100% 0; height: 100%;
  background-color: color-mix(in srgb, var(--primary) 82%, #0E2B2A); border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  transition: inset 0.35s cubic-bezier(0.3, 0.8, 0.3, 1); z-index: 0;
}
.btn-primary:hover::after { inset: -6% 0 auto 0; }
.btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover { color: #FFFFFF; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost {
  background-color: var(--surface); color: var(--primary); border-color: var(--primary-300);
}
.btn-ghost:hover { background-color: var(--primary-050); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); border-color: var(--rule-strong); }
.header-inner { display: flex; align-items: center; gap: var(--space-5); min-height: 74px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
  font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); letter-spacing: 0.01em;
}
.wordmark svg { flex: none; }
.wordmark b { font-weight: 400; }
.wordmark i { font-style: normal; color: var(--primary); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.95rem;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--primary); border-bottom-color: var(--accent); }
.header-cta { margin-left: var(--space-2); }
.nav-toggle {
  display: none; margin-left: auto; background-color: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: var(--radius-sm);
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background-color: var(--ink); position: relative;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; }

/* ---------- hero ---------- */
.hero { padding: var(--space-8) 0 var(--space-7); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: -12%; top: -30%; width: 46%; height: 120%;
  background-image: radial-gradient(closest-side, var(--accent-100), rgba(251, 247, 242, 0));
  opacity: 0.7; z-index: 0; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-7); align-items: center; }
.hero h1 { margin-bottom: var(--space-5); max-width: 16ch; }
.hero-lede { font-size: var(--step-1); color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.trust-strip {
  list-style: none; padding: var(--space-4) 0 0; margin: 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4);
}
.trust-strip li { font-size: var(--step--1); color: var(--muted); font-weight: 700; margin: 0; }
.trust-strip b { display: block; font-size: 1.05rem; color: var(--ink); font-weight: 800; }

.hero-figure { position: relative; }
.hero-figure img {
  border-radius: var(--radius-lg) var(--radius-lg) 44% 44% / var(--radius-lg) var(--radius-lg) 12% 12%;
  border: 1px solid var(--rule-strong);
  box-shadow: var(--shadow-lift);
}
.hero-tag {
  position: absolute; left: -14px; bottom: 26px; background-color: var(--kraft);
  border: 1px dashed var(--kraft-edge); border-radius: var(--radius);
  padding: 0.75rem 1rem; box-shadow: var(--shadow); max-width: 250px;
  transform: rotate(-2.2deg);
}
.hero-tag b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.hero-tag span { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- kraft label card ---------- */
.card {
  background-color: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-200); }
.card h3 { margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }

.label-card {
  background-color: var(--kraft); border: 1px solid var(--kraft-edge);
  border-radius: var(--radius); padding: var(--space-5) var(--space-5) var(--space-5) calc(var(--space-5) + 10px);
  position: relative; box-shadow: var(--shadow-sm);
}
.label-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background-color: var(--accent); border-radius: var(--radius) 0 0 var(--radius);
}
.label-card::after {
  content: ""; position: absolute; right: 14px; top: 14px; width: 9px; height: 9px;
  border-radius: 50%; border: 2px solid var(--kraft-edge);
}
.label-card .cost {
  display: inline-block; margin-top: var(--space-2); font-weight: 800; color: var(--primary);
  font-size: var(--step--1); letter-spacing: 0.05em; text-transform: uppercase;
}

.grid { display: grid; gap: var(--space-5); }
.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)); }

.section-head { max-width: 60ch; margin-bottom: var(--space-6); }
.section-head p { color: var(--muted); font-size: var(--step-1); margin-bottom: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- steps ---------- */
.band-tint { background-color: var(--primary-050); border-block: 1px solid var(--primary-100); }
.band-kraft { background-color: var(--kraft); border-block: 1px solid var(--kraft-edge); }

.steps-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-7); align-items: start; }
.step { display: grid; grid-template-columns: 60px 1fr; gap: var(--space-4); margin-bottom: var(--space-5); }
.step-no {
  width: 54px; height: 54px; border-radius: 50% 50% 46% 46% / 46% 46% 54% 54%;
  background-color: var(--surface); border: 2px solid var(--primary-200);
  color: var(--primary); font-family: var(--font-display); font-size: 1.35rem;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: var(--space-1); }
.step p { color: var(--muted); margin-bottom: 0; }
.steps-figure img { border-radius: var(--radius-lg); border: 1px solid var(--rule-strong); box-shadow: var(--shadow); }
.steps-figure figcaption { font-size: var(--step--1); color: var(--muted); margin-top: var(--space-3); }

/* ---------- features ---------- */
.feature .ficon {
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background-color: var(--primary-050); border: 1px solid var(--primary-100);
  display: grid; place-items: center; margin-bottom: var(--space-4);
}
.feature .ficon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 1.6; }
.feature p { color: var(--muted); margin-bottom: 0; }

/* ---------- outcomes ---------- */
.outcome { border-left: 3px solid var(--accent); padding-left: var(--space-4); }
.outcome .figure-num {
  font-family: var(--font-display); font-size: clamp(2.3rem, 1.7rem + 2vw, 3.2rem);
  line-height: 1; color: var(--primary); display: block; margin-bottom: var(--space-2);
}
.outcome p { color: var(--muted); margin-bottom: 0; }

/* ---------- testimonials ---------- */
.testimonial {
  background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--space-5); margin: 0; box-shadow: var(--shadow-sm); position: relative;
}
.testimonial::before {
  content: ""; position: absolute; top: -1px; left: var(--space-5); width: 52px; height: 5px;
  background-color: var(--accent); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.testimonial p { font-size: 1.03rem; }
.testimonial footer { font-size: var(--step--1); color: var(--muted); border-top: 1px solid var(--rule); padding-top: var(--space-3); }
.testimonial footer b { display: block; color: var(--ink); font-size: 0.98rem; }
.results-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5);
  margin-top: var(--space-6); padding-top: var(--space-5); border-top: 2px solid var(--rule-strong);
  list-style: none; padding-left: 0;
}
.results-strip b { display: block; font-family: var(--font-display); font-size: var(--step-2); color: var(--primary); }
.results-strip span { color: var(--muted); font-size: var(--step--1); }

/* ---------- pricing ---------- */
.tier {
  background-color: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5);
  display: flex; flex-direction: column;
}
.tier.is-recommended { border: 2px solid var(--primary); box-shadow: var(--shadow); position: relative; }
.tier-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background-color: var(--primary); color: #FFFFFF; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.13em; text-transform: uppercase; padding: 0.3rem 0.9rem; border-radius: var(--radius-pill);
}
.tier .price { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; display: block; }
.tier .price small { font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); font-weight: 700; }
.tier ul { list-style: none; padding: 0; margin: var(--space-4) 0 var(--space-5); }
.tier li { padding-left: 1.6rem; position: relative; font-size: 0.97rem; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px;
  border-radius: 50% 50% 50% 0; background-color: var(--accent); transform: rotate(-45deg);
}
.tier .btn { margin-top: auto; }
.billing-note { text-align: center; color: var(--muted); font-size: var(--step--1); margin-top: var(--space-5); }

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--rule-strong); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--rule-strong); }
.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(--space-4) 2.5rem var(--space-4) 0; cursor: pointer; position: relative;
}
.faq-q::after {
  content: ""; position: absolute; right: 0.5rem; 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.25s ease;
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-25%) rotate(225deg); }
.faq-a { padding: 0 0 var(--space-5); color: var(--muted); max-width: 72ch; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-7); align-items: start; }
.form-panel {
  background-color: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow);
}
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-weight: 800; font-size: 0.92rem; 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(--rule-strong);
  border-radius: var(--radius-sm); padding: 0.7rem 0.85rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: #9A3B23; }
.field-error { display: none; color: #8C3319; font-size: 0.85rem; font-weight: 700; margin-top: 0.3rem; }
.field-error.is-shown { display: block; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.consent { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.9rem; }
.consent input { width: 18px; height: 18px; margin-top: 0.25rem; flex: none; }
.form-note { font-size: var(--step--1); color: var(--muted); margin-top: var(--space-4); }

/* ---------- author byline ---------- */
.byline {
  display: flex; gap: var(--space-4); align-items: center; background-color: var(--kraft);
  border: 1px dashed var(--kraft-edge); border-radius: var(--radius); padding: var(--space-5);
}
.byline p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.byline b { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer {
  background-color: var(--primary-050); border-top: 3px solid var(--primary-200);
  padding: var(--space-8) 0 var(--space-5); margin-top: var(--space-8);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-6); }
.footer-col h2 { font-size: 0.85rem; font-family: var(--font-body); font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.social { display: flex; gap: 0.6rem; margin-top: var(--space-4); }
.social a {
  width: 40px; height: 40px; border-radius: 50%; background-color: var(--surface);
  border: 1px solid var(--primary-200); display: grid; place-items: center;
}
.social a:hover { background-color: var(--primary-100); }
.social svg { width: 18px; height: 18px; stroke: var(--primary); fill: none; stroke-width: 1.7; }
.footer-base {
  margin-top: var(--space-7); padding-top: var(--space-4); border-top: 1px solid var(--primary-200);
  display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between;
  font-size: var(--step--1); color: var(--muted);
}

/* ---------- long form pages ---------- */
.page-header { padding: var(--space-8) 0 var(--space-6); border-bottom: 1px solid var(--rule); }
.page-header p { color: var(--muted); font-size: var(--step-1); max-width: 62ch; margin-bottom: 0; }
.prose { max-width: 74ch; }
.prose h2 { margin-top: var(--space-7); font-size: var(--step-2); }
.prose h3 { margin-top: var(--space-5); }
.prose li { color: var(--ink); }
.prose dt { font-weight: 800; margin-top: var(--space-3); }
.prose dd { margin: 0 0 var(--space-3); color: var(--muted); }
.author-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-7); align-items: start; }
.author-portrait img { border-radius: var(--radius-lg); border: 1px solid var(--rule-strong); box-shadow: var(--shadow); }
.author-portrait ul { list-style: none; padding: 0; margin-top: var(--space-4); }
.map-group { background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-5); }
.map-group ul { list-style: none; padding: 0; margin: 0; }
.map-group li { border-bottom: 1px dotted var(--rule-strong); padding-bottom: 0.55rem; margin-bottom: 0.55rem; }
.map-group li:last-child { border-bottom: 0; }
.map-group span { display: block; color: var(--muted); font-size: 0.88rem; }

/* ---------- reveal motion: poured wax ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.8, 0.3, 1); }
.settle.is-in { animation: settle 0.55s cubic-bezier(0.25, 0.9, 0.3, 1) both; }
@keyframes settle {
  0% { transform: translateY(-10px) rotate(-1.6deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

@media (max-width: 980px) {
  .hero-grid, .steps-layout, .contact-grid, .author-layout { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-toggle { display: flex; }
  .main-nav { display: none; width: 100%; margin-left: 0; }
  .main-nav.is-open { display: block; padding-bottom: var(--space-4); }
  .main-nav ul { flex-direction: column; gap: var(--space-3); }
  .header-inner { flex-wrap: wrap; }
  .header-cta { display: none; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .trust-strip, .results-strip, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-tag { position: static; transform: none; margin-top: var(--space-4); max-width: none; }
  .section { padding: var(--space-7) 0; }
}

@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 Pour Room: magazine ---------- */
.mag-crumbs { border-bottom: 1px solid var(--rule); background-color: var(--surface); }
.mag-crumbs ol {
  list-style: none; margin: 0; padding: 0.85rem 0; display: flex; flex-wrap: wrap;
  gap: 0.35rem 0.75rem; font-size: var(--step--1); color: var(--muted);
}
.mag-crumbs li { margin: 0; display: flex; align-items: center; gap: 0.75rem; }
.mag-crumbs li + li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background-color: var(--accent); }
.mag-crumbs a { color: var(--muted); text-decoration: none; font-weight: 700; }
.mag-crumbs a:hover { color: var(--primary); text-decoration: underline; }
.mag-crumbs span { color: var(--ink); font-weight: 700; }

.mag-masthead { padding: var(--space-8) 0 var(--space-6); position: relative; overflow: hidden; }
.mag-masthead::before {
  content: ""; position: absolute; right: -10%; top: -40%; width: 44%; height: 130%;
  background-image: radial-gradient(closest-side, var(--primary-050), rgba(251, 247, 242, 0));
  z-index: 0; pointer-events: none;
}
.mag-masthead .wrap { position: relative; z-index: 1; }
.mag-masthead h1 { max-width: 12ch; }
.mag-masthead-note { color: var(--muted); max-width: 64ch; margin-top: var(--space-4); }

.mag-standfirst {
  font-family: var(--font-body); font-size: var(--step-1); line-height: 1.55;
  color: var(--muted); max-width: 62ch; margin-bottom: 0;
}

/* index grid and cards */
.mag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
.mag-card {
  background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mag-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-200); }
.mag-card-media { display: block; border-bottom: 1px solid var(--rule); background-color: var(--kraft); }
.mag-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.mag-kicker {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--space-3);
}
.mag-card-title { font-size: var(--step-1); margin-bottom: var(--space-3); line-height: 1.22; }
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); }
.mag-card-dek { color: var(--muted); font-size: 0.96rem; margin-bottom: var(--space-4); }
.mag-card-meta {
  margin: auto 0 0; padding-top: var(--space-3); border-top: 1px dotted var(--rule-strong);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: var(--step--1); color: var(--muted); font-weight: 700;
}

.mag-card.lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.mag-card.lead .mag-card-media { border-bottom: 0; border-right: 1px solid var(--rule); flex: 0 0 54%; }
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.mag-card.lead .mag-card-body { padding: var(--space-6); justify-content: center; }
.mag-card.lead .mag-card-title { font-size: var(--step-3); }
.mag-card.lead .mag-card-dek { font-size: var(--step-0); max-width: 52ch; }
.mag-card.lead::before { content: none; }

/* article header and figure */
.mag-article { padding: var(--space-7) 0 var(--space-8); }
.mag-head { max-width: 72ch; }
.mag-head h1 { font-size: var(--step-3); margin-bottom: var(--space-4); }
.mag-byline {
  margin-top: var(--space-5); padding: var(--space-4) 0; border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.mag-byline-who { font-weight: 800; margin-bottom: var(--space-1); }
.mag-byline-who a { text-decoration: none; }
.mag-byline-who a:hover { text-decoration: underline; }
.mag-byline-meta {
  margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem;
  font-size: var(--step--1); color: var(--muted); font-weight: 700;
}
.mag-figure { margin: var(--space-6) 0 var(--space-7); }
.mag-figure img {
  width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--rule-strong);
  box-shadow: var(--shadow);
}
.mag-figure figcaption { font-size: var(--step--1); color: var(--muted); margin-top: var(--space-3); }

/* article body typography, measure of roughly 68 characters */
.mag-body { max-width: 68ch; font-size: 1.06rem; line-height: 1.72; }
.mag-body h2 { font-size: var(--step-2); margin-top: var(--space-7); margin-bottom: var(--space-4); }
.mag-body h2::after {
  content: ""; display: block; width: 46px; height: 3px; margin-top: var(--space-3);
  background-color: var(--accent); border-radius: var(--radius-pill);
}
.mag-body h3 { font-size: var(--step-1); margin-top: var(--space-5); margin-bottom: var(--space-3); }
.mag-body p { margin-bottom: var(--space-5); }
.mag-body ul, .mag-body ol { margin-bottom: var(--space-5); padding-left: 1.3rem; }
.mag-body li { margin-bottom: var(--space-3); }
.mag-body a { font-weight: 700; }
.mag-body blockquote {
  margin: var(--space-6) 0; padding: var(--space-5); background-color: var(--kraft);
  border: 1px solid var(--kraft-edge); border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.08rem;
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%; border-collapse: collapse; margin: var(--space-5) 0; font-size: 0.95rem;
  background-color: var(--surface); border: 1px solid var(--rule);
}
.mag-body th, .mag-body td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--rule); }
.mag-body th { background-color: var(--primary-050); font-weight: 800; }
.mag-body tr:last-child td { border-bottom: 0; }

.inline-read {
  margin: var(--space-6) 0; padding: var(--space-4) var(--space-5);
  background-color: var(--primary-050); border: 1px solid var(--primary-100);
  border-radius: var(--radius); font-size: 0.97rem; font-weight: 700; color: var(--muted);
}
.inline-read a { color: var(--primary); font-weight: 800; }

/* call to action after the body */
.mag-cta {
  margin: var(--space-7) 0 0; max-width: 72ch; padding: var(--space-6);
  background-color: var(--kraft); border: 1px dashed var(--kraft-edge);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.mag-cta h2 { font-size: var(--step-2); margin-bottom: var(--space-3); }
.mag-cta p { color: var(--muted); }
.mag-cta p:last-child { margin-bottom: 0; margin-top: var(--space-5); }
.mag-cta .btn-primary { color: #FFFFFF; }
.mag-cta-index { max-width: none; margin-top: var(--space-8); }

/* author box */
.mag-author {
  margin-top: var(--space-6); max-width: 72ch; padding: var(--space-5);
  background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 96px 1fr; gap: var(--space-5); align-items: start;
  box-shadow: var(--shadow-sm);
}
.mag-author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-200); }
.mag-author-name { font-family: var(--font-display); font-size: var(--step-1); margin-bottom: var(--space-2); }
.mag-author p { color: var(--muted); font-size: 0.97rem; }
.mag-author p:last-child { margin-bottom: 0; }
.mag-author-name { color: var(--ink); }

/* read also */
.mag-related { margin-top: var(--space-8); border-top: 2px solid var(--rule-strong); padding-top: var(--space-6); }
.mag-related > h2 { font-size: var(--step-2); margin-bottom: var(--space-5); }
.mag-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.mag-rel {
  background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mag-rel:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-200); }
.mag-rel-media { display: block; background-color: var(--kraft); }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-body { padding: var(--space-4) var(--space-5) var(--space-5); }
.mag-rel h3 { font-size: 1.12rem; line-height: 1.25; margin-bottom: var(--space-2); }
.mag-rel h3 a { color: var(--ink); text-decoration: none; }
.mag-rel h3 a:hover { color: var(--primary); text-decoration: underline; }
.mag-rel p { color: var(--muted); font-size: 0.9rem; margin-bottom: var(--space-3); }
.mag-rel-date { font-size: var(--step--1); font-weight: 700; margin-bottom: 0; }

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

@media (max-width: 980px) {
  .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-media { border-right: 0; border-bottom: 1px solid var(--rule); flex: none; }
  .mag-card.lead .mag-card-media img { aspect-ratio: 3 / 2; min-height: 0; }
  .mag-card.lead .mag-card-body { padding: var(--space-5); }
}

@media (max-width: 640px) {
  .mag-grid, .mag-related-grid, .mag-teaser-grid { grid-template-columns: 1fr; }
  .mag-card.lead .mag-card-title { font-size: var(--step-2); }
  .mag-article { padding: var(--space-6) 0 var(--space-7); }
  .mag-head h1 { font-size: var(--step-2); }
  .mag-body { font-size: 1.02rem; }
  .mag-cta { padding: var(--space-5); }
  .mag-author { grid-template-columns: 1fr; gap: var(--space-4); }
  .mag-author img { width: 80px; height: 80px; }
  .mag-figure { margin: var(--space-5) 0 var(--space-6); }
}


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