/* Hipereach site styles.
   One typeface at one weight, an off-white canvas with white cards, hairline borders instead of shadows,
   and four accent colours used only as thin left bars or as the filled primary button.
   No external requests: system font stack, images served from /assets. */

:root {
  color-scheme: light;
  --ink: #0a0b0c;
  --ink-80: rgba(10, 11, 12, .82);
  --ink-70: rgba(10, 11, 12, .7);
  --ink-55: rgba(10, 11, 12, .56);
  --line: rgba(10, 11, 12, .1);
  --line-strong: rgba(10, 11, 12, .18);
  --bone: #f9f9f9;
  --paper: #ffffff;
  --ash: #d8d8d8;
  --plum-ash: #392c38;
  --forest: #00543d;
  --periwinkle: #abcbf9;
  --periwinkle-hover: #9abdf2;
  --pink: #ffbbfc;
  --butter: #fce88b;

  --font: "Roobert", "Inter", "Söhne", "DM Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --max: 1200px;
  --gutter: 24px;
  --section: 96px;
  --header-h: 90px;
  --r-card: 8px;
  --r-input: 4px;
  --r-pill: 9999px;
  --r-nav: 32px;
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --section: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, strong, b, th, dt, summary { font-weight: 400; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); letter-spacing: normal; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.2vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.11; }
h3 { font-size: 24px; line-height: 1.33; }
h4 { font-size: 20px; line-height: 1.38; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong, b { color: var(--ink); }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-strong); transition: text-decoration-color .15s ease; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
address { font-style: normal; }
.muted { color: var(--ink-55); }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-70); }
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: var(--r-pill); text-decoration: none; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-pill);
  border: 1px solid transparent; font: inherit; font-size: 16px; line-height: 1.25;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn.has-dot { padding: 7px 7px 7px 22px; }
.btn-dot { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; transition: transform .15s ease; }
.btn:hover .btn-dot { transform: translateX(2px); }
.btn-primary { background: var(--periwinkle); color: var(--ink); }
.btn-primary:hover { background: var(--periwinkle-hover); }
.btn-primary .btn-dot { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #25272a; }
.btn-dark .btn-dot { background: #fff; color: var(--ink); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost .btn-dot { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.actions.center { justify-content: center; }
.circle-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--ink); color: #fff; font-size: 14px; line-height: 1.43; }
.announce .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding-block: 6px; }
.announce p { margin: 0; color: rgba(255, 255, 255, .84); }
.pill-forest { flex: none; display: inline-flex; align-items: center; padding: 6px 16px; border-radius: var(--r-pill); background: var(--forest); color: #fff; border: 1px solid rgba(255, 255, 255, .16); text-decoration: none; white-space: nowrap; }
.pill-forest:hover { border-color: rgba(255, 255, 255, .5); }
@media (max-width: 720px) {
  .announce p { display: none; }
  .announce .container { justify-content: center; }
}

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0; pointer-events: none; transition: background-color .2s ease; }
.site-header.scrolled { background: rgba(249, 249, 249, .82); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
.nav {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 8px 0 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-nav);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; line-height: 1; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-block; padding: 8px 14px; border-radius: var(--r-pill); font-size: 15px; line-height: 1.4; color: var(--ink); text-decoration: none; transition: background-color .15s ease; }
.nav-links a:hover { background: var(--bone); }
.nav-links a[aria-current="page"] { background: var(--periwinkle); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-menu-only { display: none; }
.nav-cta { min-height: 48px; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); cursor: pointer; }
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  }
  .nav-links.open { display: flex; }
  .nav-menu-only { display: block; }
  .nav-links a { display: block; padding: 14px 16px; font-size: 18px; border-radius: var(--r-input); }
}
@media (max-width: 520px) {
  .nav { padding-left: 16px; }
  .nav-cta { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 72px) 0 112px;
  background: #e8e1d6 url("/assets/hero.jpg") center / cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; z-index: -1; background: linear-gradient(to bottom, rgba(249, 249, 249, 0), var(--bone)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 13ch; margin-bottom: 28px; }
.hero .lead { max-width: 34em; color: var(--ink-80); margin: 0; }
@media (max-width: 960px) {
  .hero { padding-bottom: 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-aside { max-width: 520px; }
}

/* Widget card next to the hero headline */
.widget { background: var(--paper); border: 1px solid var(--bone); border-radius: var(--r-card); padding: 24px; }
.widget-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-55); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ash); }
.dots i:first-child { background: var(--ink); }
.widget-label { font-size: 32px; line-height: 1.25; margin: 28px 0 16px; }
.widget-rows { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 13px; line-height: 1.5; border-top: 1px solid var(--line); }
.widget-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.widget-rows li span:first-child { color: var(--ink-55); }
.widget-rows li span:last-child { text-align: right; }
.widget-note { font-size: 14px; color: var(--ink-55); margin: 16px 0 0; }
.widget .btn { margin-top: 24px; }

