/* ---------- Tokens ---------- */
:root {
  --paper: #fafaf7;
  --paper-2: #f2f1ec;
  --surface: #ffffff;
  --ink: #0c0c0d;
  --ink-2: #3f3f46;
  --ink-3: #6b6b74;
  --rule: #e4e3dc;
  --accent: #1f3a5f;      /* federal navy */
  --accent-soft: #e8edf4;
  --warn: #b45309;
  --ok: #15803d;
  --dark: #0f1729;
  --dark-2: #1b2438;
  --dark-ink: #e7e9ee;
  --dark-ink-2: #a3abbd;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(12, 12, 13, .04), 0 8px 24px rgba(12, 12, 13, .06);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* A class that sets `display` would otherwise outrank the attribute and show a hidden element. */
[hidden] { display: none !important; }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
p { text-wrap: pretty; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.lede { font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: var(--ink-2); margin-top: 24px; max-width: 34em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 500; font-size: .98rem; line-height: 1.2; text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #26262b; }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, .86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-serif); font-weight: 600; font-size: 1.4rem; line-height: 1; letter-spacing: -0.015em; color: var(--accent); }
.brand-mark { flex: none; width: 30px; height: 30px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav ul a { text-decoration: none; color: var(--ink-2); font-size: .94rem; font-weight: 500; }
.site-nav ul a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 8px var(--gutter) 24px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--rule); }
  .nav-actions { justify-content: space-between; padding-top: 12px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 20px; font-size: .9rem; color: var(--ink-3); }

.hero-visual { position: relative; }
.phone {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 22px;
  box-shadow: var(--shadow); max-width: 380px; margin-left: auto; overflow: hidden;
}
.phone-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--rule); background: #fcfcfa; }
.phone-avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: .9rem;
}
.phone-name { font-weight: 600; font-size: .95rem; line-height: 1.2; }
.phone-sub { font-size: .78rem; color: var(--ink-3); }
.thread { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px 24px; }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: .9rem; line-height: 1.45; }
.bubble.out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.bubble.in { align-self: flex-start; background: var(--paper-2); color: var(--ink); border-bottom-left-radius: 6px; }

