/* ============================================================
   Spice Cards — coming soon
   Palette + type straight from the v1 brand sheet.
   ============================================================ */
:root {
  --ink:    #0B0B0A;   /* wordmark, text, outline   */
  --ink-2:  #161514;
  --chili:  #E6341C;   /* accent / character only    */
  --flame:  #F05A24;
  --cream:  #F2EDE4;   /* main background            */
  --bone:   #FFF8EF;   /* inputs, highlights         */
  --gray:   #6D6862;   /* muted text, texture        */

  --display: "Carter One", "Cooper Black", Georgia, serif;
  --head:    "Anton", "Archivo Black", Impact, sans-serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;

  --edge: 2px solid var(--ink);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  position: relative;
  overflow-x: hidden;
}

/* distressed paper grain — kept low so type stays crisp */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}

/* soft warm vignette under everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(110% 80% at 50% 28%, #fbf7f0 0%, var(--cream) 52%, #e9e2d6 100%);
}

/* ─────────────── layout ─────────────── */
.wrap {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wordmark {
  width: min(72%, 340px);
  height: auto;
  margin-bottom: clamp(2.25rem, 7vw, 3.75rem);
}

/* hero: stacked on phones, side-by-side on wider screens */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.5rem, 3vw, 1.5rem);
  width: 100%;
}

.mascot {
  width: clamp(150px, 40vw, 205px);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 16px 18px rgba(11, 11, 10, 0.22));
  transform-origin: bottom center;
  animation: bob 5s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-12px) rotate(1.5deg); }
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

@media (min-width: 760px) {
  .hero {
    flex-direction: row;
    justify-content: center;
    text-align: left;
    gap: clamp(2rem, 5vw, 4rem);
  }
  .mascot { width: clamp(220px, 28vw, 300px); }
  .hero .content { align-items: flex-start; }
}

/* main page (no mascot): give the wordmark a little more presence */
.wrap--plain .wordmark { width: min(82%, 420px); }

/* lockup page: full mascot + wordmark graphic as the hero */
.lockup-hero {
  width: min(90%, 460px);
  height: auto;
  margin-bottom: clamp(1.5rem, 5vw, 2.75rem);
  filter: drop-shadow(0 18px 22px rgba(11, 11, 10, 0.18));
}

/* ─────────────── type ─────────────── */
.title {
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 clamp(1.4rem, 4vw, 2rem);
}

/* ─────────────── signup ─────────────── */
.signup {
  width: 100%;
  max-width: 430px;
}

.signup__label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.signup__row {
  display: flex;
  gap: 0.5rem;
  background: var(--bone);
  border: var(--edge);
  border-radius: 14px;
  padding: 5px;
  box-shadow: 4px 5px 0 var(--ink);
}

.signup__email {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.7rem 0.65rem;
}
.signup__email::placeholder { color: #a9a39b; }
.signup__email:focus { outline: none; }

.signup__btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  background: var(--chili);
  color: var(--bone);
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.signup__btn:hover { background: var(--flame); transform: translateY(-1px); }
.signup__btn:active { transform: translateY(1px); }

.signup__fine {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--gray);
}

.signup__msg {
  margin-top: 0.6rem;
  min-height: 1.2em;
  font-size: 0.9rem;
  font-weight: 600;
}
.signup__msg[data-state="ok"]  { color: #2e7d32; }
.signup__msg[data-state="err"] { color: var(--chili); }

/* focus-visible everywhere */
:focus-visible {
  outline: 3px solid var(--flame);
  outline-offset: 2px;
  border-radius: 4px;
}
.signup__row:focus-within {
  outline: 3px solid var(--flame);
  outline-offset: 2px;
}

/* ─────────────── meta (location + social) ─────────────── */
.meta {
  margin-top: clamp(1.5rem, 5vw, 2.2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

@media (min-width: 760px) {
  .meta {
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
  }
}

.meta__loc {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--gray);
  text-decoration: none;
  max-width: 36ch;
  text-align: center;
  line-height: 1.45;
  transition: color 0.12s ease;
}
a.meta__loc:hover { color: var(--chili); text-decoration: underline; }

.meta__social {
  display: flex;
  gap: 0.85rem;
}
.meta__social a {
  color: var(--ink);
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: var(--edge);
  border-radius: 50%;
  background: var(--bone);
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.meta__social a:hover {
  background: var(--chili);
  color: var(--bone);
  transform: translateY(-2px);
}

/* ─────────────── motion / a11y ─────────────── */
@media (prefers-reduced-motion: reduce) {
  .mascot { animation: none; transform: rotate(-1.5deg); }
  * { transition: none !important; }
}
