/* ==========================================================================
   WordRate design system
   Multilingual editorial: warm paper, ink, linguistic teal.
   Literata for display, Noto Sans for text. Marginal running heads,
   script sample rules, diacritic accent marks, page turn motion.
   ========================================================================== */

:root {
  /* core palette from the brand book */
  --paper:      #FAF9F6;
  --surface:    #FFFFFF;
  --ink:        #191B1F;
  --teal:       #1F6E73;
  --accent:     #D97A3A;
  --muted:      #5D6266;

  /* derived tints and shades */
  --paper-warm: #F4F1EA;
  --paper-deep: #EDE8DE;
  --ink-soft:   #33373D;
  --ink-faint:  rgba(25, 27, 31, 0.62);
  --teal-deep:  #14494D;
  --teal-mid:   #2C8288;
  --teal-wash:  #E3EEEE;
  --teal-mist:  #F1F7F7;
  --accent-deep:#B75F26;
  --accent-ink:  #8E4A16;
  --accent-wash:#FBECE0;
  --rule:       rgba(25, 27, 31, 0.13);
  --rule-strong:rgba(25, 27, 31, 0.28);
  --teal-rule:  rgba(31, 110, 115, 0.24);

  /* type */
  --display: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --body: "Noto Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step-000: 0.76rem;
  --step-00:  0.86rem;
  --step-0:   1rem;
  --step-1:   1.14rem;
  --step-2:   1.34rem;
  --step-3:   1.62rem;
  --step-4:   2.05rem;
  --step-5:   2.6rem;
  --step-6:   3.3rem;
  --step-7:   4.1rem;

  /* spacing scale, book measure */
  --s1: 0.35rem;
  --s2: 0.65rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.25rem;
  --s6: 3.25rem;
  --s7: 4.75rem;
  --s8: 6.5rem;
  --measure: 34rem;
  --wrap: 74rem;

  /* radii and shadows, kept close to printed matter */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
  --r-plate: 3px;
  --sh-page: 0 1px 0 rgba(25, 27, 31, 0.07), 0 14px 30px rgba(25, 27, 31, 0.07);
  --sh-lift: 0 2px 0 rgba(25, 27, 31, 0.06), 0 22px 44px rgba(25, 27, 31, 0.11);
  --sh-inset: inset 0 0 0 1px var(--rule);
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.68;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  /* ruled manuscript paper: a hairline every 32px plus a warm grain wash */
  background-image:
    repeating-linear-gradient(to bottom, rgba(31, 110, 115, 0.045) 0 1px, transparent 1px 32px),
    radial-gradient(1100px 620px at 12% -8%, rgba(217, 122, 58, 0.07), transparent 62%),
    radial-gradient(900px 560px at 92% 4%, rgba(31, 110, 115, 0.08), transparent 60%);
}
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.012em;
  margin: 0 0 var(--s3);
  color: var(--ink);
}
p { margin: 0 0 var(--s3); }
ul, ol { margin: 0 0 var(--s3); padding-left: 1.15rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s5) 0; }
::selection { background: var(--teal-wash); color: var(--teal-deep); }

/* --------------------------------------------------- accessibility base */
.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(--s3); top: -4rem;
  z-index: 200;
  background: var(--teal-deep);
  color: #FFFFFF;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-md);
  font-weight: 600;
  text-decoration: none;
  transition: top 160ms ease;
}
.skip-link:focus { top: var(--s3); color: #FFFFFF; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(217, 122, 58, 0.2);
}

/* ------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
.section { padding: var(--s7) 0; position: relative; }
.section-tight { padding: var(--s6) 0; }
.measure { max-width: var(--measure); }
main { display: block; }

/* the marginal rail: a running head printed down the outer margin,
   the way a page number and a section title sit in a printed book */
.leaf { position: relative; }
@media (min-width: 1120px) {
  .leaf > .wrap { padding-left: 7.5rem; }
  .rail {
    position: absolute;
    left: max(1.5rem, calc(50% - (var(--wrap) / 2) + 1.5rem));
    top: var(--s7);
    width: 6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s3);
  }
  .rail-no {
    font-family: var(--display);
    font-size: var(--step-2);
    color: var(--accent);
    letter-spacing: 0.04em;
  }
  .rail-head {
    writing-mode: vertical-rl;
    font-size: var(--step-000);
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
    border-left: 1px solid var(--teal-rule);
    padding-left: 0.55rem;
    margin-left: 0.15rem;
  }
}
@media (max-width: 1119px) { .rail { display: none; } }

/* -------------------------------------------------- editorial furniture */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step-000);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-deep);
  margin: 0 0 var(--s3);
}
.eyebrow::before {
  content: "";
  width: 1.9rem; height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(217, 122, 58, 0));
}
/* the diacritic: a small acute accent set above a heading, the way a
   fada or an aigu sits over a vowel */
