/* ============================================
   BOTTOMZ UP — Base Styles
   Lemon Milk display · Poppins body · Brand colors
   ============================================ */

@import url('./fonts.css');
@import url('./tokens.css');

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

html {
  font-size: 16px;
  /* Anchor smooth-scroll is handled in JS. Global smooth breaks load/restoration. */
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  /* Background mesh + grain live in atmosphere.css */
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Display: Lemon Milk ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-display, -0.015em);
  line-height: 1.05;
  text-wrap: balance;
  text-shadow: 2px 2px 0 rgba(46, 44, 44, 0.08);
}

.heading-xl {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.heading-lg {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.heading-md {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.heading-sm {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Body: Poppins */
.body-lg {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
}

.body-md {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

.body-sm {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
}

/* Eyebrow labels — Poppins, wide tracking */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-amber);
}

/* Color utilities */
.text-amber { color: var(--color-amber); }
.text-cream { color: var(--color-cream); }
.text-muted { color: var(--text-muted); }
.text-charcoal { color: var(--color-charcoal); }

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section {
  padding-block: clamp(2rem, 4.5vw, 3.25rem);
}



/* Buttons — ticket primary + legacy helpers
   Full ticket system lives in nav.css (.btn-ticket) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.9rem 1.85rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border-radius: 40px 0 40px 0;
  transition:
    background var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-charcoal);
  color: #ffffff;
  box-shadow: none;
}

.btn-primary .btn-hover-fill,
.btn .btn-hover-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #f19f0f 0%, #c67a12 100%);
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}

.btn-primary > *:not(.btn-hover-fill),
.btn > *:not(.btn-hover-fill) {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover,
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(46, 44, 44, 0.16);
  }

  .btn-primary:hover .btn-hover-fill,
  .btn:hover .btn-hover-fill {
    transform: translateY(0);
  }

  .btn-primary:not(:has(.btn-hover-fill)):hover {
    background: var(--color-amber-bright, #f19f0f);
    color: var(--color-ink, #1a1919);
  }

  .btn-secondary:hover {
    background: var(--color-charcoal);
    color: var(--color-cream, #fffdf9);
  }

  .btn-ghost:hover {
    background: var(--color-amber-soft, rgba(231, 147, 30, 0.14));
  }
}

.btn-primary:active,
.btn:active,
.btn-secondary:active,
.btn-ghost:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: transparent;
  color: var(--color-charcoal);
  border: 2px solid var(--color-charcoal);
  border-radius: 40px 0 40px 0;
}

.btn-ghost {
  background: transparent;
  color: var(--color-amber);
  border-radius: 40px 0 40px 0;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Cards */
.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(46, 44, 44, 0.05);
  transition:
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(231, 147, 30, 0.2);
}

/* Price mark — display weight for appetite */
.price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-amber);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Reveal animation base (used with JS) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Focus visible — accessible amber ring */
:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background: var(--color-amber);
  color: var(--color-ink);
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
