:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #666666;
  --quiet: #8a8a8a;
  --line: #d8d8d8;
  --surface: #ffffff;
  --focus: #000000;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--surface);
  font-family: "Geist", "Inter", "Helvetica Neue", Arial, sans-serif;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

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

.site-header {
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 72px);
  height: 56px;
  flex-shrink: 0;
}

.page-shell {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
}

.hero {
  width: min(100%, 920px);
  text-align: center;
}

.brand {
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: lowercase;
  text-decoration: none;
  letter-spacing: 0;
}

.brand:hover {
  color: var(--ink);
}

h1 {
  max-width: 880px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: balance;
}

.subheadline {
  margin: clamp(16px, 3vw, 24px) 0 0;
  color: var(--quiet);
  font-size: clamp(0.88rem, 1.4vw, 1.05rem);
  line-height: 1.4;
  font-weight: 400;
}

.signup-form {
  width: min(100%, 480px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin: clamp(28px, 5vw, 52px) auto 0;
  text-align: left;
}

.field-row {
  min-width: 0;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  text-transform: lowercase;
}

input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder {
  color: #b0b0b0;
}

input:focus {
  border-color: var(--focus);
  box-shadow: 0 1px 0 var(--focus);
}

button {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  text-transform: lowercase;
  transition: background-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}

button:hover {
  background: #2b2b2b;
}

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

.form-status {
  grid-column: 1 / -1;
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .page-shell {
    align-items: flex-start;
  }

  h1 {
    font-size: clamp(1.7rem, 10vw, 3rem);
  }

  .signup-form {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  button {
    width: 100%;
  }
}

.site-footer {
  padding: 20px clamp(24px, 5vw, 72px);
  flex-shrink: 0;
}

.site-footer p {
  margin: 0;
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: lowercase;
}
