:root {
  color-scheme: dark;
  --background: #1f1f1f;
  --text: #eeeddd;
  --text-soft: rgba(238, 237, 221, 0.74);
  --text-muted: rgba(238, 237, 221, 0.58);
  --line: rgba(238, 237, 221, 0.18);
  --glass: rgba(31, 31, 31, 0.42);
  --button-text: #1f1f1f;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--background);
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.01);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 62% 42%, rgba(31, 31, 31, 0) 0%, rgba(31, 31, 31, 0.1) 36%, rgba(31, 31, 31, 0.34) 100%),
    linear-gradient(180deg, rgba(31, 31, 31, 0.06) 0%, rgba(31, 31, 31, 0.18) 44%, rgba(31, 31, 31, 0.68) 100%),
    linear-gradient(90deg, rgba(31, 31, 31, 0.58) 0%, rgba(31, 31, 31, 0.24) 42%, rgba(31, 31, 31, 0.1) 100%);
}

.site-header {
  position: absolute;
  top: clamp(18px, 3vw, 36px);
  left: clamp(18px, 4vw, 56px);
  right: clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.brand {
  gap: 10px;
}

.brand-mark {
  position: relative;
  width: 22px;
  height: 12px;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 12px;
  height: 4px;
  border-radius: 999px;
  background: var(--text);
}

.brand-mark::before {
  left: 0;
  transform: rotate(-35deg);
}

.brand-mark::after {
  right: 0;
  transform: rotate(-35deg);
}

.header-link {
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(238, 237, 221, 0.06);
  backdrop-filter: blur(16px);
}

.hero-copy {
  position: absolute;
  left: clamp(22px, 5vw, 76px);
  bottom: clamp(24px, 7vh, 84px);
  width: min(760px, calc(100vw - 44px));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 20px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(238, 237, 221, 0.06);
  backdrop-filter: blur(14px);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 500;
}

.eyebrow::before {
  content: none;
}

h1 {
  max-width: 820px;
  margin: 0;
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.35rem, 4.1vw, 4.25rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.55;
}

.signup-form {
  width: min(600px, 100%);
  margin-top: 30px;
}

.signup-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px);
}

input,
button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
}

input {
  width: 100%;
  min-width: 0;
  padding: 0 18px;
  background: rgba(238, 237, 221, 0.1);
  color: var(--text);
}

input::placeholder {
  color: var(--text-muted);
}

input:focus {
  outline: 2px solid rgba(238, 237, 221, 0.36);
  outline-offset: 2px;
}

button {
  padding: 0 22px;
  background: var(--text);
  color: var(--button-text);
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: #ffffff;
}

button:disabled {
  cursor: default;
  opacity: 0.76;
}

.form-status {
  min-height: 1.3em;
  margin: 12px 0 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-note {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.site-footer {
  position: absolute;
  right: clamp(22px, 4vw, 56px);
  bottom: clamp(22px, 4vw, 42px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.site-footer span + span::before {
  content: none;
}

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
  }

  .hero-image {
    object-position: 66% center;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(31, 31, 31, 0.12) 0%, rgba(31, 31, 31, 0.24) 42%, rgba(31, 31, 31, 0.74) 100%),
      linear-gradient(90deg, rgba(31, 31, 31, 0.46) 0%, rgba(31, 31, 31, 0.16) 100%);
  }

  .site-header {
    top: 18px;
    left: 18px;
    right: 18px;
  }

  .brand,
  .header-link {
    font-size: 0.76rem;
  }

  .header-link {
    padding: 0 14px;
  }

  .hero-copy {
    left: 20px;
    right: 20px;
    bottom: max(82px, calc(env(safe-area-inset-bottom) + 72px));
    width: auto;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(1.8rem, 7.8vw, 2.55rem);
  }

  .lede {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.48;
  }

  .signup-form {
    margin-top: 22px;
  }

  .signup-form label,
  .form-status {
    font-size: 0.82rem;
  }

  .form-note {
    font-size: 0.78rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  input,
  button {
    min-height: 44px;
    width: 100%;
    font-size: 0.9rem;
  }

  .site-footer {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: max(18px, env(safe-area-inset-bottom));
    margin: 0;
    flex-wrap: wrap;
  }
}
