/* ==========================================================================
   Hicham Souilmi — blog + article template
   Design tokens. Keep this file as the single source of truth.
   ========================================================================== */

:root {
  /* Palette — built out from the existing #F6F5FB theme colour */
  --paper:        #F6F5FB;
  --card:         #FFFFFF;
  --ink:          #19172F;   /* relevé sur le logo du site */
  --ink-2:        #45415E;
  --muted:        #6E6987;
  --rule:         #E2DFEE;
  --rule-strong:  #C9C4E0;

  /* Ambre du site, relevé sur le bouton « Book a call » existant. */
  --accent:       #DD9D3E;   /* fonds de boutons, accents */
  --accent-deep:  #B77C22;   /* survol */
  --accent-soft:  #FBF0DB;   /* fonds de pastilles */
  --accent-ink:   #7A4E0B;   /* texte ambre lisible sur fond clair */
  --on-accent:    #281E09;   /* texte sur fond ambre */

  --good:         #0E7C6B;   /* teal — "this fixes it" */
  --alert:        #A32B4A;   /* crimson — "this blocks you" */

  /* Type */
  --sans:  "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --measure: 68ch;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 10px;
  --radius-lg: 18px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--on-accent); }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 var(--radius) 0; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

.wrap {
  width: min(1180px, 100% - (2 * var(--gutter)));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3.1vw, 3.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.15rem); }
h3 { font-size: clamp(1.18rem, 1.05rem + .6vw, 1.4rem); }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.15em; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + .8vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}

code, kbd, samp, pre { font-family: var(--mono); font-size: .88em; }

code {
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: .12em .38em;
  border-radius: 4px;
  white-space: nowrap;
}

