/* ===================================
   BASE / FOUNDATIONS — Rett Forum 2026
   =================================== */

/* --- Modern Minimal Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem;   }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem;    }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--gray-700);
}

a {
  color: var(--purple);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover {
  color: var(--navy);
  text-decoration: underline;
}

strong { color: var(--gray-900); }

/* --- Container / Layout Utilities --- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* --- Skip-nav for Accessibility --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: top var(--duration-fast) var(--ease-out);
}
.skip-nav:focus {
  top: var(--space-md);
  outline: 3px solid var(--pink);
  outline-offset: 2px;
  text-decoration: none;
  color: var(--white);
}

/* --- Focus-visible Styles --- */
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

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