/* ============================================================
   base.css — body, typography, container, utilities
   ============================================================ */

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* ---- Headings ---- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: var(--fw-bold);
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-semibold);
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

/* ---- Links ---- */
a {
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-text);
}

strong {
  font-weight: var(--fw-semibold);
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Section ---- */
.section {
  padding-block: var(--section-py);
}

.section--muted {
  background-color: var(--color-bg-muted);
}

.section--primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.section--primary h1,
.section--primary h2,
.section--primary h3 {
  color: #ffffff;
}

/* ---- Section headers ---- */
.section__head {
  max-width: 720px;
  margin-bottom: var(--space-6);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: var(--color-accent-text);
  margin-bottom: var(--space-2);
}

.section__lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--color-text-muted);
}

/* ---- Grid helpers ---- */
.grid-auto {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ---- Utilities ---- */
.visually-hidden,
.skip-link:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

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

.mb-0 {
  margin-bottom: 0;
}

.flow > * + * {
  margin-top: var(--space-4);
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: var(--z-lightbox);
  background: var(--color-primary);
  color: #ffffff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold);
  box-shadow: var(--shadow-md);
}

/* ---- Lists in content ---- */
.content-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.content-list li {
  position: relative;
  padding-left: var(--space-6);
}

.content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 18px;
  height: 18px;
  background-color: var(--color-accent);
  -webkit-mask: url("../assets/icons/check.svg") center / contain no-repeat;
  mask: url("../assets/icons/check.svg") center / contain no-repeat;
}
