/* sticker-md site. A cutting mat, white sticker cards, and one hot-pink cut line.
   Keep the focus ring, the skip link and the 3-width check. */
:root {
  --mat: #0c5a49;
  --mat-deep: #083f33;
  --mat-line: rgba(255, 255, 255, .075);
  --mat-line-strong: rgba(255, 255, 255, .15);
  --paper: #f3f6f4;
  --card: #ffffff;
  --ink: #0f1a16;
  --muted: #4d5b55;
  --cut: #ff1a8c;
  --cut-ink: #c20068;
  --sun: #ffd93d;
  --on-mat: #f3fff9;
  --on-mat-muted: #b8dccf;
  --focus: #c20068;
  --display: "Bricolage Grotesque", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --text: "Figtree", "Avenir Next", "Segoe UI", system-ui, -apple-system, 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: 18px/1.6 var(--text); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cut-ink); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.mat :focus-visible { outline-color: var(--sun); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -.025em; }
h2 { font-size: clamp(32px, 4.4vw, 54px); }
h3 { font-size: 22px; 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; animation: none !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; inset-inline-start: 12px; top: -64px; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 20; text-decoration: none; }
.skip:focus { top: 12px; }

/* The cutting mat: a green board with a fine and a bold grid. */
.mat {
  color: var(--on-mat);
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line) 1px, transparent 1px),
    linear-gradient(var(--mat-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line-strong) 1px, transparent 1px);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
}
.mat a { color: var(--sun); }
.mat p { color: var(--on-mat-muted); }
.mat p.eyebrow { color: var(--ink); }
.mat p.tag { color: #fff; }

/* Header */
.top { border-bottom: 3px solid var(--mat-deep); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; padding-block: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; padding: 9px 18px 9px 12px; border-radius: 999px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--cut), 0 6px 14px rgba(0, 0, 0, .3); }
.wordmark svg { width: 26px; height: 26px; }
.mat .wordmark { color: var(--ink); }
.nav { display: flex; gap: 6px 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--on-mat); text-decoration: none; font-weight: 600; font-size: 16px; padding: 6px 2px; }
.nav a:hover { color: var(--sun); text-decoration: underline; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 8vw, 110px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--sun); padding: 6px 12px; border-radius: 6px; font-weight: 700; transform: rotate(-1.5deg); }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); margin-top: 22px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--sun); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.06em; height: .1em; background: repeating-linear-gradient(90deg, var(--cut) 0 .42em, transparent .42em .7em); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--on-mat-muted); margin-top: 26px; max-width: 50ch; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.btn { display: inline-block; background: var(--sun); color: var(--ink); text-decoration: none; padding: 14px 24px; border-radius: 12px; font-weight: 800; font-size: 17px; border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.mat .btn { color: var(--ink); }
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--on-mat); border-color: var(--on-mat); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.mat .btn-quiet { color: var(--on-mat); }
.btn-quiet:hover { background: rgba(255, 255, 255, .1); }
.one-liner { margin-top: 28px; }
.one-liner code { display: inline-block; background: rgba(0, 0, 0, .35); color: #fff; border: 1px dashed rgba(255, 255, 255, .5); padding: 10px 14px; border-radius: 8px; overflow-wrap: anywhere; max-width: 100%; }

.hero-art { position: relative; aspect-ratio: 1 / 1.04; max-width: 560px; width: 100%; margin-inline: auto; }
.sheet { position: absolute; display: block; width: 57%; background: #fff; border-radius: 3px; box-shadow: 0 2px 0 rgba(0, 0, 0, .15), 0 30px 50px rgba(0, 0, 0, .38); transition: transform .25s; }
.sheet img { border-radius: 3px; }
.sheet-back { right: 0; top: 0; transform: rotate(5deg); }
.sheet-front { left: 0; bottom: 0; transform: rotate(-4deg); }
.sheet:hover { transform: rotate(0) scale(1.03); z-index: 3; }
.tag { position: absolute; right: 4%; bottom: 7%; z-index: 4; background: var(--cut); color: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; padding: 10px 18px; border-radius: 999px; transform: rotate(-7deg); box-shadow: 0 0 0 3px #fff, 0 10px 20px rgba(0, 0, 0, .35); line-height: 1.15; text-align: center; }

/* Sections */
section { padding: clamp(60px, 8vw, 110px) 0; }
.hero { padding-bottom: clamp(56px, 8vw, 110px); }
.section-lede { color: var(--muted); margin-top: 14px; max-width: 58ch; font-size: 19px; }
.mat .section-lede { color: var(--on-mat-muted); }

/* A band of backing paper between sections. */
.band { background: #e3ebe7; border-block: 3px solid var(--mat-deep); }

/* The dashed cut line with scissors, used as a divider. */
.snip { display: flex; align-items: center; gap: 12px; color: var(--cut-ink); font-size: 26px; line-height: 1; }
.snip::after { content: ""; flex: 1; border-top: 3px dashed var(--cut); }
.mat .snip { color: var(--cut); }

/* What it does */
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.facts li { background: var(--card); border-radius: 22px; padding: 22px 20px 24px; color: var(--muted); font-size: 16px; line-height: 1.5; outline: 2px dashed var(--cut); outline-offset: 5px; box-shadow: 0 10px 24px rgba(8, 63, 51, .12); }
.facts li:nth-child(odd) { transform: rotate(-.8deg); }
.facts li:nth-child(even) { transform: rotate(.8deg); }
.facts b { display: block; color: var(--ink); font-family: var(--display); font-size: 21px; letter-spacing: -.01em; margin-bottom: 6px; line-height: 1.1; }

/* How it works */
.steps { list-style: none; margin: 44px 0 0; padding: 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-radius: 24px; padding: 30px 26px 28px; border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.steps li::before { content: counter(step); position: absolute; top: -22px; left: 22px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--sun); border: 2px solid var(--ink); border-radius: 50%; font-family: var(--display); font-weight: 800; font-size: 22px; }
.steps h3 { margin-top: 8px; }
.steps p { color: var(--muted); margin-top: 10px; font-size: 17px; }
.json { margin: 44px 0 0; background: var(--ink); color: #e9fff6; border-radius: 18px; padding: 22px 24px; overflow-x: auto; line-height: 1.6; font-size: 14.5px; border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--mat); white-space: pre-wrap; overflow-wrap: anywhere; }
.json .k { color: #ffd93d; }
.json .s { color: #8ff0c4; }
.json .n { color: #ff7ab8; }
.json-note { margin-top: 14px; color: var(--muted); font-size: 16px; }
.json-note code { background: rgba(8, 63, 51, .09); padding: 2px 6px; border-radius: 4px; }

/* Cut lines */
.cut-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cut-grid h2 { color: #fff; }
.cut-grid .lede { margin-top: 18px; }
.cut-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cut-pair figure { margin: 0; }
.cut-pair img { background: #fff; border-radius: 3px; box-shadow: 0 2px 0 rgba(0, 0, 0, .15), 0 26px 44px rgba(0, 0, 0, .35); }
.cut-pair figure:first-child { transform: rotate(-2.2deg); }
.cut-pair figure:last-child { transform: rotate(1.8deg) translateY(18px); }
.cut-pair figcaption { margin-top: 14px; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--on-mat); text-align: center; }
.cut-pair figcaption b { color: var(--cut); background: #fff; padding: 2px 8px; border-radius: 4px; }
.cmd { margin: 26px 0 0; background: rgba(0, 0, 0, .4); color: #fff; border: 1px dashed rgba(255, 255, 255, .5); border-radius: 10px; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }

/* Themes */
.themes { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.theme { background: var(--card); border-radius: 18px; padding: 12px 12px 18px; box-shadow: 0 10px 26px rgba(8, 63, 51, .14); border: 2px solid var(--ink); transition: transform .2s; }
.theme:hover { transform: translateY(-5px) rotate(-.6deg); }
.theme a.shot { display: block; border-radius: 8px; overflow: hidden; background: #e6ebe8; }
.theme img { width: 100%; aspect-ratio: 1 / 1.3; object-fit: cover; object-position: center 46%; }
.theme h3 { font-size: 20px; margin-top: 14px; padding-inline: 4px; }
.theme p { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 6px; padding-inline: 4px; }
.theme .id { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--cut-ink); }

/* Examples */
.examples-grid { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
.examples-grid > li { grid-column: span 2; }
.examples-grid > li:nth-child(n+4) { grid-column: span 3; }
.example { display: grid; grid-template-columns: 38% 1fr; gap: 20px; align-items: center; background: var(--card); border-radius: 22px; padding: 16px; border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.example a.shot { display: block; overflow: hidden; border-radius: 8px; background: #e6ebe8; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.example img { width: 100%; aspect-ratio: 1 / 1.35; object-fit: cover; object-position: center 47%; }
.example h3 { font-size: 20px; }
.example p { color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 8px; }
.example .meta { font-family: var(--mono); font-size: 12px; color: var(--cut-ink); font-weight: 700; margin-top: 10px; display: block; }
.example .links { margin-top: 10px; font-size: 15px; font-weight: 700; display: flex; gap: 6px 14px; flex-wrap: wrap; }

/* 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: 20px; }
.install pre { margin: 12px 0 0; background: var(--ink); color: #e9fff6; padding: 18px; border-radius: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--mat); }
.note { color: var(--muted); margin-top: 24px; font-size: 16px; }

/* Footer */
.foot { padding: 52px 0 64px; font-size: 16px; }
.foot-row { display: grid; gap: 14px; }
.foot .wordmark { justify-self: start; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot h2 { font-size: 15px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-mat-muted); font-weight: 700; margin-top: 10px; }

.lost { min-height: 62vh; display: flex; align-items: center; padding: 60px 0; }
.lost h1 { font-size: clamp(40px, 6vw, 72px); margin-top: 18px; color: #fff; }

@media (max-width: 1100px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .examples-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .examples-grid > li, .examples-grid > li:nth-child(n+4) { grid-column: auto; }
}
@media (max-width: 900px) {
  .hero-grid, .cut-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 480px; }
  .steps, .install { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 44px; }
}
@media (max-width: 720px) {
  .facts, .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .examples-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .wrap { padding-inline: 18px; }
  .nav { gap: 4px 16px; }
  .facts, .themes { gap: 16px; }
  .facts li { padding: 16px 14px 18px; font-size: 15px; }
  .facts b { font-size: 18px; }
  .theme { padding: 8px 8px 14px; }
  .theme h3 { font-size: 17px; }
  .theme p { font-size: 14px; }
  .example { grid-template-columns: 34% 1fr; gap: 14px; }
  .cut-pair { gap: 14px; }
  .tag { font-size: 14px; padding: 8px 14px; }
  .btn { padding: 12px 20px; }
}
