/* timeline-md: a drafting table. Cool paper, ink, a month ruler and one
   vermilion "today" line. Instrument Serif for display, Geist for text,
   Geist Mono for dates and code. */
:root {
  --paper: #f4f5f1;
  --panel: #e9ebe5;
  --ink: #101216;
  --muted: #545a63;
  --line: #cfd3cb;
  --grid: rgba(16, 18, 22, .055);
  --today: #ff4d1f;
  --today-ink: #c22e08;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --text: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 17px/1.6 var(--text);
  background-color: var(--paper);
  background-image: linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--today); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--today); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font: 400 clamp(36px, 5vw, 60px)/1.02 var(--display); letter-spacing: -.012em; }
h3 { font: 600 18px/1.3 var(--text); }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: .86em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(244, 245, 241, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1 var(--mono); letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.mark { width: 22px; height: 22px; border-radius: 5px; background: var(--ink); position: relative; flex: none; }
.mark::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 3px; background: var(--paper); box-shadow: 5px 5px 0 0 var(--paper); }
.mark::after { content: ""; position: absolute; left: 13px; top: 3px; width: 2px; height: 16px; background: var(--today); }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; font: 500 14px/1 var(--mono); }
.nav a { text-decoration: none; padding: 8px 0; display: inline-block; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--today); }

