/**
 * Iteramind Base Styles
 *
 * @font-face declarations for self-hosted variable fonts, CSS reset,
 * element-level typography, and foundational defaults.
 *
 * @package Iteramind
 * @since   1.0.0
 */

/* ==========================================================================
   Font Faces — Self-hosted variable woff2 (Latin subset)
   ========================================================================== */

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   CSS Reset
   ========================================================================== */

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

/* ==========================================================================
   Root & Body
   ========================================================================== */

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-white);
}

/* ==========================================================================
   Headings
   ========================================================================== */

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
}

h1 {
  font-size: var(--text-2xl);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

h3 {
  font-size: var(--text-lg);
  line-height: 1.3;
}

/* Responsive heading scaling */
@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

/* ==========================================================================
   Links
   ========================================================================== */

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Images
   ========================================================================== */

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

/* ==========================================================================
   Code
   ========================================================================== */

code,
pre {
  font-family: var(--font-code);
  font-size: var(--text-sm);
}

pre {
  overflow-x: auto;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-sm {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

/* ==========================================================================
   Accessibility — Screen Reader Text
   ========================================================================== */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  clip: auto !important;
  clip-path: none;
  color: var(--color-navy);
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  height: auto;
  left: var(--space-xs);
  line-height: var(--leading-normal);
  padding: var(--space-md);
  text-decoration: none;
  top: var(--space-xs);
  width: auto;
  z-index: 100000;
}
