/* One color on the whole page: --accent, used only on the submit button and
   focus rings. The palette is a deliberate placeholder — brand color and type
   are still being decided, so retune here and nowhere else. */
:root {
  --accent: #14507a;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --paper: #fbfaf8;
  --line: #d9d6d0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 2.5rem;
}

/* Sized in em so the mark tracks the wordmark if the type scale changes.
   It inherits `color`, so it follows --ink like the text beside it. */
.brand-mark {
  width: 1.5em;
  height: 1.5em;
  flex: none;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.sub {
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
}

section + section {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

h2 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 0.75rem;
}

a {
  color: inherit;
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

input[type="email"] {
  flex: 1 1 14rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink-soft);
  border-radius: 5px;
  padding: 0.625rem 0.75rem;
}

button {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 5px;
  padding: 0.625rem 1.125rem;
  cursor: pointer;
}

input[type="email"]:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Honeypot: parked off-screen rather than display:none, which some bots skip.
   The field name and this class must stay in sync with functions/api/waitlist.js. */
.hp {
  position: absolute;
  left: -9999px;
}

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