/* Hallmark · genre: playful editorial · tone: vibrant, assured, teen-focused · macrostructure: Index-First Blog (incumbent preserved) · theme: studied-DNA (source: local app index.html) · axes: light / roman-serif / cool violet 292° · fonts: Source Serif 4 + Source Sans 3 + Transcity · palette: app violet/plum/lavender with restrained gold/green signals · enrichment: indexed editorial cards · pre-emit critique: P5 H5 E5 S5 R4 V3 · contrast: pass (40–41) · nav: N7 · footer: Ft5 · slop: pass (42–45) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50–57) */

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-feature-settings: "ss01" on, "cv11" on;
  font-variant-numeric: oldstyle-nums;
  line-height: 1.6;
}

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

::selection {
  background: var(--color-brand-soft);
  color: var(--color-ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

p {
  color: var(--color-ink-soft);
  font-size: var(--text-base);
}

.shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
  padding-inline-end: max(var(--gutter), env(safe-area-inset-right));
}

.section {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
  padding-inline-end: max(var(--gutter), env(safe-area-inset-right));
}

.skip-link {
  position: fixed;
  inset-block-start: var(--space-md);
  inset-inline-start: var(--space-md);
  z-index: var(--z-sticky);
  min-height: 2.75rem;
  padding: var(--space-sm) var(--space-md);
  border: 0.15rem solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--color-ink);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 0.2rem solid var(--color-focus);
  outline-offset: 0.2rem;
}

.site-header :focus-visible,
.blog-cta :focus-visible,
.statement-footer :focus-visible {
  outline-color: var(--color-gold-soft);
}

.site-header {
  border-block-end: 0.08rem solid var(--color-brand-light);
  background: var(--color-brand-strong);
  color: var(--color-paper);
}

.nav-slab {
  min-height: 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-sm);
}

.wordmark {
  min-height: 2.75rem;
  width: max-content;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-wordmark);
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.nav-slab__links {
  display: none;
}

.button {
  min-height: 2.75rem;
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border: 0.1rem solid var(--color-ink);
  border-radius: var(--radius-pill);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}

.button--ink {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-paper);
  box-shadow: 0 0.25rem 0 var(--color-brand-light);
}

.button--brand {
  border-color: var(--color-brand-strong);
  background: var(--color-brand);
  color: var(--color-paper);
  box-shadow: var(--shadow-button);
}

.button--light {
  border-color: var(--color-paper);
  background: var(--color-paper);
  color: var(--color-brand-strong);
  box-shadow: 0 0.28rem 0 var(--color-brand-light);
}

.button:hover {
  transform: translateY(-0.12rem);
}

.button:active {
  transform: translateY(0.2rem);
  box-shadow: none;
}

.blog-index-hero {
  display: grid;
  gap: var(--space-xl);
  padding-block: var(--space-3xl) var(--space-2xl);
}

.blog-index-hero h1 {
  max-width: 10ch;
  font-size: var(--text-display);
  line-height: 0.95;
}

.blog-index-hero h1 em {
  color: var(--color-brand);
  font-style: normal;
}

.blog-index-hero > p {
  max-width: 46ch;
  font-size: var(--text-md);
}

.blog-index-list {
  border-block-start: 0.1rem solid var(--color-rule-strong);
  padding-block-end: var(--space-3xl);
}

.blog-story {
  min-width: 0;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--space-lg);
  padding-block: var(--space-xl);
  border-block-end: 0.1rem solid var(--color-rule-strong);
}

.blog-story--lead {
  padding-inline: var(--space-lg);
  background: var(--color-brand-whisper);
}

.blog-story__index {
  color: var(--color-brand-light);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 650;
  line-height: 1;
}

.blog-story__copy {
  display: grid;
  gap: var(--space-sm);
}

.blog-story__status {
  color: var(--color-brand);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.25;
  text-transform: uppercase;
}

.blog-story h3 {
  max-width: 30ch;
  font-size: clamp(var(--text-lg), 5vw, var(--text-2xl));
  line-height: 1.08;
}

.blog-story h3 a {
  background-image: linear-gradient(var(--color-brand), var(--color-brand));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 0.12em;
  transition: background-size var(--dur-short) var(--ease-out);
}

