/* ==========================================================================
   Vandegrift Vipers Basketball — Colors & Type
   ========================================================================== */

/* ---- Brand webfonts (self-hosted from /fonts) */
@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/BarlowCondensed-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('fonts/Oswald-wght.ttf') format('truetype-variations'),
       url('fonts/Oswald-wght.ttf') format('truetype');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-opsz-wght.ttf') format('truetype-variations'),
       url('fonts/Inter-opsz-wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ============ COLOR PALETTE ============ */
  /* Brand is monochromatic: black, white, and a chrome/silver gradient family. */

  /* Core */
  --viper-black:       #0a0a0a;   /* near-black, used for hero backgrounds */
  --viper-onyx:        #141414;   /* card surfaces over textured bg */
  --viper-graphite:    #1f1f1f;   /* elevated card */
  --viper-charcoal:    #2a2a2a;   /* mid surface, schedule rows */
  --viper-steel:       #4a4a4a;   /* divider, bezel */
  --viper-silver:      #b8b8b8;   /* chrome mid-tone */
  --viper-platinum:    #d9d9d9;   /* light chrome highlight */
  --viper-bone:        #f2f2f2;   /* off-white, body text on dark */
  --viper-white:       #ffffff;   /* pure white, athletic accent */

  /* Subtle accent — used on Texas / district call-outs only */
  --viper-court:       #c9a35c;   /* gold accent (sparingly — sponsor pricing tags) */
  --viper-court-deep:  #8a6f3b;

  /* Semantic foreground/background tokens */
  --bg:                var(--viper-black);
  --bg-elevated:       var(--viper-graphite);
  --bg-card:           var(--viper-onyx);
  --bg-row:            var(--viper-charcoal);

  --fg:                var(--viper-white);
  --fg-1:              var(--viper-white);
  --fg-2:              var(--viper-bone);
  --fg-3:              var(--viper-silver);
  --fg-muted:          var(--viper-steel);

  --border:            #2e2e2e;
  --border-strong:     var(--viper-steel);

  /* Chrome gradient — THE signature visual of the brand. Used on display headings,
     buttons, plates. Mimics brushed steel with a bright highlight band. */
  --chrome-gradient: linear-gradient(
    180deg,
    #f4f4f4 0%,
    #ffffff 18%,
    #cfcfcf 38%,
    #6b6b6b 50%,
    #2a2a2a 60%,
    #6b6b6b 75%,
    #cfcfcf 92%,
    #f4f4f4 100%
  );

  --chrome-gradient-light: linear-gradient(
    180deg,
    #ffffff 0%,
    #e8e8e8 30%,
    #b0b0b0 55%,
    #6e6e6e 78%,
    #3a3a3a 100%
  );

  --chrome-stroke: linear-gradient(180deg, #f8f8f8, #6a6a6a 50%, #1c1c1c);

  /* Carbon-fiber / brushed-metal texture bg (CSS-only fallback) */
  --carbon-bg:
    radial-gradient(ellipse at top, #1c1c1c 0%, transparent 60%),
    radial-gradient(ellipse at bottom, #161616 0%, transparent 60%),
    repeating-linear-gradient(45deg, #0e0e0e 0 2px, #131313 2px 4px),
    repeating-linear-gradient(-45deg, #0e0e0e 0 2px, #131313 2px 4px),
    #0a0a0a;

  /* ============ TYPOGRAPHY ============ */
  /* Display: Barlow Condensed Black — wide impact, all-caps athletic headlines.
     Heading: Oswald — narrower, used for medium hierarchy & schedule labels.
     Body:    Inter — clean utility text for sponsor/booster info.            */

  --font-display: 'Barlow Condensed', 'Industry', 'Oswald', 'Impact', sans-serif;
  --font-heading: 'Oswald', 'Barlow Condensed', 'Impact', sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', system-ui, sans-serif;

  /* Type scale — built for hero/poster work where huge type is the norm */
  --text-mega:  clamp(72px, 12vw, 180px);   /* RELENTLESS, BOUND, etc. */
  --text-hero:  clamp(48px, 7vw, 96px);     /* Page banners */
  --text-h1:    clamp(36px, 4vw, 56px);
  --text-h2:    28px;
  --text-h3:    22px;
  --text-h4:    18px;
  --text-body:  16px;
  --text-small: 14px;
  --text-tiny:  12px;
  --text-eyebrow: 13px;                     /* spaced caps eyebrow */

  /* Letter spacing — athletic identity loves WIDE caps */
  --track-mega:    0.01em;
  --track-display: 0.02em;
  --track-heading: 0.04em;
  --track-eyebrow: 0.18em;
  --track-body:    0;

  /* Weights */
  --weight-black:  900;
  --weight-bold:   700;
  --weight-semi:   600;
  --weight-medium: 500;
  --weight-regular: 400;

  /* ============ SPACING / RADII / SHADOWS ============ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 2px;
  --radius-md: 4px;       /* default — Vipers materials are SHARP, low-radius */
  --radius-lg: 8px;
  --radius-pill: 999px;
  --radius-plate: 6px;    /* the silver-bezel plate look */

  /* Shadows — emboss + drop. Plates have a chrome bevel using inset highlights. */
  --shadow-card:       0 2px 8px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-plate:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.6);
  --shadow-text-emboss:
    0 1px 0 rgba(255, 255, 255, 0.25),
    0 -1px 0 rgba(0, 0, 0, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.7);

  /* Borders */
  --border-chrome: 1px solid rgba(255, 255, 255, 0.12);
  --border-chrome-strong: 1px solid rgba(255, 255, 255, 0.25);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-snap: cubic-bezier(0.4, 0, 0, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 400ms;
}

/* ============ SEMANTIC ELEMENT STYLES ============ */

html, body {
  background: var(--bg);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Display headings — the chrome-text treatment. */
.viper-mega,
.viper-display {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  text-transform: uppercase;
  letter-spacing: var(--track-mega);
  line-height: 0.9;
  background: var(--chrome-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px #000;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

.viper-mega { font-size: var(--text-mega); }
.viper-display { font-size: var(--text-hero); }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: var(--text-h1);
  text-transform: uppercase;
  letter-spacing: var(--track-display);
  line-height: 1;
  margin: 0;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-h2);
  text-transform: uppercase;
  letter-spacing: var(--track-heading);
  line-height: 1.05;
  margin: 0;
}

h3, .h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-h3);
  text-transform: uppercase;
  letter-spacing: var(--track-heading);
  margin: 0;
}

h4, .h4 {
  font-family: var(--font-heading);
  font-weight: var(--weight-semi);
  font-size: var(--text-h4);
  text-transform: uppercase;
  letter-spacing: var(--track-heading);
  margin: 0;
}

.eyebrow {
  font-family: var(--font-heading);
  font-weight: var(--weight-semi);
  font-size: var(--text-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  color: var(--fg-3);
}

p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--fg-2);
  line-height: 1.55;
  text-wrap: pretty;
  margin: 0 0 1em;
}

small, .small {
  font-size: var(--text-small);
  color: var(--fg-3);
}

/* The signature "silver plate" — a bezeled label with chrome highlights.
   Used on the Vipers materials for date stamps, "RSVP & PAY HERE", "HOME/AWAY", etc. */
.viper-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: linear-gradient(180deg, #d8d8d8 0%, #9a9a9a 50%, #4a4a4a 100%);
  color: #0a0a0a;
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: var(--track-heading);
  border-radius: var(--radius-plate);
  box-shadow: var(--shadow-plate);
  border-top: 1px solid #f4f4f4;
  border-bottom: 1px solid #1a1a1a;
}

/* Pill: dark surface w/ chrome stroke — schedule date markers */
.viper-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--viper-onyx);
  color: var(--viper-white);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: var(--track-heading);
  border-radius: var(--radius-pill);
  border: 1px solid var(--viper-steel);
}
