/* tokensong landing — full-bleed hero with overlaid wordmark.
 *
 * Color palette is sampled from the hero painting: deep forest-green from
 * the foliage and dancer silhouette, warm cream from the sky and wreath,
 * a faint gold echoing the late-afternoon light. Typography is Fraunces,
 * opsz 24+ for the wordmark so the storybook feel reads at scale.
 */

:root {
  --green: #2d5e3a;
  --green-deep: #1f4327;
  --cream: #f6efe1;
  --cream-soft: #fbf6ec;
  --gold: #e8c87a;
  --shadow: rgba(20, 35, 15, 0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--cream);
  color: var(--green-deep);
  font-family: 'Fraunces', Georgia, 'Iowan Old Style', serif;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
}

.hero-image,
.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-image img {
  object-fit: cover;
  object-position: center 35%;
}

/* Veil — soft top-to-bottom darken so the wordmark sits cleanly on the
 * sky/foliage region. Stronger on small screens where the image is busier. */
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 25%, rgba(246, 239, 225, 0.2) 0%, rgba(246, 239, 225, 0) 60%),
    linear-gradient(to bottom, rgba(20, 35, 15, 0.18) 0%, rgba(20, 35, 15, 0) 35%, rgba(20, 35, 15, 0) 70%, rgba(20, 35, 15, 0.25) 100%);
  pointer-events: none;
}

.hero-veil--error {
  background:
    linear-gradient(to bottom, rgba(20, 35, 15, 0.42) 0%, rgba(20, 35, 15, 0.32) 100%);
}

/* Text overlay — anchored to the upper third so the dancer (right of
 * center, lower portion) stays visible underneath. */
.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: clamp(2.5rem, 8vh, 6rem) 1.5rem 0;
  text-align: center;
  z-index: 2;
}

.wordmark {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(3.5rem, 12vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cream-soft);
  text-shadow:
    0 2px 24px var(--shadow),
    0 1px 2px rgba(20, 35, 15, 0.4);
}

.tag {
  margin: clamp(0.6rem, 1.5vh, 1.2rem) 0 0;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-variation-settings: 'opsz' 14;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream-soft);
  opacity: 0.78;
  text-shadow: 0 1px 8px var(--shadow);
}

.tag .dot {
  color: var(--gold);
  font-weight: 600;
}

/* --- error pages --- */

.is-error .hero-image img {
  filter: saturate(0.85) brightness(0.92);
}

.error-code {
  margin: 0 0 0.2rem;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  letter-spacing: 0.12em;
  color: var(--gold);
  opacity: 0.92;
  text-shadow: 0 2px 16px var(--shadow);
}

.is-error .wordmark {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

.error-back {
  color: var(--cream-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 239, 225, 0.3);
  padding-bottom: 0.1em;
  transition: border-color 0.2s ease;
}
.error-back:hover {
  border-bottom-color: var(--gold);
}

/* On wider screens, breathe more vertically so the wordmark feels
 * deliberately placed instead of jammed at the top. */
@media (min-aspect-ratio: 16/10) and (min-height: 600px) {
  .hero-text {
    padding-top: clamp(3rem, 12vh, 7rem);
  }
}

/* Reduce motion is the default — no animations to disable, but ensure
 * we respect users who explicitly opt out of font-swap flash. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
