/* Scoresheet: graph paper, ink, one lime highlighter, a pitch-green band.
   Display type is Bricolage Grotesque, text is Instrument Sans, figures are JetBrains Mono. */
:root {
  --paper: #f2f5ea;
  --ink: #0c1a14;
  --muted: #47564e;
  --line: rgba(12, 26, 20, 0.11);
  --lime: #cdf53d;
  --pitch: #0a3626;
  --pitch-2: #0f4a34;
  --flag: #ff4b2b;
  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains 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(--paper); color: var(--ink); font: 17px/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { background: var(--lime); }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0; text-wrap: balance; font-stretch: 88%; }
h2 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.025em; }
h3 { font-size: 22px; letter-spacing: -.01em; font-stretch: 100%; font-weight: 700; }
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 { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; inset-inline-start: 12px; top: -56px; background: var(--ink); color: var(--lime); padding: 10px 16px; z-index: 20; }
.skip:focus { top: 12px; }

/* Header */
.top { position: relative; z-index: 3; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.wordmark { font-family: var(--mono); font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.wordmark:hover { background: none; }
.wordmark svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.nav a:hover { background: var(--lime); }

section { padding: clamp(64px, 9vw, 120px) 0; }

/* Hero on graph paper */
.hero {
  padding: clamp(28px, 5vw, 64px) 0 clamp(72px, 9vw, 120px);
  margin-top: -72px; padding-top: calc(72px + clamp(28px, 5vw, 64px));
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px; background-position: -1px -1px;
  overflow-x: clip;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 40px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; display: inline-block; background: var(--ink); color: var(--lime); padding: 5px 10px; border-radius: 3px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 92px); letter-spacing: -.02em; line-height: .94; margin-top: 22px; }
mark { background: linear-gradient(transparent 8%, var(--lime) 8%, var(--lime) 92%, transparent 92%); color: inherit; padding: 0 .08em; margin: 0 -.04em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lede { font-size: 20px; color: var(--muted); margin-top: 26px; max-width: 46ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-block; background: var(--ink); color: var(--lime); text-decoration: none; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 2px solid var(--ink); }
.btn:hover { background: var(--lime); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink); }
.one-liner { margin-top: 26px; }
.one-liner code { display: inline-block; background: #fff; border: 1.5px solid var(--ink); padding: 8px 12px; border-radius: 6px; overflow-wrap: anywhere; box-shadow: 4px 4px 0 var(--ink); }

.fan { position: relative; aspect-ratio: 1 / 1.08; width: 100%; }
.fan a { position: absolute; display: block; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 26px 50px rgba(8, 24, 16, .28); transition: transform .25s ease; }
.fan a:hover { background: #fff; z-index: 6; transform: rotate(0) translateY(-6px) scale(1.02); }
.fan-a { left: 0; top: 7%; width: 46%; transform: rotate(-7deg); z-index: 1; }
.fan-b { left: 27%; top: 0; width: 46%; transform: rotate(2.5deg); z-index: 2; }
.fan-c { right: 0; top: 13%; width: 46%; transform: rotate(8deg); z-index: 1; }
.fan-d { left: 8%; bottom: 0; width: 74%; transform: rotate(-3deg); z-index: 3; }

/* Strip of sheet types */
.strip { background: var(--ink); color: var(--lime); padding: 0; overflow: hidden; }
.strip ul { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 38px; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 34px); letter-spacing: -.01em; text-transform: uppercase; font-stretch: 80%; }

/* How it works */
.steps-head { max-width: 22ch; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; align-items: stretch; }
.step { counter-increment: step; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 26px; box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.step::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 56px; line-height: .8; color: var(--ink); background: var(--lime); width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); }
.step p { color: var(--muted); }
.step .ask { margin: 0; font-family: var(--display); font-stretch: 90%; font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.step pre { margin: 0; background: var(--ink); color: #e8f5c9; padding: 16px; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-size: 13px; }
.step img { border: 1.5px solid var(--ink); border-radius: 4px; background: #fff; }

/* Themes gallery */
.band-dark { background: var(--pitch); color: #f4f7ea; background-image: radial-gradient(90% 60% at 50% 0%, var(--pitch-2), transparent 70%); }
.band-dark h2 { color: #fff; }
.band-dark .section-lede { color: #b7d1c2; }
.section-lede { color: var(--muted); margin-top: 16px; max-width: 58ch; font-size: 19px; }
.themes { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.themes figure { margin: 0; }
.themes a { display: block; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 22px 40px rgba(0,0,0,.35); transition: transform .25s ease; }
.themes a:hover { background: #fff; transform: translateY(-8px) rotate(-1deg); }
.themes figcaption { margin-top: 18px; color: #c9ddd0; font-size: 14.5px; line-height: 1.45; }
.themes figcaption b { display: block; font-family: var(--mono); font-size: 15px; color: var(--lime); margin-bottom: 4px; }

/* Examples */
.kinds { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
.kinds a { display: block; text-decoration: none; }
.kinds a:hover { background: none; }
.kinds .thumb { aspect-ratio: 1 / 1; background: #e4e9d6; border: 2px solid var(--ink); border-radius: 12px; display: grid; place-items: center; padding: 14px; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 4px 4px 0 var(--ink); }
.kinds a:hover .thumb { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); background: var(--lime); }
.kinds .thumb { position: relative; }
.kinds .thumb img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); max-width: none; object-fit: contain; box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.kinds h3 { margin-top: 18px; font-size: 20px; }
.kinds .kind { font-family: var(--mono); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* Install */
.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.install > div { min-width: 0; }
.install h3 { font-size: 19px; }
.install pre { margin: 14px 0 0; background: var(--ink); color: #e8f5c9; padding: 18px; border-radius: 10px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--lime); }
.band-dark .note { color: #b7d1c2; }
.note { color: var(--muted); margin-top: 30px; font-size: 16px; }

/* Footer */
.foot { background: var(--ink); color: #c8d4c4; padding: 56px 0 64px; font-size: 15px; }
.foot a { color: var(--lime); }
.foot a:hover { color: var(--ink); }
.foot-row { display: grid; gap: 14px; }
.foot .wordmark { color: #fff; }
.foot h2 { font-size: 22px; letter-spacing: -.01em; color: #fff; font-stretch: 100%; font-weight: 700; margin-top: 12px; }

/* 404 */
.lost { min-height: 62vh; display: flex; align-items: center; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 36px 36px; margin-top: -72px; padding-top: 72px; }
.lost h1 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -.035em; margin-top: 22px; }

@media (max-width: 1000px) {
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .install { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .fan { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav a { padding: 6px 9px; font-size: 14px; }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .kinds { gap: 22px 14px; }
  .kinds .thumb img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .step { padding: 20px; box-shadow: 4px 4px 0 var(--ink); }
  .lede { font-size: 18px; }
  .one-liner code { font-size: 12.5px; }
}
