/* VeilFittings atelier system. Chalk white, pearl grey, soft gold.
   Italiana display over Karla body. Thin rules, layered tulle gradients, wide margins.
   Light only: every painted surface is chalk, pearl or a gold tint. */

:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --ink: #22201D;
  --primary: #8E7233;
  --accent: #E7DCC7;
  --muted: #6B6862;

  --pearl: #F1F0EC;
  --pearl-deep: #E6E4DE;
  --chalk: #FCFCFA;
  --gold-tint: #F6F1E6;
  --gold-wash: #FBF8F1;
  --gold-line: #D8C79C;
  --rule: #E2E0D9;
  --rule-soft: #EDEBE5;
  --ink-soft: #4A4741;

  --step--1: 0.83rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: 2.75rem;
  --step-5: clamp(2.6rem, 6vw, 4.6rem);

  --sp-1: 0.35rem;
  --sp-2: 0.7rem;
  --sp-3: 1.1rem;
  --sp-4: 1.7rem;
  --sp-5: 2.6rem;
  --sp-6: 4rem;
  --sp-7: 6rem;

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

  --shadow-1: 0 1px 2px rgba(34, 32, 29, 0.05);
  --shadow-2: 0 12px 34px rgba(34, 32, 29, 0.07);
  --shadow-3: 0 26px 60px rgba(34, 32, 29, 0.09);

  --maxw: 1180px;
  --gutter: clamp(1.15rem, 4.5vw, 4.5rem);
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.005em;
}

/* Tulle: three layered, almost invisible gradient veils over the whole page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 82% -8%, rgba(142, 114, 51, 0.10), rgba(142, 114, 51, 0) 62%),
    radial-gradient(90% 55% at 6% 12%, rgba(231, 220, 199, 0.55), rgba(231, 220, 199, 0) 68%),
    linear-gradient(178deg, rgba(255, 255, 255, 0.9), rgba(241, 240, 236, 0.35) 55%, rgba(250, 250, 248, 0) 100%);
}

h1, h2, h3, .display, .wordmark-name, .price-figure, .stat-figure {
  font-family: "Italiana", "Didot", "Georgia", serif;
  font-weight: 400;
  letter-spacing: 0.012em;
  line-height: 1.12;
  color: var(--ink);
}

h1 { font-size: var(--step-5); margin: 0 0 var(--sp-3); }
h2 { font-size: clamp(1.95rem, 3.6vw, 3rem); margin: 0 0 var(--sp-3); }
h3 { font-size: var(--step-2); margin: 0 0 var(--sp-2); }
p { margin: 0 0 var(--sp-3); }
a { color: var(--primary); text-underline-offset: 0.22em; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.4rem, 7vw, 6.4rem); position: relative; }
.section + .section { border-top: 1px solid var(--rule-soft); }

.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: var(--surface); color: var(--ink);
  border: 1px solid var(--primary); padding: 0.7rem 1.1rem; border-radius: var(--r-md);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--sp-3); }

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

/* ---------- eyebrow, the stitched label ---------- */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold-line);
  background-image: repeating-linear-gradient(90deg, rgba(142,114,51,0.85) 0 5px, rgba(142,114,51,0) 5px 9px);
}

.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(252, 252, 250, 0.88);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--rule-soft);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-1); background: rgba(252, 252, 250, 0.97); }
.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 { flex: none; }
.wordmark-name { font-size: 1.45rem; letter-spacing: 0.09em; }
.wordmark-name span { color: var(--primary); }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(0.9rem, 2vw, 1.9rem); list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.94rem;
  position: relative; padding-block: 0.35rem; display: inline-block;
}
/* slow underline sweep */
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

.nav-toggle {
  display: none; margin-left: auto; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--r-md);
  width: 44px; height: 40px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 19px; height: 1px; background: var(--ink); content: ""; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.5rem; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-primary { background: var(--primary); color: var(--surface); box-shadow: var(--shadow-1); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--gold-line); }
