*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-primary);
  color: var(--text-secondary-dark);
  font: 400 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ol,
ul {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: var(--space-5);
  color: var(--text-primary-dark);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.045em;
}

h1 {
  font-size: 68px;
  line-height: 1.02;
}

h2 {
  font-size: 46px;
  line-height: 1.08;
}

h3,
h4 {
  margin-bottom: var(--space-3);
  color: var(--text-primary-dark);
  font-family: var(--font-sans);
}

h3 {
  font-size: 24px;
  line-height: 1.2;
}

h4 {
  font-size: 18px;
  line-height: 1.3;
}

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

small {
  font-size: 12px;
  line-height: 1.4;
}

strong {
  color: inherit;
  font-weight: 600;
}

em {
  color: var(--violet);
  font-style: normal;
}

::selection {
  background: var(--coral);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 1000;
  padding: var(--space-3) var(--space-4);
  transform: translateY(-160%);
  background: var(--white);
  color: var(--text-primary-light);
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.mono,
.kicker,
.section-label,
.article-label,
.status,
.status-badge,
.service-number,
.publication-meta,
.dossier-topline,
.data-label,
.footer-links > span,
.footer-controls > span,
.page-hero-note,
.metadata {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.light-surface {
  background: var(--bg-light);
  color: var(--text-secondary-light);
}

.light-surface h2,
.light-surface h3,
.light-surface h4 {
  color: var(--text-primary-light);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