.acute { position: relative; display: inline-block; }
.acute::after {
  content: "";
  position: absolute;
  top: -0.42em; right: 0.06em;
  width: 0.42em; height: 0.13em;
  background: var(--accent);
  transform: skewX(-26deg);
  border-radius: 1px;
}
.sec-title { font-size: clamp(1.75rem, 1.2rem + 2.1vw, var(--step-5)); margin-bottom: var(--s3); }
.sec-intro { color: var(--muted); font-size: var(--step-1); max-width: 40rem; }

/* script sample rule: a hairline set with rotating glyph samples,
   the way a type specimen sheet shows a face across writing systems */
.script-rule {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: var(--s5) 0;
  color: var(--teal);
  font-family: var(--display);
  font-size: var(--step-00);
  letter-spacing: 0.5em;
  opacity: 0.55;
  user-select: none;
}
.script-rule::before, .script-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-rule) 18%, var(--teal-rule) 82%, transparent);
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}
.btn-primary {
  background: var(--teal);
  color: #FFFFFF;
  box-shadow: 0 1px 0 var(--teal-deep), 0 10px 22px rgba(31, 110, 115, 0.24);
}
.btn-primary:hover { background: var(--teal-deep); color: #FFFFFF; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
  box-shadow: inset 0 -2px 0 rgba(217, 122, 58, 0.35);
}
.btn-ghost:hover { background: var(--surface); color: var(--teal-deep); transform: translateY(-2px); }
.btn-accent {
  background: var(--accent);
  color: #241206;
  box-shadow: 0 1px 0 var(--accent-deep), 0 10px 22px rgba(217, 122, 58, 0.26);
}
.btn-accent:hover { background: var(--accent-deep); color: #FFFFFF; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.7rem 1.05rem; font-size: var(--step-00); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: saturate(1.15) blur(9px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 220ms ease, background-color 220ms ease;
}
.site-header.is-scrolled {
  background: rgba(250, 249, 246, 0.97);
  box-shadow: 0 1px 0 var(--teal-rule), 0 10px 26px rgba(25, 27, 31, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 4.4rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark svg { width: 30px; height: 30px; flex: none; }
.wordmark .tail { color: var(--teal-deep); }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--s4);
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--step-00);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--teal-deep); border-bottom-color: var(--accent); }
.header-cta { display: none; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem; height: 2.7rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
@media (max-width: 899px) {
  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--sh-page);
    padding: var(--s3) var(--s4) var(--s4);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--rule); margin: 0; }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: 0.85rem 0; font-size: var(--step-1); }
  .site-nav .nav-cta { margin-top: var(--s3); }
  .site-nav .nav-cta a {
    background: var(--teal); color: #FFFFFF; text-align: center;
    border-radius: var(--r-md); padding: 0.85rem 1rem;
  }
}
@media (min-width: 900px) { .nav-toggle { display: none; } .site-nav .nav-cta { display: none; } }

/* ------------------------------------------------------------------ hero */
.hero { padding: var(--s7) 0 var(--s6); position: relative; overflow: hidden; }
.hero::before {
  /* a giant ghosted quotation glyph, printed like an oversized initial */
  content: "";
  position: absolute;
  right: -6rem; top: -3rem;
  width: 30rem; height: 30rem;
  background:
    radial-gradient(closest-side, rgba(31, 110, 115, 0.09), transparent 72%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: var(--s6);
  align-items: start;
}
@media (min-width: 1020px) {
  .hero-grid { grid-template-columns: 1.02fr 0.98fr; gap: var(--s6); align-items: center; }
}
.hero h1 {
  font-size: clamp(2.15rem, 1.2rem + 3.7vw, var(--step-7));
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: var(--s4);
}
.hero h1 .ink-teal { color: var(--teal-deep); }
.hero-lede { font-size: var(--step-2); color: var(--ink-soft); max-width: 33rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s5) 0 var(--s4); }

/* script cycler: the same idea rendered across writing systems, the way a
   term travels through a project. Purely ornamental, hidden from readers. */
.cycler {
  position: relative;
  display: inline-block;
  min-width: 5.6ch;
  height: 1.05em;
  vertical-align: baseline;
  color: var(--accent-deep);
  font-family: var(--display);
}
.cycler span {
  position: absolute;
  left: 0; top: 0;
  white-space: nowrap;
  opacity: 0;
  animation: scriptTurn 12s infinite;
}
.cycler span:nth-child(1) { animation-delay: 0s; }
.cycler span:nth-child(2) { animation-delay: 3s; }
.cycler span:nth-child(3) { animation-delay: 6s; }
.cycler span:nth-child(4) { animation-delay: 9s; }
@keyframes scriptTurn {
  0%   { opacity: 0; transform: translateY(0.35em) rotateX(40deg); }
  4%   { opacity: 1; transform: translateY(0) rotateX(0deg); }
  22%  { opacity: 1; transform: translateY(0) rotateX(0deg); }
  27%  { opacity: 0; transform: translateY(-0.3em) rotateX(-32deg); }
  100% { opacity: 0; }
}

