/* ==========================================================
   base.css — Reset, typography, and foundational styles
   Applied globally; sets the dark-themed canvas everything
   else is painted on.
   ========================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);   /* offset for fixed nav */
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-off-white);
  background-color: var(--color-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---- Typography Defaults ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-white);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }

p {
  color: var(--color-light-gray);
  max-width: 65ch;            /* keep body text readable */
}

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

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

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

ul, ol {
  list-style: none;
}

/* ---- Utility: wrapper constrains content width ---- */
.wrapper {
  width: 90%;
  max-width: var(--max-width);
  margin-inline: auto;
}

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

/* ---- Section titles: red accent bar + heading ---- */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  /* Use accessible red — #c41e2a fails WCAG 4.5:1 on dark backgrounds */
  color: var(--color-red-accessible);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: 2.5rem;
}

/* Small red line before label text — decorative, uses brand red */
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.75rem;
  height: 2px;
  background: var(--color-red);
}

.section-title {
  margin-bottom: var(--space-lg);
}
