/* CrunchTails — launching soon */

:root {
  --cream: #f7f3eb;
  --cream-dark: #ebe4d6;
  --ink: #2c2622;
  --ink-muted: #5c534c;
  --accent: #c45c3e;
  --accent-hover: #a84d33;
  --sage: #6b8f71;
  --radius: 12px;
  --shadow: 0 18px 40px rgba(44, 38, 34, 0.08);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  position: relative;
  overflow-x: hidden;
  background: #ee0979;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #ff6a00, #ee0979);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #ff6a00, #ee0979); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
background: #ffffff;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%232c2622' stroke-width='1.2'%3E%3Ccircle cx='20' cy='22' r='5'/%3E%3Ccircle cx='28' cy='18' r='4'/%3E%3Ccircle cx='12' cy='18' r='4'/%3E%3Ccircle cx='16' cy='12' r='3.5'/%3E%3Cellipse cx='20' cy='30' rx='10' ry='7'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 88px 88px;
  animation: patternDrift 80s linear infinite;
}

@keyframes patternDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 880px 440px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 1rem;
  max-width: 72rem;
  margin: 0 auto;
  animation: fadeUp 0.9s ease-out both;
}

.site-header__logo {
  display: block;
  height: clamp(8.25rem, 33vw, 13.5rem);
  width: auto;
  max-width: min(1080px, 94vw);
  object-fit: contain;
  object-position: center;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem) 3rem;
  padding-top: 0px;
}

.hero {
  text-align: center;
  animation: fadeUp 1s ease-out 0.12s both;
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  background: rgba(107, 143, 113, 0.14);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  color: #000000;
    background: #ffbb38db;
}

.hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__tagline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  font-weight: 500;
  font-style: italic;
  color: var(--ink-muted);
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
  color: #000000;
}

.hero__lede {
  margin: 0;
  color: var(--ink-muted);
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  color: #ffa500;
}

.tail-divider {
  margin: 2.25rem auto 2rem;
  max-width: 8rem;
  color: var(--cream-dark);
}

.tail-divider svg {
  display: block;
  width: 100%;
  height: 24px;
}

.waitlist {
  text-align: left;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem clamp(1rem, 3vw, 1.75rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(44, 38, 34, 0.06);
  display: none;
}

.waitlist__label {
  margin: 0 0 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.waitlist__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.waitlist__input {
  flex: 1 1 12rem;
  min-height: 48px;
  padding: 0 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(44, 38, 34, 0.12);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist__input::placeholder {
  color: var(--ink-muted);
  opacity: 0.75;
}

.waitlist__input:hover {
  border-color: rgba(44, 38, 34, 0.22);
}

.waitlist__input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(107, 143, 113, 0.25);
}

.waitlist__btn {
  min-height: 48px;
  padding: 0 1.35rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.waitlist__btn:hover {
  background: var(--accent-hover);
}

.waitlist__btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 92, 62, 0.35);
}

.waitlist__btn:active {
  transform: scale(0.98);
}

.waitlist__hint {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.waitlist__hint code {
  font-size: 0.9em;
  background: var(--cream);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.site-footer {
  text-align: center;
  padding: 2rem 1.25rem 2.5rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  animation: fadeUp 1s ease-out 0.24s both;
}

.site-footer p {
  margin: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .bg-pattern {
    animation: none;
  }
}
