/* ============================================================
   Base — typography, links, focus, page background, skip link
   ============================================================ */

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-page);
  background-image: var(--grad-page-wash);
}

/* Site sections after the header get the page wash indirectly through body;
   the home hero has its own dark tile. */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

h1 {
  font-size: var(--fs-hero-inner);
  line-height: 0.94;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 0.98;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-subheading);
}

p {
  color: var(--color-text-muted);
  line-height: 1.75;
  font-size: var(--fs-body);
}

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover,
a:focus-visible {
  color: var(--color-link-hover);
}

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

/* Focused pill controls should not clip their outline */
.btn:focus-visible,
.nav__link:focus-visible {
  outline-offset: 4px;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--z-skiplink);
  padding: 12px 20px;
  background: var(--color-panel);
  color: var(--color-ink-on-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 var(--radius-input) 0;
  transform: translateY(-120%);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: -4px;
}

/* Selection */
::selection {
  background: var(--color-ember);
  color: var(--color-ink-on-dark);
}


/* The serif family (Lora) is always italic in this system */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.01em;
  color: var(--color-subheading);
  line-height: 1.2;
}

.eyebrow > span:empty {
  display: none;
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--on-dark {
  color: var(--color-subheading);
}

/* Section headline row */
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--section-head-gap);
}

@media (max-width: 640px) {
  .section-head {
    align-items: flex-start;
  }
  .section-head > .link-arrow {
    margin-top: 4px;
  }
}

.section-head > h2,
.section-head > .section-title {
  margin: 10px 0 0;
}

.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-inline: auto;
  max-width: 46rem;
}

/* Highlighted word inside a headline */
.word-highlight {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Meta chips / labels */
.meta-label {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

/* Visually hidden — accessible label / screen-reader-only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Prevent horizontal overflow from any single wide child */
.site img,
.site svg {
  max-width: 100%;
}