.btn-ghost:hover { background: var(--gold-wash); transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.8rem, 6vw, 5.6rem) clamp(3rem, 6vw, 5.4rem); }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(2rem, 5vw, 4.2rem); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero h1 em {
  font-style: normal; color: var(--primary);
  background-image: linear-gradient(var(--gold-line), var(--gold-line));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 100% 1px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-5); padding-top: var(--sp-3);
  border-top: 1px solid var(--rule);
  list-style: none; padding-inline: 0;
}
.trust-strip li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.87rem; color: var(--muted); }
.trust-strip li::before {
  content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%;
  border: 1px solid var(--primary);
  background: var(--gold-tint);
}

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  border: 1px solid var(--rule);
}
/* pin motif corner */
.hero-figure::after {
  content: ""; position: absolute; right: -14px; top: -14px; width: 84px; height: 84px;
  border-top: 1px solid var(--gold-line); border-right: 1px solid var(--gold-line);
  border-top-right-radius: var(--r-lg); pointer-events: none;
}
.hero-figure figcaption {
  margin-top: var(--sp-2); font-size: var(--step--1); color: var(--muted); letter-spacing: 0.04em;
}

/* ---------- panels and cards ---------- */
.panel, .card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-1);
}
.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)); }

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

/* problem cards: hairline stitch across the top */
.pain-card { position: relative; overflow: hidden; }
.pain-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background-image: repeating-linear-gradient(90deg, rgba(142,114,51,0.6) 0 8px, rgba(142,114,51,0) 8px 15px);
}
.pain-cost {
  display: block; margin-top: var(--sp-2); padding-top: var(--sp-2);
  border-top: 1px dashed var(--pearl-deep);
  font-size: 0.86rem; color: var(--primary); font-weight: 700; letter-spacing: 0.05em;
}

/* steps */
.steps { counter-reset: step; display: grid; gap: var(--sp-3); }
.step { position: relative; padding-left: 4.1rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: "Italiana", "Didot", Georgia, serif; font-size: 1.7rem; color: var(--primary);
  width: 3rem; text-align: right;
}
.step::after {
  content: ""; position: absolute; left: 3.35rem; top: 0.35rem; bottom: -0.6rem; width: 1px;
  background: linear-gradient(var(--gold-line), rgba(216, 199, 156, 0));
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 0.3rem; }
.step p { margin-bottom: 0; color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: var(--r-lg); border: 1px solid var(--rule); box-shadow: var(--shadow-2); }

/* features */
.feature { transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--gold-line); }
.feature-icon {
  width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: var(--sp-3);
  border: 1px solid var(--gold-line); border-radius: 50%;
  background: var(--gold-wash);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* outcomes */
.outcome { padding: var(--sp-4); border-left: 1px solid var(--rule); }
.outcome:first-child { border-left: 0; padding-left: 0; }
.stat-figure { display: block; font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--primary); line-height: 1; }
.outcome h3 { font-family: "Karla", Helvetica, Arial, sans-serif; font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; margin: var(--sp-2) 0 var(--sp-2); }

/* testimonials */
.testimonial {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: var(--sp-4); margin: 0; position: relative;
}
.testimonial::before {
  content: ""; position: absolute; left: var(--sp-4); top: -1px; width: 46px; height: 2px;
  background: var(--primary);
}
.testimonial p { font-size: 1.03rem; color: var(--ink); }
.testimonial footer { font-size: 0.86rem; color: var(--muted); border-top: 1px solid var(--rule-soft); padding-top: var(--sp-2); }
.testimonial footer strong { display: block; color: var(--ink); font-size: 0.95rem; letter-spacing: 0.02em; }

.results-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3);
  margin-top: var(--sp-4); padding: var(--sp-4);
  background: var(--gold-wash);
  border: 1px solid var(--gold-line); border-radius: var(--r-lg);
  text-align: center;
}
.results-strip b { display: block; font-family: "Italiana", Georgia, serif; font-size: 2.1rem; color: var(--primary); }

