/* Tokens from the design (Coming Soon.dc.html): paper, ink, coral. */
:root {
  --paper: #f2eee3;
  --ink: #1c1b18;
  --coral: #e2593a;
  --muted: #4a463f;
  --faint: #8a857a;
  --line: #d9d2c3;
  --card: #fff;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/newsreader-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/dm-sans-latin.woff2') format('woff2');
}

* {
  box-sizing: border-box;
}

/* The script toggles the form and the confirmation block with `hidden`; keep it winning over
   the display values below. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral);
  text-decoration-color: var(--coral);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header,
.main,
.footer {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 26px 24px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.wordmark {
  font:
    400 22px/1 'Newsreader',
    serif;
  letter-spacing: -0.02em;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px 72px;
}

.icon {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  background: var(--card);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.05),
    0 16px 40px rgba(28, 27, 24, 0.14);
}

.icon img {
  display: block;
  width: 132px;
  height: 132px;
}

.eyebrow {
  margin-top: 36px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
}

.title {
  font:
    400 clamp(38px, 6vw, 60px) / 1.05 'Newsreader',
    serif;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
  max-width: 620px;
  text-wrap: pretty;
}

.lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  margin: 20px 0 0;
  max-width: 520px;
  text-wrap: pretty;
}

.waitlist {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 460px;
}

.email {
  flex: 1;
  min-width: 200px;
  padding: 15px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  font:
    400 15px 'DM Sans',
    sans-serif;
  color: var(--ink);
  outline: none;
}

.email::placeholder {
  color: var(--faint);
}

.email:focus-visible {
  border-color: var(--ink);
}

.join {
  padding: 15px 22px;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: var(--paper);
  font:
    500 15px 'DM Sans',
    sans-serif;
  cursor: pointer;
  transition: background 0.15s ease;
}

.join:hover,
.join:focus-visible {
  background: var(--coral);
}

.join:disabled {
  cursor: default;
  opacity: 0.7;
}

/* Honeypot: off-canvas, not display:none, so bots still see a field to fill. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.note {
  font-size: 13px;
  color: var(--faint);
  margin-top: 12px;
}

.note.is-error {
  color: var(--coral);
}

/* The state after signing up: takes the form's place. */
.done {
  margin-top: 32px;
  max-width: 460px;
}

.done .eyebrow {
  margin-top: 0;
}

.done-title {
  font:
    400 26px/1.2 'Newsreader',
    serif;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.done-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 10px 0 0;
  text-wrap: pretty;
}

.done-text b {
  font-weight: 500;
  color: var(--ink);
}

.done-retry {
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  font:
    400 13px 'DM Sans',
    sans-serif;
  color: var(--faint);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  cursor: pointer;
}

.done-retry:hover,
.done-retry:focus-visible {
  color: var(--coral);
  text-decoration-color: var(--coral);
}

.features {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px 28px;
  width: 100%;
  max-width: 680px;
  text-align: left;
}

.features li {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.feature-title {
  font:
    400 20px/1.25 'Newsreader',
    serif;
}

.feature-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 6px;
}

.footer {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--faint);
}

.contact {
  text-decoration: none;
  color: var(--muted);
}
