/* Postcard site: an airmail identity. Pale sky paper, deep navy ink, airmail
   red and blue stripes, perforated stamps. Real renders carry the colour. */
:root {
  --sky: #e8eff6;
  --sky-deep: #d5e2ee;
  --ink: #0d2038;
  --muted: #4a5d74;
  --red: #e2382c;
  --blue: #1b4fb8;
  --sun: #f4b53f;
  --paper: #ffffff;
  --line: #b9c9db;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --air: repeating-linear-gradient(-45deg, var(--red) 0 14px, #fff 14px 28px, var(--blue) 28px 42px, #fff 42px 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 18px/1.6 var(--text); overflow-x: hidden; }
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(--red); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; font-variation-settings: "SOFT" 60, "WONK" 1; }
h2 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.015em; }
h3 { font-size: 22px; }
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; inset-inline-start: 12px; top: -64px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 20; }
.skip:focus { top: 12px; }

.air { height: 12px; background: var(--air); }
.top { background: var(--sky); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.wordmark .stampmark { width: 30px; height: 36px; flex: none; }
.nav { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; }

section { padding: clamp(64px, 9vw, 120px) 0; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--red); text-transform: uppercase; font-weight: 500; }
.section-lede { color: var(--muted); margin-top: 16px; max-width: 58ch; font-size: 19px; }

/* hero */
.hero { padding-top: clamp(24px, 5vw, 64px); padding-bottom: clamp(72px, 9vw, 130px); position: relative; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 80px); letter-spacing: -.025em; margin-top: 18px; }
.hero h1 em { font-style: italic; color: var(--red); }
.lede { font-size: 21px; color: var(--muted); margin-top: 24px; max-width: 46ch; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 14px 24px; border-radius: 4px; font-weight: 600; font-size: 17px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--red); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--red); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: 4px 4px 0 var(--line); }
.btn-quiet:hover { color: var(--ink); box-shadow: 2px 2px 0 var(--line); }
.one-liner { margin-top: 26px; }
.one-liner code { display: block; background: var(--paper); border: 2px dashed var(--line); padding: 10px 14px; border-radius: 4px; overflow-wrap: anywhere; white-space: pre-wrap; }

.hero-art { position: relative; aspect-ratio: 1 / .92; }
.pc { position: absolute; background: #fff; box-shadow: 0 2px 4px rgba(13,32,56,.12), 0 26px 50px rgba(13,32,56,.28); display: block; }
.pc img { width: 100%; }
.pc-a { width: 66%; left: 0; top: 2%; transform: rotate(-5deg); z-index: 1; }
.pc-b { width: 66%; right: 0; top: 14%; transform: rotate(4deg); z-index: 2; }
.pc-c { width: 62%; left: 10%; bottom: 0; transform: rotate(-1.5deg); z-index: 3; }
.pc:hover { z-index: 5; }
.postmark { position: absolute; right: -2%; bottom: 6%; width: 28%; z-index: 4; color: var(--ink); opacity: .82; transform: rotate(-12deg); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; background: var(--paper); padding: 30px 26px 28px; counter-increment: s; border-radius: 3px;
  box-shadow: 0 0 0 2px var(--ink), 6px 6px 0 var(--sky-deep); }
.steps li::before { content: counter(s); position: absolute; top: -20px; inset-inline-start: 22px; background: var(--red); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 20px; box-shadow: 0 0 0 3px var(--sky); }
.steps h3 { margin-top: 8px; }
.steps p { color: var(--muted); margin-top: 10px; font-size: 17px; }
.json { margin: 40px 0 0; background: var(--ink); color: #e9f0f8; padding: 22px 24px; border-radius: 4px; overflow-x: auto; line-height: 1.6; box-shadow: 6px 6px 0 var(--blue); }
.json b { color: var(--sun); font-weight: 500; }
.json i { color: #9fc4ff; font-style: normal; }

/* themes */
.band { background: var(--paper); border-block: 2px solid var(--ink); position: relative; }
.band::before { content: ""; position: absolute; inset: -14px 0 auto 0; height: 12px; background: var(--air); }
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 48px; margin-top: 56px; }
.theme { margin: 0; }
.theme .pair { position: relative; padding-bottom: 36%; }
.theme .pair a { display: block; background: #fff; box-shadow: 0 2px 4px rgba(13,32,56,.1), 0 18px 36px rgba(13,32,56,.2); }
.theme .pair .f { width: 68%; position: relative; z-index: 1; transform: rotate(-1.2deg); }
.theme .pair .b { width: 68%; position: absolute; right: 0; bottom: 0; z-index: 2; transform: rotate(2deg); }
.theme figcaption { margin-top: 18px; color: var(--muted); font-size: 17px; }
.theme figcaption b { display: block; font-family: var(--display); font-size: 26px; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.theme figcaption code { color: var(--blue); }

/* image + print */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.three figure { margin: 0; }
.three a { display: block; box-shadow: 0 2px 4px rgba(13,32,56,.1), 0 16px 32px rgba(13,32,56,.2); background: #fff; }
.three figcaption { margin-top: 14px; color: var(--muted); font-size: 16px; }
.three figcaption b { color: var(--ink); font-family: var(--mono); font-weight: 500; margin-inline-end: 6px; }
.print { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.print ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.print li { padding-inline-start: 34px; position: relative; color: var(--muted); }
.print li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 20px; height: 8px; background: var(--air); background-size: 56px 56px; }
.print li b { color: var(--ink); }
.print-art { position: relative; min-height: 320px; }
.print-art .s2 { width: 54%; position: absolute; right: 0; top: 0; box-shadow: 0 2px 4px rgba(13,32,56,.12), 0 22px 44px rgba(13,32,56,.24); background: #fff; transform: rotate(2deg); }
.print-art .bm { width: 66%; position: absolute; left: 0; bottom: 0; box-shadow: 0 2px 4px rgba(13,32,56,.12), 0 22px 44px rgba(13,32,56,.24); background: #fff; transform: rotate(-3deg); }
.print-art .s2 img, .print-art .bm img { width: 100%; }

/* install */
.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
.install > div { background: var(--paper); border-radius: 3px; padding: 26px; border: 2px solid var(--ink); position: relative; }
.install > div::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--air); }
.install h3 { margin-top: 8px; }
.install pre { margin: 16px 0 0; background: var(--ink); color: #eaf1f9; padding: 16px; border-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.note { color: var(--muted); margin-top: 26px; font-size: 16px; }

/* examples */
.examples { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.examples li { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.examples .t { font-family: var(--display); font-size: 24px; font-weight: 600; }
.examples .d { color: var(--muted); font-size: 17px; }
.examples .m { font-family: var(--mono); font-size: 14px; color: var(--blue); white-space: nowrap; }

.foot { background: var(--ink); color: #c9d6e6; padding: 56px 0 72px; font-size: 16px; position: relative; }
.foot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 12px; background: var(--air); }
.foot a { color: #fff; }
.foot-row { display: grid; gap: 14px; padding-top: 12px; }
.foot .wordmark { color: #fff; }

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

@media (max-width: 980px) {
  .hero-grid, .print { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-art { max-width: 560px; width: 100%; margin: 0 auto; }
  .steps, .install, .three { grid-template-columns: minmax(0, 1fr); }
  .themes { grid-template-columns: minmax(0, 1fr); }
  .examples li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .print-art { min-height: 0; aspect-ratio: 1 / .9; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .nav { gap: 16px; }
  .nav a { font-size: 15px; }
  .lede { font-size: 19px; }
  .theme .pair .f { width: 72%; }
  .theme .pair .b { width: 72%; }
  .postmark { width: 32%; }
}
