/* The site of pantin. Its colours are those of the application: a dark slate and an amber, with
   a paper-coloured light theme. */

:root {
  --bg: #16181d;
  --bg-2: #1c1f25;
  --surface: #22252d;
  --surface-2: #2a2e37;
  --line: #343944;
  --text: #e8e5de;
  --muted: #a1a7b2;
  --accent: #f0a63a;
  --accent-ink: #1b1406;
  --accent-soft: rgba(240, 166, 58, 0.14);
  --teal: #45c2b1;
  --code-bg: #111318;
  --stage: radial-gradient(120% 90% at 50% 20%, #2b2f38 0%, #1d2027 70%);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --radius: 14px;
  --max: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f2ea;
    --bg-2: #efe9de;
    --surface: #ffffff;
    --surface-2: #f3eee5;
    --line: #e0d8ca;
    --text: #1d1f24;
    --muted: #5e636d;
    --accent: #c47712;
    --accent-ink: #ffffff;
    --accent-soft: rgba(196, 119, 18, 0.12);
    --teal: #1f8f81;
    --code-bg: #1d2027;
    --stage: radial-gradient(120% 90% at 50% 20%, #ffffff 0%, #ece5d8 75%);
    --shadow: 0 20px 50px -24px rgba(60, 40, 10, 0.35);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #f6f2ea;
  --bg-2: #efe9de;
  --surface: #ffffff;
  --surface-2: #f3eee5;
  --line: #e0d8ca;
  --text: #1d1f24;
  --muted: #5e636d;
  --accent: #c47712;
  --accent-ink: #ffffff;
  --accent-soft: rgba(196, 119, 18, 0.12);
  --teal: #1f8f81;
  --code-bg: #1d2027;
  --stage: radial-gradient(120% 90% at 50% 20%, #ffffff 0%, #ece5d8 75%);
  --shadow: 0 20px 50px -24px rgba(60, 40, 10, 0.35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code, pre, kbd { font-family: var(--mono); font-size: 0.88em; }
:not(pre) > code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 0.08em 0.38em;
  border-radius: 6px;
}
kbd {
  display: inline-block;
  min-width: 1.7em;
  text-align: center;
  padding: 0.05em 0.45em;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--surface);
  font-size: 0.8em;
}
pre {
  background: var(--code-bg);
  color: #e6e3dc;
  padding: 16px 18px;
  border-radius: 10px;
  overflow-x: auto;
  line-height: 1.5;
  border: 1px solid #2a2e37;
}
pre code { background: none; border: 0; padding: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* The bar at the top. */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.theme {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}

main { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Buttons. */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
}
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.button:hover { filter: brightness(1.06); text-decoration: none; }

/* The first screen of the home page. */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 16px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 12px 0 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 36em; margin: 0 0 26px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .puppet {
  aspect-ratio: 1;
  border-radius: 28px;
  background: var(--stage);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.hero .puppet img { width: 88%; }
.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 12px 4px 8px;
  background: var(--surface);
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.word { color: var(--muted); font-size: 0.95rem; margin-top: 18px; }
.word em { color: var(--text); }

/* The window of the application, framed. */
.window {
  max-width: var(--max);
  margin: 32px auto 0;
  padding: 0 16px;
}
.frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #1b1d22;
}
.frame .dots {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #23262d;
  border-bottom: 1px solid #30343d;
}
.frame .dots i { width: 11px; height: 11px; border-radius: 50%; background: #444955; }
.caption { text-align: center; color: var(--muted); font-size: 0.92rem; margin: 12px 0 0; }

/* Sections of the home page. */
section.band { padding: 80px 0 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px;
}
h2.title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
}
.intro { color: var(--muted); max-width: 44em; margin: 0 0 32px; font-size: 1.06rem; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.pillar h3 { margin: 10px 0 6px; font-size: 1.12rem; }
.pillar p { margin: 0; color: var(--muted); }
.pillar .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

/* A feature: a screenshot and what it shows, side by side. */
.feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 56px 0;
}
.feature.flip { grid-template-columns: 1fr 1.35fr; }
.feature.flip figure { order: 2; }
.feature h3 { font-size: 1.45rem; letter-spacing: -0.01em; margin: 0 0 10px; }
.feature p { color: var(--muted); margin: 0 0 12px; }
.feature ul { color: var(--muted); padding-left: 1.1em; margin: 0 0 12px; }
.feature li { margin: 4px 0; }
figure { margin: 0; }
figure.screen img, figure.screen video {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #1b1d22;
}
figure figcaption { color: var(--muted); font-size: 0.88rem; margin-top: 10px; }
a.shot { display: block; cursor: zoom-in; }

/* The examples. */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.filters button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}
.filters button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card .stage { background: var(--stage); aspect-ratio: 1; display: grid; place-items: center; }
.card .stage img { width: 100%; }
.card .body { padding: 14px 16px 16px; }
.card h3 { margin: 0 0 4px; font-size: 1.05rem; font-family: var(--mono); }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag {
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 99px;
}
.examples.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.examples.small .body { padding: 8px 12px 12px; }
.examples.small h3 { font-size: 0.92rem; }

/* The tutorials. */
/* The tutorial that builds one character: its picture beside what it is, over its chapters. */
.series {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 32px; align-items: center;
  margin: 0 0 28px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
}
.series figure img { width: 100%; height: auto; display: block; }
.series .title { margin-top: 4px; }
.series p { color: var(--muted); }
p.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.tile {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.tile:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.tile .num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.tile h3 { margin: 0 0 4px; font-size: 1.08rem; }
.tile p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.tile .time { font-size: 0.8rem; color: var(--muted); margin-top: 8px; display: block; }

/* The chapters of the manual: a still of each, its number, what it is about and what is in it. */
.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.chapter {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.chapter:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.chapter img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #1b1d22; }
.chapter .body { padding: 16px 18px 18px; }
.chapter .num { color: var(--accent); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; }
.chapter h3 { margin: 2px 0 6px; font-size: 1.15rem; }
.chapter p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.chapter .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

/* A page with a side navigation: the tutorials and the documentation. */
.with-side {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 16px 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
}
.side { position: sticky; top: 80px; align-self: start; font-size: 0.94rem; }
.side-title {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 10px;
}
.side ol, .side ul { list-style: none; padding: 0; margin: 0; }
.side li a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}
.side li a span { font-weight: 700; font-size: 0.82rem; min-width: 1em; }
.side li a:hover { background: var(--surface); color: var(--text); }
.side li a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.prose { max-width: 760px; min-width: 0; }
.prose h1 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.prose h2 { font-size: 1.45rem; margin: 2.2em 0 0.6em; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.15rem; margin: 1.8em 0 0.5em; }
.prose .lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; }
.prose figure { margin: 26px 0; }
.prose li { margin: 6px 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin: 18px 0;
  display: block;
  overflow-x: auto;
}
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.prose blockquote { margin: 18px 0; padding: 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose img { border-radius: 10px; }
.doc h1 { margin-top: 0; }
.from-repo {
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  margin: 0 0 22px;
}
.meta { display: flex; gap: 6px 8px; flex-wrap: wrap; color: var(--muted); font-size: 0.88rem; margin: 0 0 24px; }
.meta span { border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; background: var(--surface); }

.note, .tip {
  border-radius: 10px;
  padding: 12px 16px;
  margin: 20px 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.tip { border-left: 4px solid var(--teal); }
.note { border-left: 4px solid var(--accent); }
.note p, .tip p { margin: 0.3em 0; }

ol.do { counter-reset: do; list-style: none; padding: 0; }
ol.do > li {
  counter-increment: do;
  position: relative;
  padding-left: 46px;
  margin: 16px 0;
}
ol.do > li::before {
  content: counter(do);
  position: absolute;
  left: 0;
  top: -1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.steps {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 48px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.steps a {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  min-width: 0;
}
.steps a small { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.steps a.next { text-align: right; margin-left: auto; }
.steps a:hover { border-color: var(--accent); }

.roadmap { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.roadmap li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
}
.roadmap .state { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.roadmap .built { color: var(--teal); }
.roadmap .next { color: var(--muted); }
.roadmap p { margin: 0; color: var(--muted); }
.roadmap strong { color: var(--text); }

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }

.page-head { max-width: var(--max); margin: 0 auto; padding: 56px 16px 8px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.02em; margin: 0 0 10px; }
.page-head p { color: var(--muted); max-width: 44em; font-size: 1.1rem; margin: 0; }

.foot { border-top: 1px solid var(--line); margin-top: 96px; background: var(--bg-2); }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 28px 16px 40px; color: var(--muted); font-size: 0.9rem; }
.foot-inner p { margin: 4px 0; }

dialog.viewer {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1400px);
  cursor: zoom-out;
}
dialog.viewer::backdrop { background: rgba(8, 9, 12, 0.85); }
dialog.viewer img { border-radius: 10px; }
dialog.viewer p { color: #d8d5ce; text-align: center; margin: 10px 0 0; font-size: 0.92rem; }

@media (max-width: 900px) {
  .hero, .feature, .feature.flip, .columns { grid-template-columns: minmax(0, 1fr); }
  .feature.flip figure { order: 0; }
  .hero { padding-top: 36px; }
  .hero .puppet { max-width: 420px; width: 100%; margin: 0 auto; }
  .three { grid-template-columns: 1fr; }
  /* minmax(0, …): a wide table or block of code scrolls inside the column, never past the screen. */
  .with-side { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .side { position: static; min-width: 0; }
  .side ol, .side ul {
    position: relative;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none;
  }
  .side li a { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); }
  .prose pre { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .prose figure { margin: 20px 0; }
  .frame .dots { display: none; }
  .roadmap li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  /* The bar takes two rows: the name and the theme, then the four links across the width. */
  .top-inner { flex-wrap: wrap; gap: 6px 12px; padding: 8px 16px; }
  .brand { flex: 1; }
  .nav { order: 3; flex-basis: 100%; flex-wrap: wrap; justify-content: center; gap: 2px 4px; overflow: visible; }
  .nav a { padding: 6px 5px; font-size: 0.86rem; }
  html { scroll-padding-top: 110px; }
  .tiles { grid-template-columns: 1fr; }
  .series { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
  .series figure { max-width: 220px; margin: 0 auto; }
  p.actions .button { flex: 1 1 100%; justify-content: center; }
  .tile { grid-template-columns: 38px 1fr; padding: 14px; }
  .tile .num { width: 38px; height: 38px; }
  .hero { padding-top: 24px; gap: 24px; }
  .hero .actions .button { flex: 1 1 100%; justify-content: center; }
  section.band { padding-top: 56px; }
  .feature { gap: 18px; margin: 40px 0; }
  .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .examples .body { padding: 10px 12px 12px; }
  .examples .card p { font-size: 0.85rem; }
  .page-head { padding-top: 32px; }
  .prose th, .prose td { padding: 6px 8px; }
  .steps { flex-direction: column; }
  .steps a.next { margin-left: 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px 4px; scrollbar-width: none; }
  .filters button { white-space: nowrap; }
  .foot { margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
}

/* How it works: three steps, each a picture. */
.how { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: none; }
.how li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 22px; position: relative; }
.how figure { margin: 0 0 14px; background: var(--stage); border-radius: 10px; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.how figure img { max-height: 100%; width: auto; object-fit: contain; padding: 10px; }
.how .step, .journey .step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; }
.how h3 { display: inline; margin-left: 10px; font-size: 1.15rem; vertical-align: middle; }
.how p { color: var(--muted); margin: 10px 0 0; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.why h3 { margin: 0 0 4px; font-size: 1rem; color: var(--accent); }
.why p { margin: 0; color: var(--muted); }

/* What you can do: goals, each a card that leads somewhere. */
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.goal { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.goal:hover { border-color: var(--accent); transform: translateY(-2px); }
.goal h3 { margin: 0 0 6px; font-size: 1.05rem; }
.goal p { margin: 0 0 12px; color: var(--muted); flex: 1; }
.goal span { color: var(--accent); font-weight: 600; font-size: .95rem; }

/* Where to start: a path of cards. */
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.path a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--text); text-decoration: none; }
.path a:hover { border-color: var(--accent); }
.path span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.path h3 { margin: 10px 0 4px; font-size: 1.02rem; }
.path p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Questions that open. */
.faq { margin-top: 18px; display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--accent); font-weight: 700; }
.faq details[open] summary::before { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }

/* Get started: a numbered journey. */
.start { margin-top: 32px; max-width: 900px; }
.journey { list-style: none; padding: 0; margin: 0; }
.journey > li { display: grid; grid-template-columns: 30px 1fr; gap: 20px; padding-bottom: 34px; position: relative; }
.journey > li::before { content: ""; position: absolute; left: 14px; top: 38px; bottom: 6px; width: 2px; background: var(--line); }
.journey > li:last-child::before { display: none; }
.journey h2 { margin: 0 0 10px; font-size: 1.4rem; }
.journey p { margin: 0 0 12px; }
.journey figure { margin: 14px 0; }
.journey figure.small { max-width: 260px; }
.ideas { margin: 10px 0 14px; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; }
.ideas dt { font-weight: 700; color: var(--accent); }
.ideas dd { margin: 0; }
.further { margin: 0; padding-left: 20px; }
.further li { margin-bottom: 6px; }

/* The glossary. */
.glossary dt { font-weight: 700; font-size: 1.08rem; margin-top: 22px; scroll-margin-top: 90px; }
.glossary dt:target { color: var(--accent); }
.glossary dd { margin: 4px 0 0; }

/* The documentation, by what you want to do. */
.docs-hub { margin-top: 28px; }
.docs-hub section { margin-bottom: 44px; }
.docs-hub h2 { margin: 0 0 2px; font-size: 1.45rem; }
.docs-hub .muted { margin: 0 0 16px; }

/* The footer: a map of the site. */
.foot-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; align-items: start; }
.foot-about .brand { margin-bottom: 10px; }
.foot-about p { margin: 0; }
.foot-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.foot-links p { margin: 0 0 8px; font-weight: 700; color: var(--text); }
.foot-links a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.foot-links a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .how, .why, .goals { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr 1fr; }
  .foot-inner { grid-template-columns: 1fr; }
  .foot-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .path { grid-template-columns: 1fr; }
  .ideas { grid-template-columns: 1fr; gap: 2px; }
  .ideas dd { margin-bottom: 10px; }
}
