/* =====================================================================
   StillCrusin site.css — global resets + base typography + a11y baseline
   ---------------------------------------------------------------------
   Imports design-tokens.css (font faces + CSS custom properties), then
   applies the minimum global rules every page inherits.

   Component-specific styles live in scoped .razor.css files alongside
   each component. This file stays small on purpose.
   ===================================================================== */

@import url('./design-tokens.css');

/* ---------------------------------------------------------------------
   Reset (Josh Comeau-style minimal modern reset)
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }
html { font-size: 16px; }

/* ---------------------------------------------------------------------
   Body — lacquer-black canvas, humanist body type
   --------------------------------------------------------------------- */
body {
    background-color: var(--color-lacquer-black);
    color: var(--color-body-on-dark);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------------------------------------------
   Headings — Big Shoulders Display, ALL CAPS at display sizes
   --------------------------------------------------------------------- */
h1, h2 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--tracking-tight);
    color: var(--color-heading-on-dark);
    line-height: 1.05;
}
h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-normal);
    color: var(--color-heading-on-dark);
    line-height: 1.15;
}
h5, h6 {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-heading-on-dark);
    line-height: 1.3;
}

/* ---------------------------------------------------------------------
   Links — candy-apple at rest on dark canvas, neon-cyan on hover
   --------------------------------------------------------------------- */
a {
    color: var(--color-link-on-dark);
    transition: color var(--duration-fast) var(--easing-standard);
}
a:hover { color: var(--color-link-hover); }

/* ---------------------------------------------------------------------
   Focus ring — 2-layer (lacquer-black inner + chrome outer)
   matches DESIGN.md focus token; honors :focus-visible
   --------------------------------------------------------------------- */
:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px var(--color-lacquer-black),
        0 0 0 4px var(--color-focus-ring);
    border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------------
   Utilities
   --------------------------------------------------------------------- */
.mono { font-family: var(--font-mono); }

/* Visually-hidden but screen-reader accessible */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip-to-content link (revealed on focus) */
.skip-link {
    position: absolute;
    top: -120%;
    left: var(--space-6);
    background: var(--gradient-chrome-polish);
    color: var(--color-hot-rod-red);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    z-index: 9999;
    transition: top var(--duration-fast) var(--easing-standard);
}
.skip-link:focus { top: var(--space-3); }

/* ---------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
