:root {
  --ink: #111418;
  --paper: #F5F6F7;
  --muted: #5B6168;
  --rule: #DADDE1;
  --mono: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #FFFFFF; --paper: #111418; --muted: #9AA0A6; --rule: #2A2F35; }
}

* { box-sizing: border-box; margin: 0; }
/* Reserve scrollbar space everywhere so centered things don't shift between
   short and long pages on systems with always-visible scrollbars. */
html { scrollbar-gutter: stable; }

body {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 120px;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

header { margin-bottom: 72px; }
.lockup { display: block; width: 132px; height: auto; }

h1 {
  font: 600 clamp(28px, 6vw, 40px)/1.15 var(--mono);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
h2 {
  font: 600 13px/1.4 var(--mono);
  text-transform: lowercase;
  color: var(--muted);
  margin-bottom: 12px;
}
h2::before { content: "// "; }
h3 { font: 600 16px/1.4 var(--sans); margin: 20px 0 4px; }

p + p, p + ul, ul + p { margin-top: 12px; }
.lede { font-size: 18px; }
.muted { color: var(--muted); }

section { margin-top: 56px; }

ul { padding-left: 0; list-style: none; }
li { position: relative; padding-left: 22px; }
li + li { margin-top: 6px; }
li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--ink);
}

.mono { font-family: var(--mono); }

/* Same footer, same spot, on every page: pinned to the bottom of the screen,
   with long pages scrolling under it and fading out. */
footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 20px 24px;
  background: linear-gradient(transparent, var(--paper) 28px); /* solid behind the text */
  font: 12px/1.6 var(--mono);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
}
footer .sep { opacity: 0.6; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer a[aria-current="page"] { color: var(--ink); }

/* Home: big centered mark, one line, nothing else. */
.home {
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  padding: 24px 20px 44px; /* bottom leaves room for the fixed footer line */
  touch-action: manipulation;
}
.home main {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  text-align: center;
}
.home h1 { margin: 0; }
.hero { display: block; width: min(320px, 70vw); height: auto; }
.headline {
  font: 500 15px/1.5 var(--mono);
  letter-spacing: -0.01em;
  color: var(--muted);
}
.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  margin-left: 0.15em;
  vertical-align: -0.17em;
  background: var(--ink);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
@media (hover: hover) and (pointer: fine) { .home { cursor: crosshair; } }

/* Canvas for the hover effect in fragments.js. */
.fragments {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
