:root {
  --bg: #0c0d10;
  --surface: #14161c;
  --text: #f4f0e6;
  --muted: #c9c3b6;
  --line: #4a4e59;
  --focus: #f0e2c0;
  --button-bg: #f4f0e6;
  --button-text: #16140f;
  color-scheme: dark;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

main {
  flex: 1;
  width: min(100% - 2rem, 38rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5.5rem) 0 2rem;
}

.brand {
  margin: 0 0 1.25rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.05rem, 7vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h2 {
  margin: 0 0 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  color: var(--muted);
}

#signup {
  margin-top: 2.25rem;
  padding: 1.25rem 1.15rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

form {
  display: grid;
  gap: 1rem;
}

.field label,
.consent label {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
}

input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}

input[type="email"]:-webkit-autofill,
input[type="email"]:-webkit-autofill:hover,
input[type="email"]:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px var(--bg) inset;
}

.privacy {
  margin: 0;
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.consent {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
  min-height: 44px;
}

.consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--focus);
}

.consent label {
  font-size: 0.95rem;
  line-height: 1.4;
}

button,
.back a {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

button {
  justify-self: start;
  min-height: 48px;
  min-width: 44px;
  margin-top: 0.15rem;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
}

.back {
  margin: 1.5rem 0 0;
}

.back a {
  color: var(--text);
  font-weight: 600;
}

footer {
  width: min(100% - 2rem, 38rem);
  margin: 0 auto;
  padding: 0 0 calc(1.5rem + env(safe-area-inset-bottom));
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

footer p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 1;
  padding: 0.55rem 0.8rem;
  background: var(--button-bg);
  color: var(--button-text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 650;
  text-decoration: none;
  border-radius: 999px;
}

.skip:not(:focus) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.hidden {
  position: absolute;
  display: none;
}

:focus {
  outline: none;
}

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

@media (max-width: 40rem) {
  button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #d5d0c6;
    --muted: #f4f0e6;
  }
}