.trust-strip {
  display: grid;
  gap: var(--s3);
  border-top: 1px solid var(--teal-rule);
  border-bottom: 1px solid var(--teal-rule);
  padding: var(--s4) 0;
  margin-top: var(--s5);
}
@media (min-width: 700px) { .trust-strip { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
.trust-item { display: flex; gap: 0.7rem; align-items: flex-start; }
.trust-item svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 3px; }
.trust-item span { font-size: var(--step-00); color: var(--ink-soft); line-height: 1.45; }
.trust-item b { display: block; font-weight: 600; color: var(--ink); font-size: var(--step-0); }

/* photographic plate: a printed illustration with a caption, the way a
   plate is tipped into a book */
.plate {
  position: relative;
  background: var(--surface);
  padding: 0.75rem 0.75rem 0.4rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-plate);
  box-shadow: var(--sh-page);
  transform: rotate(-0.55deg);
}
.plate::after {
  content: "";
  position: absolute;
  inset: 0.3rem;
  border: 1px solid rgba(31, 110, 115, 0.16);
  border-radius: 2px;
  pointer-events: none;
}
.plate img { border-radius: 2px; }
.plate-caption {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-00);
  color: var(--muted);
  padding: 0.65rem 0.25rem 0.35rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.6rem;
}
.plate-caption b { font-style: normal; font-weight: 600; color: var(--teal-deep); }
.plate-alt { transform: rotate(0.6deg); }

/* ------------------------------------------------------------- problem */
.problem { background: linear-gradient(180deg, transparent, rgba(237, 232, 222, 0.55) 22%, rgba(237, 232, 222, 0.55) 78%, transparent); }
.card-grid { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .card-grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 980px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 979px) { .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* index card: a slip of card stock with a ruled head, like a term card
   pulled from a translator's box file */
.slip {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--s4);
  box-shadow: var(--sh-page);
  position: relative;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.slip::before {
  content: "";
  position: absolute;
  left: var(--s4); right: var(--s4); top: calc(var(--s4) + 2.35rem);
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--teal-rule) 0 6px, transparent 6px 11px);
}
.slip:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); }
.slip h3 { font-size: var(--step-2); margin-bottom: 2.9rem; }
.slip p { font-size: var(--step-00); color: var(--ink-soft); margin-bottom: var(--s3); }
.slip .cost {
  display: block;
  font-family: var(--display);
  font-size: var(--step-00);
  color: var(--accent-ink);
  border-top: 1px solid var(--rule);
  padding-top: 0.65rem;
  margin: 0;
}
.slip .cost b { font-weight: 600; color: var(--ink); }

/* --------------------------------------------------------------- steps */
.steps { display: grid; gap: var(--s5); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.step { position: relative; padding-top: var(--s4); border-top: 2px solid var(--ink); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: var(--step-4);
  color: var(--teal);
  display: block;
  line-height: 1;
  margin-bottom: var(--s2);
}
.step h3 { font-size: var(--step-2); }
.step p { color: var(--ink-soft); font-size: var(--step-00); margin-bottom: 0; }
.step-note {
  display: inline-block;
  margin-top: var(--s3);
  font-size: var(--step-000);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  border: 1px solid rgba(217, 122, 58, 0.45);
  background: var(--accent-wash);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}
.solution-grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 1020px) { .solution-grid { grid-template-columns: 0.92fr 1.08fr; } }

/* ------------------------------------------------------------ features */
.feature-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  padding: var(--s5) var(--s4) var(--s5) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
@media (min-width: 700px) {
  .feature { padding-right: var(--s5); }
  .feature::after {
    content: "";
    position: absolute;
    right: var(--s4); top: var(--s5); bottom: var(--s5);
    width: 1px;
    background: var(--rule);
  }
  .feature:nth-child(2n)::after { display: none; }
}
@media (min-width: 1040px) {
  .feature:nth-child(2n)::after { display: block; }
  .feature:nth-child(3n)::after { display: none; }
}
.glyph {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--teal-rule);
  border-radius: var(--r-md);
  background: var(--teal-mist);
  color: var(--teal-deep);
  margin-bottom: var(--s3);
  position: relative;
}
.glyph::after {
  content: "";
  position: absolute;
  top: -5px; right: -5px;
  width: 10px; height: 3px;
  background: var(--accent);
  transform: skewX(-26deg);
  border-radius: 1px;
}
.glyph svg { width: 24px; height: 24px; }
.feature h3 { font-size: var(--step-2); margin-bottom: var(--s2); }
.feature p { color: var(--ink-soft); font-size: var(--step-00); margin-bottom: 0; }

