/* ============================================================
   Elysium+ Design System — Base Reset & Global Defaults
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-fg-body);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Typography defaults ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-fg);
}

h1 { font-size: var(--text-heading-1); }
h2 { font-size: var(--text-heading-2); }
h3 { font-size: var(--text-heading-3); }
h4 { font-size: var(--text-heading-4); }

p {
  line-height: var(--leading-relaxed);
  text-wrap: pretty;
}

a {
  color: var(--color-blue);
  text-decoration: underline;
  text-decoration-color: var(--color-blue-300);
  text-underline-offset: 3px;
  transition: var(--transition-fast);
}
a:hover {
  text-decoration-color: var(--color-blue);
}

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

/* ── Selection ── */
::selection {
  background: var(--color-yellow);
  color: var(--color-blue);
}

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Utility classes ── */
.font-display  { font-family: var(--font-display); }
.font-editorial { font-family: var(--font-editorial); }
.font-body     { font-family: var(--font-body); }
.font-mono     { font-family: var(--font-mono); }

.text-fg       { color: var(--color-fg); }
.text-muted    { color: var(--color-fg-muted); }
.text-accent   { color: var(--color-terracotta); }

.bg-ivory      { background-color: var(--color-bg); }
.bg-blue       { background-color: var(--color-blue); }
.bg-white      { background-color: var(--color-white); }

.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;
}
