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

:root {
  --ground: #f3f2ee;
  --card: #ffffff;
  --ink: #15171c;
  --ink-soft: #50545e;
  --rule: #a9adb6;
  --you: #1c3fd0;
  --you-on-ink: #9db1ff;
  --pad: clamp(1rem, 3.4vw, 3.25rem);
  --above: 11rem;
  --section: clamp(4rem, 10vw, 8rem);
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--ground); color: var(--ink); scroll-behavior: smooth; }
body { font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif; font-size: 1.0625rem; line-height: 1.5; -webkit-text-size-adjust: 100%; }
::selection { background: var(--you); color: #fff; }
p { text-wrap: pretty; }

.wrap { padding-left: var(--pad); padding-right: var(--pad); max-width: 96rem; margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: var(--pad); top: -4rem; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 0.5rem; font-weight: 700; z-index: 10; }
.skip:focus { top: 0.75rem; }

/* Masthead */
.masthead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.wordmark { font-weight: 800; font-size: 1.3125rem; letter-spacing: -0.01em; }
.status { font-size: 0.9375rem; font-weight: 500; color: var(--ink-soft); text-align: right; }
.status strong { font-weight: 800; color: var(--ink); }

/* Type */
h1 { font-weight: 800; font-stretch: 90%; font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 19ch; text-wrap: balance; }
h1 span { color: var(--you); }
.intro h2, .close h2 { font-weight: 800; font-stretch: 90%; font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.06; letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance; }
.intro p { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); max-width: 34em; margin-top: 1rem; color: var(--ink-soft); }
.lead { font-size: clamp(1.0625rem, 1.45vw, 1.3125rem); line-height: 1.5; font-weight: 450; max-width: 37em; margin-top: 0.9rem; }

/* Signup */
.signup { margin-top: 1.2rem; max-width: 40rem; }
.signup label { display: block; font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.45rem; }
.field { display: flex; background: var(--card); border: 2px solid var(--ink); border-radius: 0.75rem; padding: 0.25rem; }
.field input[type="email"] { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: transparent; border: 0; padding: 0.65rem 0.9rem; border-radius: 0.5rem; caret-color: var(--you); }
.field input::placeholder { color: #666a73; opacity: 1; }
.trap { position: absolute; left: -200vw; width: 1px; height: 1px; opacity: 0; }
button { font: inherit; font-weight: 700; color: #fff; background: var(--ink); border: 0; border-radius: 0.5rem; padding: 0.65rem 1.25rem; min-height: 2.75rem; cursor: pointer; white-space: nowrap; transition: background-color 0.15s ease-out; }
button:hover { background: var(--you); }
button[disabled] { background: var(--ink-soft); cursor: progress; }
:focus-visible { outline: 3px solid var(--you); outline-offset: 3px; }
.promise { font-size: 0.9375rem; color: var(--ink-soft); margin-top: 0.65rem; }
.form-status { font-size: 1rem; font-weight: 700; margin-top: 0.5rem; }
.form-status:empty { display: none; }
.form-status.error { color: #a3200f; }

/* The same job, drawn twice */
.compare { margin-top: clamp(1.5rem, 4vh, 2.5rem); display: grid; gap: clamp(1.25rem, 3vh, 2rem); padding-bottom: var(--section); }
.track h2 { font-size: 1.1875rem; font-weight: 800; text-wrap: balance; }
.bridge { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); font-weight: 600; max-width: 40em; }
.track h2 span { font-weight: 500; color: var(--ink-soft); }

.now ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); margin-top: 0.9rem; position: relative; }
.now ol::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 3px dashed var(--rule); }
.now li { position: relative; padding: 1.6rem 0.75rem 0 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--you); }
.now li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--you); box-shadow: 0 0 0 4px var(--ground); }
.now li.again { color: var(--ink-soft); font-weight: 500; }
.now li.again::before { background: var(--ground); border: 3px solid var(--you); }

