/* =========================================================================
   buildforpeople.dev
   Design system: warm editorial minimalism, black and gold.
   Fraunces (display serif) + Inter (body), self-hosted. No external requests.
   No inline styles or scripts anywhere, so CSP style-src 'self' holds.
   ========================================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("/static/fonts/fraunces.woff2") format("woff2");
  font-weight: 400 700;          /* variable */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter.woff2") format("woff2");
  font-weight: 400 700;          /* variable */
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ------------------------------------------------------------
   Black & gold on warm paper. Gold (#f1b82d) is a FILL colour (black text
   on it); links use a darker gold (--accent-deep) that clears contrast on
   paper. The tiger-stripe mark carries the motif.                        */
:root {
  --paper:      #faf7f1;
  --paper-2:    #f3ecdf;   /* alternating editorial band */
  --panel:      #ffffff;
  --line:       #e7ded0;
  --line-soft:  #efe8db;
  --ink:        #17140d;   /* near-black */
  --ink-2:      #413a2c;
  --muted:      #6d6454;

  --gold:        #f1b82d;  /* fills only (black text) */
  --accent:      #f1b82d;
  --accent-deep: #8a5e06;  /* links, readable dark gold on paper */
  --accent-soft: #fbeecb;
  --accent-hair: rgba(241, 184, 45, .42);
  --accent-ink:  #17140d;  /* text that sits on a gold fill */

  --ok:        #2f7a45;
  --ok-soft:   #e3f1e6;
  --warn:      #8a5e06;
  --warn-soft: #fbeecb;
  --bad:       #b3362d;
  --bad-soft:  #f8e3e0;
  --on-bad:    #ffffff;
  --dim-soft:  #ece6da;

  --code-bg:   #1b1813;
  --code-text: #ece4d5;
  --code-dim:  #9b9284;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius:   14px;
  --radius-sm: 9px;
  --max:      1060px;
  --max-prose: 680px;

  --shadow: 0 1px 2px rgba(23, 20, 13, .05), 0 10px 30px -18px rgba(23, 20, 13, .28);

  color-scheme: light;
  font-family: var(--sans);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #131110;
    --paper-2:    #1a1714;
    --panel:      #1d1915;
    --line:       #332c22;
    --line-soft:  #28221b;
    --ink:        #f0e8d8;
    --ink-2:      #d6ccba;
    --muted:      #a79c88;
    --gold:        #f1b82d;
    --accent:      #f4bd3c;
    --accent-deep: #f6c96a;   /* links on dark paper */
    --accent-soft: #2d2410;
    --accent-hair: rgba(244, 189, 60, .34);
    --accent-ink:  #17140d;
    --ok:        #7fd096;
    --ok-soft:   #16281b;
    --warn:      #f6c96a;
    --warn-soft: #2d2410;
    --bad:       #f19a90;
    --bad-soft:  #33171a;
    --on-bad:    #17140d;
    --dim-soft:  #2a251f;
    --code-bg:   #0c0b09;
    --code-text: #ece4d5;
    --code-dim:  #8f8674;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ---- Base -------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "ss01" 1;  /* Inter: friendlier l, a */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  color: var(--ink);
  line-height: 1.14;
  margin: 0 0 .45em;
  font-weight: 560;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 560; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.018em; }
h3 { font-size: 1.16rem; font-weight: 600; letter-spacing: -0.01em; }
p  { margin: 0 0 1.05em; }
a  { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color .15s ease; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }

code, pre, kbd { font-family: var(--mono); }
code {
  background: var(--accent-soft);
  color: var(--ink-2);
  padding: .1em .36em;
  border-radius: 6px;
  font-size: .9em;
  overflow-wrap: anywhere;
}
pre {
  position: relative;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 11px;
  padding: 15px 16px;
  overflow-x: auto;
  margin: 0 0 1.1em;
  font-size: .86rem;
  line-height: 1.55;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
}
pre code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }

::selection { background: var(--accent-hair); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 10px; }

/* ---- Layout scaffolding ----------------------------------------------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.prose { max-width: var(--max-prose); }
.em { color: var(--accent-deep); font-style: italic; font-family: var(--serif); }

main { display: block; }
[id] { scroll-margin-top: 80px; }

.band { padding: clamp(40px, 7vw, 86px) 0; border-top: 1px solid var(--line); }
.band:first-child { border-top: 0; }
.band.tint { background: var(--paper-2); }
.band.flush { border-top: 0; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 16px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.section-head { margin-bottom: clamp(22px, 3vw, 34px); }
.section-head p { color: var(--muted); max-width: var(--max-prose); margin-bottom: 0; }

/* ---- Header ------------------------------------------------------------ */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 62px; flex-wrap: wrap; }
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--serif); font-weight: 560; font-size: 1.14rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.brand .tld { color: var(--muted); }
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none; position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--gold), #c2410c);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.brand .mark::before, .brand .mark::after {
  content: ""; position: absolute; left: -6px; right: -6px; height: 3.5px;
  background: var(--accent-ink); transform: rotate(-28deg);
}
.brand .mark::before { top: 8px; } .brand .mark::after { top: 17px; }
nav.links { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
nav.links a, .navbtn {
  color: var(--ink-2); text-decoration: none; padding: 7px 11px; border-radius: 8px;
  font-size: .93rem; font-weight: 500; transition: background .15s ease, color .15s ease;
}
nav.links a:hover, .navbtn:hover { background: var(--accent-soft); color: var(--accent-deep); }
nav.links a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }
form.inline { display: inline; margin: 0; }
.navbtn { font-family: var(--sans); background: none; border: 0; cursor: pointer; line-height: inherit; }

