/* ============================================================
   base.css — Typography system, body defaults, global styles
   ============================================================ */

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: 400;
  line-height: var(--body-line-height);
  color: var(--text-primary);
  background-color: var(--bg-light);
}

/* --- Skip to content (accessibility) --- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--btn-text-size);
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 16px;
}

/* --- Headlines — Playfair Display --- */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--h1-size);
  line-height: 1.1;
  color: var(--text-on-dark);
  letter-spacing: -0.5px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--h2-size);
  line-height: 1.15;
  letter-spacing: -0.3px;
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--h3-size);
  line-height: 1.25;
}

h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--card-title-size);
  line-height: 1.3;
}

h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--body-size);
  line-height: 1.4;
}

h6 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--card-desc-size);
  line-height: 1.5;
}

/* --- Paragraphs --- */
p {
  font-size: var(--body-size);
  line-height: var(--body-line-height);
  color: var(--text-secondary);
}

p + p {
  margin-top: 20px;
}

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

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

/* --- Section label (uppercase accent tag) --- */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--label-size);
  text-transform: uppercase;
  letter-spacing: var(--label-spacing);
  color: var(--accent);
  margin-bottom: 20px;
}

/* --- Blockquote --- */
blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--body-size);
  line-height: var(--body-line-height);
  color: var(--text-secondary);
  max-width: 700px;
}

blockquote cite {
  display: block;
  font-style: normal;
  font-size: var(--small-size);
  color: var(--text-muted);
  margin-top: 12px;
}

/* --- Selection --- */
::selection {
  background-color: var(--accent);
  color: #fff;
}

/* --- Focus visible (accessibility) --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- Dark section text overrides --- */
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--text-on-dark);
}

.section--dark p {
  color: var(--text-on-dark-muted);
}

.section--dark .section-label {
  color: var(--accent);
}

/* --- Light section text --- */
.section--light h2 {
  color: var(--text-primary);
}

.section--light p {
  color: var(--text-secondary);
}

/* --- Intro text (below section headlines) --- */
.section-intro {
  font-size: var(--body-size);
  line-height: var(--body-line-height);
  max-width: 640px;
  margin-top: 16px;
}

/* --- Noscript fallback --- */
noscript {
  display: block;
  text-align: center;
  padding: 16px;
  background: var(--accent-light);
  color: var(--text-primary);
  font-size: var(--small-size);
}
