/*
 * Base — Reset, CSS Custom Properties, Global Typography
 * =======================================================
 * Redesigned to match ICA Sports aesthetic:
 * Anton for bold display headlines, Montserrat for body/UI.
 * SSC brand colours (green + gold) applied with athletic confidence.
 *
 * Section index:
 *   1. CSS custom properties
 *   2. Reset / box model
 *   3. Body & global typography
 *   4. Links
 *   5. Headings
 *   6. Images & media
 *   7. Accessibility
 */


/* =============================================================================
   1. CSS custom properties
   ============================================================================= */

:root {
  /* Brand colours */
  --ssc-green:        #1a4731;
  --ssc-green-mid:    #2d6a4f;
  --ssc-green-light:  #40916c;
  --ssc-gold:         #d4a017;
  --ssc-gold-light:   #f4c842;
  --ssc-dark:         #0d1a0d;
  --ssc-white:        #ffffff;
  --ssc-off-white:    #f5f5f5;
  --ssc-text:         #1a1a1a;
  --ssc-muted:        #666666;
  --ssc-border:       #e0e0e0;

  /* Layout */
  --ssc-container:    1280px;
  --ssc-content:      760px;

  /* Shape */
  --ssc-radius:       4px;
  --ssc-radius-sm:    2px;
  --ssc-radius-lg:    8px;

  /* Shadows */
  --ssc-shadow-sm:    0 2px 6px rgba(0,0,0,.07);
  --ssc-shadow:       0 4px 16px rgba(0,0,0,.1);
  --ssc-shadow-lg:    0 8px 32px rgba(0,0,0,.14);

  /* Motion */
  --ssc-transition:   0.2s ease;

  /* Typography */
  --font-display:     'Anton', Impact, Arial Narrow, sans-serif;
  --font-body:        'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}


/* =============================================================================
   2. Reset / box model
   ============================================================================= */

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

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

body {
  background-color: #ffffff;
  color: var(--ssc-text);
  overflow-x: hidden;
}


/* =============================================================================
   3. Body & global typography
   ============================================================================= */

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

blockquote {
  border-left: 4px solid var(--ssc-gold);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ssc-muted);
}

hr {
  border: none;
  border-top: 1px solid var(--ssc-border);
  margin: 2rem 0;
}

strong { font-weight: 700; }
em     { font-style: italic; }

small {
  font-size: 0.8125rem;
  color: var(--ssc-muted);
}


/* =============================================================================
   4. Links
   ============================================================================= */

a {
  color: var(--ssc-green-mid);
  text-decoration: none;
  transition: color var(--ssc-transition);
}

a:hover,
a:focus-visible {
  color: var(--ssc-green);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--ssc-gold);
  outline-offset: 2px;
  border-radius: var(--ssc-radius-sm);
}


/* =============================================================================
   5. Headings
   ============================================================================= */

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ssc-green);
  line-height: 1.05;
  font-weight: 400; /* Anton is inherently bold */
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--ssc-green);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }


/* =============================================================================
   6. Images & media
   ============================================================================= */

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

figure {
  margin: 0;
}

figcaption {
  font-size: 0.875rem;
  color: var(--ssc-muted);
  margin-top: 0.5rem;
}


/* =============================================================================
   7. Accessibility
   ============================================================================= */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--ssc-gold);
  color: var(--ssc-dark);
  padding: 0.5rem 1rem;
  font-weight: 700;
  border-radius: 0 0 var(--ssc-radius) var(--ssc-radius);
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
