/* Envelope: a post-office identity. Airmail stripes, a postmark, a desk of paper.
   Keep the focus ring, the skip link and the 3-width check. */
:root {
  --desk: #e9ece8;
  --paper: #f8f8f5;
  --ink: #0f1a2e;
  --muted: #4e5a6c;
  --line: #c9d0cc;
  --red: #c92a22;
  --blue: #1a3d8f;
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --airmail: repeating-linear-gradient(135deg, var(--red) 0 14px, #fff 14px 24px, var(--blue) 24px 38px, #fff 38px 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 17px/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -.01em; }
h3 { font-size: 26px; }
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 24px; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { top: 12px; }
.stripe { height: 12px; background: var(--airmail); }

.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.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: 15px; color: var(--ink); text-decoration: none; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 10px; }
.wordmark svg { width: 26px; height: 18px; }
.nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--red); text-decoration: underline; }

section { padding: clamp(60px, 8vw, 104px) 0; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; color: var(--red); text-transform: uppercase; }
.section-lede { color: var(--muted); margin-top: 14px; max-width: 58ch; font-size: 18px; }

.hero { padding-top: clamp(40px, 6vw, 80px); overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(46px, 6.4vw, 88px); letter-spacing: -.02em; margin-top: 18px; }
.hero h1 em { color: var(--red); font-style: italic; }
.lede { font-size: 20px; color: var(--muted); margin-top: 24px; max-width: 50ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 13px 22px; border-radius: 3px; font-weight: 600; font-size: 16px; border: 2px solid var(--ink); }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { color: #fff; }
.one-liner { margin-top: 24px; }
.one-liner code { display: block; background: var(--paper); border: 1px dashed var(--ink); padding: 10px 14px; border-radius: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }

.hero-art { position: relative; aspect-ratio: 1 / .92; }
.env { position: absolute; display: block; background: #fff; box-shadow: 0 2px 4px rgba(15, 26, 46, .1), 0 26px 50px rgba(15, 26, 46, .22); transition: transform .25s; }
.env img { width: 100%; }
.env-a { width: 80%; left: 10%; top: 0; transform: rotate(-4deg); }
.env-b { width: 58%; right: 0; top: 46%; transform: rotate(3.5deg); z-index: 1; }
.env-c { width: 46%; left: 2%; bottom: 0; transform: rotate(-1.5deg); z-index: 2; }
.env:hover { transform: rotate(0) scale(1.02); z-index: 3; }
.postmark { position: absolute; right: -6px; top: -14px; width: 118px; color: var(--blue); opacity: .75; transform: rotate(12deg); z-index: 4; pointer-events: none; }

.facts { background: var(--paper); border-block: 1px solid var(--line); padding: 44px 0; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; }
.facts li { color: var(--muted); font-size: 16px; border-top: 3px solid var(--ink); padding-top: 14px; }
.facts b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--ink); margin-bottom: 4px; line-height: 1.1; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); padding: 26px 24px 28px; position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--red); letter-spacing: .1em; display: block; margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }
.ask { margin: 34px 0 0; font-family: var(--display); font-size: clamp(26px, 3vw, 36px); line-height: 1.2; font-style: italic; border-left: 6px solid var(--red); padding-left: 22px; max-width: 30ch; }

.themes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 32px; margin-top: 44px; }
.themes figure { margin: 0; grid-column: span 3; }
.themes figure:nth-child(n+3) { grid-column: span 2; }
.themes a.shot { display: block; background: #fff; box-shadow: 0 2px 4px rgba(15, 26, 46, .1), 0 18px 36px rgba(15, 26, 46, .16); }
.themes a.shot:hover { box-shadow: 0 2px 4px rgba(15, 26, 46, .1), 0 22px 44px rgba(201, 42, 34, .22); }
.themes figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.themes figcaption b { font-family: var(--mono); font-weight: 500; color: var(--ink); display: block; letter-spacing: .06em; margin-bottom: 2px; }

.more { background: var(--paper); border-block: 1px solid var(--line); }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 40px; align-items: start; }
.more figure { margin: 0; }
.more img { box-shadow: 0 2px 4px rgba(15, 26, 46, .1), 0 18px 36px rgba(15, 26, 46, .16); background: #fff; max-height: 640px; width: auto; margin: 0 auto; }
.more figcaption { margin-top: 16px; color: var(--muted); font-size: 16px; text-align: center; }
.more figcaption b { color: var(--ink); }

.countries { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.country-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px; }
.country-table th, .country-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.country-table th { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.country-table td:first-child { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.limits { background: var(--paper); border: 1px solid var(--line); padding: 26px 26px 30px; margin-top: 24px; }
.limits h3 { margin-bottom: 10px; }
.limits ul { margin: 0; padding-left: 20px; color: var(--muted); }
.limits li + li { margin-top: 6px; }

.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.install h3 { font-size: 24px; }
.install pre { margin: 12px 0 0; background: var(--ink); color: #f4f4ef; padding: 16px; border-radius: 3px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; border-top: 6px solid var(--red); }
.note { color: var(--muted); margin-top: 20px; font-size: 15px; }

.examples { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.examples li { background: var(--paper); border: 1px solid var(--line); padding: 20px 22px 22px; }
.examples h3 { font-size: 24px; margin-bottom: 6px; }
.examples p { color: var(--muted); font-size: 15px; }
.examples .links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: 13px; }

.foot { background: var(--ink); color: #c5ccd8; padding: 44px 0 56px; font-size: 15px; }
.foot a { color: #fff; }
.foot a:hover { color: #ff8a82; }
.foot .wordmark { color: #fff; }
.foot-row { display: grid; gap: 12px; }
.foot .stripe { margin-bottom: 0; }

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

@media (max-width: 960px) {
  .hero-grid, .countries { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-art { max-width: 560px; width: 100%; margin: 0 auto; }
  .steps, .install, .more-grid { grid-template-columns: minmax(0, 1fr); }
  .themes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .themes figure, .themes figure:nth-child(n+3) { grid-column: span 1; }
  .themes figure:first-child { grid-column: span 2; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav { gap: 14px; }
  .themes { grid-template-columns: minmax(0, 1fr); }
  .themes figure:first-child { grid-column: span 1; }
  .postmark { width: 84px; right: 0; }
  .lede { font-size: 18px; }
  .country-table { font-size: 14px; }
  .country-table td:first-child { white-space: normal; }
}