pre {
  background: #17142B;
  color: #E7E4F7;
  padding: 20px 22px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: .82rem;
  line-height: 1.65;
  margin: 0 0 1.6em;
  tab-size: 2;
}
pre code { background: none; color: inherit; padding: 0; white-space: pre; }
pre .k { color: #E5B569; }   /* keys */
pre .s { color: #8FD9C4; }   /* strings */
pre .c { color: #7C769B; }   /* comments */

/* --------------------------------------------------------------------------
   Header / nav  (matches the existing site structure)
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,245,251,.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .bar {
  display: flex; align-items: center; gap: 28px;
  min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--ink); text-decoration: none;
  letter-spacing: -.01em; margin-right: auto;
}
.brand .mono {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--ink); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.nav .lang {
  border: 1px solid var(--rule-strong); border-radius: 999px;
  padding: 3px 11px; font-size: .82rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: .93rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
/* Le bouton principal est indigo, pas noir : il se détache du texte et du header.
   Les sélecteurs sont volontairement redondants (a.btn / .site-header .btn) pour
   passer devant les règles du stylesheet existant du site, chargé après celui-ci. */
.btn-primary,
a.btn-primary,
.site-header .btn-primary,
.cta-band .btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.btn-primary:hover,
a.btn-primary:hover,
.site-header .btn-primary:hover,
.cta-band .btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #FFFFFF;
}
.btn-primary:visited, a.btn-primary:visited { color: var(--on-accent); }

.btn-ghost, a.btn-ghost {
  border-color: var(--rule-strong); color: var(--ink); background: transparent;
}
.btn-ghost:hover, a.btn-ghost:hover {
  border-color: var(--accent); color: var(--accent-ink); background: #FFFFFF;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }

@media (max-width: 900px) {
  .nav .desktop-only { display: none; }
}

/* --------------------------------------------------------------------------
   Blog index — hero
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: .4em; }
.hero .lede { margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The "answer panel" artifact — the thing this site is actually about */
.answer-panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(25,22,39,.45);
  overflow: hidden;
  font-size: .9rem;
}
.answer-panel .ap-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted); font-size: .78rem;
}
.ap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule-strong); }
.answer-panel .ap-body { padding: 18px 20px 8px; }
.ap-query {
  font-family: var(--serif); font-size: 1.08rem; color: var(--ink);
  margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--rule);
}
.ap-line {
  height: 9px; border-radius: 5px; background: var(--rule);
  margin-bottom: 9px;
}
.ap-line.w90 { width: 90%; } .ap-line.w75 { width: 75%; } .ap-line.w60 { width: 60%; }
.ap-sources { padding: 6px 20px 20px; }
.ap-sources h4 {
  font-size: .72rem; color: var(--muted); font-weight: 600;
  margin: 0 0 10px; letter-spacing: .01em;
}
.ap-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; margin-bottom: 6px;
  border: 1px solid var(--rule); border-radius: 8px;
  font-family: var(--mono); font-size: .76rem;
}
.ap-chip .flag { font-size: .68rem; font-family: var(--sans); color: var(--muted); }
.ap-chip.us { background: var(--accent-soft); border-color: #F0DCB2; color: var(--accent-ink); }
.ap-chip.ca { background: transparent; border-style: dashed; color: var(--muted); opacity: .75; }
.ap-note {
  margin: 12px 0 0; font-size: .78rem; color: var(--muted); font-family: var(--sans);
}

/* --------------------------------------------------------------------------
   Blog index — filters, featured, cards
   -------------------------------------------------------------------------- */

.section { padding: clamp(44px, 6vw, 76px) 0; }
.section + .section { border-top: 1px solid var(--rule); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.section-head p { color: var(--muted); margin: .4em 0 0; max-width: 58ch; font-size: .95rem; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 1px solid var(--rule-strong); background: transparent;
  color: var(--ink-2); border-radius: 999px;
  padding: 7px 15px; font: 500 .86rem var(--sans); cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter:disabled { opacity: .4; cursor: not-allowed; }
.filter .count { color: inherit; opacity: .55; margin-left: 5px; font-variant-numeric: tabular-nums; }

/* Featured article — one article should look deliberate, not empty */
.featured {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); overflow: hidden;
}
@media (max-width: 880px) { .featured { grid-template-columns: 1fr; } }
.featured-art {
  background: #EFEDFA; border-right: 1px solid var(--rule);
  display: grid; place-items: center;
  padding: clamp(18px, 3vw, 32px);
}
.featured-art img { width: 100%; height: auto; object-fit: contain; }
@media (max-width: 880px) { .featured-art { border-right: 0; border-bottom: 1px solid var(--rule); } }
.featured-body { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; }
.featured-body h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: .5em; }
.featured-body h3 a { color: inherit; text-decoration: none; }
.featured-body h3 a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }
.featured-body p { color: var(--ink-2); }
.featured-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted); margin-bottom: 14px;
}
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--rule-strong); }
.tag {
  background: var(--accent-soft); color: var(--accent-ink);
  border-radius: 5px; padding: 3px 9px; font-weight: 600; font-size: .76rem;
}
.tag-new { background: #DCF2EC; color: var(--good); }

.card-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.card-art { aspect-ratio: 16 / 9; background: #FDF7EC; border-bottom: 1px solid var(--rule); }
.card-art img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .45em; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: var(--accent-ink); }
.card-body p { font-size: .93rem; color: var(--ink-2); margin-bottom: 1em; }
.card-body .card-foot { margin-top: auto; font-size: .88rem; font-weight: 600; }

/* Honest "what's coming" list instead of empty filters */
.pipeline { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.pipeline li {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 18px 2px; border-bottom: 1px solid var(--rule);
}
.pipeline .pl-title { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); flex: 1 1 320px; }
.pipeline .pl-status { font-size: .78rem; color: var(--muted); font-family: var(--mono); }

/* Proof strip */
.proof {
  display: grid; gap: 2px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.proof div { background: var(--paper); padding: 24px 22px; }
.proof dt { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.proof dd {
  margin: 0; font-family: var(--serif); font-size: 1.7rem; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Email capture */
.capture {
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 52px);
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  gap: clamp(28px, 4vw, 52px); align-items: center;
}
@media (max-width: 860px) { .capture { grid-template-columns: 1fr; } }
.capture h2 { color: #fff; }
.capture p { color: #C9C4E4; margin-bottom: 0; }
.capture form { display: flex; flex-direction: column; gap: 10px; }
.capture label { font-size: .85rem; color: #C9C4E4; }
.capture input[type="email"] {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  border: 1px solid #3B3557; background: #221E38; color: #fff;
  font: 400 1rem var(--sans);
}
.capture input::placeholder { color: #7E779E; }
.capture .btn-primary { background: #fff; color: var(--ink); }
.capture .btn-primary:hover { background: var(--accent-soft); color: var(--accent-deep); }
.capture .fine { font-size: .78rem; color: #8C86AC; margin: 0; }

/* CTA band */
.cta-band {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px);
  display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta-band p { margin: .5em 0 0; color: var(--ink-2); max-width: 52ch; }

/* --------------------------------------------------------------------------
   Article template
   -------------------------------------------------------------------------- */

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); z-index: 60;
}

.crumbs {
  font-size: .82rem; color: var(--muted);
  padding: 20px 0 0;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.article-head { padding: 22px 0 clamp(30px, 4vw, 46px); }
.article-head h1 { margin-bottom: .35em; max-width: 18ch; }
.article-head .lede { max-width: 40em; margin-bottom: 26px; }

.byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.byline img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--rule);
}
.byline .who { font-weight: 600; font-size: .95rem; }
.byline .what { font-size: .84rem; color: var(--muted); }

.article-hero {
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  overflow: hidden; background: #FDF7EC;
}
figure { margin: 0 0 1.8em; }
figure.wide { margin-block: 2.4em; }
figure img { border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }
figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* Two-column reading layout with sticky contents */
.article-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(36px, 5vw, 60px) 0;
  align-items: start;
}
@media (max-width: 1000px) { .article-grid { grid-template-columns: 1fr; } }

.toc { position: sticky; top: 92px; font-size: .88rem; }
@media (max-width: 1000px) {
  .toc {
    position: static;
    border: 1px solid var(--rule); border-radius: var(--radius);
    background: var(--card); padding: 18px 20px;
  }
}
.toc h2 { font-family: var(--sans); font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 2px; }
.toc a {
  display: block; padding: 5px 0 5px 26px; position: relative;
  color: var(--ink-2); text-decoration: none; line-height: 1.35;
  border-left: 2px solid transparent; padding-left: 14px;
}
.toc a::before {
  content: counter(toc); position: absolute; left: -16px;
  font-family: var(--mono); font-size: .7rem; color: var(--rule-strong);
}
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 600; }

.prose { max-width: var(--measure); font-size: 1.06rem; }
.prose > h2 {
  margin: 2.2em 0 .6em; padding-top: .3em;
  scroll-margin-top: 96px;
}
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin: 1.9em 0 .5em; scroll-margin-top: 96px; }
.prose > h4 { margin: 1.6em 0 .4em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--rule-strong); }
.prose ol li::marker { color: var(--muted); font-family: var(--mono); font-size: .85em; }
.prose strong { font-weight: 600; }

/* Key-takeaways box — the block generative engines lift wholesale */
.takeaways {
  border: 1px solid var(--accent-soft);
  background: var(--card);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 0 0 2.4em;
}
.takeaways h2 {
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  color: var(--accent-ink); margin: 0 0 12px;
}
.takeaways ul { margin: 0; padding-left: 1.1em; }
.takeaways li { margin-bottom: .5em; font-size: .98rem; }
.takeaways li:last-child { margin-bottom: 0; }

/* Callouts */
.note {
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--card); padding: 20px 22px; margin: 0 0 1.8em;
}
.note h4 { margin: 0 0 .4em; }
.note p:last-child { margin-bottom: 0; }
.note.do { border-left: 3px solid var(--good); }
.note.dont { border-left: 3px solid var(--alert); }

blockquote {
  margin: 2em 0; padding: 0 0 0 24px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: 1.28rem; line-height: 1.45; color: var(--ink);
}
blockquote p:last-child { margin-bottom: .3em; }
blockquote cite { font: 500 .84rem var(--sans); color: var(--muted); font-style: normal; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.9em; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
caption {
  text-align: left; font-size: .82rem; color: var(--muted);
  padding-bottom: 10px;
}
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th {
  font-size: .78rem; color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--rule-strong);
}
tbody tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
.yes { color: var(--good); font-weight: 600; }
.no  { color: var(--alert); font-weight: 600; }

/* Inline CTA inside the article */
.inline-cta {
  background: var(--accent-soft);
  border: 1px solid #F0DCB2;
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin: 2.6em 0;
}
.inline-cta h3 { margin-bottom: .4em; }
.inline-cta p { color: var(--ink-2); }
.inline-cta p:last-of-type { margin-bottom: 1.2em; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); margin-top: 1.4em; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 40px 18px 0; position: relative;
  font-family: var(--serif); font-size: 1.1rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.25rem; color: var(--muted); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 20px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Sources */
.sources { font-size: .9rem; }
.sources ol { padding-left: 1.4em; }
.sources li { margin-bottom: .75em; color: var(--ink-2); }
.sources a { word-break: break-word; }

/* Author box */
.author-box {
  display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 22px;
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: 26px 28px; margin: 2.6em 0 0;
}
@media (max-width: 620px) { .author-box { grid-template-columns: 1fr; } }
.author-box img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.author-box h3 { margin-bottom: .25em; }
.author-box .role { font-size: .86rem; color: var(--muted); margin-bottom: .8em; }
.author-box p { font-size: .95rem; color: var(--ink-2); }
.author-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: .88rem; }

.share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 2.4em 0 0; font-size: .88rem; color: var(--muted); }
.share a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.share a:hover { color: var(--accent-ink); border-color: var(--accent); }

/* --------------------------------------------------------------------------
   Footer (mirrors the existing footer structure)
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: clamp(44px, 6vw, 72px) 0 32px;
  font-size: .9rem;
}
.footer-grid {
  display: grid; gap: 34px;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(150px, 1fr));
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  color: var(--muted); margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .blurb { color: var(--muted); max-width: 32ch; margin: 12px 0 16px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: .84rem; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  color: var(--muted); font-size: .84rem;
}
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

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