@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

/* Pale slate paper, near-black ink, one indigo thread. */
:root {
  --paper: #F2F4F7;
  --ink: #15171C;
  --muted: #5C6370;
  --rule: #D9DDE4;
  --thread: #3B43C8;
  --ok: #1F7A5C;
  --bad: #B4451F;
  --gutter: clamp(20px, 6vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101218;
    --ink: #ECEEF3;
    --muted: #979EAD;
    --rule: #272B36;
    --thread: #9AA2FF;
    --ok: #5CC9A0;
    --bad: #F0936B;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
:focus-visible { outline: 2px solid var(--thread); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }

.hero { padding-top: clamp(56px, 14vh, 160px); }
.tag { margin: 0 0 18px; color: var(--muted); font-size: 0.9375rem; }
h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2.25rem, 8.6vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
h1 .line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
h1 .line > span { display: inline-block; }
h1 .soft { color: var(--muted); }
.lede { margin: clamp(20px, 3vw, 30px) 0 0; max-width: 27em; color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.45; }

/* The one decoration: a single thread with a loop in it. */
.thread { height: clamp(150px, 26vh, 240px); margin-top: clamp(8px, 2vw, 24px); }
.thread canvas { display: block; width: 100%; height: 100%; }

.offer { padding: clamp(24px, 5vw, 56px) 0 clamp(72px, 12vw, 140px); }
.offer h2 { margin: 0; font-weight: 450; font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.1; letter-spacing: -0.025em; }
.offer-form { margin-top: clamp(24px, 4vw, 40px); max-width: 680px; display: grid; gap: 26px 32px; }
.offer-form[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--muted);
  border-radius: 0;
  padding: 8px 0 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 5em; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--thread); box-shadow: 0 1px 0 var(--thread); }
.field .bad { border-color: var(--bad); box-shadow: 0 1px 0 var(--bad); }
.hp { position: absolute; left: -9999px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn {
  border: 0;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--thread); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.status { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.status.ok { color: var(--ok); }
.status.err { color: var(--bad); }
@media (min-width: 620px) {
  .offer-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-form .wide { grid-column: 1 / -1; }
}

.foot { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.875rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 24px; padding-bottom: 30px; }
.foot p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .js h1 .line > span { transform: translateY(112%); animation: up 1.05s var(--ease) forwards; animation-delay: calc(var(--i) * 140ms + 80ms); }
  .js .tag, .js .lede { opacity: 0; animation: fade 1s var(--ease) .55s forwards; }
}
@keyframes up { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
