/* infographic-md site: graph paper, ink and one loud vermilion.
   Display: Instrument Serif. Text: DM Sans. Labels: DM Mono. */
:root {
  --paper: #f3f6fb;
  --grid: #dfe6f1;
  --ink: #0c1626;
  --muted: #4a5870;
  --line: #c9d3e3;
  --accent: #ff4a1c;
  --cobalt: #2549ff;
  --sun: #ffc61a;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM 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: 18px/1.6 var(--text);
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); 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; }
h2 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -.015em; }
h3 { font-family: var(--text); font-weight: 700; font-size: 18px; line-height: 1.3; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: .86em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: 12px; top: -56px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 20; border-radius: 4px; }
.skip:focus { top: 12px; }

.top { background: var(--paper); border-bottom: 2px solid var(--ink); position: relative; z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; flex-wrap: wrap; }
.wordmark { font-family: var(--mono); font-weight: 500; font-size: 16px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.wordmark i { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; }
.wordmark i b { width: 6px; background: var(--ink); display: block; }
.wordmark i b:nth-child(1) { height: 8px; } .wordmark i b:nth-child(2) { height: 20px; background: var(--accent); } .wordmark i b:nth-child(3) { height: 13px; }
.nav { display: flex; gap: 24px; 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 { color: var(--accent); }

section { padding: clamp(64px, 9vw, 112px) 0; }
.sheetband { background: var(--ink); color: #eef2fa; }
.sheetband a { color: var(--sun); }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.section-lede { color: var(--muted); margin-top: 16px; max-width: 58ch; font-size: 19px; }
.sheetband .section-lede { color: #b9c4d8; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 100px); overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(50px, 6.6vw, 98px); letter-spacing: -.025em; line-height: .94; margin-top: 18px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: 21px; 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: #fff; text-decoration: none; padding: 14px 24px; font-weight: 700; font-size: 16px; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--accent); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--accent); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: 5px 5px 0 var(--line); }
.btn-quiet:hover { color: var(--ink); box-shadow: 3px 3px 0 var(--line); }
.one-liner { margin-top: 26px; }
.one-liner code { background: #fff; border: 2px solid var(--ink); padding: 8px 12px; display: inline-block; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }

.wall { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: start; }
.wall a { display: block; background: #fff; box-shadow: 0 2px 4px rgba(12,22,38,.1), 0 26px 46px rgba(12,22,38,.2); border: 1px solid var(--line); }
.wall a:nth-child(1) { transform: translateY(40px) rotate(-2deg); }
.wall a:nth-child(2) { transform: translateY(-14px) rotate(1.5deg); }
.wall a:nth-child(3) { transform: translateY(64px) rotate(-1deg); }
.wall a:hover { z-index: 2; }

/* Pitch rules */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 48px; border-top: 2px solid #eef2fa; }
.rules li { list-style: none; padding: 28px 28px 8px 0; }
.rules li + li { padding-left: 28px; border-left: 1px solid #33425c; }
.rules b { display: block; font-family: var(--display); font-size: 36px; font-weight: 400; line-height: 1.05; color: #fff; margin-bottom: 10px; }
.rules p { color: #b9c4d8; font-size: 17px; }
.rules ul { margin: 0; padding: 0; display: contents; }
.mini { margin-top: 56px; display: grid; gap: 14px; max-width: 560px; }
.mini div { display: grid; grid-template-columns: 112px 1fr 64px; align-items: center; gap: 14px; font-family: var(--mono); font-size: 14px; color: #b9c4d8; }
.mini span.bar { display: block; height: 18px; background: var(--sun); }
.mini div:nth-child(2) span.bar { background: var(--accent); }
.mini div:nth-child(3) span.bar { background: #7a8cff; }
.mini b { font-weight: 500; color: #fff; text-align: right; }

/* How it works */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.step { background: #fff; border: 2px solid var(--ink); padding: 26px 24px 28px; position: relative; box-shadow: 6px 6px 0 var(--ink); min-width: 0; }
.step .n { font-family: var(--display); font-size: 72px; line-height: .8; color: var(--accent); }
.step h3 { margin-top: 16px; }
.step p { color: var(--muted); font-size: 16px; margin-top: 8px; }
.step pre { margin: 16px 0 0; background: var(--ink); color: #eef2fa; padding: 14px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Themes */
.themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 48px; align-items: start; }
.themes figure { margin: 0; }
.themes a { display: block; background: #fff; box-shadow: 0 2px 4px rgba(12,22,38,.1), 0 18px 34px rgba(12,22,38,.2); transition: transform .15s; }
.themes a:hover { transform: translateY(-6px); }
.themes figcaption { margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.sheetband .themes figcaption { color: #b9c4d8; }
.sheetband .themes figcaption b { color: #fff; }
.sheetband .examples { border-top-color: #eef2fa; }
.sheetband .examples li { border-bottom-color: #33425c; }
.sheetband .examples p { color: #b9c4d8; }
.themes figcaption b { display: block; font-family: var(--mono); font-weight: 500; color: var(--ink); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }

/* Formats */
.formats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding: 0; list-style: none; }
.formats li { font-family: var(--mono); font-size: 14px; border: 2px solid var(--ink); padding: 8px 14px; background: #fff; }
.formats li b { font-weight: 500; color: var(--accent); margin-right: 6px; }

/* Examples */
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 2px solid var(--ink); }
.examples li { list-style: none; padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); }
.sheetband .examples h3 { color: #fff; }
.examples h3 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; }
.examples p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.examples .links { font-family: var(--mono); font-size: 13px; margin-top: 10px; display: flex; gap: 16px; flex-wrap: wrap; }
.examples ul, ul.examples { padding-left: 0; margin-bottom: 0; }

/* Install */
.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.install > div { min-width: 0; }
.install pre { margin: 12px 0 0; background: #fff; color: var(--ink); border: 2px solid var(--ink); padding: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 5px 5px 0 var(--sun); }
.sheetband .note, .note { color: #b9c4d8; margin-top: 22px; font-size: 15px; }

.foot { border-top: 2px solid var(--ink); padding: 40px 0 56px; font-size: 15px; color: var(--muted); background: var(--paper); }
.foot-row { display: grid; gap: 10px; }
.foot .wordmark { font-size: 15px; }

.lost { min-height: 60vh; display: flex; align-items: center; }
.lost h1 { font-size: clamp(48px, 7vw, 88px); margin-top: 12px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

@media (max-width: 1000px) {
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .how, .install, .rules { grid-template-columns: minmax(0, 1fr); }
  .rules li + li { padding-left: 0; border-left: 0; border-top: 1px solid #33425c; }
  .wall { max-width: 560px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav { gap: 14px; }
  .themes, .examples { grid-template-columns: minmax(0, 1fr); }
  .themes a { max-width: 420px; }
  .examples li { padding-right: 0; }
  .wall { gap: 10px; }
  .mini div { grid-template-columns: 84px 1fr 52px; font-size: 12px; }
  .btn { box-shadow: 4px 4px 0 var(--accent); }
}