/* ------------------------------------------------------------ outcomes */
.outcomes { background: var(--teal-deep); color: #F3F7F6; position: relative; }
.outcomes::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 30px);
  pointer-events: none;
}
.outcomes .wrap { position: relative; }
.outcomes h2, .outcomes h3 { color: #FFFFFF; }
.outcomes .eyebrow { color: #EBC39D; }
.outcomes .eyebrow::before { background: linear-gradient(90deg, var(--accent), rgba(217, 122, 58, 0)); }
.outcomes .sec-intro { color: rgba(243, 247, 246, 0.82); }
.outcome-grid { display: grid; gap: var(--s5); margin-top: var(--s5); }
@media (min-width: 760px) { .outcome-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .outcome-grid { grid-template-columns: repeat(4, 1fr); } }
.outcome { border-top: 1px solid rgba(255, 255, 255, 0.28); padding-top: var(--s3); }
.outcome .num {
  font-family: var(--display);
  font-size: clamp(2.3rem, 1.4rem + 2.6vw, 3.1rem);
  line-height: 1;
  color: #FFFFFF;
  display: block;
  margin-bottom: var(--s2);
  letter-spacing: -0.03em;
}
.outcome .num em { font-style: normal; color: var(--accent); }
.outcome h3 { font-size: var(--step-1); margin-bottom: var(--s2); }
.outcome p { color: rgba(243, 247, 246, 0.78); font-size: var(--step-00); margin-bottom: 0; }

/* --------------------------------------------------------- testimonials */
.quote-grid { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s5) var(--s4) var(--s4);
  margin: 0;
  position: relative;
  box-shadow: var(--sh-page);
}
.testimonial::before {
  content: "";
  position: absolute;
  left: var(--s4); top: var(--s3);
  width: 26px; height: 18px;
  background:
    radial-gradient(circle 7px at 7px 11px, var(--accent) 98%, transparent 100%),
    radial-gradient(circle 7px at 22px 11px, var(--accent) 98%, transparent 100%),
    linear-gradient(var(--accent), var(--accent));
  -webkit-mask:
    radial-gradient(circle 7px at 7px 11px, #000 98%, transparent 100%),
    radial-gradient(circle 7px at 22px 11px, #000 98%, transparent 100%);
  mask:
    radial-gradient(circle 7px at 7px 11px, #000 98%, transparent 100%),
    radial-gradient(circle 7px at 22px 11px, #000 98%, transparent 100%);
  opacity: 0.85;
}
.testimonial p {
  font-family: var(--display);
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: var(--s4);
}
.testimonial footer { border-top: 1px solid var(--rule); padding-top: var(--s3); }
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  display: block;
  color: var(--ink);
  font-size: var(--step-0);
}
.testimonial .who { display: block; font-size: var(--step-000); color: var(--muted); line-height: 1.5; margin-top: 0.2rem; }
.metrics {
  display: grid;
  gap: var(--s4);
  margin-top: var(--s6);
  border: 1px solid var(--teal-rule);
  background: var(--teal-mist);
  border-radius: var(--r-md);
  padding: var(--s5) var(--s4);
}
@media (min-width: 760px) { .metrics { grid-template-columns: repeat(3, 1fr); } }
.metric { text-align: center; }
.metric b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.9rem, 1.2rem + 2vw, 2.6rem);
  color: var(--teal-deep);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.metric span { display: block; font-size: var(--step-00); color: var(--ink-soft); margin-top: 0.35rem; }
@media (min-width: 760px) {
  .metric + .metric { border-left: 1px solid var(--teal-rule); }
}

/* ------------------------------------------------------------- pricing */
.price-grid { display: grid; gap: var(--s4); align-items: stretch; }
@media (min-width: 940px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.tier {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s4) var(--s4);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--sh-page);
}
.tier.is-recommended { padding-top: calc(var(--s5) + 1.4rem); }
.tier.is-recommended {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--sh-lift);
  background:
    linear-gradient(180deg, var(--teal-mist), var(--surface) 30%);
}
.tier-flag {
  position: absolute;
  top: var(--s3);
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #FFFFFF;
  font-size: var(--step-000);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 6px 14px rgba(31, 110, 115, 0.28);
}
.tier h3 { font-size: var(--step-2); margin-bottom: 0.25rem; }
.tier .who-for { font-size: var(--step-000); color: var(--muted); margin-bottom: var(--s3); }
.tier .price {
  font-family: var(--display);
  font-size: clamp(2.3rem, 1.6rem + 2vw, 3rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: var(--s3);
}
.tier .price small { font-family: var(--body); font-size: var(--step-00); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier ul { list-style: none; padding: 0; margin: var(--s3) 0 var(--s4); }
.tier li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--step-00);
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
  border-bottom: 1px dotted var(--rule);
  padding-bottom: 0.55rem;
}
.tier li:last-child { border-bottom: 0; }
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.6rem; height: 0.18rem;
  background: var(--teal);
  transform: skewX(-26deg);
  border-radius: 1px;
}
.tier .btn { margin-top: auto; }
.billing-note {
  margin-top: var(--s4);
  font-size: var(--step-00);
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: var(--s3);
  max-width: 44rem;
}

