:root {
  --bg: hsl(0 0% 100%);
  --fg: hsl(222 47% 11%);
  --muted: hsl(215 16% 47%);
  --accent: hsl(222 47% 11%);
  --accent-fg: hsl(210 40% 98%);
  --border: hsl(214 32% 91%);
}

:root.dark {
  --bg: hsl(222 47% 6%);
  --fg: hsl(210 40% 98%);
  --muted: hsl(215 20% 65%);
  --accent: hsl(210 40% 98%);
  --accent-fg: hsl(222 47% 11%);
  --border: hsl(217 33% 17%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.brand {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.theme-toggle {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.375rem 0.625rem;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: border-color 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--fg);
}

.theme-toggle[data-theme='dark'] .icon-sun {
  display: inline;
}
.theme-toggle[data-theme='dark'] .icon-moon {
  display: none;
}
.theme-toggle[data-theme='light'] .icon-sun {
  display: none;
}
.theme-toggle[data-theme='light'] .icon-moon {
  display: inline;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
  max-width: 560px;
}

.waitlist {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 480px;
}

.waitlist input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.75rem 1rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font: inherit;
}

.waitlist input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.waitlist button {
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.waitlist button:hover {
  opacity: 0.9;
}

.status {
  min-height: 1.5em;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

footer {
  margin-top: 6rem;
  color: var(--muted);
  font-size: 0.875rem;
}