/* pricing */
.tier { display: flex; flex-direction: column; }
.tier.is-recommended { border-color: var(--primary); box-shadow: var(--shadow-2); }
.tier-flag {
  display: inline-block; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--primary); border: 1px solid var(--gold-line); background: var(--gold-tint);
  border-radius: var(--r-pill); padding: 0.22rem 0.7rem; margin-bottom: var(--sp-2);
}
.price-figure { font-size: 3rem; line-height: 1; display: block; }
.price-unit { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.08em; }
.tier ul { list-style: none; margin: var(--sp-3) 0 var(--sp-4); padding: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.tier ul li { padding-left: 1.5rem; position: relative; color: var(--ink-soft); }
.tier ul li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 1px; background: var(--primary);
}
.tier .btn { margin-top: auto; }
.billing-note { margin-top: var(--sp-4); font-size: 0.9rem; color: var(--muted); text-align: center; }

/* faq */
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: "Italiana", Georgia, serif; font-size: 1.28rem; color: var(--ink);
  padding: var(--sp-3) 2.6rem var(--sp-3) 0; position: relative;
}
.faq-q::after {
  content: ""; position: absolute; right: 0.6rem; top: 50%; width: 11px; height: 11px;
  border-right: 1px solid var(--primary); border-bottom: 1px solid var(--primary);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.4s var(--ease);
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 2.6rem var(--sp-3) 0; color: var(--ink-soft); max-width: 78ch; }
.faq-a p { margin-bottom: 0; }

/* form */
.form-panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(1.4rem, 3.5vw, 2.6rem); box-shadow: var(--shadow-2); }
.field { margin-bottom: var(--sp-3); }
.field label { display: block; font-size: 0.83rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink);
  background: var(--chalk); border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: 0.72rem 0.85rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(142, 114, 51, 0.12); outline: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field [aria-invalid="true"] { border-color: #A2402C; }
.field-error { display: block; color: #8C3421; font-size: 0.83rem; margin-top: 0.3rem; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft); }
.consent input { width: auto; margin-top: 0.3rem; }
.consent label { text-transform: none; letter-spacing: 0; font-size: 0.9rem; color: var(--ink-soft); }
.form-aside { font-size: 0.92rem; color: var(--muted); margin-top: var(--sp-3); }

/* author byline */
.byline {
  display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding-block: var(--sp-3); margin-top: var(--sp-5); font-size: 0.93rem; color: var(--muted);
}

/* ---------- footer, light gold tint ---------- */
.site-footer {
  background: var(--gold-wash);
  border-top: 1px solid var(--gold-line);
  padding-block: var(--sp-6) var(--sp-4);
  margin-top: var(--sp-5);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--sp-4); }
.site-footer h2 { font-family: "Karla", Helvetica, Arial, sans-serif; font-size: 0.76rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; font-size: 0.93rem; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.social { display: flex; gap: 0.6rem; margin-top: var(--sp-3); }
.social a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--gold-line); border-radius: 50%; background: var(--surface);
}
.social svg { width: 17px; height: 17px; }
.footer-base {
  margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid var(--gold-line);
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); justify-content: space-between;
  font-size: 0.85rem; color: var(--muted);
}

/* ---------- legal pages ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: var(--sp-5); }
.prose h3 { font-size: 1.2rem; margin-top: var(--sp-4); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.fact-table { width: 100%; border-collapse: collapse; margin: var(--sp-3) 0; }
.fact-table th, .fact-table td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--rule); font-size: 0.95rem; vertical-align: top; }
.fact-table th { width: 38%; color: var(--muted); font-weight: 600; }

.page-hero { padding-block: clamp(2.6rem, 5vw, 4.4rem) var(--sp-4); border-bottom: 1px solid var(--rule-soft); }
.crumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: var(--sp-2); }
.crumbs a { color: var(--muted); }

.author-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; }
.author-portrait img { border-radius: var(--r-lg); border: 1px solid var(--rule); box-shadow: var(--shadow-2); }

.map-group { margin-bottom: var(--sp-5); }
.map-group ul { list-style: none; padding: 0; margin: 0; }
.map-group li { padding: 0.65rem 0; border-bottom: 1px solid var(--rule-soft); }
.map-group li a { font-weight: 700; }
.map-group li span { display: block; color: var(--muted); font-size: 0.9rem; }

/* ---------- reveal, fabric settling ---------- */
.reveal { opacity: 0; transform: translateY(18px); filter: blur(3px); }
.reveal.is-in {
  opacity: 1; transform: none; filter: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.reveal:nth-child(2).is-in { transition-delay: 0.09s; }
.reveal:nth-child(3).is-in { transition-delay: 0.18s; }
.reveal:nth-child(4).is-in { transition-delay: 0.27s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .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)); }
  .outcome { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .outcome:first-child { border-top: 0; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--rule); padding: var(--sp-3) var(--gutter);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0.9rem; }
  .header-inner { position: relative; }
  .header-cta { display: none; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .results-strip, .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .step { padding-left: 3.4rem; }
}

