/*
  Base layer: reset, design tokens, typography.
  Aesthetic: "Championship Editorial" — near-black canvas, muted gold foil,
  oversized condensed display type, race-lane motifs.
*/

:root {
    --c-black: #07080a;
    --c-black-soft: #101113;
    --c-black-elevated: #17181b;
    --c-ink: #232427;
    --c-border: rgba(245, 240, 227, 0.09);
    --c-border-strong: rgba(245, 240, 227, 0.18);
    --c-white: #f7f4ec;
    --c-white-dim: #c9c6bd;
    --c-gray: #8d8b86;
    --c-gray-dim: #5c5a56;
    --c-gold: #c9a24d;
    --c-gold-bright: #ecca7e;
    --c-gold-dim: #6b5525;
    --c-gold-rgb: 201, 162, 77;

    --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    --font-body: 'Libre Franklin', -apple-system, sans-serif;
    --font-serif: 'Newsreader', Georgia, serif;

    --container-max: 1360px;
    --gutter: clamp(1.25rem, 4vw, 4rem);
    --section-space: clamp(4.5rem, 9vw, 7rem);

    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
    --dur-fast: 0.25s;
    --dur-med: 0.6s;
    --dur-slow: 1.1s;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

body {
    margin: 0;
    background: var(--c-black);
    color: var(--c-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
}

/* Subtle film-grain texture over the whole page for a premium tactile feel */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; }

p { margin: 0; }

.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

.skip-link {
    position: absolute;
    top: -48px;
    left: 1rem;
    background: var(--c-gold);
    color: var(--c-black);
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    z-index: 999;
    transition: top var(--dur-fast) var(--ease-premium);
    border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; }

::selection {
    background: var(--c-gold);
    color: var(--c-black);
}

:focus-visible {
    outline: 2px solid var(--c-gold);
    outline-offset: 3px;
}

/* Typography scale */
.eyebrow {
    font-family: var(--font-body);
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--c-gold);
    display: inline-block;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 5.5vw, 4.6rem);
    line-height: 0.96;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--c-white);
    margin-top: 0.6rem;
}

.section-lede {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--c-white-dim);
    max-width: 58ch;
    line-height: 1.7;
}

.serif-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
}

.text-gold { color: var(--c-gold); }
.text-dim { color: var(--c-white-dim); }