/* ---------- Inner page header ---------- */
.page-head {
  position: relative; isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 72px) 0 88px;
  background: #e8e1d6 url("/assets/hero.jpg") no-repeat;
  background-size: cover;
}
.page-head::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: -1; background: linear-gradient(to bottom, rgba(249, 249, 249, 0), var(--bone)); }
.page-head-a { background-position: 20% 30%; }
.page-head-b { background-position: 80% 40%; }
.page-head-c { background-position: 50% 80%; }
.page-head-d { background-position: 0% 70%; }
.page-head h1 { max-width: 18ch; font-size: clamp(40px, 5.6vw, 64px); line-height: 1.05; margin-bottom: 24px; }
.page-head .lead { max-width: 40em; margin: 0; color: var(--ink-80); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section.bone { background: var(--bone); }
.section.paper { background: var(--paper); }
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin: 0; }
.section-head p { max-width: 640px; margin: 24px auto 0; font-size: 18px; line-height: 1.56; color: var(--ink-70); }
.section-head.left { margin-left: 0; text-align: left; }
.section-head.left p { margin-left: 0; }
.section > .container > :last-child { margin-bottom: 0; }

/* Quiet strip of phrases */
.strip { padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip p { margin: 0 0 16px; font-size: 14px; color: var(--ink-55); text-align: center; }
.strip ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; list-style: none; margin: 0; padding: 0; font-size: 20px; line-height: 1.38; color: rgba(10, 11, 12, .6); }
@media (max-width: 720px) { .strip ul { justify-content: center; font-size: 17px; } }

/* Accent bars (stats, barred cards, notices) */
.bar-forest { --bar: var(--forest); }
.bar-pink { --bar: var(--pink); }
.bar-periwinkle { --bar: var(--periwinkle); }
.bar-butter { --bar: var(--butter); }

/* Stat cards */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-left: 0; border-radius: var(--r-card); padding: 24px 24px 24px 28px; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bar); }
.stat-value { font-size: clamp(36px, 4vw, 48px); line-height: 1.1; margin: 0 0 16px; }
.stat-label { margin: 0; font-size: 15px; line-height: 1.47; color: var(--ink-70); }
.section.paper .stat { background: var(--bone); border-color: transparent; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* Image tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 460px; padding: 24px 96px 24px 24px; border-radius: var(--r-card);
  background: var(--ink) center / cover no-repeat; color: #fff; text-decoration: none;
}
.tile::after { content: ""; position: absolute; inset: 35% 0 0 0; z-index: -1; background: linear-gradient(to bottom, rgba(10, 11, 12, 0), rgba(10, 11, 12, .55)); }
.tile-a { background-image: url("/assets/tile-a.jpg"); }
.tile-b { background-image: url("/assets/tile-b.jpg"); }
.tile-c { background-image: url("/assets/tile-c.jpg"); }
.tile h3 { color: #fff; font-size: 32px; line-height: 1.2; margin: 0 0 10px; }
.tile p { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.tile .circle-btn { position: absolute; right: 24px; bottom: 24px; transition: transform .15s ease; }
.tile:hover .circle-btn { transform: translateX(3px); }
@media (max-width: 960px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 340px; } }

/* Cards */
.cards { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.card { position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.section.paper .card { background: var(--bone); border-color: transparent; }
.card h3 { margin: 0 0 12px; }
.card p { color: var(--ink-70); margin: 0 0 12px; }
.card > :last-child { margin-bottom: 0; }
.card .kicker { font-size: 14px; color: var(--ink-55); margin: 0 0 32px; }
.card .list { margin-top: 20px; }
.card-link { margin-top: 20px; }
.card.barred { border-left: 0; padding-left: 28px; }
.card.barred::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bar); }

/* Hairline list */
.list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-80); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.section.paper .step { background: var(--bone); border-color: transparent; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-size: 14px; color: var(--ink-55); margin-bottom: 48px; }
.step h3 { margin: 0 0 10px; }
.step p { margin: 0; color: var(--ink-70); font-size: 15px; line-height: 1.53; }

/* Feature rows */
.features { border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; padding: 56px 0; border-bottom: 1px solid var(--line); }
.feature h3 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.25; margin: 0 0 20px; }
.feature-main p { color: var(--ink-80); }
.aside { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px 24px; }
.section.paper .aside { background: var(--bone); border-color: transparent; }
.aside-block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.aside-block:last-child { border-bottom: 0; }
.aside-block h4 { font-size: 14px; line-height: 1.43; color: var(--ink-55); margin: 0 0 6px; }
.aside-block p { margin: 0; font-size: 15px; line-height: 1.53; color: var(--ink-80); }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 40px 0; } }