.next ol { list-style: none; padding: 0; display: flex; margin-top: 1rem; }
.next li { position: relative; display: grid; grid-template-rows: var(--above) auto; }
.next li.call { flex: 2; padding-right: 1rem; }
.next li.carried { flex: 3; padding-right: 1.25rem; }
.next li::after { content: ""; position: absolute; left: 0; right: 0; top: var(--above); height: 6px; margin-top: -3px; background: linear-gradient(var(--ink), var(--ink)) no-repeat left center / 100% 100%; }
.next li.call::before { content: ""; position: absolute; z-index: 1; left: 0; top: var(--above); width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--you); box-shadow: 0 0 0 5px var(--ground); }
.next li:last-child::after { right: 10px; }
.next .up { grid-row: 1; align-self: end; padding-bottom: 1.25rem; }
.next .down { grid-row: 2; padding-top: 1.1rem; font-size: 1rem; line-height: 1.45; color: #33363f; }
.who { color: var(--ink); font-weight: 800; }
.step { font-size: 0.9375rem; font-weight: 700; color: var(--you); margin-bottom: 0.2rem; }
.said { color: var(--you); font-size: clamp(1.125rem, 1.5vw, 1.375rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.foot { font-size: 1rem; color: var(--ink-soft); }

/* The parts you'd rather not do: one lane per function */
.carry, .loops { padding-top: 0; padding-bottom: var(--section); }
.lanes { margin-top: clamp(1.75rem, 4vw, 3rem); }
.lane { display: grid; grid-template-columns: minmax(11rem, 1.7fr) 3fr 2.4fr; column-gap: clamp(1rem, 3vw, 2.5rem); align-items: start; padding: 1.35rem 0; border-top: 6px solid var(--ink); }
.lane.head { border-top: 0; padding: 0 0 0.6rem; font-size: 0.875rem; font-weight: 700; color: var(--ink-soft); }
.lane.head span:last-child { color: var(--you); }
.lane h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.lane p { max-width: 32em; }
.lane .job { margin-top: 0.3rem; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-soft); max-width: 18em; }
.lane .yours { color: var(--you); font-weight: 700; position: relative; padding-left: 2rem; }
.lane .yours::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--you); }
.note { margin-top: 1.5rem; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); font-weight: 600; max-width: 40em; }

/* Loops */
.pair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: clamp(1.75rem, 4vw, 3rem); }
.loop { position: relative; padding-top: 2.25rem; border-top: 3px dashed var(--rule); }
.loop::before { content: ""; position: absolute; left: 0; top: -0.75rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 5px solid var(--ink); background: var(--ground); }
.loop h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.loop p { color: var(--ink-soft); max-width: 30em; }

/* Speed with safety: the one ink band */
.safe { background: var(--ink); color: #f3f2ee; padding: var(--section) 0; }
.safe .intro p { color: #c5c8d0; }
.safe ::selection { background: #fff; color: var(--ink); }
.rules { list-style: none; padding: 0; margin-top: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2rem); row-gap: 2rem; border-top: 6px solid #f3f2ee; }
.rules li { padding-top: 1.25rem; font-size: 0.9375rem; line-height: 1.45; color: #c5c8d0; }
.rules strong { display: block; color: #fff; font-size: 1.0625rem; font-weight: 800; margin-bottom: 0.3rem; }
.rules li:last-child strong { color: var(--you-on-ink); }

/* Close: the one blue field */
.close { background: var(--you); color: #fff; padding: var(--section) 0; }
.close h2 { max-width: 16ch; }
.lead strong { font-weight: 800; }
.carry .intro h2 { max-width: 20ch; }
.close .lead { color: #fff; }
.close .today { margin-top: 1.5rem; max-width: 40em; color: #dfe5ff; }
.close .signup { margin-top: 1.75rem; }
.close .field { border-color: #fff; }
.close button:hover { background: #000; }
.close .promise { color: #dfe5ff; }
.close .form-status.error { color: #fff; text-decoration: underline; }
.close :focus-visible { outline-color: #fff; }
.close ::selection { background: #fff; color: var(--you); }

.footer { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.75rem; padding-bottom: 2rem; font-size: 0.875rem; color: var(--ink-soft); }

@media (max-width: 1100px) {
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .now ol { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.1rem; }
  .now ol::before { display: none; }
  .now li { padding-top: 1.4rem; }
  .next ol { display: block; position: relative; margin-top: 1rem; }
  .next ol::before { content: ""; position: absolute; left: 9px; top: 0.4rem; bottom: 0.4rem; width: 6px; background: var(--ink); }
  .next li, .next li.call, .next li.carried { display: block; padding: 0 0 1.4rem 2.75rem; }
  .next li::after { display: none; }
  .next li.call::before { top: 0.1rem; left: 0; margin-top: 0; }
  .next .up, .next .down { padding: 0; }
  .field { flex-direction: column; }
  button { padding: 0.85rem 1.25rem; }
  .status span { display: none; }
  .lane { grid-template-columns: 1fr; row-gap: 0.5rem; }
  .lane.head { display: none; }
  .pair { grid-template-columns: 1fr; row-gap: 2.25rem; }
  .rules { grid-template-columns: 1fr; row-gap: 0; }
  .rules li { padding-bottom: 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button { transition: none; }
}