@media (max-width: 520px) {
  header.top .wrap { padding-top: 8px; padding-bottom: 8px; min-height: 0; }
  .brand { font-size: 1.04rem; gap: 9px; }
  nav.links { width: 100%; margin-left: -8px; }
  nav.links a, .navbtn { padding: 6px 8px; font-size: .9rem; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero { padding-top: clamp(48px, 9vw, 104px); padding-bottom: clamp(36px, 6vw, 64px); }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 20px;
}
.hero .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; flex: none; }
.hero h1 { max-width: 15ch; }
.hero .lead, .lead {
  font-size: clamp(1.1rem, 1.9vw, 1.33rem); line-height: 1.5; color: var(--ink-2);
  max-width: var(--max-prose); margin-top: .5em;
}
.hero.narrow h1 { max-width: 18ch; }
.rule { height: 1px; background: var(--line); border: 0; margin: clamp(32px, 5vw, 48px) 0 0; }

.page-head { padding-top: clamp(40px, 7vw, 72px); padding-bottom: clamp(26px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.head-row h1 { margin: 0; }

.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta.tight { margin-top: 16px; gap: 10px; }
.plainlist { list-style: none; padding: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 19px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  text-decoration: none; font-weight: 550; font-size: .97rem; cursor: pointer;
  font-family: var(--sans); line-height: 1.3;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: var(--on-bad); }
.btn.danger:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Badges and chips --------------------------------------------------- */
.badge {
  display: inline-block; font-size: .7rem; padding: 3px 9px; border-radius: 999px;
  font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1.5;
  background: var(--dim-soft); color: var(--ink-2); white-space: nowrap;
}
.badge.plain { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.badge.status-live { background: var(--ok-soft); color: var(--ok); }
.badge.status-live::before { content: "● "; font-size: .8em; }
.badge.status-beta { background: var(--warn-soft); color: var(--warn); }
.badge.status-building { background: var(--accent-soft); color: var(--accent-deep); }
.badge.status-archived { background: var(--dim-soft); color: var(--muted); }
.pc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }

.chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink-2); text-decoration: none;
  font-size: .86rem; font-weight: 500; line-height: 1.5;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip .count { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.chip.on .count { color: var(--accent-ink); }

/* ---- Cards ------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  min-width: 0;
}
.card h3 { margin-top: 0; }
.card a.stretch { color: inherit; text-decoration: none; display: block; }
.card a.stretch:hover { color: inherit; }
.card:has(a.stretch:hover) { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }

.project-card { display: flex; flex-direction: column; }
.project-card .chips { margin: auto 0 0; padding-top: 14px; }
.project-card .chip { font-size: .78rem; padding: 2px 10px; }
.pc-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.pc-title { min-width: 0; }
.pc-title h3 { margin: 0 0 6px; }
.pc-tagline { color: var(--muted); margin: 0; }

.icon {
  width: 56px; height: 56px; border-radius: 14px; flex: none; display: block; object-fit: cover;
  background: var(--paper-2); box-shadow: 0 0 0 1px var(--line-soft);
}
.icon.mono {
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.6rem;
  background: var(--accent); color: var(--accent-ink);
}

/* Featured spotlight */
.spotlights { display: grid; gap: 18px; }
.spotlight {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start;
  border: 1px solid var(--accent-hair); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  background: color-mix(in srgb, var(--accent-soft) 38%, var(--panel));
}
.spotlight .icon { width: 88px; height: 88px; border-radius: 20px; }
.spotlight h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 4px 0 8px; }
.spotlight h3 a { color: var(--ink); text-decoration: none; }
.spotlight h3 a:hover { color: var(--accent-deep); }
.spot-tagline { color: var(--ink-2); font-size: 1.06rem; max-width: 60ch; margin: 0; }
@media (max-width: 560px) {
  .spotlight { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .spotlight .icon { width: 64px; height: 64px; border-radius: 16px; }
}

.empty {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; color: var(--muted);
  background: var(--panel);
}
.empty p { margin: 0; }
.result-count { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }

/* ---- Search ------------------------------------------------------------- */
.search { display: flex; gap: 10px; margin: 22px 0 20px; max-width: 560px; }
.search input { flex: 1; min-width: 0; }

/* ---- Forms ---------------------------------------------------------------- */
input, select, textarea {
  font: inherit; font-size: .97rem; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; width: 100%; min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="checkbox"] { width: auto; accent-color: var(--accent-deep); margin: 0; }
textarea { font-family: var(--mono); font-size: .9rem; line-height: 1.55; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-hair); }
.form { margin: 0 0 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.field.span2 { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .hint { color: var(--muted); font-size: .84rem; margin: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: .86rem; font-weight: 550; margin: 0; }
fieldset.checks { border: 0; padding: 0; flex-direction: row; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
fieldset.checks legend { width: 100%; margin-bottom: 6px; padding: 0; }
.check { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; cursor: pointer; }
.form.danger { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.form.danger h2 { font-size: 1.3rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.flash {
  display: inline-block; margin: 18px 0 0; padding: 9px 15px; border-radius: 10px;
  background: var(--ok-soft); color: var(--ok); font-weight: 550; font-size: .95rem;
}
.flash.error { background: var(--bad-soft); color: var(--bad); }
.notice {
  background: var(--accent-soft); border: 1px solid var(--accent-hair); border-radius: 11px;
  padding: 13px 17px; margin: 24px 0 0; color: var(--ink-2); max-width: var(--max-prose);
}
.notice p { margin: 0; }

/* ---- Project page ------------------------------------------------------- */
.project-hero .ph { display: flex; gap: clamp(16px, 3vw, 28px); align-items: center; }
.project-hero .ph .icon { width: clamp(72px, 12vw, 112px); height: clamp(72px, 12vw, 112px); border-radius: 24px; }
.project-hero .ph-text { min-width: 0; }
.project-hero h1 { margin: 6px 0 0; max-width: none; }
.project-hero .lead { margin-top: 18px; }
.project-hero { padding-bottom: clamp(28px, 4vw, 40px); }
@media (max-width: 560px) { .project-hero .ph { align-items: flex-start; flex-direction: column; } }

.project-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(28px, 5vw, 56px); align-items: start;
  padding-top: clamp(4px, 1vw, 12px); padding-bottom: clamp(48px, 7vw, 86px);
}
@media (max-width: 860px) { .project-layout { grid-template-columns: minmax(0, 1fr); } }

.facts {
  position: sticky; top: 84px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px;
}
@media (max-width: 860px) { .facts { position: static; } }
.facts dl { margin: 0; }
.facts dl > div { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.facts dl > div:last-child { border-bottom: 0; }
.facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--ink); }
.facts .chips { margin: 4px 0 0; gap: 6px; }
.facts .chip { font-size: .8rem; padding: 2px 10px; }
.linklist { list-style: none; padding: 0; margin: 0; }
.linklist li + li { margin-top: 4px; }
.linklist li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.linklist .host { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; min-width: 0; }
.maker { display: flex; align-items: center; gap: 10px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.avatar.mono {
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  font-family: var(--serif); font-weight: 600; font-size: .9rem;
}

/* Rendered Markdown */
.md { font-size: 1.04rem; min-width: 0; }
.md h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 1.6em; }
.md h3 { font-size: 1.2rem; margin-top: 1.4em; }
.md h4, .md h5, .md h6 { font-size: 1.05rem; margin-top: 1.3em; }
.md > :first-child { margin-top: 0; }
.md ul, .md ol { padding-left: 1.3em; margin: 0 0 1.05em; }
.md li + li { margin-top: .3em; }
.md li::marker { color: var(--accent-deep); }
.md blockquote {
  margin: 0 0 1.05em; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--ink-2);
}
.md hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.md img { border-radius: 10px; }
.md table { display: block; overflow-x: auto; margin: 0 0 1.1em; }

/* ---- Tables ------------------------------------------------------------ */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th { color: var(--muted); font-weight: 600; font-family: var(--sans); background: var(--paper-2); letter-spacing: .02em; }
.admin-table td code { font-size: .8rem; }
.admin-table .row-title { font-weight: 650; color: var(--ink); }
.admin-table .row-title:hover { color: var(--accent-deep); }
.admin-table th, .admin-table td { white-space: nowrap; }
.admin-table td:first-child { white-space: normal; min-width: 160px; }
.admin-table td.actions a + a { margin-left: 12px; }

/* ---- About -------------------------------------------------------------- */
.about-grid { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(48px, 7vw, 86px); }
.about-grid h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-top: 1.4em; }
.about-grid h2:first-child { margin-top: 0; }
.about-grid ul { padding-left: 1.2em; }
.about-grid li + li { margin-top: .4em; }
.about-grid li::marker { color: var(--accent-deep); }
.maker-card { max-width: var(--max-prose); padding: clamp(22px, 3vw, 32px); }
.maker-card .cta { margin-bottom: 0; }
.maker-role { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: var(--ink); }

/* ---- Footer ------------------------------------------------------------ */
footer { padding: clamp(36px, 6vw, 56px) 0; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); background: var(--paper-2); }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--accent-deep); text-decoration: underline; }
footer .foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
footer .foot-brand { font-family: var(--serif); font-weight: 560; color: var(--ink); }
footer .foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-left: auto; }
@media (max-width: 560px) { footer .foot-links { margin-left: 0; width: 100%; } }

/* ---- Motion budget: honour reduced-motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .btn:hover, .card:has(a.stretch:hover) { transform: none; }
}