.blog-story h3 a:hover,
.blog-story h3 a:focus-visible {
  background-size: 100% 0.12em;
}

.blog-story p {
  max-width: 52ch;
}

.blog-story time {
  color: var(--color-ink-faint);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-index-cta {
  display: grid;
  gap: var(--space-lg);
  padding-block: var(--space-2xl) var(--space-3xl);
}

.blog-index-cta__panel {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--color-brand-strong);
  color: var(--color-paper);
}

.blog-index-cta__panel h2 {
  max-width: 14ch;
  color: var(--color-paper);
  font-size: clamp(var(--text-xl), 5vw, var(--text-3xl));
}

.blog-index-cta__panel p {
  max-width: 44ch;
  color: var(--color-brand-soft);
}

/* ---- Article pages ---- */

.breadcrumbs {
  padding-block-start: var(--space-2xl);
  color: var(--color-ink-faint);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-xs);
}

.breadcrumbs li + li::before {
  content: "↗";
  margin-inline-end: var(--space-xs);
  color: var(--color-brand-light);
}

.breadcrumbs a:hover {
  color: var(--color-brand);
}

.article-header {
  display: grid;
  gap: var(--space-lg);
  padding-block: var(--space-2xl) var(--space-2xl);
}

.article-header__eyebrow {
  width: max-content;
  max-width: 100%;
  padding: var(--space-xs) var(--space-md);
  border: 0.1rem solid var(--color-brand-light);
  border-radius: var(--radius-pill);
  color: var(--color-brand-strong);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.25;
  text-transform: uppercase;
}

.article-header h1 {
  max-width: 16ch;
  font-size: clamp(var(--text-3xl), 8vw, 4.75rem);
  line-height: 0.98;
}

.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-xl);
  color: var(--color-ink-faint);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-header__meta span:first-child {
  color: var(--color-brand);
}

.article-standfirst {
  max-width: 52ch;
  font-size: var(--text-md);
  line-height: 1.5;
}

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
  padding-block-end: var(--space-3xl);
}

.article-toc {
  display: none;
}

.article-prose {
  min-width: 0;
  max-width: 46rem;
  display: grid;
  gap: var(--space-lg);
}

.article-prose > p {
  color: var(--color-ink-soft);
  font-size: var(--text-md);
  line-height: 1.65;
}

.article-prose strong {
  color: var(--color-ink);
  font-weight: 700;
}

.article-prose a {
  color: var(--color-brand-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-brand-light);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}

.article-prose a:hover {
  text-decoration-color: var(--color-brand);
}

.article-prose h2 {
  max-width: 20ch;
  padding-block-start: var(--space-lg);
  font-size: clamp(var(--text-xl), 4vw, var(--text-3xl));
  line-height: 1.04;
}

.article-prose h2:first-child {
  padding-block-start: 0;
}

.article-prose h3 {
  max-width: 26ch;
  padding-block-start: var(--space-md);
  font-size: clamp(var(--text-lg), 3vw, var(--text-xl));
  line-height: 1.12;
}

.article-prose ul,
.article-prose ol {
  display: grid;
  gap: var(--space-sm);
  margin: 0;
  padding-inline-start: 1.25rem;
  color: var(--color-ink-soft);
  font-size: var(--text-md);
  line-height: 1.6;
}

.article-prose li::marker {
  color: var(--color-brand);
  font-weight: 700;
}