/* Free-form columns */
.split { display: grid; gap: 56px; align-items: start; }
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split.wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.split.wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.split h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; }
.split h3 { margin-top: 32px; }
.split h3:first-child { margin-top: 0; }
.split p { color: var(--ink-80); }
@media (max-width: 860px) { .split.even, .split.wide-left, .split.wide-right { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.text { max-width: 720px; }
.text h3 { margin-top: 40px; }
.text h3:first-child { margin-top: 0; }
.text p, .text li { color: var(--ink-80); }
.text ul, .text ol { padding-left: 20px; }
.text li { margin-bottom: 8px; }
.section-head + .text { margin-inline: auto; }

/* Definition grid */
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.details > div { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.details > div:nth-child(odd) { border-right: 1px solid var(--line); }
.details > div:nth-last-child(-n+2):nth-child(odd), .details > div:last-child { border-bottom: 0; }
.details dt { font-size: 14px; color: var(--ink-55); margin-bottom: 4px; }
.details dd { margin: 0; }
.section.paper .details { background: var(--bone); border-color: transparent; }
.section.paper .details > div { border-color: rgba(10, 11, 12, .07); }
@media (max-width: 640px) {
  .details { grid-template-columns: 1fr; }
  .details > div:nth-child(odd) { border-right: 0; }
  .details > div:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid var(--line); }
}

/* Tables */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); }
.section.paper .table-wrap { background: var(--bone); border-color: transparent; }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table caption { caption-side: top; text-align: left; padding: 16px 20px 0; font-size: 14px; color: var(--ink-55); }
.table th { text-align: left; font-size: 14px; color: var(--ink-55); padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.table td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-80); }
.table td:first-child { color: var(--ink); min-width: 160px; }
.table tbody tr:last-child td { border-bottom: 0; }

/* Notice */
.notice { position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-left: 0; border-radius: var(--r-card); padding: 20px 24px 20px 28px; margin: 24px 0; }
.notice::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bar); }
.notice p:last-child { margin-bottom: 0; }
.section.paper .notice { background: var(--bone); border-color: transparent; }

/* FAQ */
.faq { max-width: 880px; margin-inline: auto; }
.faq + .faq { margin-top: 72px; }
.faq h2 { font-size: 32px; line-height: 1.25; margin: 0 0 24px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq details:first-of-type { border-top: 1px solid var(--line-strong); }
.faq summary { position: relative; display: block; padding: 24px 64px 24px 0; font-size: 20px; line-height: 1.38; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 20px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; background: var(--ink); color: #fff; border-color: var(--ink); }
.faq .answer { padding: 0 64px 24px 0; }
.faq .answer p, .faq .answer li { color: var(--ink-70); }
.faq .answer > :last-child { margin-bottom: 0; }
@media (max-width: 640px) { .faq summary { font-size: 18px; padding-right: 52px; } .faq .answer { padding-right: 0; } }

/* Closing CTA */
.cta { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(48px, 7vw, 96px) 24px; text-align: center; }
.cta h2 { max-width: 20ch; margin: 0 auto 24px; }
.cta p { max-width: 600px; margin: 0 auto; font-size: 18px; color: var(--ink-70); }
.cta .actions { margin-top: 36px; }
.cta-section { padding-top: 0; }
.section.paper + .cta-section { padding-top: var(--section); }

/* Legal documents */
.legal { padding-top: 64px; }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; align-items: start; }
.legal-grid > *, .hero-grid > *, .split > div, .feature > * { min-width: 0; }
.toc { position: sticky; top: calc(var(--header-h) + 16px); font-size: 14px; line-height: 1.43; }
.toc p { margin: 0 0 12px; color: var(--ink-55); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 16px; color: var(--ink-70); text-decoration: none; }
.toc li a:hover { color: var(--ink); }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.08; margin-bottom: 12px; }
.prose .updated { color: var(--ink-55); font-size: 14px; margin-bottom: 40px; }
.prose section { padding-top: 8px; }
.prose h2 { font-size: 24px; line-height: 1.33; margin: 48px 0 16px; }
.prose h2 .num { color: var(--ink-55); }
.prose h3 { font-size: 18px; line-height: 1.44; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-80); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose .table-wrap { margin: 20px 0 24px; }
.prose .table { font-size: 14px; }
@media (max-width: 960px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 24px; }
  .toc ol { columns: 2; column-gap: 24px; border-left: 0; }
  .toc li a { padding-left: 0; }
}
@media (max-width: 520px) { .toc ol { columns: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 80px 0 32px; font-size: 15px; line-height: 1.53; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; }
.footer-about p { margin: 20px 0 0; max-width: 38ch; color: var(--ink-70); }
.site-footer h2 { font-size: 14px; line-height: 1.43; color: var(--ink-55); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.4; color: var(--ink-55); }
.footer-bottom span:last-child { max-width: 62ch; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound .code { font-size: clamp(96px, 18vw, 176px); line-height: 1; margin: 0 0 16px; }
.notfound p { max-width: 520px; margin-inline: auto; color: var(--ink-70); }

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