/* Markcraft: Northcraft design system. Black and white, Funnel type, hairlines, no cards. */
@font-face { font-family: "Funnel Sans"; src: url("/site-fonts/funnel-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("/site-fonts/funnel-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("/site-fonts/funnel-sans-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Funnel Display"; src: url("/site-fonts/funnel-display-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }

:root {
  --ink: #0a0a0a;
  --paper: #f4f4f2;
  --dim: #8f8f8c;
  --faint: #8f8f8c; /* was #6e6e6b: 3.87:1 failed WCAG for hints and placeholders */
  --line: #222221;
  --edge: #5e5e5b;
  --hover: #1c1c1b;
  --error: #ff8a7a;
  --gutter: clamp(20px, 4vw, 56px);
  --sans: "Funnel Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 18px/1.55 var(--sans); }
a { color: var(--paper); text-underline-offset: 3px; }
a:hover { color: var(--dim); }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; border-radius: 2px; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.site-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; font-size: 15px; }
.nav a { padding: 12px 16px; border-radius: 999px; text-decoration: none; }
.nav a:hover { background: var(--hover); color: var(--paper); }

h1, .display { font-family: var(--display); font-weight: 300; letter-spacing: -0.04em; line-height: 1; margin: 0; }
h1 { font-size: clamp(44px, 5.6vw, 80px); }
h2 { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.label { font-size: 15px; color: var(--dim); font-weight: 400; margin: 0 0 8px; }
.lead { font-size: 22px; line-height: 1.4; color: var(--dim); max-width: 560px; margin: 28px 0 0; }
.small { font-size: 15px; color: var(--dim); }
.tabular { font-variant-numeric: tabular-nums; }

.hero { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding: clamp(40px, 6vw, 80px) 0 64px; }
.hero > div { flex: 999 1 520px; min-width: 0; }
.hero > form { flex: 1 1 380px; min-width: 0; }

form.brief { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: 15px; color: var(--dim); }
.field .hint { font-size: 14px; color: var(--faint); }
input[type="text"], input[type="email"], select {
  height: 52px; padding: 0 16px; background: var(--ink); border: 1px solid var(--edge); border-radius: 4px;
  color: var(--paper); font: inherit; font-size: 18px; width: 100%;
}
input::placeholder { color: var(--faint); }
input[aria-invalid="true"] { border-color: var(--error); }
fieldset { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--edge); background: transparent; color: var(--paper); font: inherit; font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; }
.btn:hover { background: #ffffff; color: var(--ink); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--paper); border: 1px solid var(--edge); font-weight: 400; min-height: 48px; font-size: 16px; }
.btn.ghost:hover { background: var(--hover); }
.btn.small { min-height: 44px; font-size: 15px; padding: 0 18px; }
.error { color: var(--error); font-size: 15px; margin: 0; }

section.block { padding: 72px 0; border-top: 1px solid var(--line); }
.rows { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.row .big { font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em; }
.row .num { font-size: clamp(22px, 3vw, 34px); font-variant-numeric: tabular-nums; }

/* results */
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 64px 0 32px; border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px 24px; }
.option { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.option .pic { aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: #1a1a19; }
.option .pic img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.option.loading .pic { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }
.option ul { list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--dim); line-height: 1.5; }
.option ul li:first-child { color: var(--paper); }
.option .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status { font-size: 15px; color: var(--dim); min-height: 1.5em; }

/* checkout */
.checkout { display: flex; flex-wrap: wrap; gap: 64px; padding: 64px 0 96px; border-top: 1px solid var(--line); }
.checkout > div { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.checkout > form { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; }
.pack { display: flex; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); cursor: pointer; }
.pack:last-of-type { border-bottom: 1px solid var(--line); }
.pack input { width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--paper); flex: none; }
.pack .t { display: flex; justify-content: space-between; gap: 12px; font-size: 22px; font-weight: 700; }
.lines { display: flex; flex-direction: column; gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.lines div { display: flex; justify-content: space-between; gap: 16px; }
.lines span:first-child { color: var(--dim); white-space: nowrap; }
.lines span:last-child { text-align: right; }
.total { font-size: 22px !important; font-weight: 700; }
.total span:first-child { color: var(--paper) !important; }
.agree { display: flex; gap: 14px; align-items: flex-start; padding: 24px 0 20px; font-size: 15px; line-height: 1.5; cursor: pointer; }
.agree input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--paper); }
.get { list-style: none; margin: 0; padding: 0; }
.get li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }
.get li:last-child { border-bottom: 1px solid var(--line); }
.get li.off { color: var(--faint); }

/* order page */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 52px; height: 52px; border-radius: 999px; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; display: grid; place-items: center; }
.swatch span { width: 40px; height: 40px; border-radius: 999px; display: block; overflow: hidden; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); }
.swatch[aria-pressed="true"] { border-color: var(--paper); }
progress { width: 100%; height: 6px; accent-color: var(--paper); }

/* terms */
.prose { max-width: 760px; padding: 56px 0 120px; }
.prose section { padding: 32px 0; border-top: 1px solid var(--line); }
.prose section:last-child { border-bottom: 1px solid var(--line); }
.prose h2 { font-family: var(--sans); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 12px; }
.prose p { margin: 0 0 12px; }

.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 15px; color: var(--dim); }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

.banner { border: 1px solid var(--edge); border-radius: 4px; padding: 14px 18px; font-size: 15px; color: var(--paper); margin: 0 0 24px; }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 900ms cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(0.25em); } }
}

/* editor */
.why { list-style: none; margin: -8px 0 0; padding: 0; font-size: 15px; color: var(--dim); line-height: 1.5; }
.why li:first-child { color: var(--paper); }
.editor { display: flex; flex-direction: column; gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; }
.editor .label { margin: 0; }
.ed-row { display: flex; flex-wrap: wrap; gap: 24px; }
.ed-row > .field { flex: 1 1 240px; min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.editor .swatch { width: 44px; height: 44px; }
.editor .swatch span { width: 34px; height: 34px; }

/* skip link, visible on focus */
.skip { position: absolute; left: 16px; top: -60px; padding: 12px 18px; background: var(--paper); color: var(--ink); border-radius: 999px; font-weight: 700; z-index: 10; }
.skip:focus { top: 16px; color: var(--ink); }
/* footer and inline links: 44px tall tap targets */
.site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-foot nav { gap: 4px 20px; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 20px; font-size: 15px; }
.doc-nav a, .doc-nav span { display: inline-flex; align-items: center; min-height: 44px; }
.doc-nav span { color: var(--dim); }
.small a, .lines a { display: inline-block; padding: 12px 0; margin: -12px 0; }
/* examples strip */
.examples { padding: 0 0 64px; }
.ex-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ex-row figure { margin: 0; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: #1a1a19; }
.ex-row img { width: 100%; height: 100%; object-fit: cover; }

/* live preview in the hero */
.live { margin: 32px 0 0; max-width: 560px; display: flex; flex-direction: column; gap: 10px; }
.live-pic { aspect-ratio: 3 / 2; border-radius: 4px; border: 1px dashed var(--edge); display: grid; place-items: center; overflow: hidden; }
.live-pic:has(img:not([hidden])) { border: 0; }
.live-pic img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.live-empty { color: var(--dim); font-size: 16px; padding: 24px; text-align: center; }
details.more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 15px; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+"; font-size: 18px; width: 14px; }
details.more[open] summary::before { content: "−"; }
details.more summary:hover { color: var(--paper); }
@media (max-width: 760px) { form .live { margin: 0; } }
