@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/roboto-slab-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f6f6f4;
  --text: #16191d;
  --muted: #5a6068;
  --border: #d9dcdf;
  --accent: #f58426;
  --on-accent: #16191d;
  --error: #b3261e;
  --wordmark: #16191d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e10;
    --surface: #17191c;
    --text: #dedede;
    --muted: #9aa0a8;
    --border: #2c3036;
    --accent: #f58426;
    --on-accent: #0d0e10;
    --error: #ff8a80;
    --wordmark: #dedede;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  padding: 32px 20px;
}

main {
  width: 100%;
  max-width: 30rem;
}

.logo {
  display: block;
  width: 240px;
  height: auto;
  max-width: 100%;
}

.logo .wm {
  fill: var(--wordmark);
}

.logo .bar,
.bars .bar {
  fill: var(--accent);
}

.divider {
  margin: 28px 0 12px;
  line-height: 0;
}

.bars {
  display: block;
  height: 28px;
  width: auto;
}

h1 {
  margin: 28px 0 0;
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.15;
}

.subhead {
  margin: 10px 0 18px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.4;
}

.field {
  margin-bottom: 10px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2px;
}

input[type="text"],
input[type="email"] {
  display: block;
  width: 100%;
  height: 48px;
  font: inherit;
  font-size: 1rem;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field-error,
.form-error {
  color: var(--error);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 4px 0 0;
}

.field-error:empty,
.form-error:empty {
  display: none;
}

.notice {
  margin: 14px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.form-error {
  margin: 0 0 12px;
}

button {
  display: block;
  width: 100%;
  height: 52px;
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 3px;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
}

button:hover:not(:disabled),
button:active:not(:disabled) {
  filter: brightness(0.95);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.privacy,
.cadence,
.footer {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.privacy {
  margin-top: 12px;
}

.cadence {
  margin-top: 4px;
}

.footer {
  margin-top: 0;
}

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

.thanks-body {
  margin: 12px 0 20px;
  font-size: 1.1rem;
}

.back {
  display: inline-block;
  margin-bottom: 8px;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  visibility: hidden;
}

@media (min-width: 640px) {
  body {
    padding-top: 12vh;
  }

  main {
    margin-inline: auto;
  }

  .logo {
    width: 300px;
  }
}
