:root {
  --paper: #f6f4ef;
  --card: #ffffff;
  --ink: #121212;
  --muted: #5d5b56;
  --quiet: #8e8b84;
  --line: #e2ded5;
  --accent: #ee2737;
  --accent-ink: #b91a27;
  --code: #16161a;
  --wrap: 1120px;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 "Geist", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.label {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--quiet);
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.mark img { display: block; height: 20px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .btn { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 8px; font: 500 15px/1 "Geist", sans-serif; text-decoration: none; border: 1px solid var(--ink); color: var(--ink); background: transparent; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; padding: 72px 0 88px; }
h1 { font-size: clamp(42px, 5.8vw, 68px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; margin: 18px 0 22px; }
.lede { font-size: 19px; color: var(--muted); max-width: 31em; margin: 0 0 30px; }
.hero-visual { position: relative; margin: 72px 0 0; }
.envelope { position: absolute; inset: -21% -6% 30% 20%; background: #ebe5d8; border-radius: 6px; transform: rotate(4deg); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -18px rgba(40,30,10,.25); }
.envelope::after { content: ""; position: absolute; top: 14px; right: 20px; width: 74px; height: 38px; background: url(/hq-stamp-red.svg) center/contain no-repeat; transform: rotate(-4deg); }
.paper { position: relative; background: var(--card); border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 24px 48px -20px rgba(40,30,10,.3); transform: rotate(-1.6deg); padding: 3.5% 4%; }
.paper img { display: block; width: 100%; height: auto; }
.caption { margin-top: 26px; font-size: 13px; color: var(--quiet); text-align: center; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 22px 20px 22px 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-weight: 500; font-size: 16px; }
.facts span { color: var(--muted); font-size: 14px; }

/* Sections */
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -0.03em; line-height: 1.08; font-weight: 600; margin: 14px 0 40px; max-width: 18em; }
h3 { font-size: 18px; font-weight: 600; margin: 14px 0 6px; letter-spacing: -0.01em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps p, .grid p, .tiles p { margin: 0; color: var(--muted); font-size: 16px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 56px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 26px; text-decoration: none; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.tile h3 { margin-top: 18px; }
.tile .more { margin-top: auto; padding-top: 18px; font-size: 14px; font-weight: 500; }
.note-sample { font: 400 15px/1.5 var(--mono); color: var(--ink); background: var(--paper); border-radius: 6px; padding: 14px 16px; margin: 0; white-space: pre-wrap; }

/* Developers */
.dev { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.dev ul { list-style: none; padding: 0; margin: 0 0 28px; }
.dev li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.dev li strong { color: var(--ink); font-weight: 500; }
pre { margin: 0; background: var(--code); color: #e9e7e1; border-radius: 10px; padding: 22px 24px; overflow-x: auto; font: 400 13.5px/1.65 var(--mono); }
pre .k { color: #ff8a80; }
pre .s { color: #c3e88d; }

/* Quality */
.quality { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; counter-reset: c; }
.checks li { counter-increment: c; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checks li::before { content: counter(c, decimal-leading-zero); font: 500 12px/1.9 var(--mono); color: var(--quiet); }
.checks strong { display: block; font-weight: 500; }
.checks span { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--quiet); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* CTA */
.cta { text-align: center; padding: 104px 0 112px; border-top: 1px solid var(--line); }
.cta img.stamp { height: 46px; width: auto; margin-bottom: 18px; }
.cta h2 { margin: 8px auto 14px; }
.cta p { color: var(--muted); margin: 0 auto 28px; max-width: 30em; }
.cta .ctas { justify-content: center; }

/* Article / page */
.page-head { padding: 72px 0 40px; max-width: 760px; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 54px); margin-bottom: 18px; }
.page-head .lede { margin-bottom: 0; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; }
.crumbs { font-size: 14px; color: var(--quiet); }
.crumbs a { text-decoration: none; color: var(--muted); }
.prose { max-width: 700px; padding-bottom: 72px; font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: 28px; margin: 48px 0 14px; letter-spacing: -0.02em; }
.prose h3 { font-size: 20px; margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose code { font: 400 0.86em var(--mono); background: #ebe7de; padding: 1px 5px; border-radius: 4px; }
.prose pre { margin: 24px 0; }
.prose pre code { background: none; padding: 0; font-size: 13.5px; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.post-list { list-style: none; padding: 0; margin: 0 0 96px; max-width: 820px; }
.post-list li { border-top: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 26px 0; text-decoration: none; }
.post-list h2, .post-list h3 { font-size: 22px; margin: 0; letter-spacing: -0.015em; max-width: none; }
.post-list p { grid-column: 1; margin: 0; color: var(--muted); font-size: 16px; }
.post-list .label { grid-column: 2; grid-row: 1; align-self: center; }
.post-list a:hover h2, .post-list a:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.related { border-top: 1px solid var(--line); padding: 48px 0 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14px; color: var(--quiet); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .base { margin-top: 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .brand img { height: 18px; width: auto; display: block; margin-bottom: 14px; }
.site-footer .brand p { margin: 0; max-width: 22em; color: var(--muted); }

@media (max-width: 900px) {
  .hero, .dev, .quality { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 40px 0 64px; }
  .steps, .tiles { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .site-footer .cols { grid-template-columns: repeat(2, 1fr); }
  .site-nav .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .site-nav { gap: 16px; }
  .post-list a { grid-template-columns: 1fr; }
  .post-list .label { grid-column: 1; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .btn { transition: none; }
}
main { overflow-x: clip; }
.prose { min-width: 0; }
.prose :not(pre) > code { overflow-wrap: anywhere; }
.prose pre { max-width: 100%; }
@media (max-width: 520px) { .envelope { inset: -26% 0 34% 12%; } .envelope::after { width: 60px; height: 31px; top: 10px; right: 12px; } }

/* Pricing tiers and comparison tables */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.tier-pop { border-color: var(--ink); }
.tier-price { margin: 18px 0 10px; display: flex; flex-direction: column; gap: 2px; }
.tier-price strong { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; }
.tier-price span { color: var(--muted); font-size: 15px; }
.tier-intl { font-size: 15px; }
.tier p { color: var(--muted); font-size: 14px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.fine { font-size: 13px; color: var(--quiet); max-width: 60em; margin: 18px 0 0; }
.fine a { color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 8px 0 0; }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.cmp th, .cmp td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.cmp thead th:nth-child(2), .cmp tbody td:nth-child(2) { background: #fbfaf7; font-weight: 500; }
.cmp tbody th { font-weight: 500; color: var(--muted); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.prose .table-wrap { margin: 16px 0 24px; }
@media (max-width: 900px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiers { grid-template-columns: 1fr; } }
.calc { display: flex; gap: 24px; flex-wrap: wrap; }
.calc label { display: flex; flex-direction: column; gap: 8px; font-weight: 500; font-size: 15px; }
.calc input { height: 48px; width: 200px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; font: 500 18px var(--mono); background: var(--card); }
.calc .pct { display: flex; align-items: center; gap: 8px; font: 500 18px var(--mono); }
.calc .pct input { width: 120px; }

/* Stationery finishes */
.finishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 88px; }
.finish { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 0 22px; overflow: hidden; }
.finish h3, .finish p { margin-left: 22px; margin-right: 22px; }
.finish p { color: var(--muted); font-size: 15px; margin-top: 0; }
.finish .swatch { height: 120px; border-bottom: 1px solid var(--line); }
.finish-0 .swatch { background: linear-gradient(135deg, #f3efe6, #e4ddcd); box-shadow: inset 0 -10px 0 #d9d0bd, inset 0 -12px 0 #cfc5ae; }
.finish-1 .swatch { background: #e9e3d6; position: relative; }
.finish-1 .swatch::before, .finish-1 .swatch::after { content: ""; position: absolute; left: 50%; top: 50%; width: 120px; height: 62px; margin: -31px 0 0 -60px; -webkit-mask: url(/hq-stamp-red.svg) center / contain no-repeat; mask: url(/hq-stamp-red.svg) center / contain no-repeat; }
.finish-1 .swatch::before { background: #c9bfaa; transform: translate(1px, 1.5px); }
.finish-1 .swatch::after { background: #e9e3d6; transform: translate(-0.5px, -0.5px); }
.finish-2 .swatch { background: #14213d; position: relative; }
.finish-2 .swatch::after { content: "Thank you"; position: absolute; inset: 0; display: grid; place-items: center; font: 600 30px/1 "Geist", sans-serif; letter-spacing: -0.02em; background: linear-gradient(100deg, #b8892b, #f6e27a 40%, #c99a35 60%, #f3d77a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.finish-3 .swatch { background: linear-gradient(160deg, #ee2737 0 50%, #d81f2e 50%); }
.finish-4 .swatch { background: #1d1d1f; position: relative; overflow: hidden; }
.finish-4 .swatch::after { content: ""; position: absolute; inset: -40px -20px -160px -6px; background: linear-gradient(100deg, #b8892b, #f6e27a 45%, #c99a35); -webkit-mask: url(/card.svg) left top / 420px auto no-repeat; mask: url(/card.svg) left top / 420px auto no-repeat; }
.finish-5 .swatch { background: #efeae0; position: relative; }
.finish-5 .swatch::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff5a66, #b31b28 70%); box-shadow: 0 2px 4px rgba(0,0,0,.25); }
@media (max-width: 900px) { .finishes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .finishes { grid-template-columns: 1fr; } }

/* Card creator */
.creator { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.creator-preview { position: sticky; top: 92px; }
.cc-card { position: relative; aspect-ratio: 7 / 5; border-radius: 4px; margin-top: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 36px -18px rgba(40,30,10,.35); display: grid; place-items: center; overflow: hidden; background: #f3eee2; }
.cc-back { background: #fff; padding: 4%; }
.cc-back img { width: 100%; height: auto; }
#headline { font: 600 clamp(28px, 4vw, 46px)/1 "Geist", sans-serif; letter-spacing: -0.03em; text-align: center; padding: 0 8%; }
#logo { position: absolute; top: 9%; left: 50%; transform: translateX(-50%); max-height: 18%; max-width: 40%; }
.cc-card[data-finish="gold foil"] #headline { background: linear-gradient(100deg, #b8892b, #f6e27a 40%, #c99a35 60%, #f3d77a); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.cc-card[data-finish="silver foil"] #headline { background: linear-gradient(100deg, #8d939a, #f4f6f8 40%, #a3a9b0 60%, #e6e9ec); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.cc-card[data-finish="deboss"] #headline { text-shadow: -1px -1px 0 rgba(255,255,255,.55), 1px 1.5px 1px rgba(0,0,0,.28); }
.cc-env { position: relative; aspect-ratio: 9.5 / 4.1; margin-top: 10px; border-radius: 4px; box-shadow: 0 12px 28px -18px rgba(40,30,10,.35); background: #fff; display: grid; place-items: center; }
#envName { font: 400 15px/1.5 var(--mono); }
#seal { position: absolute; right: 12%; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff5a66, #b31b28 70%); box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.creator-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.creator-form legend, .creator-form .field { font-weight: 500; font-size: 15px; margin-bottom: 8px; }
.creator-form .field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.creator-form input:not([type=radio]):not([type=checkbox]), .creator-form textarea { font: 400 15px/1.5 "Geist", sans-serif; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; cursor: pointer; }
.chips label:has(input:checked) { border-color: var(--ink); }
.chips input { margin: 0; accent-color: var(--ink); }
.chips span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); }
@media (max-width: 900px) { .creator { grid-template-columns: 1fr; } .creator-preview { position: static; } }
.stock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stock-grid img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 14px 28px -16px rgba(40,30,10,.3); }
@media (max-width: 720px) { .stock-grid { grid-template-columns: 1fr 1fr; } }
.styles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 56px; }
.style-card { display: flex; flex-direction: column; }
.style-card h2 { margin: 0 0 8px; }
.style-card .api { margin-top: 6px; font-size: 14px; color: var(--quiet); }
.style-card p { margin: 0; color: var(--muted); font-size: 16px; }
.style-card .samples { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: auto; padding-top: 18px; }
.style-card img { display: block; width: 100%; height: auto; aspect-ratio: 7 / 2.8; object-fit: cover; background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 14px 28px -16px rgba(40,30,10,.3); }
@media (max-width: 900px) { .styles-grid { grid-template-columns: 1fr; } }

/* Legal pages and footer legal row */
.site-footer .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; min-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table thead th { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.legal-table tr:last-child td { border-bottom: 0; }
.prose.legal .legal-nav { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--quiet); }
