/* ==========================================================================
   Main Stylesheet
   tokens.css and reset.css are loaded as separate <link> tags in index.html
   to allow parallel fetching. Do not @import them here.
   ========================================================================== */

/* --- Base --- */

body {
  background-color: var(--color-cream);
  color: var(--color-soil);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
}

/* --- Links --- */

a {
  color: var(--color-rust);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

a:hover,
a:focus-visible {
  text-decoration-color: var(--color-rust);
}

a:focus-visible {
  outline: 2px solid var(--color-rust);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Headings --- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-brand);
  color: var(--color-soil);
  line-height: 1.2;
}

/* --- Accessibility utilities --- */

/* Visually hidden but available to screen readers */
.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;
}

/* --- Scroll offset for sticky nav ---
   Ensures smooth-scroll anchor targets appear below the 64px sticky nav bar
   rather than being obscured by it. */
section[id],
aside[id],
footer[id] {
  scroll-margin-top: 64px;
}

/* --- Section eyebrow label + gold rule --- */

.section-eyebrow {
  font-family: var(--font-brand);
  font-size: 0.6875rem; /* 11px */
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-rust);
  opacity: 0.7;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-eyebrow__rule {
  width: 88px;
  height: 2px;
  border-radius: 1px;
  background-color: var(--color-gold);
  opacity: 0.6;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
  .section-eyebrow {
    letter-spacing: 0.15em;
  }
}

/* --- Layout utilities --- */

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