/* ----------------------------------------------------------------- faq */
.faq-list { border-top: 1px solid var(--rule); max-width: 52rem; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  background: transparent;
  border: 0;
  padding: var(--s4) 0;
  text-align: left;
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.35;
}
.faq-q:hover { color: var(--teal-deep); }
.faq-sign {
  flex: none;
  width: 1.5rem; height: 1.5rem;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  position: relative;
  margin-top: 0.2rem;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}
.faq-sign::before, .faq-sign::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--teal-deep);
  transform: translate(-50%, -50%);
}
.faq-sign::before { width: 0.7rem; height: 1.5px; }
.faq-sign::after { width: 1.5px; height: 0.7rem; transition: opacity 200ms ease; }
.faq-q[aria-expanded="true"] .faq-sign { background: var(--teal-wash); border-color: var(--teal); transform: rotate(180deg); }
.faq-q[aria-expanded="true"] .faq-sign::after { opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 340ms ease, opacity 260ms ease, padding-bottom 260ms ease;
}
.faq-a.is-open { max-height: 44rem; opacity: 1; padding-bottom: var(--s4); }
.faq-a p { color: var(--ink-soft); font-size: var(--step-00); max-width: 46rem; margin-bottom: var(--s2); }
.faq-a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- contact */
.contact { background: linear-gradient(180deg, rgba(237, 232, 222, 0.5), transparent 60%); }
.contact-grid { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }
.form-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s4);
  box-shadow: var(--sh-lift);
  position: relative;
}
.form-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--teal) 0 34%, var(--accent) 34% 46%, var(--teal-mid) 46% 100%);
}
@media (min-width: 620px) { .form-card { padding: var(--s5); } }
.field { margin-bottom: var(--s4); }
.field-row { display: grid; gap: var(--s4); }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label {
  display: block;
  font-size: var(--step-00);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--step-000); margin-top: 0.1rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  padding: 0.75rem 0.85rem;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--teal-mid); }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--surface); border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: #A4361F; background: #FDF3F0; }
.err {
  display: none;
  color: #8E2F1A;
  font-size: var(--step-000);
  margin-top: 0.35rem;
  font-weight: 600;
}
.err.is-shown { display: block; }
.consent { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.65rem; }
.consent .err { flex-basis: 100%; }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.3rem; flex: none; accent-color: var(--teal); }
.consent label { font-weight: 400; font-size: var(--step-00); color: var(--ink-soft); margin: 0; }
.form-foot { margin-top: var(--s4); font-size: var(--step-00); color: var(--muted); }
.contact-aside ul { list-style: none; padding: 0; }
.contact-aside li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: var(--s3);
  color: var(--ink-soft);
  font-size: var(--step-00);
}
.contact-aside li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 0.75rem; height: 0.75rem;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg) translateY(-0.15em);
}

/* -------------------------------------------------------- author byline */
.byline {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--s4) 0;
  margin: var(--s6) 0 0;
  font-size: var(--step-00);
  color: var(--ink-soft);
}
.byline .sig {
  font-family: var(--display);
  font-size: var(--step-2);
  color: var(--teal-deep);
  flex: none;
  line-height: 1;
  padding-top: 0.2rem;
}
.byline p { margin-bottom: 0; }

