/* Nudge site. Tokens from the Nudge Design System, round three (Ink). */
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ground: #11100f; --surface: #1a1917; --raised: #242321;
  --ink: #edebe7; --ink2: #bab8b2; --ink3: #999791;
  --hairline: #2f2e2c; --rule: #73716c; --dot-off: #343331;
  --biro: #2b50ff; --biro-lt: #7099ff;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --g: 40px;                                            /* side gutter */
  --edge: max(var(--g), calc((100% - 1280px) / 2));     /* lines content up with a 1280px column */
  color-scheme: dark;
}
@media (max-width: 600px) { :root { --g: 16px; } }

* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
p, h1, h2, h3 { margin: 0; font-weight: inherit; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible, .input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
.display { font-weight: 300; font-size: clamp(48px, 6.2vw, 96px); line-height: .94; letter-spacing: -.03em; font-variation-settings: 'opsz' 72; text-wrap: balance; }
.headline { font-weight: 350; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.022em; text-wrap: balance; max-width: 16em; }
.title { font-size: 24px; line-height: 1.25; letter-spacing: -.008em; }
.lead { font-weight: 375; font-size: clamp(20px, 2.1vw, 25px); line-height: 1.4; letter-spacing: -.01em; color: var(--ink2); max-width: 24em; text-wrap: pretty; }
.body { font-size: 18px; line-height: 1.6; color: var(--ink2); max-width: 36em; text-wrap: pretty; }
.small { font-size: 15px; line-height: 1.45; color: var(--ink3); }
.label { font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }

/* wordmark and the blue full stop */
.wm { font-weight: 300; letter-spacing: -.035em; line-height: 1; font-variation-settings: 'opsz' 72; white-space: nowrap; text-decoration: none; font-size: 30px; }
.wm i, .stop { display: inline-block; border-radius: 50%; background: var(--biro); transform: translateY(-.2em); }
.wm i { width: .17em; height: .17em; margin-left: .05em; }
.stop { width: .15em; height: .15em; margin-left: .04em; }

/* buttons and the waitlist form */
.btn { height: 48px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: 500 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--biro); border-color: var(--biro); color: #fff; }
.btn.ghost { border-color: transparent; color: var(--ink2); padding: 0 8px; }
.btn.sm { height: 44px; padding: 0 16px; font-size: 12px; }
.btn[disabled] { opacity: .6; cursor: default; }
.join { display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; margin: 0; }
.input { flex: 1 1 260px; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 0; background: var(--raised); color: var(--ink); font: 17px var(--serif); }
.input::placeholder { color: var(--ink3); }
.trap { position: absolute; left: -9999px; }
.signup { display: flex; flex-direction: column; gap: 12px; }
.signup [data-status].ok { color: var(--ink); }
#joined { display: none; color: var(--ink); }
#joined:target { display: block; }

/* page frame */
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; min-height: 76px; padding: 12px var(--edge); }
header.bar { border-bottom: 1px solid var(--hairline); }
footer.bar { border-top: 1px solid var(--hairline); padding-block: 28px; }
footer .wm { font-size: 22px; }
.band { border-top: 1px solid var(--hairline); padding: 120px var(--edge); display: flex; flex-direction: column; gap: 56px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.cols { display: flex; flex-wrap: wrap; gap: 40px 16px; }
.cols > div { flex: 1 1 280px; border-top: 1px solid var(--hairline); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.stats { display: flex; flex-wrap: wrap; gap: 64px 16px; }
.stats > div { flex: 1 1 380px; display: flex; flex-direction: column; gap: 24px; }
.stats .body { max-width: 24em; }
.figure { display: flex; align-items: flex-end; gap: 16px; }
.why { flex-direction: row; flex-wrap: wrap; gap: 24px 80px; }
.why > .label { flex: 0 1 240px; }
.why > .stack { flex: 1 1 520px; min-width: 0; }
.sign { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sign p:first-child { font-size: 19px; line-height: 24px; }
.close { align-items: center; text-align: center; gap: 28px; }
.close .join { width: 100%; justify-content: center; }

/* hero: copy on the left, the blue field bleeding to the right edge */
.hero { display: flex; flex-wrap: wrap; }
.copy { flex: 1 1 560px; min-width: 0; padding: 96px 56px 64px var(--edge); display: flex; flex-direction: column; gap: 32px; }
.copy .without { margin-top: auto; padding-top: 32px; }
.field { flex: 1 1 460px; min-width: 0; background: var(--biro); color: #fff; padding: 80px var(--edge) 80px 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px; }
.field .label { color: #fff; }

/* the frog card, always Ink */
.card { width: 420px; max-width: 100%; background: var(--surface); border: 1px solid rgba(255,255,255,.1); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.card-head { display: flex; align-items: center; gap: 10px; min-height: 28px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.card-head .end { margin-left: auto; }
.card-words { font-size: 19px; line-height: 24px; letter-spacing: -.005em; }
.readout { font-family: var(--mono); font-size: 12px; line-height: 18px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink2); display: flex; align-items: center; gap: 10px; }
.step { border-top: 1px solid var(--hairline); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.step .label { font-size: 11px; }
.step .s { font-size: 15px; line-height: 20px; color: var(--ink3); }
.card-actions { display: flex; justify-content: flex-end; gap: 8px; }
.card .btn { height: 36px; padding: 0 14px; font-size: 12px; }
.card .btn.ghost { padding: 0 8px; }

/* estimate dots: one dot ten minutes, a half dot five */
.est { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; }
.est i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.est i.h { width: 5px; height: 5px; margin: 0 1.5px; }
.est.blue i { background: var(--biro-lt); }

/* the tadpoles, on the field */
.tads { width: 420px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.rows { border-top: 1px solid rgba(255,255,255,.4); }
.row { display: flex; align-items: center; gap: 14px; min-height: 52px; border-bottom: 1px solid rgba(255,255,255,.4); }
.row .est { width: 28px; }
.row .est i { background: #fff; }
.row .t { flex: 1 1 auto; min-width: 0; font-size: 17px; line-height: 22px; }
.tag { font: 500 10px/12px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }

/* dot numerals, 5 × 7 */
.dn { --p: 18px; display: inline-flex; gap: var(--p); }
.gl { display: grid; grid-template-columns: repeat(5, var(--p)); grid-auto-rows: var(--p); }
.gl i { display: grid; place-items: center; }
.gl i::before { content: ""; width: calc(var(--p) * .33); height: calc(var(--p) * .33); border-radius: 50%; background: var(--dot-off); }
.gl i.on::before { width: calc(var(--p) * .75); height: calc(var(--p) * .75); background: var(--ink); }

@media (max-width: 600px) {
  .copy { padding: 56px 16px 48px; }
  .field { padding: 48px 16px; }
  .band { padding-block: 80px; }
  .row { flex-wrap: wrap; gap: 6px 14px; padding: 12px 0; }
  .row .t { flex: 1 1 180px; }
  .dn { --p: 12px; }
}
