/* ==========================================================
   Zaha Marketing — styles
   Colors and fonts live in :root so they're easy to adjust.
   ========================================================== */

:root {
  /* Palette: warm, muted blocks with near-black type */
  --ink: #1c1714;
  --ink-soft: #4a3f39;
  --cream: #faf6f1;
  --oat: #ece2d6;
  --blush: #ebcfc4;
  --clay: #c99a83;
  --line: rgba(28, 23, 20, 0.16);

  /* Resources page: one muted color per audience, plus a darker shade
     of it for the tag text (each passes WCAG AA on its card) */
  --sage: #dde3d4;
  --sage-text: #4f5d42;
  --blush-soft: #ead3cb;
  --blush-text: #7f4436;
  --sand: #ede3d3;
  --sand-text: #6c5734;
  --dusty-blue: #d8dfe6;
  --dusty-blue-text: #475669;

  /* Type */
  --font-display: "Archivo", "Arial Black", "Helvetica Neue", sans-serif;
  --font-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 11vw, 9rem);
  --max: 1320px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--cream);
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.center { text-align: center; }

/* Color blocks */
.bg-cream { background: var(--cream); }
.bg-oat   { background: var(--oat); }
.bg-blush { background: var(--blush); }
.bg-clay  { background: var(--clay); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

/* Italic serif accents inside bold headlines */
.display em,
.h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.h2 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h2 em { font-size: 1.12em; }

.serif {
  font-family: var(--font-serif);
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 1.2em;
  border: 1.5px solid var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: transparent; color: var(--ink); }
.btn-lg { padding: 1em 1.6em; font-size: 1rem; }
.btn span { transition: transform 0.2s ease; }
.btn:hover span { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { background: var(--blush); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
}

.nav-logo img { width: clamp(84px, 9vw, 112px); }

.nav-links { display: none; }

@media (min-width: 800px) {
  .nav-links {
    display: flex;
    gap: 2.25rem;
    margin-left: auto;
    margin-right: 1.5rem;
    font-size: 0.95rem;
  }
  .nav-links a { text-decoration: none; }
  .nav-links a:hover { text-decoration: underline; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  background: var(--blush);
}

.hero-text {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.hero-title {
  font-size: clamp(2.9rem, 1.2rem + 7vw, 7.25rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.hero-title em { font-size: 1.08em; }

.hero-lede {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: 50% 30%;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    min-height: min(88vh, 860px);
  }
  .hero-text { padding-left: max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter)); }
  .hero-media img { height: 100%; aspect-ratio: auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }

.section-head {
  max-width: 52rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-lede {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.3;
}

/* Who we serve */
.sectors {
  display: grid;
  gap: 2.5rem 2rem;
}
.sector {
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
}
.sector .num,
.step-num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.sector h3 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.sector p { color: var(--ink-soft); font-size: 0.98rem; }

@media (min-width: 640px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .sectors { grid-template-columns: repeat(4, 1fr); } }

/* The problem */
.problem { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.problem > * { min-width: 0; }
.problem-intro { max-width: 52rem; }
.problem-intro .h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); }
.problem-intro p:last-child {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.1rem;
}
.problem-list { display: grid; column-gap: clamp(2rem, 5vw, 4rem); }
.problem-list li {
  padding-block: 1.5rem;
  border-top: 1px solid var(--ink);
}
.problem-list h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
.problem-close {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem);
  line-height: 1.25;
  font-style: italic;
  max-width: 44rem;
}

@media (min-width: 720px) {
  .problem-list { grid-template-columns: 1fr 1fr; }
}

/* Offers */
.offers { display: grid; gap: clamp(1.5rem, 3vw, 2rem); }

.offer { display: flex; flex-direction: column; }

.offer-media { position: relative; }
.offer-media img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  object-position: 50% 35%;
}
.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35em 0.8em;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.offer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.offer-type {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.offer-title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.includes-label {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
}
.includes li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
  line-height: 1.45;
}

/* Side by side: share rows across cards so photos, labels, titles,
   descriptions, and lists all line up */
@media (min-width: 980px) {
  .offers { grid-template-columns: repeat(3, 1fr); row-gap: 0; }
  .offer {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
  }
  .offer-body {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    padding: 0;
  }
  /* Color each row instead of the whole card, so every card ends the
     same distance below its own list rather than stretching to the tallest */
  .offers .offer { background: none; }
  .offer.bg-blush { --card: var(--blush); }
  .offer.bg-oat   { --card: var(--oat); }
  .offer.bg-clay  { --card: var(--clay); }
  .offer-body > * {
    background: var(--card);
    margin: 0;
    padding-inline: clamp(1.5rem, 3vw, 2.25rem);
  }
  .offer-type { padding-top: clamp(1.5rem, 3vw, 2.25rem); padding-bottom: 0.75rem; }
  .offer-title { padding-bottom: 1rem; }
  .includes-label { padding-top: 1.5rem; padding-bottom: 0.5rem; }
  .includes { align-self: start; padding-bottom: clamp(1.5rem, 3vw, 2.25rem); }
}

/* How it works */
.steps {
  display: grid;
  gap: 2.5rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.step { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.step-num { font-size: clamp(3.5rem, 3rem + 3vw, 5.5rem); margin-bottom: 1rem; }
.step h3 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.step p { max-width: 24rem; color: var(--ink-soft); }

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* About */
.about {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-photo img {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 999px 999px 0 0;
}
.about-text > p { margin-bottom: 1rem; max-width: 36rem; }
.about-text .h2 { margin-bottom: 1.5rem; }
.about-text .lead {
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.skills li {
  padding: 0.35em 0.9em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .about { grid-template-columns: 0.85fr 1.15fr; }
}

/* Proof */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem clamp(1.25rem, 4vw, 3rem);
  padding-block: 1rem clamp(4rem, 8vw, 6rem);
}
.stats li {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
  min-width: 0;
  container-type: inline-size;
}
.stat-num {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  /* Scale with the column so "100M+" always fits on one line */
  font-size: min(3.5rem, 22cqi);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stat-label { font-size: 0.95rem; line-height: 1.45; color: var(--ink-soft); }

@media (min-width: 1000px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.25rem clamp(2rem, 5vw, 4.5rem);
  padding-block: 1rem clamp(4rem, 8vw, 6rem);
}
.logos img {
  height: clamp(22px, 2.4vw, 30px);
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.85;
}
.logos img.logo-tall { height: clamp(48px, 5vw, 62px); }

.proof {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 7vw, 5rem);
}
.proof-media img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.testimonial { margin-bottom: 2.5rem; }
.testimonial blockquote { margin: 0 0 1rem; }
.testimonial blockquote p {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  line-height: 1.25;
}
.testimonial figcaption { font-size: 0.95rem; color: var(--ink-soft); }

@media (min-width: 900px) {
  .proof { grid-template-columns: 0.8fr 1.2fr; }
}

/* Final CTA */
.cta { display: grid; }
.cta-media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: 50% 30%;
}
.cta-text {
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.cta-title {
  font-size: clamp(2.4rem, 1.2rem + 5vw, 5.5rem);
  margin-bottom: 1.75rem;
}
.cta-text > p:not(.hero-tagline):not(.cta-email) {
  max-width: 32rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.cta-email { margin-top: 1.5rem; }

@media (min-width: 900px) {
  .cta { grid-template-columns: 0.8fr 1.2fr; min-height: 640px; }
  .cta-media img { height: 100%; aspect-ratio: auto; }
  .cta-text { padding-right: max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter)); }
}

/* ---------- Resources: post cards (homepage and /blog/) ---------- */
.post-cards {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--oat);
}
.bg-oat .post-card { background: var(--cream); }
.post-card-title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.post-card p { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.55; }
.read-more {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
/* The whole card is clickable through its "Read more" link */
.read-more::after { content: ""; position: absolute; inset: 0; }
.post-card:hover .post-card-title,
.post-card:hover .read-more { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.read-more:focus-visible { outline: none; }
.read-more:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 3px; }

.resources-all { margin-top: clamp(2rem, 4vw, 3rem); }

@media (min-width: 760px) { .post-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { #resources .post-cards { grid-template-columns: repeat(3, 1fr); } }

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

/* ---------- Resources page: audience colors, filters, featured card ---------- */
.blog-list { padding-top: clamp(2.5rem, 5vw, 3.75rem); }

/* Each card is one link, tinted by audience */
.tone-b-corps     { --card: var(--sage);       --tag: var(--sage-text); }
.tone-nonprofits  { --card: var(--blush-soft); --tag: var(--blush-text); }
.tone-wellness    { --card: var(--sand);       --tag: var(--sand-text); }
.tone-startups    { --card: var(--dusty-blue); --tag: var(--dusty-blue-text); }

.blog-list .post-card {
  height: 100%;
  gap: 0.6rem;
  background: var(--card);
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.blog-list .post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -14px rgba(28, 23, 20, 0.35);
  filter: brightness(0.97);
}
.blog-list .post-card:hover .post-card-title { text-decoration: none; }

.post-tag {
  color: var(--tag);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Excerpts: 2 lines max on mobile, 1 line once cards sit side by side */
.post-card-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
@media (min-width: 760px) {
  .post-card-excerpt { -webkit-line-clamp: 1; line-clamp: 1; }
}

/* Featured card: only rendered once there are 8+ posts (see blog-src/build.py) */
.blog-list .is-featured { grid-column: 1 / -1; }
.is-featured .post-card-title { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.35rem); max-width: 22em; }
@media (min-width: 760px) {
  .is-featured .post-card { padding: clamp(2rem, 4vw, 3.25rem); }
}

/* Filter chips: only rendered once there are 8+ posts */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}
.filter-chips[hidden] { display: none; }
.chip {
  min-height: 2.75rem;
  padding: 0.5em 1.15em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.chip:hover { background: var(--oat); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

/* "Load more": only rendered once there are 9+ posts */
.load-more { margin-top: clamp(2rem, 4vw, 3rem); cursor: pointer; }
.load-more[hidden] { display: none; }

/* ---------- Blog pages ---------- */
.page-hero,
.post-hero { background: var(--blush); }
.page-hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); }
.page-title { font-size: clamp(2rem, 10.5vw, 6.5rem); }

.post-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.75rem); }
.post-hero .eyebrow a { text-decoration: none; }
.post-hero .eyebrow a:hover { text-decoration: underline; }
.post-wrap { max-width: calc(700px + 2 * var(--gutter)); }
.post-title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.85rem, 1.25rem + 2.6vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.post-meta { margin-top: 1.5rem; font-size: 0.95rem; color: var(--ink-soft); }

/* Article text: a readable column with room to breathe */
.prose { padding-block: clamp(2.5rem, 6vw, 4rem) var(--section-y); line-height: 1.75; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 {
  margin-top: 2.4em;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.prose h3 {
  margin-top: 2em;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
}
.prose h2 + *,
.prose h3 + * { margin-top: 0.75em; }
.prose h2 + h3 { margin-top: 1.25em; }
.prose strong { font-weight: 600; }
.prose a { text-decoration: underline; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.5em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--ink-soft); }
.prose p + ul,
.prose p + ol { margin-top: 0.6em; }

.prose .note {
  padding-left: 1rem;
  border-left: 2px solid var(--clay);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.prose .post-cta {
  margin-top: 2.4em;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--blush);
}
.prose .sources { font-size: 0.92rem; line-height: 1.55; }
.prose .sources a { overflow-wrap: anywhere; }

/* Tables scroll sideways on small screens instead of squashing */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}
.table-scroll:focus-visible { outline-offset: 2px; }
.table-scroll table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.93rem;
  line-height: 1.45;
}
.table-scroll th,
.table-scroll td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.table-scroll thead :is(th, td) { background: var(--oat); font-weight: 600; }
.table-scroll tbody th { font-weight: 600; }
.table-scroll tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-top: clamp(3.5rem, 7vw, 5rem);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-logo { width: 140px; filter: invert(1); }
.footer-tagline { font-style: italic; font-size: 1.4rem; margin-top: 0.75rem; }
.footer-links { display: grid; gap: 0.6rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.social-link { display: inline-flex; align-items: center; padding: 2px; }
.social-link svg { display: block; transition: opacity 0.2s ease; }
.social-link:hover svg { opacity: 0.7; }
.site-footer :focus-visible { outline-color: var(--cream); }
.footer-base {
  border-top: 1px solid rgba(250, 246, 241, 0.2);
  padding-block: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: end; }
  .footer-links { grid-auto-flow: column; gap: 2rem; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
