/* Transformers 2026 — one stylesheet, no framework.
   Principle: text column for reading, wider column for figures, nothing else. */

:root {
  --ink: #111;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --tint: #f6f6f4;
  --accent: #2f5bea;
  --text: 40rem;
  --wide: 60rem;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root { --ink: #ececec; --muted: #9a9a9a; --line: #2a2a2a; --tint: #181818; --accent: #8aa8ff; background: #0e0e0e; }
}

* { box-sizing: border-box; }
body { margin: 0; padding: 3rem 1.25rem 4rem; }
a { color: inherit; }

.col  { max-width: var(--text); margin-inline: auto; }
.wide { max-width: var(--wide); margin-inline: auto; }

/* Top line: where am I */
.crumb { font-size: .875rem; color: var(--muted); margin-bottom: 3rem; display: flex; justify-content: space-between; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }

h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; letter-spacing: -.01em; margin: 3.5rem 0 .5rem; }
.num { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 400; }
.oneline { font-size: 1.2rem; color: var(--muted); margin: 0 0 2.5rem; }

/* Placeholder figures: video + visualizations */
figure { margin: 1.25rem auto 0; }
.slot {
  display: grid; place-items: center; text-align: center;
  background: var(--tint); border: 1px dashed var(--line); border-radius: 10px;
  color: var(--muted); font-size: .9rem; padding: 1.5rem;
  min-height: 16rem;
}
.slot.video { aspect-ratio: 16 / 9; min-height: 0; }
.slot strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: .25rem; }
figcaption { font-size: .875rem; color: var(--muted); margin-top: .6rem; }

.todo { color: var(--muted); font-style: italic; }

/* Overview list */
.topics { list-style: none; padding: 0; margin: 3rem 0 0; border-top: 1px solid var(--line); }
.topics a {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 0 .75rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.topics a:hover .t { color: var(--accent); }
.topics .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.topics .t { font-weight: 500; }
.topics .d { grid-column: 2; color: var(--muted); font-size: .95rem; }

/* Prev / next */
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .95rem; }
.pager a { text-decoration: none; }
.pager a:hover { color: var(--accent); }
.pager small { display: block; color: var(--muted); }
.pager .next { text-align: right; margin-left: auto; }

footer { margin-top: 4rem; font-size: .8rem; color: var(--muted); }