@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; filter: none; }
}

@media print {
  .site-header, .site-footer, .btn { display: none; }
}

.tier-list { list-style: none; margin: var(--sp-3) 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; color: var(--ink-soft); }
.tier-list li { padding-left: 1.4rem; position: relative; }
.tier-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 1px; background: var(--primary); }
.results-strip span { display: block; }

/* ================= The Fitting Room, the magazine ================= */
/* Same chalk, pearl and soft gold as the rest of the atelier. Nothing painted dark. */

.mag-measure { max-width: 68ch; margin-inline: auto; }

/* ---- magazine index ---- */
.mag-index-head { text-align: left; }
.mag-index-head h1 { max-width: 14ch; }
.mag-index-note { max-width: 64ch; color: var(--ink-soft); font-size: 0.98rem; }
.mag-index { padding-top: var(--sp-5); }

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

.mag-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.mag-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--gold-line); }
.mag-card-media { display: block; border-bottom: 1px solid var(--rule-soft); background: var(--pearl); }
.mag-card-media 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.5rem; }
.mag-card-angle {
  margin: 0; font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--primary); font-weight: 600;
}
.mag-card-title { font-size: var(--step-2); line-height: 1.2; margin: 0; }
.mag-card-title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--gold-line), var(--gold-line)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size 0.55s var(--ease); }
.mag-card-title a:hover, .mag-card-title a:focus-visible { background-size: 100% 1px; }
.mag-card-dek { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.mag-card-meta {
  margin: auto 0 0; padding-top: var(--sp-2); border-top: 1px dashed var(--pearl-deep);
  font-size: 0.82rem; color: var(--muted); display: flex; gap: 0.8rem; flex-wrap: wrap;
}

/* lead card: the first article runs the full width of the grid */
.mag-card.lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.mag-card.lead .mag-card-media { flex: 0 0 55%; border-bottom: 0; border-right: 1px solid var(--rule-soft); }
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 340px; }
.mag-card.lead .mag-card-body { justify-content: center; padding: clamp(1.4rem, 3.4vw, 2.8rem); gap: 0.7rem; }
.mag-card.lead .mag-card-title { font-size: clamp(1.9rem, 3.2vw, 2.9rem); }
.mag-card.lead .mag-card-dek { font-size: 1.05rem; }

/* ---- article header ---- */
.mag-head { padding-bottom: var(--sp-4); border-bottom: 0; }
.mag-head .crumbs { display: block; }
.mag-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.14; }
.mag-standfirst { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }
.mag-byline {
  display: flex; flex-wrap: wrap; gap: 0.5rem var(--sp-3);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding-block: var(--sp-2); margin-top: var(--sp-4);
  font-size: 0.85rem; color: var(--muted); letter-spacing: 0.03em;
}
.mag-byline a { color: var(--primary); }

.mag-figure { margin: 0 auto var(--sp-5); }
.mag-figure img {
  width: 100%; border-radius: var(--r-lg); border: 1px solid var(--rule);
  box-shadow: var(--shadow-2); aspect-ratio: 3 / 2; object-fit: cover;
}
.mag-figure figcaption { margin-top: var(--sp-2); font-size: var(--step--1); color: var(--muted); letter-spacing: 0.04em; }

