/* worksheet-md: graph paper, a red marking pen and a yellow highlighter.
   Bricolage Grotesque for display, Instrument Sans for text, Shantell Sans
   for the hand-written notes. Keep the focus ring, the skip link and the
   three-width check. */
:root {
  --paper: #fbfbf7;
  --grid: #e4ebf2;
  --card: #ffffff;
  --ink: #14161b;
  --muted: #535a66;
  --line: #d8dde4;
  --pen: #d8342a;
  --hi: #ffd43b;
  --blue: #2450c8;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hand: "Shantell Sans", "Comic Neue", "Segoe Print", cursive;
  --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(--blue); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.06; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 3.8vw, 46px); max-width: 22ch; }
h3 { font-size: 21px; letter-spacing: -.01em; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: .86em; }
mark { color: inherit; background: linear-gradient(176deg, transparent 0 46%, var(--hi) 46% 90%, transparent 90%); padding: 0 .08em; }
@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; left: 12px; top: -48px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; }
.skip:focus { top: 12px; }
.graph {
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: -1px -1px;
}

.top { border-bottom: 2px solid var(--ink); background: var(--paper); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 66px; flex-wrap: wrap; padding-block: 8px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.mark { width: 32px; height: 32px; flex: none; }
.nav { display: flex; gap: 6px 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--pen); }

section { padding: clamp(60px, 8vw, 104px) 0; }
.band { background: #f2f1ea; border-block: 2px solid var(--ink); }
.band.graph { background-color: #f4f3ec; }
.kicker { font-family: var(--hand); font-weight: 700; color: var(--pen); font-size: 19px; margin-bottom: 10px; transform: rotate(-1.5deg); transform-origin: left; display: inline-block; }
.section-lede { color: var(--muted); margin-top: 14px; max-width: 62ch; }

.hero { padding-top: clamp(44px, 6vw, 80px); overflow-x: clip; border-bottom: 2px solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 4.4vw, 60px); letter-spacing: -.035em; margin-top: 16px; font-weight: 800; line-height: 1; }
.lede { font-size: 19px; color: var(--muted); margin-top: 22px; max-width: 50ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--pen); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--pen); }
.btn-quiet { background: var(--card); color: var(--ink); box-shadow: 3px 3px 0 var(--hi); }
.btn-quiet:hover { box-shadow: 4px 4px 0 var(--hi); }
.one-liner { margin-top: 24px; }
.one-liner code { display: inline-block; background: var(--card); border: 2px dashed var(--ink); padding: 8px 12px; border-radius: 8px; overflow-wrap: anywhere; }

.hero-art { position: relative; aspect-ratio: 1 / 1.02; }
.sheet { position: absolute; width: 66%; background: #fff; box-shadow: 0 2px 4px rgba(20, 22, 27, .08), 0 26px 50px rgba(20, 22, 27, .18); border-radius: 2px; transition: transform .2s ease; }
.sheet-back { right: 0; top: 0; transform: rotate(4deg); }
.sheet-front { left: 2%; bottom: 4%; transform: rotate(-3deg); }
.sheet:hover { z-index: 3; }
.note { position: absolute; font-family: var(--hand); font-weight: 700; color: var(--pen); line-height: 1.15; pointer-events: none; z-index: 4; }
.note-key { right: 0; bottom: -2%; width: 38%; font-size: clamp(16px, 1.6vw, 21px); transform: rotate(-4deg); text-align: right; }
.note-key svg { display: block; width: 70%; height: auto; margin: 0 0 4px; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 64px 24px 26px; box-shadow: 5px 5px 0 var(--ink); }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 14px; width: 40px; height: 40px; display: grid; place-items: center; font-family: var(--hand); font-weight: 700; font-size: 22px; color: var(--pen); border: 3px solid var(--pen); border-radius: 50% 44% 52% 46% / 48% 54% 46% 52%; transform: rotate(-6deg); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 16px; }
.steps p + p { margin-top: 10px; }
.steps .say { color: var(--ink); font-family: var(--hand); font-weight: 500; font-size: 18px; line-height: 1.35; background: #fff7d1; border-radius: 10px; padding: 10px 14px; }

.kinds { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.kinds li { background: var(--card); border: 2px solid var(--ink); border-radius: 12px; padding: 16px 18px 18px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.kinds b { display: block; font-family: var(--display); font-size: 19px; color: var(--ink); margin-bottom: 4px; letter-spacing: -.01em; }
.kinds li:nth-child(-n+4) { border-color: var(--pen); box-shadow: 4px 4px 0 var(--hi); }

.access { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 18px; height: 10px; border-left: 3.5px solid var(--pen); border-bottom: 3.5px solid var(--pen); transform: rotate(-48deg); }
.ticks b { color: var(--ink); }
.access-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.access-shots figure, .themes figure { margin: 0; }
.access-shots img, .themes img, .examples img { background: #fff; box-shadow: 0 1px 2px rgba(20, 22, 27, .08), 0 14px 30px rgba(20, 22, 27, .14); }
.access-shots figure:nth-child(2) { margin-top: 48px; }
figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; }
.access-shots figcaption { font-family: var(--hand); font-weight: 700; color: var(--pen); font-size: 17px; }

.themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.themes a { display: block; transition: transform .2s ease; }
.themes a:hover { transform: translateY(-4px) rotate(-1deg); }
.themes figcaption b { display: block; font-family: var(--mono); font-size: 14px; color: var(--ink); margin-bottom: 2px; }

.examples { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px 26px; }
.examples a { display: block; color: var(--ink); text-decoration: none; }
.examples img { margin-bottom: 14px; transition: transform .2s ease; }
.examples a:hover img { transform: translateY(-4px); }
.examples b { display: block; font-family: var(--display); font-size: 19px; letter-spacing: -.01em; }
.examples a:hover b { text-decoration: underline; text-decoration-color: var(--pen); text-decoration-thickness: 2px; }
.examples span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.install > div { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 20px; min-width: 0; }
.install pre { margin: 12px 0 0; background: var(--ink); color: #f6f4ea; padding: 16px; border-radius: 10px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-plain { color: var(--muted); margin-top: 22px; font-size: 15px; }

.foot { padding: 44px 0 60px; font-size: 15px; color: var(--muted); }
.foot-row { display: grid; gap: 8px; }
.foot .wordmark { font-size: 18px; }

.lost { min-height: 62vh; display: flex; align-items: center; }
.lost h1 { font-size: clamp(38px, 5vw, 60px); margin-top: 12px; }
.lost .lede { margin-top: 16px; }

@media (max-width: 1080px) {
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .hero-grid, .access { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-art { max-width: 520px; width: 100%; margin: 0 auto; }
  .steps, .install { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav { gap: 4px 14px; }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .access-shots { gap: 16px; }
  .note-key { font-size: 14px; width: 36%; bottom: -5%; }
  .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .examples b { font-size: 16px; }
}
