/* SnugTeam holding page. Palette and balance come from docs/design/brand/README.md:
   background 60%, text 25%, logo green 10%, terracotta accent 5% (never for words). */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/quicksand-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/quicksand-latin-600-normal.woff2') format('woff2');
}

/* Layout: masthead, then copy beside the animation (stacked on phones), then a quiet footer. */
:root {
  --bg: #efece3;
  --text: #2d3e2f;
  --logo: #3a4f3b;
  --accent: #e28f6b;
  --muted: #4f5e50;
  --line: #ddd8ca;
  --font-display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Quicksand', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 72rem;
  margin: 0 auto;
  padding-block: max(1.5rem, env(safe-area-inset-top, 0px))
    max(1.25rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px), 4vw);
  padding-right: max(16px, env(safe-area-inset-right, 0px), 4vw);
}

.logo {
  display: block;
  width: clamp(9.5rem, 22vw, 13rem);
  height: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  align-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.copy {
  min-width: 0;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.eyebrow {
  margin: 0;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--logo);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 14ch;
}

.lede {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
}

.status {
  margin: 0;
  color: var(--muted);
}

.contact {
  margin: 0;
}

.contact a {
  color: var(--logo);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.contact a:hover {
  text-decoration-thickness: 2px;
}

.contact a:focus-visible {
  outline: 2px solid var(--logo);
  outline-offset: 3px;
  border-radius: 2px;
}

.scene {
  width: 100%;
  max-width: 30rem;
  aspect-ratio: 394 / 344; /* matches SCENE_VIEWBOX in main.js */
  justify-self: center;
  opacity: 0;
  transition: opacity 400ms ease;
}

.scene.is-ready {
  opacity: 1;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .scene {
    order: -1;
    max-width: 20rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene {
    transition: none;
  }
}
