/* ==========================================================================
   MVP Tutoring — styles
   Design tokens first, then base, layout, components, sections, blog.
   Palette is derived from the logo (dusty teal + deep navy) with a warm
   coral accent as the complement. Change colors here, not in the HTML.
   ========================================================================== */

:root {
  /* Brand */
  --ink: #0a2038;          /* logo navy: headings, dark buttons, dark sections */
  --ink-soft: #12304c;     /* cards on navy */
  --slate: #38445a;        /* logo background slate: footer */
  --teal: #5a90a0;         /* logo teal: decorative fills, icons, rings */
  --teal-deep: #2a6678;    /* teal for text/links on light (6:1 on white) */
  --teal-ice: #8cbbc8;     /* teal for text on navy */
  --accent: #e8825a;       /* warm coral, complement of teal: CTAs, highlights */

  /* Surfaces */
  --bg: #f3f8f9;
  --surface: #ffffff;
  --tint-teal: #d5e7ec;
  --tint-slate: #e3e9f0;
  --tint-warm: #fbe9de;

  /* Text */
  --text: var(--ink);
  --text-muted: #405566;
  --text-faint: #5f7585;   /* decorative only (illustration strikethroughs) */
  --text-on-dark: #bfd3dc;
  --text-footer: #d3e0e8;

  /* Lines */
  --border: #d3e0e5;
  --field-border: #7e98a5; /* 3:1 against white for form fields */
  --footer-line: #55617a;  /* divider on the slate footer */

  /* Shape + type */
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 20px;
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --tap: 44px;             /* minimum touch target */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
input, textarea, select, button { font-family: inherit; }
[id] { scroll-margin-top: 16px; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 20px;
  min-height: var(--tap);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- SVG paint (keeps inline illustrations on the tokens) ---------- */
.fill-ink        { fill: var(--ink); }
.fill-teal       { fill: var(--teal); }
.fill-accent     { fill: var(--accent); }
.fill-surface    { fill: var(--surface); }
.fill-tint-teal  { fill: var(--tint-teal); }
.fill-tint-warm  { fill: var(--tint-warm); }
.fill-tint-slate { fill: var(--tint-slate); }
.fill-faint      { fill: var(--text-faint); }
.stroke-ink      { stroke: var(--ink); }
.stroke-teal     { stroke: var(--teal); }
.stroke-surface  { stroke: var(--surface); }
.stroke-border   { stroke: var(--border); }
.svg-display     { font-family: var(--font-display); }
.svg-body        { font-family: var(--font-body); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--snug { padding-block: clamp(48px, 7vw, 88px); }
.section--flush-top { padding-top: 0; }
.section--white { background: var(--surface); }
.section--dark { background: var(--ink); color: var(--surface); }
.section--teal { background: var(--tint-teal); }

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.section--dark .eyebrow { color: var(--accent); }

.section-title {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin-top: 12px;
  max-width: 760px;
}
.section-title--sm { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.section-title--lg {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: none;
}
.section--dark .section-title { max-width: 820px; }
.section-title--wide,
.section--dark .section-title--wide {
  font-size: clamp(24px, 3.3vw, 42px);
  max-width: none;
}

.lede {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 20px;
  max-width: 720px;
}
.section--dark .lede { color: var(--text-on-dark); }
.lede--wide { max-width: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  font-weight: 700;
  color: var(--teal-deep);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark    { background: var(--ink); color: var(--surface); font-size: 17px; padding: 16px 28px; }
.btn--outline { border: 2px solid var(--ink); color: var(--ink); font-size: 17px; padding: 14px 26px; }
.btn--accent  { background: var(--accent); color: var(--ink); font-size: 17px; padding: 16px 28px; }
.btn--sm      { font-size: 15px; padding: 12px 22px; }

/* ---------- Cards ---------- */
.card { transition: transform 0.2s ease; }
a.card:hover, .card--lift:hover { transform: translateY(-4px); }

.tile-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 44px; }
.tile {
  flex: 1 1 280px;
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 32px);
}
.tile h3 { font-size: clamp(21px, 2vw, 24px); font-weight: 700; line-height: 1.2; }
.tile p { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin-top: 14px; }
.tile--slate { background: var(--tint-slate); }
.tile--warm  { background: var(--tint-warm); }
.tile--teal  { background: var(--tint-teal); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { display: block; height: clamp(52px, 6vw, 68px); width: auto; }
.brand span { font-family: var(--font-display); font-size: clamp(19px, 2vw, 22px); font-weight: 800; letter-spacing: -0.01em; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 600; }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--teal-deep); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-nav .btn { padding: 12px 22px; font-size: 15px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Collapsed menu needs JS to reopen, so it only applies when main.js has run. */
@media (max-width: 960px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 8px;
    font-size: 17px;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a:not(.btn) { border-top: 1px solid var(--border); padding-inline: 4px; min-height: 52px; }
  .js .site-nav .btn { margin-top: 12px; padding-block: 14px; font-size: 17px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 4vw, 48px);
  padding-top: clamp(16px, 4vw, 48px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.hero-copy { flex: 1 1 440px; min-width: 0; }
.hero-pill {
  display: inline-block;
  background: var(--tint-teal);
  color: var(--teal-deep);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  padding: 8px 16px;
  border-radius: 18px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-top: 24px;
}
.hero h1 .mark { box-shadow: inset 0 -0.3em 0 var(--accent); }
.hero-lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 24px;
  max-width: 580px;
}
.hero-lede strong { color: var(--ink); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 2px solid var(--border);
}
.hero-stats strong { display: block; font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.05; }
.hero-stats span { display: block; font-size: 15px; color: var(--text-muted); margin-top: 6px; }

.hero-art { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.hero-art-inner { position: relative; width: 100%; max-width: 540px; }
.hero-art svg { display: block; width: 100%; height: auto; }
.coach-chip {
  position: absolute;
  left: 0;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 10px 20px 10px 10px;
  box-shadow: 6px 6px 0 var(--ink);
}
.coach-chip img {
  display: block;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 2px solid var(--teal);
}
.coach-chip strong { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.1; }
.coach-chip span { display: block; font-size: 13.5px; color: var(--text-muted); margin-top: 3px; }

/* ==========================================================================
   Audience (parents / students)
   ========================================================================== */
.audience-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 44px; }
.audience {
  flex: 1 1 320px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--teal);
}
.audience--students { box-shadow: 8px 8px 0 var(--accent); }
.audience h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; line-height: 1.15; margin-top: 10px; }
.audience p { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin-top: 12px; }
.audience .text-link { margin-top: 12px; }

/* ==========================================================================
   Focus areas
   ========================================================================== */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 44px;
}
.focus-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 32px);
}
.focus-card h3 { font-size: 22px; font-weight: 700; margin-top: 20px; }
.focus-card p { font-size: 16.5px; line-height: 1.6; color: var(--text-muted); margin-top: 10px; }
.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.icon-tile--slate { background: var(--tint-slate); }
.icon-tile--warm  { background: var(--tint-warm); }
.icon-tile--teal  { background: var(--tint-teal); }