.article-prose blockquote {
  padding: var(--space-md) var(--space-lg);
  border-inline-start: 0.2rem solid var(--color-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-gold-soft);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.article-prose th,
.article-prose td {
  padding: var(--space-sm) var(--space-md);
  border-block-end: 0.1rem solid var(--color-rule);
  text-align: start;
  vertical-align: top;
}

.article-prose th {
  background: var(--color-brand-whisper);
  color: var(--color-ink);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-prose td {
  color: var(--color-ink-soft);
}

.article-prose figure {
  margin: 0;
  display: grid;
  gap: var(--space-sm);
}

.article-prose figcaption {
  color: var(--color-ink-faint);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.fact-row {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 0.1rem solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
}

.fact-row__label {
  color: var(--color-brand);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.fact-row p {
  color: var(--color-ink);
  font-size: var(--text-md);
  line-height: 1.6;
}

.article-faq {
  display: grid;
  gap: var(--space-md);
  padding-block-start: var(--space-lg);
}

.article-faq h2 {
  padding-block-start: 0;
}

.faq-item {
  display: grid;
  gap: var(--space-xs);
  padding: var(--space-lg);
  border: 0.1rem solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
}

.faq-item h3 {
  padding-block-start: 0;
  font-size: var(--text-md);
}

.faq-item p {
  color: var(--color-ink-soft);
  font-size: var(--text-base);
}

.blog-cta {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--color-brand-strong);
  color: var(--color-paper);
}

.blog-cta h2 {
  max-width: 16ch;
  color: var(--color-paper);
  font-size: clamp(var(--text-xl), 5vw, var(--text-3xl));
}

.blog-cta p {
  max-width: 40ch;
  color: var(--color-brand-soft);
}

.related-posts {
  display: grid;
  gap: var(--space-lg);
  padding-block: var(--space-2xl) var(--space-3xl);
}

.related-posts__head {
  display: grid;
  gap: var(--space-sm);
}

.related-posts__head h2 {
  font-size: clamp(var(--text-xl), 4vw, var(--text-2xl));
}

.related-grid {
  display: grid;
  gap: var(--space-md);
}

.related-card {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border: 0.1rem solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}

.related-card:hover {
  background: var(--color-brand-whisper);
  border-color: var(--color-brand-light);
}

.related-card span {
  color: var(--color-brand);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.related-card h3 {
  font-size: var(--text-md);
  line-height: 1.2;
}

.related-card p {
  color: var(--color-ink-faint);
  font-size: var(--text-sm);
}

.statement-footer {
  border-block-start: 0.08rem solid var(--color-brand-light);
  background: var(--color-brand-strong);
  color: var(--color-paper);
}

.statement-footer__inner {
  padding-block: var(--space-3xl) max(var(--space-xl), env(safe-area-inset-bottom));
}

.statement-footer__statement {
  display: grid;
  justify-items: start;
  gap: var(--space-xl);
  padding-block-end: var(--space-3xl);
}

.statement-footer__statement h2 {
  color: var(--color-paper);
  font-size: clamp(var(--text-3xl), 8vw, 5.5rem);
  line-height: 0.92;
}

.statement-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-xl);
  padding-block-start: var(--space-lg);
  border-block-start: 0.08rem solid var(--color-brand-light);
}

.statement-footer__meta p {
  color: var(--color-brand-soft);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.wordmark--footer {
  margin-inline-end: auto;
}

@media (min-width: 52rem) {
  .nav-slab {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--space-xl);
  }

  .nav-slab__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
  }

  .nav-slab__links a {
    color: var(--color-brand-soft);
    font-family: var(--font-label);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  .nav-slab__links a:hover {
    color: var(--color-paper);
  }

  .blog-index-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .blog-story--lead {
    min-height: 14rem;
    align-items: center;
    padding-inline: var(--space-xl);
  }

  .blog-story:nth-child(n + 2) {
    margin-inline-start: var(--space-xl);
  }

  .article-body {
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
    gap: var(--space-3xl);
  }

  .article-toc {
    display: block;
    position: sticky;
    inset-block-start: var(--space-xl);
    align-self: start;
  }

  .article-toc h2 {
    margin-block-end: var(--space-sm);
    font-family: var(--font-label);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .article-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: var(--space-xs);
    border-inline-start: 0.1rem solid var(--color-rule);
  }

  .article-toc li {
    margin-inline-start: -0.1rem;
    padding-inline-start: var(--space-md);
    border-inline-start: 0.14rem solid transparent;
  }

  .article-toc li:hover,
  .article-toc li:focus-within {
    border-inline-start-color: var(--color-brand);
  }

  .article-toc a {
    color: var(--color-ink-faint);
    font-size: var(--text-sm);
    line-height: 1.35;
  }

  .article-toc a:hover {
    color: var(--color-brand-strong);
  }

  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .statement-footer__statement {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

@media (hover: hover) and (pointer: fine) {
  .blog-story {
    transition: background-color var(--dur-short) var(--ease-out);
  }

  .blog-story:hover {
    background: var(--color-brand-whisper);
  }
}

@media (pointer: coarse) {
  .button,
  .nav-slab__links a {
    min-height: 3rem;
  }
}
