/* ===================================
   MS Coaching - Base Styles
   =================================== */

/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@300;400;500;900&display=swap');

/* Race Sport font - local */
@font-face {
  font-family: 'Race Sport';
  src: url('../assets/fonts/race-sport/Race Sport.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Body */
body {
  font-family: var(--font-main);
  font-weight: var(--font-regular);
  font-size: var(--text-base);
  color: var(--color-cream);
  background-color: var(--color-black);
}

/* Main content area */
main {
  min-height: calc(100vh - var(--header-height));
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-black);
  color: var(--color-cream);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

/* Accent font class */
.font-accent {
  font-family: var(--font-accent);
  text-transform: lowercase;
}

.font-accent-upper {
  font-family: var(--font-accent);
  text-transform: uppercase;
}

/* Text utilities */
.text-light {
  font-weight: var(--font-light);
}

.text-medium {
  font-weight: var(--font-medium);
}

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

.text-muted {
  color: var(--color-gold-muted);
}

.text-center {
  text-align: center;
}

/* Links */
a {
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold);
}

/* Paragraphs */
p {
  font-weight: var(--font-light);
  line-height: 1.8;
}

p + p {
  margin-top: var(--space-sm);
}

/* Lead text */
.lead {
  font-size: var(--text-lg);
  font-weight: var(--font-light);
  line-height: 1.8;
}

/* Small text */
.small {
  font-size: var(--text-sm);
}

/* Selection */
::selection {
  background-color: var(--color-gold);
  color: var(--color-black);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-black);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-muted);
}

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

/* Section spacing */
section {
  padding: var(--space-xl) 0;
}

@media (max-width: 768px) {
  section {
    padding: var(--space-lg) 0;
  }
}