/* ==========================================================================
   How it works (dark)
   ========================================================================== */
.steps { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 48px; }
.step { flex: 1 1 280px; background: var(--ink-soft); border-radius: var(--radius-md); padding: clamp(24px, 3vw, 32px); }
.step .num { display: block; font-family: var(--font-display); font-size: clamp(40px, 4vw, 52px); font-weight: 800; line-height: 1; color: var(--accent); }
.step h3 { font-size: 24px; font-weight: 700; margin-top: 18px; }
.step p { font-size: 17px; line-height: 1.6; color: var(--text-on-dark); margin-top: 10px; }

/* ==========================================================================
   Meeting options
   ========================================================================== */
.option-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 44px; }
.option {
  flex: 1 1 260px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 32px);
}
.option svg { display: block; color: var(--ink); }
.option h3 { font-size: 22px; font-weight: 700; margin-top: 18px; }
.option p { font-size: 16.5px; line-height: 1.6; color: var(--text-muted); margin-top: 10px; }

.areas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.areas strong { font-size: 16px; margin-right: 8px; }
.area-tag {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
}
.area-tag--warm { background: var(--tint-warm); border-color: var(--tint-warm); }

/* ==========================================================================
   About
   ========================================================================== */
.about { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 48px); align-items: flex-start; }
.about-photo { flex: 1 1 260px; max-width: 360px; min-width: 0; }
.about-photo img {
  display: block;
  width: calc(100% - 14px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: var(--radius-lg);
  border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 var(--teal);
}
.about-photo .name { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-top: 32px; }
.about-photo .role { font-size: 16px; line-height: 1.5; color: var(--text-muted); margin-top: 4px; }

.about-body { flex: 2 1 440px; min-width: 0; }
.about-body > p { font-size: 18px; line-height: 1.65; color: var(--text-muted); margin-top: 16px; }
.about-body .section-title + p { margin-top: 20px; }

.cred-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 36px; }
.cred { flex: 1 1 260px; background: var(--bg); border-radius: var(--radius-sm); padding: clamp(22px, 3vw, 28px); }
.cred h3 { font-size: 20px; font-weight: 700; }
.cred ul { margin-top: 14px; padding-left: 20px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.cred li { margin-bottom: 8px; }
.cred li:last-child { margin-bottom: 0; }

/* ==========================================================================
   Testimonial
   ========================================================================== */
.testimonial {
  margin: 0;
  background: var(--tint-warm);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 6vw, 72px);
}
.testimonial blockquote { margin: 0; }
.testimonial svg { display: block; }
.testimonial-slide { margin: 0; }
.testimonial-slide + .testimonial-slide { margin-top: 40px; }
.testimonial p.quote {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 20px;
  max-width: 920px;
}
.testimonial figcaption { font-size: 17px; font-weight: 600; color: var(--text-muted); margin-top: 24px; }
.testimonial figcaption strong { color: var(--ink); }
.section-title + .testimonial { margin-top: 40px; }

/* With JS, all slides share one grid cell (block height = tallest quote) and crossfade. */
.js .testimonial-slides { display: grid; touch-action: pan-y; }
.js .testimonial-slide {
  grid-area: 1 / 1;
  align-self: center;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.js .testimonial-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }

