/* whitepaper-md site. A printed proof on a drafting desk: cool grey desk, white sheets,
   a serif display face, mono page marks, dotted leaders, one highlighter yellow. */
:root {
  --desk: #e9ecf1;
  --sheet: #ffffff;
  --ink: #0d1117;
  --muted: #55606f;
  --line: #c9cfda;
  --mark: #ffe14a;
  --blue: #1535d8;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex 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; background: var(--desk); color: var(--ink); font: 17px/1.6 var(--text); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: clamp(36px, 5vw, 60px); }
h3 { font-size: 26px; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: .86em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }
mark { background: linear-gradient(transparent 52%, var(--mark) 52% 92%, transparent 92%); color: inherit; padding: 0 .06em; }

/* Top bar: a running head */
.top { border-bottom: 1px solid var(--ink); background: var(--desk); position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.wordmark { font: 500 14px/1 var(--mono); color: var(--ink); text-decoration: none; letter-spacing: .02em; display: inline-flex; gap: 10px; align-items: center; }
.wordmark::before { content: ""; width: 12px; height: 15px; background: var(--ink); border-radius: 1px; box-shadow: 3px 3px 0 var(--mark); }
.nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font: 500 13px/1 var(--mono); }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { font: 500 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 22px; }
.hero h1 { font-size: clamp(50px, 7.2vw, 100px); line-height: .96; letter-spacing: -.022em; }
.lede { font-size: 20px; line-height: 1.5; color: #2a3340; max-width: 34em; margin-top: 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; background: var(--ink); color: #fff; text-decoration: none; padding: 14px 22px; border-radius: 2px; font: 600 15px/1 var(--text); }
.btn:hover { background: var(--blue); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-quiet:hover { background: var(--ink); color: #fff; }
.one-liner { margin-top: 24px; }
.one-liner code { display: block; background: var(--sheet); border: 1px solid var(--line); padding: 12px 14px; border-radius: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.fan { position: relative; aspect-ratio: 1 / 1.08; max-width: 560px; margin-inline: auto; width: 100%; }
.fan a { position: absolute; width: 56%; box-shadow: 0 2px 4px rgba(13, 17, 23, .1), 0 30px 60px rgba(13, 17, 23, .24); background: var(--sheet); transition: transform .25s ease; }
.fan a:nth-child(1) { left: 0; top: 10%; transform: rotate(-7deg); }
.fan a:nth-child(2) { right: 0; top: 0; transform: rotate(6deg); }
.fan a:nth-child(3) { left: 22%; top: 24%; transform: rotate(-1deg); z-index: 2; }
.fan a:hover { transform: translateY(-8px) rotate(0); z-index: 3; }

/* Sections: each opens with a running head and a dotted leader */
section { padding-block: 72px; }
.runhead { display: flex; align-items: baseline; gap: 12px; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 30px; }
.runhead i { flex: 1; border-bottom: 2px dotted var(--ink); transform: translateY(-3px); opacity: .55; }
.pitch { background: var(--sheet); border-block: 1px solid var(--ink); }
.pitch p.big { font-family: var(--display); font-size: clamp(30px, 4.4vw, 56px); line-height: 1.08; max-width: 22em; letter-spacing: -.01em; }
.facts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.facts li { padding: 20px 22px 20px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: #2a3340; }
.facts b { display: block; font-family: var(--display); font-weight: 400; font-size: 25px; color: var(--ink); line-height: 1.1; margin-bottom: 6px; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--sheet); padding: 28px 26px 26px; box-shadow: 0 1px 2px rgba(13, 17, 23, .08), 0 14px 32px rgba(13, 17, 23, .08); }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--display); font-size: 68px; line-height: .9; margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: #2a3340; font-size: 16px; }
.steps li > code { display: block; margin-top: 14px; background: var(--desk); padding: 10px 12px; border-radius: 2px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.5; }
.ask { margin-top: 36px; font-family: var(--display); font-size: clamp(24px, 3vw, 34px); line-height: 1.2; border-left: 6px solid var(--mark); padding: 6px 0 6px 20px; max-width: 30em; }

/* Themes */
.themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.themes figure { margin: 0; }
.themes a.shot { display: block; background: var(--sheet); box-shadow: 0 1px 2px rgba(13, 17, 23, .1), 0 18px 40px rgba(13, 17, 23, .16); transition: transform .2s ease; }
.themes a.shot:hover { transform: translateY(-6px); }
.themes figcaption { margin-top: 16px; font-size: 14.5px; line-height: 1.45; color: #2a3340; }
.themes figcaption b { display: block; font-family: var(--display); font-weight: 400; font-size: 27px; color: var(--ink); line-height: 1.1; }
.themes .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.themes .pair a { display: block; background: var(--sheet); box-shadow: 0 1px 2px rgba(13, 17, 23, .1), 0 8px 20px rgba(13, 17, 23, .1); }
.section-lede { color: #2a3340; max-width: 40em; margin: -10px 0 34px; font-size: 18px; }

/* Features as a contents list */
.contents { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 64px; }
.contents li { break-inside: avoid; display: flex; align-items: baseline; gap: 10px; padding: 11px 0; font-size: 18px; }
.contents li i { flex: 1; border-bottom: 1.5px dotted var(--ink); opacity: .45; transform: translateY(-4px); min-width: 20px; }
.contents li span:last-child { font: 500 14px/1 var(--mono); }
.contents li span:first-child { font-weight: 500; }
.proof { margin-top: 28px; padding: 18px 20px; background: var(--sheet); border-left: 6px solid var(--mark); font-size: 16px; max-width: 46em; }

/* Install */
.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.install > div { background: var(--sheet); padding: 22px; border-top: 4px solid var(--ink); min-width: 0; }
.install h3 { font-size: 24px; margin-bottom: 12px; }
.install pre { margin: 0; background: var(--ink); color: #eaf0ff; padding: 14px; border-radius: 2px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font-size: 13px; line-height: 1.55; }
.note { margin-top: 20px; color: var(--muted); font-size: 15px; }

/* Examples */
.examples { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.examples a { text-decoration: none; color: var(--ink); display: block; }
.examples img { box-shadow: 0 1px 2px rgba(13, 17, 23, .1), 0 14px 30px rgba(13, 17, 23, .14); background: var(--sheet); transition: transform .2s ease; }
.examples a:hover img { transform: translateY(-5px); }
.examples b { display: block; margin-top: 14px; font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.1; }
.examples span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* Footer */
.foot { background: var(--ink); color: #c9d1e0; padding: 44px 0 52px; margin-top: 40px; }
.foot a { color: #fff; }
.foot-row { display: grid; gap: 14px; font-size: 15px; }
.foot .wordmark { color: #fff; }
.foot .wordmark::before { background: #fff; }
.lost { padding: 110px 0; }
.lost h1 { font-size: clamp(44px, 6vw, 84px); margin: 8px 0 18px; }

@media (max-width: 1100px) {
  .themes, .examples { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps, .install { grid-template-columns: 1fr; }
  .contents { columns: 1; }
  .nav { gap: 14px; }
  .nav li:nth-child(n+3) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding-block: 52px; }
  .themes, .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .themes figcaption b { font-size: 23px; }
  .nav li:nth-child(n+2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