/* -------------------------------------------------------------- footer */
.site-footer {
  background: var(--ink);
  color: #DCDDE0;
  padding: var(--s7) 0 var(--s4);
  margin-top: var(--s7);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg,
    var(--teal) 0 22px, var(--accent) 22px 30px, var(--teal-mid) 30px 52px, transparent 52px 60px);
  opacity: 0.9;
}
.site-footer a { color: #DCDDE0; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.foot-grid { display: grid; gap: var(--s5); }
@media (min-width: 720px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s5); } }
.foot-brand .wordmark { color: #FFFFFF; }
.foot-brand .wordmark .tail { color: var(--accent); }
.foot-brand p { color: #A9ACB2; font-size: var(--step-00); margin-top: var(--s3); max-width: 24rem; }
.social { display: flex; gap: 0.6rem; margin-top: var(--s4); }
.social a {
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-md);
  color: #DCDDE0;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.social a:hover { background: var(--teal); border-color: var(--teal); color: #FFFFFF; transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }
.foot-col h2 {
  font-family: var(--body);
  font-size: var(--step-000);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 0.6rem; font-size: var(--step-00); }
.foot-col .pub { color: #A9ACB2; font-size: var(--step-000); margin-top: var(--s3); }
.foot-base {
  margin-top: var(--s6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: var(--s4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  justify-content: space-between;
  font-size: var(--step-000);
  color: #A9ACB2;
}

/* ---------------------------------------------------------- prose pages */
.page-head {
  padding: var(--s6) 0 var(--s5);
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(227, 238, 238, 0.55), transparent);
}
.page-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, var(--step-6)); margin-bottom: var(--s3); }
.page-head p { color: var(--muted); max-width: 46rem; margin-bottom: 0; }
.crumbs { font-size: var(--step-000); color: var(--muted); margin-bottom: var(--s3); letter-spacing: 0.04em; }
.crumbs a { color: var(--teal-deep); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.prose { max-width: 46rem; padding: var(--s6) 0 var(--s7); }
.prose-wide { max-width: 62rem; }
.prose h2 {
  font-size: var(--step-3);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--teal-rule);
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: var(--s4); }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.prose .lead {
  font-family: var(--display);
  font-size: var(--step-2);
  color: var(--ink);
  line-height: 1.5;
}
.fact-list {
  list-style: none;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.fact-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem var(--s3);
  border-bottom: 1px solid var(--rule);
  margin: 0;
  font-size: var(--step-00);
}
@media (min-width: 620px) { .fact-list li { grid-template-columns: 15rem 1fr; gap: var(--s3); } }
.fact-list li:last-child { border-bottom: 0; }
.fact-list b { font-weight: 600; color: var(--ink); }
.note-box {
  background: var(--teal-mist);
  border: 1px solid var(--teal-rule);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s4);
  margin: var(--s4) 0;
}
.note-box p:last-child { margin-bottom: 0; }
.updated {
  font-size: var(--step-000);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  display: inline-block;
}

/* author page */
.author-grid { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 900px) { .author-grid { grid-template-columns: 18rem 1fr; gap: var(--s6); } }
.portrait {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 0.7rem;
  border-radius: var(--r-plate);
  box-shadow: var(--sh-page);
  transform: rotate(-0.8deg);
}
.portrait img { border-radius: 2px; }
.profile-links { list-style: none; padding: 0; margin: var(--s4) 0 0; }
.profile-links li { margin-bottom: 0.55rem; font-size: var(--step-00); }
.profile-links a { color: var(--teal-deep); }

/* site map */
.map-grid { display: grid; gap: var(--s5); }
@media (min-width: 780px) { .map-grid { grid-template-columns: repeat(2, 1fr); } }
.map-col h2 { font-size: var(--step-2); border-top: 2px solid var(--ink); padding-top: var(--s3); margin-top: 0; }
.map-col ul { list-style: none; padding: 0; }
.map-col li { border-bottom: 1px dotted var(--rule); padding-bottom: 0.6rem; margin-bottom: 0.6rem; }
.map-col a { font-weight: 600; color: var(--teal-deep); text-decoration: none; }
.map-col a:hover { text-decoration: underline; }
.map-col span { display: block; font-size: var(--step-00); color: var(--muted); }

/* thanks and 404 */
.stage {
  min-height: 52vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--s7) 0;
}
.stage-inner { max-width: 40rem; }
.stage h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
.stage p { color: var(--ink-soft); font-size: var(--step-1); }
.stage .btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; margin-top: var(--s5); }
.big-glyph {
  font-family: var(--display);
  font-size: clamp(4rem, 3rem + 8vw, 8rem);
  line-height: 1;
  color: var(--teal);
  letter-spacing: -0.04em;
  margin-bottom: var(--s3);
}
.big-glyph .dot { color: var(--accent); }

/* ---------------------------------------------------------- reveal motion
   a leaf turning: the block lifts from its top edge as it settles */
.reveal {
  opacity: 0;
  transform: translateY(16px) rotateX(4deg);
  transform-origin: top center;
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 90ms; }
.reveal-d2 { transition-delay: 180ms; }
.reveal-d3 { transition-delay: 270ms; }

