:root {
  color-scheme: light dark;
  --canvas: #f2ede3;
  --surface: #fcfbf8;
  --surface-soft: #efe7da;
  --ink: #1b120b;
  --body: #5c5044;
  --muted: #8c7f72;
  --hairline: #e4dcd1;
  --border: #c7beb2;
  --accent: #7c2d25;
  --on-accent: #f5f2ed;
  --liked: #2f7a4d;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 18%, rgba(124, 45, 37, 0.08), transparent 28rem),
    var(--canvas);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25rem;
}

.site-header,
footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
}

.site-header nav,
footer nav {
  display: flex;
  gap: 24px;
}

.site-header nav a,
footer nav a {
  color: var(--body);
  font-size: 0.82rem;
  text-decoration: none;
}

.site-header nav a:hover,
footer nav a:hover {
  color: var(--accent);
}

.wordmark,
.eyebrow,
.steps article > span,
label,
button,
.copyright {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.13em;
}

.wordmark {
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.hero,
.manifesto,
.closing,
.legal {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 72px;
  padding: 72px 0 96px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 730px;
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 7vw, 6.75rem);
  font-weight: 500;
}

h2 {
  max-width: 850px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4.5vw, 4.6rem);
  font-weight: 500;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.lede {
  max-width: 580px;
  margin: 0 0 38px;
  color: var(--body);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.waitlist-form {
  max-width: 610px;
}

.waitlist-form > label:first-child {
  display: block;
  margin-bottom: 10px;
  color: var(--body);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.form-row {
  display: flex;
  gap: 10px;
}

input[type="email"] {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 3px;
}

button {
  min-width: 170px;
  min-height: 54px;
  padding: 0 22px;
  color: var(--on-accent);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
}

button:hover {
  filter: brightness(0.9);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0;
  line-height: 1.4;
}

.consent input {
  margin-top: 2px;
  accent-color: var(--accent);
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.form-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--body);
  font-size: 0.85rem;
}

.form-status[data-state="error"] {
  color: #a52d23;
}

.form-status[data-state="success"] {
  color: var(--liked);
}

.cf-turnstile {
  min-height: 65px;
  margin-top: 14px;
}

.hero-art {
  position: relative;
  min-height: 540px;
  filter: drop-shadow(0 26px 36px rgba(54, 31, 21, 0.14));
}

.bottle {
  position: absolute;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--ink);
  background: rgba(252, 251, 248, 0.62);
  border: 1px solid rgba(92, 80, 68, 0.34);
  backdrop-filter: blur(7px);
}

.bottle::before {
  content: "";
  position: absolute;
  top: -86px;
  width: 42%;
  height: 86px;
  background: #2d2118;
  border-radius: 4px 4px 0 0;
}

.bottle span {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
}

.bottle strong {
  margin-top: 18px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.4rem;
  font-weight: 400;
}

.bottle-main {
  z-index: 3;
  left: 21%;
  width: 54%;
  height: 390px;
  border-radius: 16px 16px 8px 8px;
}

.bottle-back,
.bottle-front {
  width: 36%;
  height: 290px;
  border-radius: 12px 12px 6px 6px;
}

.bottle-back {
  z-index: 1;
  left: 1%;
  transform: rotate(-8deg);
}

.bottle-front {
  z-index: 2;
  right: 1%;
  transform: rotate(9deg);
}

.manifesto {
  padding: 112px 0;
  border-top: 1px solid var(--hairline);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.steps article {
  min-height: 245px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.steps article > span {
  display: block;
  margin-bottom: 80px;
  color: var(--accent);
  font-size: 0.68rem;
}

.steps p {
  color: var(--body);
  line-height: 1.55;
}

.closing {
  padding: 120px 0;
  border-top: 1px solid var(--hairline);
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 38px 0;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  font-size: 0.8rem;
}

footer .wordmark {
  color: var(--ink);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.6rem;
}

.legal {
  max-width: 780px;
  padding: 96px 0 120px;
}

.legal h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.legal h2 {
  margin-top: 48px;
  font-family: inherit;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.legal p,
.legal li {
  color: var(--body);
  line-height: 1.75;
}

.legal li + li {
  margin-top: 8px;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.86rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #171009;
    --surface: #211810;
    --surface-soft: #2a2016;
    --ink: #f2eadf;
    --body: #c9bca9;
    --muted: #8f8272;
    --hairline: #33281b;
    --border: #4a3e2e;
    --accent: #c9a57e;
    --on-accent: #171009;
    --liked: #4caf6f;
  }

  body {
    background:
      radial-gradient(circle at 75% 18%, rgba(201, 165, 126, 0.1), transparent 28rem),
      var(--canvas);
  }

  .bottle {
    background: rgba(46, 35, 24, 0.62);
  }
}

@media (max-width: 800px) {
  .site-header {
    min-height: 72px;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 64px;
  }

  .hero-art {
    min-height: 430px;
  }

  .bottle-main {
    height: 300px;
  }

  .bottle-back,
  .bottle-front {
    height: 220px;
  }

  .bottle::before {
    top: -62px;
    height: 62px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps article {
    min-height: 190px;
  }

  .steps article > span {
    margin-bottom: 42px;
  }

  footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .form-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .hero-art {
    min-height: 360px;
  }

  .bottle-main {
    height: 245px;
  }

  .bottle-back,
  .bottle-front {
    height: 175px;
  }

  .bottle strong {
    font-size: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