.testimonial-controls { display: none; align-items: center; gap: 8px; margin-top: 32px; }
.js .testimonial-controls { display: flex; }
.testimonial-count { margin-left: 8px; font-size: 15px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.testimonial-controls .icon-play { display: none; }
.testimonial-controls .is-paused .icon-pause { display: none; }
.testimonial-controls .is-paused .icon-play { display: block; }
.quote-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.quote-nav-btn:hover:not(:disabled) { background: var(--ink); color: var(--surface); }
.quote-nav-btn:disabled { opacity: 0.35; cursor: default; }

/* ==========================================================================
   Insights + blog cards
   ========================================================================== */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  margin-top: 40px;
}
.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.post-card .cover,
.post-card svg { display: block; width: 100%; aspect-ratio: 5 / 3; height: auto; object-fit: cover; }
.post-card .body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 28px; }
.post-card .tag { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); }
.post-card h2, .post-card h3 { font-size: 21px; line-height: 1.28; font-weight: 700; margin-top: 10px; }
.post-card .excerpt { font-size: 16px; line-height: 1.55; color: var(--text-muted); margin-top: 10px; }
.post-card .read { margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--teal-deep); }

/* ==========================================================================
   Events (recent professional development)
   ========================================================================== */
.events { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.events-intro { flex: 1 1 260px; min-width: 0; }
.events-intro p { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin-top: 14px; }
.event-list { flex: 2 1 440px; min-width: 0; list-style: none; border-bottom: 2px solid var(--border); }
.event-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 2px solid var(--border);
}
.event-list .date { flex: 0 0 150px; font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--teal-deep); }
.event-list .title { flex: 1 1 260px; font-size: 18px; font-weight: 600; line-height: 1.4; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 48px); align-items: flex-start; }
.contact-info { flex: 1 1 340px; min-width: 0; }
.contact-info .lede { max-width: 480px; }
.contact-links { display: flex; flex-direction: column; gap: 18px; margin-top: 36px; }
.contact-links a { display: flex; align-items: center; gap: 14px; text-decoration: none; font-size: clamp(17px, 1.8vw, 20px); font-weight: 700; overflow-wrap: anywhere; }
.contact-links .ico {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form {
  flex: 1 1 400px;
  min-width: 0;
  background: var(--surface);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 40px);
}
.contact-form form { display: flex; flex-direction: column; gap: 18px; }
.field-row { display: flex; flex-wrap: wrap; gap: 18px; }
.field-row .field { flex: 1 1 180px; min-width: 0; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field .optional { font-weight: 500; color: var(--text-muted); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 2px solid var(--field-border);
  border-radius: 12px;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
}
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 120px; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.form-status { font-size: 15px; font-weight: 600; color: var(--teal-deep); min-height: 1.4em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--slate); color: var(--text-footer); font-size: 15px; }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-block: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.site-footer img { display: block; height: 84px; width: auto; }
.footer-brand strong { display: block; font-family: var(--font-display); font-size: 20px; color: var(--surface); }
.footer-brand span { display: block; margin-top: 4px; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { flex-basis: 100%; padding-top: 20px; border-top: 1px solid var(--footer-line); }

/* ==========================================================================
   Blog: index + post pages
   ========================================================================== */
.page-intro { padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }
.page-intro h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-top: 12px;
}

.post-header { max-width: 820px; margin-inline: auto; padding-top: clamp(16px, 4vw, 48px); }
.breadcrumb { font-size: 15px; font-weight: 600; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--teal-deep); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-header h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-top: 8px;
}
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 20px; font-size: 15px; color: var(--text-muted); }
.post-meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.post-meta strong { color: var(--ink); }

.post-cover { max-width: 1000px; margin: clamp(28px, 4vw, 44px) auto 0; }
.post-cover img,
.post-cover svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 3px solid var(--ink);
}
.post-cover figcaption { font-size: 15px; color: var(--text-muted); margin-top: 12px; text-align: center; }

.prose { max-width: 720px; margin-inline: auto; padding-top: clamp(32px, 5vw, 56px); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose a { color: var(--teal-deep); font-weight: 600; text-underline-offset: 3px; }
.prose blockquote {
  margin-inline: 0;
  padding: 20px 24px;
  border-left: 6px solid var(--accent);
  background: var(--tint-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.35;
}
.prose blockquote p { margin: 0; }

.post-cta {
  max-width: 720px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  background: var(--tint-teal);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 40px);
}
.post-cta h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; line-height: 1.15; }
.post-cta p { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin-top: 10px; }
.post-cta .btn { margin-top: 20px; }

.related { padding-top: clamp(48px, 7vw, 88px); }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.not-found h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -0.02em; margin-top: 12px; }
.not-found p { font-size: 18px; line-height: 1.6; color: var(--text-muted); margin: 16px auto 0; max-width: 520px; }
.not-found .hero-actions { justify-content: center; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .testimonial-slide { transition: none; }
  .btn, .card { transition: none; }
  .btn:hover, a.card:hover, .card--lift:hover { transform: none; }
}