@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; }
  .cycler span:nth-child(1) { opacity: 1; }
  .cycler span:nth-child(2), .cycler span:nth-child(3), .cycler span:nth-child(4) { opacity: 0; }
  .faq-a.is-open { max-height: none; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .skip-link { display: none; }
  body { background: #FFFFFF; color: #000000; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Source and Target: the magazine
   The same paper, ink and teal as the rest of the site, set as a printed
   periodical: a lead plate, ruled card decks and a single column of text
   held at a book measure.
   ========================================================================== */

/* ------------------------------------------------------- magazine masthead */
.mag-head { border-bottom: 1px solid var(--teal-rule); }
.mag-head .crumbs { display: block; }
.mag-head .crumbs span { color: var(--muted); }
.mag-standfirst {
  font-family: var(--display);
  font-size: clamp(1.08rem, 1rem + 0.6vw, var(--step-2));
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 44rem;
  margin: 0 0 var(--s3);
}
.mag-issue {
  font-size: var(--step-00);
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0;
}

/* --------------------------------------------------------- the index deck */
.mag-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  margin: var(--s5) 0 var(--s6);
}
@media (min-width: 700px) { .mag-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s4); } }
@media (min-width: 1040px) { .mag-grid { grid-template-columns: repeat(3, 1fr); } }

.mag-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--teal);
  border-radius: var(--r-plate);
  box-shadow: var(--sh-page);
  padding: 0 0 var(--s4);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.mag-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); }
.mag-card-plate { display: block; margin: 0; border-bottom: 1px solid var(--rule); }
.mag-card-plate img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-text { padding: var(--s4) var(--s4) 0; display: flex; flex-direction: column; flex: 1 1 auto; }
.mag-card-kicker {
  font-size: var(--step-000);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-ink);
  margin: 0 0 var(--s2);
}
.mag-card-title {
  font-size: var(--step-2);
  line-height: 1.22;
  margin: 0 0 var(--s2);
}
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.mag-card-dek {
  font-size: var(--step-00);
  color: var(--ink-soft);
  margin: 0 0 var(--s3);
}
.mag-card-meta {
  font-size: var(--step-000);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: auto 0 0;
  padding-top: var(--s2);
  border-top: 1px dotted var(--rule);
}
.mag-card-meta .sep, .mag-byline .sep { padding: 0 0.5rem; color: var(--accent); }

/* the lead: the front of the issue, set across the full deck */
@media (min-width: 700px) {
  .mag-card.lead { grid-column: 1 / -1; }
  .mag-card.lead { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; padding-bottom: 0; }
  .mag-card.lead .mag-card-plate { border-bottom: 0; border-right: 1px solid var(--rule); height: 100%; }
  .mag-card.lead .mag-card-plate img { height: 100%; aspect-ratio: auto; min-height: 20rem; }
  .mag-card.lead .mag-card-text { padding: var(--s5) var(--s5) var(--s5); display: flex; flex-direction: column; }
  .mag-card.lead .mag-card-title { font-size: clamp(1.5rem, 1.1rem + 1.5vw, var(--step-4)); }
  .mag-card.lead .mag-card-dek { font-size: var(--step-0); }
}
.mag-card.lead { border-top-color: var(--accent); }

/* ------------------------------------------------------- the article page */
.mag-article { display: block; }
.mag-plate { margin: var(--s6) auto var(--s3); max-width: 60rem; }
.mag-plate img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.mag-byline {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--teal-rule);
  max-width: 44rem;
}
.mag-byline .sig {
  flex: 0 0 auto;
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal-wash);
  color: var(--teal-deep);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mag-byline p {
  margin: 0;
  font-size: var(--step-00);
  color: var(--muted);
  line-height: 1.7;
}
.mag-byline a { color: var(--teal-deep); font-weight: 600; }

/* body typography: one column, book measure, generous rhythm */
.mag-body {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--ink-soft);
}
.mag-body > :first-child { margin-top: 0; }
.mag-body h2 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, var(--step-3));
  color: var(--ink);
  margin: var(--s6) 0 var(--s3);
  padding-top: var(--s3);
  border-top: 2px solid var(--ink);
}
.mag-body h3 {
  font-size: var(--step-1);
  color: var(--ink);
  margin: var(--s5) 0 var(--s2);
}
.mag-body p { margin: 0 0 var(--s4); }
.mag-body ul, .mag-body ol { margin: 0 0 var(--s4); padding-left: 1.35rem; }
.mag-body li { margin-bottom: 0.55rem; }
.mag-body strong { color: var(--ink); }
.mag-body a { color: var(--teal-deep); }
.mag-body blockquote {
  margin: var(--s5) 0;
  padding: var(--s2) 0 var(--s2) var(--s4);
  border-left: 3px solid var(--accent);
  font-family: var(--display);
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink);
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--s5);
  font-size: var(--step-00);
  display: block;
  overflow-x: auto;
}
.mag-body th, .mag-body td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.mag-body th {
  font-family: var(--display);
  color: var(--ink);
  background: var(--paper-warm);
  border-bottom: 2px solid var(--ink);
}
.mag-body tbody tr:nth-child(even) { background: var(--teal-mist); }

