/* label-md: a print shop at night. A green cutting mat with a millimetre grid,
   white sticker liner, registration magenta, and type set in Bricolage Grotesque
   with dimensions in IBM Plex Mono. */
:root {
  --mat: #1f4a3f;
  --mat-deep: #173a31;
  --grid: rgba(228, 239, 205, .13);
  --grid-major: rgba(228, 239, 205, .26);
  --liner: #f6f7f4;
  --panel: #e9ede6;
  --ink: #121614;
  --muted: #4c5751;
  --line: #cdd4cc;
  --reg: #d6006f;
  --cyan: #0089b8;
  --sun: #f2c94c;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--liner); color: var(--ink); font: 17px/1.6 var(--text); font-optical-sizing: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--reg); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--reg); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 750; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4vw, 48px); display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
h3 { font-size: 20px; letter-spacing: -.01em; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: .86em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font: 500 14px/1 var(--mono); color: var(--reg); letter-spacing: .04em; border: 1.5px solid currentColor; border-radius: 99px; padding: 5px 10px; transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* The mat: a millimetre grid, every 10th line brighter. */
.top, .hero, .foot {
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  color: #eef3e6;
}

/* Header */
.top { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1 var(--display); color: inherit; text-decoration: none; letter-spacing: -.02em; }
.mark { width: 26px; height: 18px; border-radius: 4px; background: var(--liner); box-shadow: inset 0 0 0 2px var(--liner), inset 0 0 0 3.5px var(--reg); position: relative; }
.mark::after { content: ""; position: absolute; right: -4px; top: -4px; width: 9px; height: 9px; background: var(--sun); border-radius: 0 3px 0 6px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.nav a { color: #eef3e6; text-decoration: none; }
.nav a:hover { color: #fff; text-decoration: underline; }
.top :focus-visible, .hero :focus-visible, .foot :focus-visible { outline-color: var(--sun); }

/* Hero */
.hero { padding: 76px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.eyebrow { font: 500 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--sun); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.eyebrow .dim { color: rgba(238, 243, 230, .6); }
.hero h1 { font-size: clamp(46px, 7.2vw, 96px); margin-top: 22px; color: #fff; letter-spacing: -.035em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; margin-top: 24px; max-width: 34em; color: #dce6d6; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 8px; background: var(--sun); color: var(--ink); font-weight: 700; text-decoration: none; border: 2px solid var(--sun); }
.btn:hover { background: #ffd968; text-decoration: none; }
.btn-quiet { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-quiet:hover { background: rgba(255, 255, 255, .08); }
.one-liner { margin-top: 22px; }
.one-liner code { background: rgba(0, 0, 0, .28); color: #f4f7ef; padding: 7px 12px; border-radius: 6px; border: 1px dashed rgba(255, 255, 255, .3); }
.hero-art { position: relative; justify-self: center; width: min(100%, 470px); }
.sheet { display: block; transform: rotate(2.5deg); box-shadow: 0 2px 3px rgba(0, 0, 0, .25), 0 30px 60px rgba(0, 0, 0, .45); background: #fff; }
.sheet img { width: 100%; }
/* Crop marks at the corners of the sheet. */
.hero-art::before, .hero-art::after { content: ""; position: absolute; width: 34px; height: 34px; border: 0 solid var(--reg); z-index: 2; pointer-events: none; }
.hero-art::before { left: -22px; top: -22px; border-left-width: 2px; border-top-width: 2px; }
.hero-art::after { right: -26px; bottom: -14px; border-right-width: 2px; border-bottom-width: 2px; }
.peel { position: absolute; width: 74%; left: -18%; bottom: -8%; transform: rotate(-7deg); display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 2px rgba(0, 0, 0, .2), 0 22px 40px rgba(0, 0, 0, .45); z-index: 1; }
.peel::after { content: ""; position: absolute; right: 0; top: 0; width: 18%; height: 30%; background: linear-gradient(225deg, var(--mat) 0 48%, rgba(255, 255, 255, .95) 50%, #e6e6e1 62%, transparent 63%); }

/* Pitch */
.pitch { padding: 64px 0; border-bottom: 1px solid var(--line); }
.pitch p { font: 600 clamp(24px, 3vw, 36px)/1.25 var(--display); letter-spacing: -.02em; max-width: 30em; }

/* Sections */
section[id] { padding: 88px 0; scroll-margin-top: 12px; }
.band { background: var(--panel); border-block: 1px solid var(--line); }
.section-lede { margin-top: 14px; color: var(--muted); max-width: 44em; font-size: 18px; }
.section-lede strong { color: var(--ink); }

/* How */
.steps { list-style: none; counter-reset: s; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.steps li { counter-increment: s; position: relative; padding: 30px 26px 28px; background: #fff; border-radius: 14px; border: 1.5px dashed #aab5ad; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 13px/1 var(--mono); color: var(--cyan); margin-bottom: 18px; letter-spacing: .1em; }
.steps p { margin-top: 10px; color: var(--muted); }

/* Themes */
.themes { margin-top: 40px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
.themes figure { margin: 0; grid-column: span 3; }
.themes figure.t-full { grid-column: 2 / span 4; }
.themes a { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 14px 30px rgba(20, 30, 25, .16); transition: transform .2s; }
.themes a:hover { transform: translateY(-3px) rotate(-.4deg); }
.themes figcaption { margin-top: 12px; color: var(--muted); font-size: 16px; }
.themes figcaption b { font: 600 14px/1 var(--mono); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; margin-right: 8px; }

/* Sheets */
.table-wrap { margin-top: 36px; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.spec { width: 100%; border-collapse: collapse; font: 15px/1.4 var(--mono); }
.spec th, .spec td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.spec thead th { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--panel); }
.spec tbody th { font-family: var(--display); font-weight: 650; font-size: 16px; }
.spec tbody tr:last-child > * { border-bottom: 0; }
.spec td:nth-child(4) { color: var(--reg); font-weight: 600; }
.sheet-notes { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.lids { margin: 0; }
.lids a { display: block; background: #fff; border-radius: 12px; padding: 14px; border: 1px solid var(--line); }
.lids figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { padding-left: 22px; position: relative; color: var(--muted); }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border: 2px solid var(--reg); border-radius: 2px; }
.facts b { color: var(--ink); }

/* Examples */
.makers { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .makers { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.makers a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; position: relative; }
.makers a::after { content: "→"; position: absolute; right: 18px; top: 18px; color: var(--reg); font-weight: 700; }
.makers a:hover { border-color: var(--ink); }
.makers b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; padding-right: 24px; }
.makers span { font: 13px/1.5 var(--mono); color: var(--muted); }

/* Install */
.install { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.install > div { min-width: 0; }
.install pre { margin: 12px 0 0; padding: 18px; background: var(--mat-deep); color: #eef3e6; border-radius: 10px; overflow-x: auto; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.note { margin-top: 22px; color: var(--muted); }

/* Footer */
.foot { padding: 48px 0; font-size: 15px; }
.foot-row { display: grid; gap: 10px; }
.foot a { color: var(--sun); }

/* 404 */
.lost { min-height: 62vh; display: flex; align-items: center; padding: 80px 0; }
.lost .eyebrow { color: var(--reg); }
.lost h1 { font-size: clamp(38px, 6vw, 68px); margin-top: 14px; }
.lost .lede { color: var(--muted); }
.lost .btn-quiet { color: var(--ink); border-color: var(--ink); }

@media (max-width: 900px) {
  .hero { padding: 56px 0 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-art { width: min(80%, 420px); }
  .steps, .install { grid-template-columns: 1fr; }
  .themes figure, .themes figure.t-full { grid-column: 1 / -1; }
  .sheet-notes { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  body { font-size: 16px; }
  section[id] { padding: 64px 0; }
  .nav { gap: 4px 16px; font-size: 14px; }
  .hero-art { width: 82%; }
  .peel { left: -12%; width: 80%; }
  .one-liner code { font-size: 13px; }
}
