/* The coming-soon page (page.ts), in direction A's tokens (DESIGN.md §2–4):
   Paper, Ink, Stone; one family; square corners; no shadows; no motion. */

@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/familjen-grotesk-latin.woff2') format('woff2');
  unicode-range:
    U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/familjen-grotesk-latin-ext.woff2') format('woff2');
  unicode-range:
    U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* next/font's metric match for the shop, so nothing moves when the font arrives. */
@font-face {
  font-family: 'Familjen Grotesk Fallback';
  src: local('Arial');
  ascent-override: 108.37%;
  descent-override: 23.79%;
  line-gap-override: 0%;
  size-adjust: 94.59%;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --stone: #575757;
  --field: #8a8a86;
  --alert: #b3261e;
  --page-margin: 1rem;
  color-scheme: only light;
}

@media (min-width: 768px) {
  :root {
    --page-margin: 2.5rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Familjen Grotesk', 'Familjen Grotesk Fallback', 'Helvetica Neue', Arial, sans-serif;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-size: 0.9375rem;
  line-height: 1.375rem;
}

main {
  max-width: 40rem;
  padding: 3rem var(--page-margin) 4.5rem;
}

@media (min-width: 768px) {
  main {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* The one bold thing: the wordmark, drawn large in its one stroke. */
h1 {
  line-height: 0;
}

h1 svg {
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
}

.line {
  margin-top: 2rem;
  max-width: 22em;
  font-size: 1.375rem;
  line-height: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

form,
.thanks {
  margin-top: 3rem;
  max-width: 25rem;
}

label {
  display: block;
}

input {
  display: block;
  width: 100%;
  height: 3rem;
  margin-top: 0.25rem;
  padding: 0 0.75rem;
  border: 1px solid var(--field);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5rem;
}

input[aria-invalid='true'] {
  border-color: var(--alert);
}

.cf-turnstile {
  margin-top: 0.75rem;
}

button {
  display: block;
  width: 100%;
  height: 3rem;
  margin-top: 0.75rem;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.error {
  margin-top: 0.5rem;
  color: var(--alert);
  font-size: 0.8125rem;
  line-height: 1.125rem;
}

.note {
  margin-top: 1rem;
  max-width: 25rem;
  color: var(--stone);
  font-size: 0.8125rem;
  line-height: 1.125rem;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.follow {
  margin-top: 3rem;
}

/* 44 px tall to tap. */
.follow a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