/* the contextual read on line, set like a margin note pulled inline */
.inline-read {
  margin: var(--s5) 0;
  padding: var(--s3) var(--s4);
  background: var(--teal-mist);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-plate) var(--r-plate) 0;
  font-family: var(--display);
  font-size: var(--step-00);
  color: var(--ink);
}
.inline-read a { color: var(--teal-deep); font-weight: 600; }

/* ---------------------------------------------------------- call to action */
.mag-cta {
  max-width: 68ch;
  margin: var(--s6) auto;
  padding: var(--s5);
  background: var(--paper-warm);
  border: 1px solid var(--teal-rule);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-plate);
  box-shadow: var(--sh-page);
}
.mag-cta h2 { font-size: var(--step-3); margin-bottom: var(--s3); }
.mag-cta p { color: var(--ink-soft); margin-bottom: var(--s3); }
.mag-cta-row { margin: 0; }
.mag-cta-index { max-width: none; }

/* ------------------------------------------------------------- author box */
.mag-author {
  max-width: 68ch;
  margin: var(--s6) auto;
  padding: var(--s5) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .mag-author { grid-template-columns: 9rem 1fr; align-items: start; } }
.mag-portrait { margin: 0; }
.mag-portrait img { width: 100%; max-width: 9rem; }
.mag-author h2 { font-size: var(--step-2); margin-bottom: var(--s2); }
.mag-author p { font-size: var(--step-00); color: var(--ink-soft); }
.mag-author p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- read also */
.mag-related { margin: var(--s6) 0 var(--s7); }
.mag-related h2 { font-size: var(--step-3); margin-bottom: var(--s4); }
.mag-related-grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .mag-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .mag-related-grid { grid-template-columns: repeat(3, 1fr); } }
.ra-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-plate);
  box-shadow: var(--sh-page);
  padding: 0 var(--s4) var(--s4);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.ra-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); }
.ra-plate { display: block; margin: 0 calc(var(--s4) * -1) var(--s3); }
.ra-plate img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-plate) var(--r-plate) 0 0; }
.ra-title { font-size: var(--step-1); line-height: 1.25; margin-bottom: var(--s2); }
.ra-title a { color: var(--ink); text-decoration: none; }
.ra-title a:hover { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.ra-dek { font-size: var(--step-000); color: var(--ink-soft); margin-bottom: var(--s2); }
.ra-meta {
  font-size: var(--step-000);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  padding-top: var(--s2);
  border-top: 1px dotted var(--rule);
}
.mag-related-all { margin: var(--s4) 0 0; font-size: var(--step-00); }
.mag-related-all a { color: var(--teal-deep); font-weight: 600; }

/* ---------------------------------- the magazine deck on the home page */
.home-mag-grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; margin-top: var(--s5); }
@media (min-width: 720px) { .home-mag-grid { grid-template-columns: repeat(3, 1fr); } }
.home-mag-more { margin: var(--s5) 0 0; }

/* --------------------------------- the article list on the author page */
.mag-list { list-style: none; padding: 0; margin: var(--s4) 0 0; }
.mag-list li { border-bottom: 1px dotted var(--rule); padding-bottom: 0.7rem; margin-bottom: 0.7rem; }
.mag-list a { font-weight: 600; color: var(--teal-deep); text-decoration: none; }
.mag-list a:hover { text-decoration: underline; }
.mag-list time { display: block; font-size: var(--step-000); color: var(--muted); letter-spacing: 0.06em; }

/* ------------------------------------------------ small screens, 360px up */
@media (max-width: 560px) {
  .mag-plate { margin-top: var(--s5); }
  .mag-card-text { padding: var(--s3) var(--s3) 0; }
  .mag-card { padding-bottom: var(--s3); }
  .mag-card-meta { padding-left: 0; }
  .mag-card-title { font-size: var(--step-1); }
  .mag-body { font-size: 1rem; }
  .mag-cta, .mag-author { padding: var(--s4); }
  .mag-author { padding-left: 0; padding-right: 0; }
  .mag-byline { align-items: flex-start; }
  .mag-byline .sep { display: block; height: 0; overflow: hidden; padding: 0; }
  .ra-card { padding: 0 var(--s3) var(--s3); }
  .ra-plate { margin: 0 calc(var(--s3) * -1) var(--s3); }
  .inline-read { padding: var(--s3); }
}

/* ------------------------- the magazine entry in the main nav and the map */
@media (min-width: 900px) and (max-width: 1120px) {
  .site-nav ul { gap: var(--s3); }
  .site-nav a { font-size: var(--step-000); }
}
.map-mag { margin-top: var(--s6); }
@media (min-width: 780px) {
  .map-mag ul { columns: 2; column-gap: var(--s5); }
  .map-mag li { break-inside: avoid; }
}



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


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


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