/* Valverde Motorsport — editorial rebuild. Tailwind handles utility layout;
   this file only holds things Tailwind can't: fonts, custom easing, motion. */

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

:root {
  --paper: #f2efe9;
  --ink: #101010;
  --red: #d81324;
  --red-deep: #8c0c17;
  --line: rgba(16,16,16,0.12);
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--ink);
  color: var(--paper);
}

.font-display {
  font-family: 'Anton', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

.hairline { border-color: var(--line); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(.16,.8,.24,1), transform 0.8s cubic-bezier(.16,.8,.24,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Marquee ticker */
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 22s linear infinite;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Big number counter font-feature */
.tabular { font-variant-numeric: tabular-nums; }

/* Split-flap style number for countdown */
.flap {
  display: inline-block;
  background: rgba(244,241,234,0.08);
  border: 1px solid rgba(244,241,234,0.2);
  color: var(--paper);
  padding: 14px 10px;
  font-family: 'Anton', sans-serif;
  line-height: 1;
}

/* Image hover tilt */
.tilt-card { transition: transform 0.4s cubic-bezier(.16,.8,.24,1); }
.tilt-card:hover { transform: translateY(-6px) rotate(-0.4deg); }

/* Nav underline */
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Header: frosted glass, see-through, identical on every page and at
   every scroll position. Site is dark throughout now, so the wordmark
   (light-colored, made for dark) just sits on it directly, no backing
   needed. */
.site-header {
  background: rgba(16,16,16,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--paper);
  border-bottom: 1px solid rgba(244,241,234,0.08);
}

/* Hamburger bars follow the header's text color. */
.menu-bar { background-color: currentColor; }

/* Round-status pills on the Season results cards */
.status-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border: 1px solid rgba(244,241,234,0.3);
}
.status-pill.done { border-color: rgba(244,241,234,0.3); color: var(--paper); }
.status-pill.next { border-color: var(--red); color: var(--red); background: rgba(216,19,36,0.1); }

/* Smooth, consistent feedback on every clickable element. */
a, button { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease; }
a:active, button:active { transform: scale(0.97); }

::selection { background: var(--red); color: var(--paper); }
