
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/app/assets/fonts/hanken-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/app/assets/fonts/hanken-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/app/assets/fonts/newsreader-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/app/assets/fonts/newsreader-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
  color-scheme: light dark;
  --base: #CBD3E2;
  --wallpaper:
    radial-gradient(42% 32% at 92% 100%, rgba(243, 221, 210, .5) 0%, rgba(243, 221, 210, 0) 72%),
    radial-gradient(44% 34% at 2% 96%, rgba(206, 201, 236, .5) 0%, rgba(206, 201, 236, 0) 72%),
    radial-gradient(70% 60% at 0% 0%, rgba(238, 241, 247, .7) 0%, rgba(238, 241, 247, 0) 72%),
    linear-gradient(165deg, #C7D0E1 0%, #CBD3E2 46%, #D5DBE8 100%);
  --card: rgba(255, 255, 255, .7);
  --card-solid: #F4F6FA;
  --card-edge: rgba(255, 255, 255, .75);
  --card-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04), 0 24px 60px -24px rgba(16, 24, 48, .32);
  --ink-1: rgba(0, 0, 0, .88);
  --ink-2: rgba(0, 0, 0, .68);
  --field: rgba(255, 255, 255, .92);
  --field-edge: rgba(60, 60, 67, .3);
  --accent: #0A66FF;
  --accent-ink: #0055C4;
  --on-accent: #FFFFFF;
  --danger: #B00010;
  --halo: #FFFFFF;
  --font: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Newsreader", ui-serif, "New York", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --base: #10141F;
    --wallpaper:
      radial-gradient(42% 32% at 92% 100%, rgba(243, 221, 210, .11) 0%, rgba(243, 221, 210, 0) 72%),
      radial-gradient(44% 34% at 2% 96%, rgba(206, 201, 236, .13) 0%, rgba(206, 201, 236, 0) 72%),
      radial-gradient(70% 60% at 0% 0%, rgba(58, 74, 110, .36) 0%, rgba(58, 74, 110, 0) 72%),
      linear-gradient(165deg, #151B2A 0%, #10141F 46%, #131826 100%);
    --card: rgba(34, 41, 58, .68);
    --card-solid: #1B2130;
    --card-edge: rgba(255, 255, 255, .1);
    --card-shadow: 0 0 0 .5px rgba(255, 255, 255, .08), 0 24px 60px -24px rgba(0, 0, 0, .7);
    --ink-1: rgba(255, 255, 255, .94);
    --ink-2: rgba(255, 255, 255, .72);
    --field: rgba(255, 255, 255, .08);
    --field-edge: rgba(255, 255, 255, .26);
    --accent: #0A66FF;
    --accent-ink: #8AB8FF;
    --danger: #FF8A84;
    --halo: #10141F;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background-color: var(--base); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 22px;
  letter-spacing: 0;
  font-optical-sizing: auto;
  color: var(--ink-1);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--wallpaper);
  background-color: var(--base);
}

.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.card {
  width: 100%;
  max-width: 400px;
  padding: 32px 28px 28px;
  border-radius: 28px;
  background-color: var(--card);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--card-edge), var(--card-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card { background-color: var(--card-solid); }
}

.mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background-color: var(--accent);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .06));
  color: var(--on-accent);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 6px 16px -6px rgba(5, 98, 222, .7);
}

h1 { margin: 16px 0 4px; font-family: var(--font-display); font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: 0; }
/* Under the name: what this is, then who it is for. Above the instruction that belongs to the form. */
.about { margin: 0; color: var(--ink-1); }
.about.invite { margin: 0 0 14px; color: var(--ink-2); }
.lede { margin: 0 0 22px; color: var(--ink-2); }
.lede strong { color: var(--ink-1); font-weight: 600; overflow-wrap: anywhere; }

form { display: grid; gap: 10px; margin: 0; }
label { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-2); }

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background-color: var(--field);
  color: var(--ink-1);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.2;
  box-shadow: inset 0 0 0 1px var(--field-edge);
  outline: none;
  transition: box-shadow 150ms cubic-bezier(.22, 1, .36, 1);
}
input::placeholder { color: var(--ink-2); opacity: .75; }
input:focus { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 2px var(--halo), 0 0 0 4px var(--accent-ink); }
input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--danger); }

.code {
  font-family: var(--mono);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .32em;
  text-align: center;
  padding-left: calc(14px + .32em);
}

button { font-family: var(--font); cursor: pointer; }

.primary {
  height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  background-color: var(--accent);
  color: var(--on-accent);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: box-shadow 150ms ease-out, opacity 150ms ease-out;
}
/* The app's buttons (decision 0030): flat signal blue; hover and press darken it, nothing bounces */
.primary:hover { background-image: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)); box-shadow: 0 6px 16px -8px rgba(10, 102, 255, .8); }
.primary:active { background-image: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)); box-shadow: none; }
.primary:disabled { opacity: .6; cursor: default; background-image: none; box-shadow: none; }

.plain {
  justify-self: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 4px;
}
.plain:hover { text-decoration-color: currentColor; }
.plain:disabled { opacity: .55; cursor: default; text-decoration: none; }

:is(button, a):focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

.note { margin: 0 0 6px; color: var(--ink-2); }
.note strong { color: var(--ink-1); font-weight: 600; overflow-wrap: anywhere; }
.hint { margin: 2px 0 0; text-align: center; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 2px; }

.message { min-height: 20px; margin: 14px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.message[data-tone="error"] { color: var(--danger); font-weight: 500; }

/* Under the form, small: the one link out. Tall enough for a finger. */
.foot { margin: 6px 0 -10px; text-align: center; font-size: 13px; line-height: 18px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--accent-ink); font-weight: 500; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 420px) {
  .card { padding: 28px 20px 22px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .card { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: var(--card-solid); }
}
