/* ==========================================================================
   LAST WICKET CRICKET — Base
   Reset, typography, focus states, and shared utilities.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Space+Mono:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg{ display: block; max-width: 100%; }
a{ color: inherit; }
button{ font-family: inherit; }

h1, h2, h3, h4{ font-family: var(--font-display); font-weight: 400; margin: 0; }
p{ margin: 0; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Film-grain overlay used across the whole product — part of the visual identity */
.lw-grain{
  position: fixed; inset: 0; pointer-events: none; z-index: 5;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: repeating-linear-gradient(0deg, #fff 0px, #fff 1px, transparent 1px, transparent 3px);
}

.lw-container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.lw-container--narrow{ max-width: var(--max-width-narrow); }

.lw-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;
}

.lw-skip-link{
  position: absolute; top: -48px; left: 12px; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  transition: top var(--duration-fast) var(--ease);
}
.lw-skip-link:focus{ top: 12px; }

/* ---------- Eyebrows & section titles (shared vocabulary) ---------- */
.lw-eyebrow{
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-dim); margin: 0 0 14px;
}
.lw-eyebrow--center{ text-align: center; }

.lw-section-title{
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: 0.005em;
  margin: 0 0 14px;
}
.lw-section-title--center{ text-align: center; }

.lw-section-lede{
  color: var(--muted);
  font-size: 15.5px;
  max-width: 560px;
  margin: 0 0 44px;
}
.lw-section-lede--center{ margin-left: auto; margin-right: auto; text-align: center; }

.lw-section-head{ margin-bottom: 8px; }

/* ---------- Buttons ---------- */
.lw-btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 14.5px;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease),
              background var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease);
}
.lw-btn-primary{ background: var(--accent); color: var(--on-accent); }
.lw-btn-primary:hover{ transform: translateY(-1px); box-shadow: var(--shadow-accent); }
.lw-btn-primary:disabled{ opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

.lw-btn-ghost{ background: transparent; color: var(--text); border-color: var(--border); }
.lw-btn-ghost:hover{ border-color: var(--accent-dim); color: var(--accent); }

.lw-btn-quiet{
  background: transparent; color: var(--muted); border-color: transparent;
  padding: 10px 4px; font-size: 13.5px;
}
.lw-btn-quiet:hover{ color: var(--accent); }

.lw-btn--full{ width: 100%; }
.lw-btn--sm{ padding: 9px 18px; font-size: 13px; }

.lw-badge{
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.lw-badge--accent{ color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.lw-badge--live{ color: var(--pitch); border-color: rgba(76,122,63,0.4); }
.lw-badge--soon{ color: var(--muted); }

/* ---------- Shared animations ---------- */
@keyframes lwFadeUp{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes lwPulse{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(76,122,63,0.55); }
  50%{ box-shadow: 0 0 0 5px rgba(76,122,63,0); }
}

.lw-dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pitch);
  animation: lwPulse 1.8s ease-in-out infinite;
  flex: none;
}

/* ---------- Scroll-reveal (progressive enhancement, see js/modules/reveal.js) ---------- */
.lw-reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.lw-reveal.is-visible{ opacity: 1; transform: translateY(0); }
/* If JS never loads, content must still be visible */
.no-js .lw-reveal{ opacity: 1; transform: none; }