/* Hero */
.hero { position: relative; padding: 0 0 72px; overflow: hidden; border-bottom: 1px solid var(--line); }
.ruler { display: grid; grid-template-columns: repeat(12, 1fr); border-bottom: 1.5px solid var(--ink); font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ruler span { padding: 14px 0 10px 8px; position: relative; background-image: linear-gradient(90deg, var(--ink) 1px, transparent 1px), repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 25%); background-size: 100% 100%, 100% 6px; background-repeat: no-repeat, no-repeat; background-position: 0 0, 0 100%; }
.today { position: absolute; top: 0; bottom: 0; left: 62.5%; width: 2px; background: var(--today); z-index: 0; }
.today span { position: absolute; top: 44px; left: -32px; background: var(--today); color: #fff; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-radius: 2px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px; align-items: center; padding-top: 72px; }
.eyebrow, .kicker { font: 500 13px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kicker { color: var(--today-ink); margin-bottom: 14px; }
.hero h1 { font: 400 clamp(44px, 6.2vw, 84px)/.98 var(--display); letter-spacing: -.02em; margin: 18px 0 22px; }
.hero h1 em { font-style: italic; color: var(--today-ink); }
.lede { font-size: 19px; color: #2c3138; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--ink); color: var(--paper); font: 600 15px/1 var(--text); text-decoration: none; border-radius: 999px; border: 1.5px solid var(--ink); }
.btn:hover { background: #2a2e35; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--panel); }
.hero-art { position: relative; margin: 0; padding: 26px 0 40px; }
.sheet { display: block; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 2px rgba(16, 18, 22, .1), 0 24px 60px rgba(16, 18, 22, .22); background: #fff; }
.sheet-front { position: relative; z-index: 2; transform: rotate(-1.4deg); }
.sheet-back { position: absolute; z-index: 1; width: 78%; right: -14%; top: -4px; transform: rotate(3deg); opacity: .96; }
.hero-art figcaption { position: absolute; left: 0; bottom: 0; font: 500 12px/1.3 var(--mono); color: var(--muted); }

/* Sections */
section { padding: 88px 0; }
.band { background: rgba(233, 235, 229, .82); border-block: 1px solid var(--line); }
.band-ink { background: var(--ink); color: var(--paper); border: 0; }
.band-ink .kicker { color: #ff8a66; }
.band-ink a { color: var(--paper); }
.band-ink .section-lede, .band-ink p { color: #c4c8cf; }
.section-lede { color: var(--muted); max-width: 40em; margin-top: 16px; font-size: 18px; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: none; }
.steps li { position: relative; border-top: 1.5px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.step-n { position: absolute; z-index: 0; top: -17px; left: -2px; width: 34px; height: 34px; display: grid; place-items: center; font: 600 13px/1 var(--mono); }
.step-n::before { content: ""; position: absolute; z-index: -1; inset: 6px; background: var(--paper); border: 1.5px solid var(--ink); transform: rotate(45deg); }
.steps h3 { font: 400 30px/1.05 var(--display); margin-top: 8px; }
.steps p { color: #353a42; }
.steps pre { margin: auto 0 0; background: var(--ink); color: #e9ebe5; padding: 14px 16px; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }

.layouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; margin-top: 40px; }
.layouts figure { margin: 0; }
.layouts .wide { grid-column: 1 / -1; }
.layouts img, .themes img, .slide img { border-radius: 3px; box-shadow: 0 1px 2px rgba(16, 18, 22, .08), 0 14px 34px rgba(16, 18, 22, .16); }
.layouts figcaption { margin-top: 14px; color: var(--muted); max-width: 46em; }
.layouts figcaption b { color: var(--ink); font: 400 24px/1 var(--display); margin-right: 8px; }

.themes { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 24px; }
.themes li { grid-column: span 2; }
.themes li:nth-child(4) { grid-column: 2 / span 2; }
.themes p { margin-top: 12px; font-size: 15px; }
.themes b { display: block; font: 600 14px/1.4 var(--mono); color: var(--paper); }
.themes img { box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }

.outputs { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.facts li { padding-left: 22px; position: relative; color: #353a42; }
.facts li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; background: var(--today); transform: rotate(45deg); }
.facts b { color: var(--ink); margin-right: 4px; }
.slide { margin: 0; }
.slide figcaption { margin-top: 12px; font: 500 13px/1.3 var(--mono); color: var(--muted); }

.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.install > div { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 8px; padding: 20px; min-width: 0; }
.install h3 { margin-bottom: 12px; }
.install pre { margin: 0; background: var(--ink); color: #e9ebe5; padding: 14px 16px; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.note { margin-top: 18px; color: var(--muted); }

.examples { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1.5px solid var(--ink); }
.examples li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.examples b { font: 400 26px/1.1 var(--display); flex: 1 1 15em; }
.examples span { font: 500 13px/1 var(--mono); color: var(--muted); flex: 0 0 13em; }
.examples a { font: 500 14px/1 var(--mono); padding: 6px 0; }

/* Footer */
.foot { background: var(--ink); color: #c4c8cf; padding: 44px 0; font-size: 15px; }
.foot a { color: var(--paper); }
.foot .wordmark { color: var(--paper); }
.foot .mark { background: var(--paper); }
.foot .mark::before { background: var(--ink); box-shadow: 5px 5px 0 0 var(--ink); }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: space-between; }

/* 404 */
.lost { padding: 120px 0 140px; position: relative; }
.lost h1 { font: 400 clamp(44px, 7vw, 88px)/1 var(--display); margin: 16px 0 20px; }

@media (max-width: 980px) {
  .hero-grid, .outputs { grid-template-columns: 1fr; }
  .hero-art { max-width: 720px; }
  .steps, .install { grid-template-columns: 1fr; }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themes li, .themes li:nth-child(4) { grid-column: auto; }
  .today { left: 87.5%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; background-size: 25% 100%; }
  section { padding: 64px 0; }
  .ruler { grid-template-columns: repeat(4, 1fr); }
  .ruler span:nth-child(n + 5) { display: none; }
  .today { left: auto; right: 10px; }
  .today span { left: auto; right: -4px; }
  .hero-grid { padding-top: 48px; }
  .hero-copy { padding-right: 10px; }
  .layouts, .themes { grid-template-columns: 1fr; }
  .sheet-back { display: none; }
  .sheet-front { transform: none; }
  .nav { gap: 2px 14px; font-size: 13px; }
  .examples span { flex-basis: auto; }
}