/* ---- article body typography ---- */
.mag-body { font-size: 1.06rem; line-height: 1.75; color: var(--ink); }
.mag-body h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: var(--sp-5) 0 var(--sp-3); }
.mag-body h3 { font-size: 1.28rem; margin: var(--sp-4) 0 var(--sp-2); }
.mag-body p { margin: 0 0 var(--sp-3); }
.mag-body ul, .mag-body ol { padding-left: 1.25rem; margin: 0 0 var(--sp-3); }
.mag-body li { margin-bottom: 0.5rem; }
.mag-body blockquote {
  margin: var(--sp-4) 0; padding: var(--sp-3) var(--sp-4);
  background: var(--gold-wash); border-left: 2px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink);
  font-size: 1.02rem;
}
.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.94rem; }
.mag-body th, .mag-body td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.mag-body th { background: var(--pearl); color: var(--ink); font-weight: 700; }
.mag-body a { color: var(--primary); }

.inline-read {
  margin: var(--sp-4) 0; padding: var(--sp-3);
  background: var(--gold-tint); border: 1px solid var(--gold-line); border-radius: var(--r-md);
  font-size: 0.94rem; color: var(--ink-soft);
}
.inline-read a { font-weight: 700; color: var(--primary); }

/* ---- call to action ---- */
.mag-cta {
  margin-top: var(--sp-5); padding: clamp(1.4rem, 3.4vw, 2.4rem);
  background: var(--chalk); border: 1px solid var(--gold-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); position: relative; overflow: hidden;
}
.mag-cta::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background-image: repeating-linear-gradient(90deg, rgba(142,114,51,0.6) 0 8px, rgba(142,114,51,0) 8px 15px);
}
.mag-cta h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); margin-bottom: var(--sp-2); }
.mag-cta p { color: var(--ink-soft); margin-bottom: var(--sp-3); }

/* ---- author box ---- */
.mag-author {
  margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 120px 1fr; gap: var(--sp-4); align-items: start;
}
.mag-author img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold-line); }
.mag-author p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: var(--sp-2); }
.mag-author-name {
  font-family: "Italiana", "Didot", Georgia, serif; font-size: 1.4rem;
  color: var(--ink); margin-bottom: 0.2rem;
}

/* ---- read also ---- */
.mag-related { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--rule); }
.mag-related > h2 {
  font-family: "Karla", Helvetica, Arial, sans-serif; font-size: 0.78rem;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); 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: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.mag-rel:hover { transform: translateY(-3px); border-color: var(--gold-line); }
.mag-rel-media { display: block; background: var(--pearl); }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-title { font-size: 1.16rem; line-height: 1.24; margin: var(--sp-3) var(--sp-3) 0.4rem; }
.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-3) var(--sp-3); font-size: 0.88rem; color: var(--ink-soft); }
.mag-rel-meta { margin: auto var(--sp-3) var(--sp-3); font-size: 0.78rem; color: var(--muted); }
.mag-related-more { margin-top: var(--sp-4); font-size: 0.92rem; }

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

/* ---- author page and site map lists ---- */
.mag-list { list-style: none; margin: 0; padding: 0; }
.mag-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule-soft); }
.mag-list li a { font-weight: 700; }
.mag-list li time { display: block; font-size: 0.84rem; color: var(--muted); margin-top: 0.15rem; }

@media (max-width: 960px) {
  .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 { flex: none; border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .mag-card.lead .mag-card-media img { min-height: 0; aspect-ratio: 3 / 2; }
}
@media (max-width: 620px) {
  .mag-grid, .mag-related-grid, .mag-teaser-grid { grid-template-columns: 1fr; }
  .mag-body { font-size: 1rem; line-height: 1.7; }
  .mag-measure { max-width: 100%; }
  .mag-author { grid-template-columns: 1fr; gap: var(--sp-3); }
  .mag-author img { width: 96px; height: 96px; }
  .mag-byline { font-size: 0.8rem; gap: 0.35rem var(--sp-2); }
  .mag-figure img { border-radius: var(--r-md); }
  .mag-cta .btn { width: 100%; }
}


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