
html {
  font-size: var(--fs-base);
  background-color: var(--bg);
  color-scheme: light dark;
  overflow-x: clip;
}

body {
  font-family: var(--font-main);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--body);
  background-color: var(--bg);
  transition: background-color var(--dur-base) ease, color var(--dur-base) ease;
  overflow-x: clip;
  overflow-x: hidden;
  max-width: 100vw;
}

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.6;
  font-weight: 800;
}

h1 { font-size: var(--h1-size); font-weight: 800; }
h2 { font-size: var(--h2-size); font-weight: 800; }
h3 { font-size: var(--h3-size); font-weight: 700; }

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

.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 62ch;
  line-height: 2;
}

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

::selection {
  background: var(--primary-500);
  color: #fff;
}

.skip-link {
  position: absolute;
  top: -100px;
  right: var(--space-4);
  z-index: 2000;
  background: var(--primary-500);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: top var(--dur-fast) ease;
}
.skip-link:focus { top: var(--space-3); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-500);
  background: var(--primary-50);
  border: 1px solid var(--border);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
[data-theme="dark"] .section-label { background: var(--surface-2); }

.section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-500);
  flex-shrink: 0;
}

.section-title { margin-bottom: var(--space-3); }
.section-sub {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: var(--section-title-gap);
}

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