/* catalog-md site. A print-shop proof: cool grey stock, crop marks, a condensed
   grotesk (Bricolage Grotesque) set big, mono SKU-style labels (IBM Plex Mono),
   and the five theme colours as swatch dots. */
:root {
  --paper: #e8e9e4;
  --sheet: #f6f6f2;
  --ink: #131511;
  --muted: #545952;
  --line: #c9ccc3;
  --accent: #1f3fd0;
  --accent-ink: #ffffff;
  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
}

*, *::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.55 var(--text); font-variation-settings: "opsz" 14; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
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: 700; line-height: 1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 5vw, 60px); font-stretch: 75%; letter-spacing: -.02em; font-variation-settings: "opsz" 96, "wdth" 75; }
h3 { font-size: 21px; letter-spacing: -.01em; }
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; left: 12px; top: -48px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; }
.skip:focus { top: 12px; }

.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 500; font-size: 16px; color: var(--ink); text-decoration: none; }
.mark { display: inline-grid; grid-template-columns: 9px 9px; gap: 2px; }
.mark i { width: 9px; height: 9px; border-radius: 50%; background: #3d6f87; }
.mark i:nth-child(2) { background: #e2341d; }
.mark i:nth-child(3) { background: #c6f432; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.mark i:nth-child(4) { background: var(--ink); }
.nav { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-family: var(--mono); font-size: 14px; }
.nav a:hover { text-decoration: underline; }

section { padding: clamp(64px, 9vw, 112px) 0; }
.band { background: var(--sheet); border-block: 1px solid var(--line); }
.band.ink { background: var(--ink); color: #eceee8; border: 0; }
.num { font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: .04em; vertical-align: top; color: var(--muted); margin-right: 10px; font-stretch: 100%; }
.ink .num { color: #9aa095; }
.section-lede { color: var(--muted); margin-top: 16px; max-width: 62ch; font-size: 18px; }

/* hero */
.hero { padding-top: clamp(44px, 7vw, 92px); overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.sku { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.hero h1 { font-size: clamp(48px, 7.4vw, 104px); font-variation-settings: "opsz" 96, "wdth" 75; font-stretch: 75%; letter-spacing: -.012em; line-height: .94; margin-top: 18px; }
.lede { font-size: 19px; color: var(--muted); margin-top: 24px; max-width: 50ch; }
.swatches { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); font-size: 13px; }
.swatches li { display: inline-flex; align-items: center; gap: 7px; }
.swatches li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1.5px solid var(--ink); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-quiet { background: transparent; color: var(--ink); }

.hero-art { position: relative; aspect-ratio: 1 / .96; }
.hero-art::before, .hero-art::after { content: ""; position: absolute; width: 28px; height: 28px; border: 0 solid var(--ink); pointer-events: none; }
.hero-art::before { left: -14px; top: -14px; border-left-width: 1px; border-top-width: 1px; }
.hero-art::after { right: -14px; bottom: -14px; border-right-width: 1px; border-bottom-width: 1px; }
.sheet { position: absolute; display: block; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 26px 50px rgba(0,0,0,.2); transition: transform .3s ease; }
.sheet:hover { z-index: 3; }
.s1 { width: 44%; left: 0; top: 4%; transform: rotate(-4deg); }
.s3 { width: 66%; right: 0; top: 0; transform: rotate(3deg); }
.s2 { width: 72%; left: 14%; bottom: 0; transform: rotate(-1deg); z-index: 2; }

/* what */
.what h2 { color: #f4f5f0; }
.facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 36px; }
.facts li { border-top: 1px solid #3b4038; padding-top: 16px; color: #b9bdb4; font-size: 16px; }
.facts b { display: block; color: #fff; font-size: 18px; margin-bottom: 6px; }

/* how */
.steps { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 16px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.steps p { color: var(--muted); }
.csv { margin: 6px 0 0; background: var(--ink); color: #e9ebe4; padding: 14px; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; font-size: 13px; }
.ask { margin: 6px 0 0; font-family: var(--display); font-size: 21px; line-height: 1.3; border-left: 3px solid var(--accent); padding-left: 16px; color: var(--ink); }
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 64px; }
.formats figure { margin: 0; }
.formats img, .theme img { box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 14px 30px rgba(0,0,0,.14); background: #fff; }
.formats figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.formats figcaption b { font-family: var(--mono); font-weight: 500; color: var(--ink); margin-right: 8px; }

/* themes */
.themes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 44px 32px; margin-top: 44px; }
.theme { grid-column: span 3; min-width: 0; }
.theme:nth-child(n+3) { grid-column: span 2; }
.theme:last-child img { max-height: 100%; }
.theme h3 { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 500; font-size: 17px; }
.theme p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }

/* install */
.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.install > div { min-width: 0; }
.install h3 { font-size: 18px; }
.install pre { margin: 12px 0 0; background: var(--ink); color: #eef0ea; padding: 16px; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.note { color: var(--muted); margin-top: 22px; font-size: 15px; }

/* examples */
.ex { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 16px; }
.ex th, .ex td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ex thead th { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--muted); border-bottom: 2px solid var(--ink); }
.ex tbody th { font-weight: 600; }
.ex small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.ex td:nth-child(2) { font-family: var(--mono); font-size: 14px; }
.ex td a { display: inline-block; margin: 0 14px 4px 0; }

.foot { border-top: 1px solid var(--line); padding: 44px 0 60px; font-size: 15px; color: var(--muted); }
.foot-row { display: grid; gap: 10px; }

.lost { min-height: 60vh; display: flex; align-items: center; padding: 64px 0; }
.lost .wrap { width: 100%; }
.lost h1 { font-size: clamp(48px, 8vw, 96px); font-variation-settings: "opsz" 96, "wdth" 75; letter-spacing: -.012em; line-height: .96; margin-top: 14px; }
.lost .lede { margin-top: 18px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-art { max-width: 560px; width: calc(100% - 28px); margin: 0 auto; }
  .steps, .formats { grid-template-columns: minmax(0, 1fr); }
  .formats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .install { grid-template-columns: minmax(0, 1fr); }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme, .theme:nth-child(n+3) { grid-column: auto; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav { gap: 14px; }
  .formats, .themes { grid-template-columns: minmax(0, 1fr); }
  .ex thead { display: none; }
  .ex tr { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ex th, .ex td { border: 0; padding: 2px 0; }
}
