/* Shared base for the landing variants. Tokens come from ../assets/tokens.css.
   Each variant sets its own ground and field; this file owns type, rhythm and the form. */

:root {
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 62ch;
  --step--1: clamp(.82rem, .78rem + .2vw, .9rem);
  --step-0: clamp(1rem, .96rem + .25vw, 1.13rem);
  --step-1: clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
  --step-2: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
  --step-3: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);
  --step-4: clamp(2.9rem, 1.8rem + 5vw, 6rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--teal) transparent; }
body {
  margin: 0;
  font: 400 var(--step-0)/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--teal); color: var(--ink); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: .98; letter-spacing: -.035em; }
h2 { font-size: var(--step-3); line-height: 1.02; letter-spacing: -.03em; }
h3 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; max-width: var(--measure); text-wrap: pretty; }

/* Figures and facts are data: they take the mono face. Nothing else does. */
.fig { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.site-head {
  position: absolute; inset: 0 0 auto; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
}
@media (min-width: 760px) { .site-head { padding: 22px 48px; } }
@media (min-width: 1200px) { .site-head { padding: 22px 72px; } }
.site-head img { height: 22px; width: auto; }
.site-head a.join { font-size: var(--step--1); text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1px solid currentColor; transition: background .3s var(--ease-out), color .3s var(--ease-out); }

.section { padding: 96px 28px; position: relative; }
@media (min-width: 760px) { .section { padding: 128px 48px; } }
@media (min-width: 1200px) { .section { padding: 168px 72px; } }
.section > * + * { margin-top: 28px; }
.lede { font-size: var(--step-1); line-height: 1.4; }

/* Signup form. States: idle, invalid, sending, done. */
.signup { display: grid; gap: 10px; max-width: 520px; }
.signup .row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--field-bg, rgba(255,255,255,.08)); border: 1px solid var(--field-line, rgba(255,255,255,.22)); transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.signup .row:focus-within { border-color: var(--teal); box-shadow: 0 8px 22px -12px rgba(0,0,0,.45); }
.signup input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: inherit;
  font: inherit; padding: 10px 16px; outline: none; caret-color: var(--teal);
}
.signup input::placeholder { color: var(--placeholder, rgba(255,255,255,.72)); }
.signup button {
  font: 500 var(--step--1)/1 var(--font-text); letter-spacing: .01em;
  border: 0; border-radius: 999px; padding: 14px 22px; cursor: pointer;
  background: var(--teal); color: var(--ink);
  transition: transform .3s var(--ease-out), background .3s var(--ease-out);
}
.signup button:hover { background: #2fd0b8; }
.signup button:active { transform: scale(.97); }
.signup button[disabled] { opacity: .6; cursor: progress; }
.signup .msg { font-size: var(--step--1); min-height: 1.4em; padding-left: 18px; }
.signup[data-state="invalid"] .row { border-color: var(--ember); }
.signup[data-state="done"] .row { display: none; }
.signup .done { display: none; font-size: var(--step-1); padding: 4px 0; }
.signup[data-state="done"] .done { display: block; }

.foot { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding: 36px 28px; font-size: var(--step--1); }
@media (min-width: 760px) { .foot { padding: 36px 48px; } }
@media (min-width: 1200px) { .foot { padding: 36px 72px; } }
.foot a { text-decoration: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