.alert-card {
  position: relative; margin-top: -32px; width: min(300px, 78%);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px;
}
.alert-label { display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); }
.alert-title { font-weight: 600; margin-top: 8px; font-size: .95rem; }
.alert-body { font-size: .86rem; color: var(--ink-2); margin-top: 2px; line-height: 1.45; }
.alert-proposal { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: .84rem; color: var(--ok); font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-warn { background: var(--warn); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .phone { margin-left: 0; }
  .alert-card { margin-left: auto; margin-right: -8px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-tinted { background: var(--paper-2); }
.section-ruled { border-top: 1px solid var(--rule); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-lede { margin-top: 20px; color: var(--ink-2); font-size: 1.08rem; max-width: 40em; }

/* Platform pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 32px 28px;
}
.pillar-icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 24px;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar p { margin-top: 10px; color: var(--ink-2); font-size: .97rem; }

@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid #d7d6ce; }
.step { padding: 28px 32px 8px 0; }
.step + .step { padding-left: 32px; border-left: 1px solid #d7d6ce; }
.step-num { display: block; font-family: var(--font-serif); font-size: 1.05rem; color: var(--accent); margin-bottom: 14px; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: .97rem; }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0; border-left: 0; }
  .step + .step { border-top: 1px solid #d7d6ce; }
}

/* Applications */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.app { padding: 36px 36px 40px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); transition: background-color .2s ease; }
.app:hover { background: var(--surface); }
.app-tag { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.app h3 { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; }
.app h3 + p { margin-top: 12px; color: var(--ink-2); font-size: .97rem; max-width: 36em; }

/* The live application spans the grid, its copy beside the artwork. */
.app-featured {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.app-featured h3 { font-size: clamp(1.6rem, 2.4vw, 1.9rem); text-wrap: balance; }
.app-featured .app-art { margin-bottom: 0; }
.app-link {
  display: inline-flex; gap: 7px; align-items: center; margin-top: 20px;
  color: var(--ink); font-size: .92rem; font-weight: 600; text-decoration: none;
}
.app-link:hover { color: var(--accent); }

@media (max-width: 760px) {
  .apps { grid-template-columns: 1fr; }
  .app { padding: 28px 24px 32px; }
  .app-featured { grid-template-columns: 1fr; gap: 28px; }
  .app-featured .app-art { order: -1; }
}

/* Founder */
.founder-layout {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(40px, 7vw, 88px); align-items: center;
}
.founder-copy { max-width: 650px; }
.founder-lede { margin-top: 22px; color: var(--ink-2); font-size: 1.08rem; }
.founder-copy > p:last-child {
  margin-top: 18px; padding-left: 18px; border-left: 2px solid var(--accent);
  color: var(--ink-2); font-weight: 500;
}
.founder-card {
  padding: 30px; background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.founder-head { display: flex; align-items: center; gap: 18px; }
.founder-portrait {
  flex: none; width: 80px; height: 80px; object-fit: cover;
  border-radius: 50%; background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--rule);
}
.founder-role {
  margin-bottom: 4px; color: var(--accent); font-size: .76rem;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.founder-head h3 { font-family: var(--font-serif); font-size: 1.45rem; }
.founder-bio {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule);
  color: var(--ink-2); font-size: .97rem;
}
.founder-bio strong { color: var(--ink); font-weight: 600; }
.founder-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 20px; }
.founder-link {
  display: inline-flex; gap: 7px; align-items: center;
  color: var(--ink); font-size: .92rem; font-weight: 600; text-decoration: none;
}
.founder-link:hover { color: var(--accent); }
.app-link .link-label, .founder-link .link-label { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 820px) {
  .founder-layout { grid-template-columns: 1fr; }
  .founder-card { max-width: 560px; }
}

@media (max-width: 520px) {
  .founder-card { padding: 24px; }
}

/* Application artwork: one stroke style, navy accent, a single amber highlight.
   The SVG keeps its 360:140 viewBox ratio so narrow cards shrink it rather than letterbox it. */
.app-art { margin-bottom: 28px; padding: 14px 16px; background: var(--paper-2); border-radius: var(--radius-sm); transition: background-color .2s ease; }
.app:hover .app-art { background: var(--accent-soft); }
.app-art svg { display: block; width: 100%; height: auto; aspect-ratio: 360 / 140; max-height: 150px; overflow: visible; }
.app-art .a-line { stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.app-art .a-fill { fill: var(--surface); }
.app-art .a-nofill { fill: none; }
.app-art .a-silhouette { fill: var(--paper-2); }
.app-art .a-soft { fill: var(--ink-3); opacity: .3; }
.app-art .a-mute { fill: var(--ink-3); opacity: .5; }
.app-art .a-rule { stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; opacity: .55; fill: none; }
.app-art .a-divider { stroke: var(--rule); stroke-width: 1.5; stroke-linecap: round; fill: none; }
.app-art .a-dash { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; fill: none; }
.app-art .a-arrow, .app-art .a-glyph { stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.app-art .a-glyph { stroke-width: 1.25; }
.app-art .a-pen { stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; fill: var(--surface); }
.app-art .a-nib { stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; fill: var(--accent); }
.app-art .a-fill-acc { fill: var(--accent); }
.app-art .a-tab { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.app-art .a-acc-line { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.app-art .a-warn-bg { fill: var(--warn); opacity: .14; }
.app-art .a-warn-line { stroke: var(--warn); stroke-width: 2; stroke-linecap: round; }
.app-art .a-warn-dot { fill: var(--warn); }
.app-art .a-halo { fill: var(--warn); opacity: .2; }
.app-art .a-sweep { fill: var(--accent); opacity: .12; }
.app-art .a-check { stroke: var(--warn); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.app-art .a-check.a-light { stroke: #fff; }
.app-art .a-light-line { stroke: #fff; stroke-width: 1.5; stroke-linecap: round; opacity: .85; fill: none; }

/* Closing CTA: navy band, inline sign-up, the playbook cover beside it. */
.cta { background: var(--accent); color: var(--dark-ink); }
.cta-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 7vw, 96px); align-items: center;
}
.cta-kicker { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #d4ab72; margin-bottom: 18px; }
.cta h2 { color: #fff; }
.cta-lede { margin-top: 20px; color: #c9d1de; font-size: 1.1rem; max-width: 32em; }
.cta-signup { margin-top: 32px; max-width: 580px; }
.cta-form { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
.cta-form .field label { color: #dfe4ec; font-weight: 500; }
.cta-form .field input { background: #fff; border-color: transparent; }
.cta-form .field input:focus-visible { outline-color: #d4ab72; border-color: #d4ab72; }
.cta-form .playbook-submit { grid-column: 1 / -1; justify-self: start; }
.cta-form .playbook-status { grid-column: 1 / -1; color: #dfe4ec; }
.cta-form .playbook-status[data-tone="error"] { color: #f4c58c; }
.cta-fineprint { margin-top: 14px; font-size: .85rem; color: #a9b6ca; }
.cta-fineprint a { color: #fff; text-underline-offset: 3px; }
.cta .playbook-done h3 { font-family: var(--font-serif); font-size: 1.6rem; color: #fff; }
.cta .playbook-done h3:focus { outline: none; }
.cta .playbook-done p { margin-top: 10px; color: #c9d1de; }
.cta .playbook-done strong { color: #fff; }
.cta :focus-visible { outline-color: #d4ab72; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }

/* The cover swings open on hover to show what's inside. */
.book {
  position: relative; display: block; justify-self: center;
  width: min(100%, 340px); aspect-ratio: 1200 / 1553;
  perspective: 1800px; transform: rotate(-2deg);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  text-decoration: none; color: var(--ink); border-radius: 3px;
}
.book-inside, .book-cover { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 3px; }
.book-inside {
  background: var(--paper); padding: 14% 12% 12% 18%;
  box-shadow: 0 2px 6px rgba(5, 12, 28, .2), 0 30px 60px rgba(5, 12, 28, .45);
  background-image: linear-gradient(90deg, rgba(12, 12, 13, .12), rgba(12, 12, 13, 0) 12%);
}
.book-inside-label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9a6a33; }
.book-inside ol { margin-top: 16px; display: grid; gap: 12px; }
.book-inside li { display: grid; grid-template-columns: 2.2em 1fr; font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.3; color: var(--accent); padding-top: 10px; border-top: 1px solid var(--rule); }
.book-inside li span { font-family: var(--font-sans); font-size: .74rem; font-weight: 600; color: #9a6a33; padding-top: 3px; }
.book-cover {
  object-fit: cover; transform-origin: left center; backface-visibility: hidden;
  box-shadow: 0 2px 6px rgba(5, 12, 28, .2), 0 30px 60px rgba(5, 12, 28, .45);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), box-shadow .8s ease;
}
@media (hover: hover) {
  .book:hover, .book:focus-visible { transform: rotate(0deg) translateX(2%); }
  .book:hover .book-cover, .book:focus-visible .book-cover {
    transform: rotateY(-22deg);
    box-shadow: 0 2px 6px rgba(5, 12, 28, .25), 30px 30px 60px rgba(5, 12, 28, .35);
  }
}

@media (max-width: 860px) {
  .cta-grid { grid-template-columns: 1fr; }
  .book { order: -1; width: min(60%, 260px); justify-self: start; }
}
@media (max-width: 560px) {
  .cta-form { grid-template-columns: 1fr; }
}

/* Playbook dialog: the request form beside a preview of the playbook's cover. */
html:has(.playbook[open]) { overflow: hidden; }
.playbook {
  width: min(900px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--radius); overflow: auto;
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgba(12, 12, 13, .22);
}
.playbook[open] { animation: playbook-in .2s ease-out; }
.playbook::backdrop { background: rgba(12, 12, 13, .45); }
@keyframes playbook-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.playbook-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
.playbook-main { padding: clamp(28px, 4vw, 48px); }
.playbook h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.playbook-lede { margin-top: 14px; color: var(--ink-2); font-size: 1rem; }
.playbook-close {
  position: absolute; top: 12px; right: 12px; z-index: 1; width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .7); color: var(--ink-2);
}
.playbook-close:hover { background: var(--surface); color: var(--ink); }
.playbook-close svg { width: 20px; height: 20px; }

.playbook-form { display: grid; gap: 16px; margin-top: 28px; }
.field label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 600; }
.field input {
  width: 100%; padding: 11px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-sm);
}
.field input:hover { border-color: #cfcec6; }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); border-radius: var(--radius-sm); }
/* Off-screen rather than hidden, so bots that skip hidden fields still fill it. */
.playbook-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.playbook-submit { justify-content: center; margin-top: 6px; }
.playbook-submit:disabled { opacity: .6; cursor: progress; }
.playbook-status { font-size: .9rem; color: var(--ink-2); }
.playbook-status:empty { display: none; }
.playbook-status[data-tone="error"] { color: var(--warn); }
.playbook-fineprint { color: var(--ink-3); font-size: .82rem; }

.playbook-done h2:focus { outline: none; }
.playbook-done .btn { margin-top: 28px; }

.playbook-preview {
  display: grid; place-items: center; padding: 48px 40px;
  background: var(--paper-2); border-left: 1px solid var(--rule);
}
/* Same opening cover as the closing section, sized for the dialog. */
.book-sm { width: min(100%, 300px); transform: rotate(-1.5deg); }
.book-sm .book-inside, .book-sm .book-cover { box-shadow: 0 1px 3px rgba(12, 12, 13, .08), 0 20px 44px rgba(12, 12, 13, .18); }
.book-sm .book-inside li { font-size: .92rem; }

@media (max-width: 720px) {
  .playbook-panel { grid-template-columns: 1fr; }
  .playbook-preview { order: -1; padding: 28px 24px 24px; border-left: 0; border-bottom: 1px solid var(--rule); }
  .book-sm { width: 120px; }
  .book-sm .book-inside { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 40px; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start; }
.footer-brand p { margin-top: 10px; color: var(--ink-3); }
.footer-nav ul { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { grid-column: 1 / -1; color: var(--ink-3); font-size: .85rem; padding-top: 24px; border-top: 1px solid var(--rule); }

@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.notfound p { margin: 16px 0 32px; color: var(--ink-2); }
