/* ============================================================
   Rabbitt — Coming Soon
   Design tokens
   ============================================================ */
:root {
  --bone: #f1ede5;   /* background */
  --ink: #111;       /* primary / borders */
  --body: #2b2b2b;   /* body text */
  --inverse: #f1ede5;/* text on black */
  --surface: #fff;   /* input surface */

  --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

/* hidden attribute must win over display rules below */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* no horizontal scroll, ever */
}

::selection { background: var(--ink); color: var(--bone); }

@keyframes rb-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Layout shell
   ============================================================ */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* avoids mobile browser-chrome clipping */
  width: 100%;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-display);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.watermark {
  position: absolute;
  left: 50%;
  bottom: -8vh;
  transform: translateX(-50%); /* centered: ears frame the wordmark */
  height: 115vh;
  width: auto;
  opacity: 0.05;
  filter: invert(1); /* white source PNG -> dark mark on the bone bg */
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
}

.header__mark {
  height: 34px;
  width: auto;
}

.header__tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
}

/* ============================================================
   Main
   ============================================================ */
.main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 64px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 44px;
  animation: rb-rise 0.6s ease both;
}

.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  display: inline-block;
}

.hero {
  width: min(560px, 82vw);
  height: auto;
  margin-bottom: 40px;
  animation: rb-rise 0.7s ease 0.05s both;
}

.lede {
  max-width: 480px;
  margin: 0 0 40px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--body);
  animation: rb-rise 0.7s ease 0.1s both;
}

/* ============================================================
   Email form
   ============================================================ */
.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(440px, 90vw);
  animation: rb-rise 0.7s ease 0.15s both;
}

.form__row {
  display: flex;
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 6px;
  gap: 6px;
}

.form__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 14px;
  color: var(--ink);
}

.form__input::placeholder { color: var(--ink); opacity: 0.4; }

.form__button {
  border: none;
  background: var(--ink);
  color: var(--inverse);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 0 26px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.form__button:hover { opacity: 0.85; }
.form__button:disabled { opacity: 0.55; cursor: default; }

/* invalid state */
.form__row.is-invalid { border-color: #b3261e; }

.form__error {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #b3261e;
}

.form__note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0.55;
}

/* ============================================================
   Confirmation
   ============================================================ */
.confirm {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 26px;
  background: var(--ink);
  color: var(--inverse);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  animation: rb-rise 0.5s ease both;
}

.confirm__check { font-family: var(--font-mono); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 24px 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* muted ink as a color (not opacity) so the heart can stay fully red */
  color: rgba(17, 17, 17, 0.6);
}

.footer__copy { justify-self: start; }

.footer__credit {
  justify-self: center;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0.04em;
}

.footer__links {
  justify-self: end;
  display: flex;
  gap: 22px;
}

.footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet / small laptop */
@media (max-width: 768px) {
  /* Lock to a single screen: page never exceeds the viewport,
     so the document cannot scroll vertically on mobile. */
  html, body { height: 100%; overflow: hidden; }
  .page { height: 100dvh; }
  .main { min-height: 0; } /* allow the flex middle to shrink, not push */

  .header { padding: 24px 28px; }
  .footer { padding: 22px 28px; }
  .main { padding: 32px 22px 48px; }

  .header__tagline { font-size: 11px; letter-spacing: 0.14em; }

  .pill { margin-bottom: 36px; }
  .hero { margin-bottom: 32px; }
  .lede { font-size: 17px; margin-bottom: 32px; }
}

/* Phones */
@media (max-width: 480px) {
  .header { padding: 20px 20px; }
  .footer {
    padding: 16px 20px;
    column-gap: 10px;
    row-gap: 10px;
    font-size: 10px;
    letter-spacing: 0.1em;
    grid-template-columns: 1fr 1fr;
  }
  /* stack: credit centered on top, copyright + socials below */
  .footer__credit { grid-column: 1 / -1; grid-row: 1; }
  .footer__copy { grid-row: 2; }
  .footer__links { grid-row: 2; }
  .main { padding: 24px 20px 40px; }

  /* hide header tagline on narrow mobile */
  .header__tagline { display: none; }

  .pill {
    font-size: 11px;
    letter-spacing: 0.18em;
    padding: 7px 14px;
    margin-bottom: 28px;
  }

  .lede { font-size: 16px; line-height: 1.55; }

  /* keep the input usable: trim button padding, stop iOS zoom on focus */
  .form__input { font-size: 16px; padding: 11px 12px; }
  .form__button { padding: 0 20px; font-size: 14px; }

  .confirm {
    padding: 16px 20px;
    font-size: 15px;
    width: min(100%, 90vw);
    justify-content: center;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .footer__links { gap: 16px; }
  .form__button { padding: 0 16px; }
}

/* Short / landscape screens — compact everything so it still fits
   one screen with no scroll and no clipping. Hero scales to height. */
@media (max-height: 560px) {
  .header { padding-top: 12px; padding-bottom: 12px; }
  .footer { padding-top: 10px; padding-bottom: 10px; }
  .main { padding: 10px 20px 12px; }

  .pill { margin-bottom: 10px; padding: 5px 12px; }
  .hero { width: min(300px, 44vh); margin-bottom: 10px; }
  .lede { font-size: 13px; line-height: 1.4; margin-bottom: 10px; }
  .form { gap: 8px; }
  .form__note { display: none; }

  .watermark { height: 150vh; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .pill, .hero, .lede, .form, .confirm { animation: none; }
}
