* ::-webkit-scrollbar { width: 8px; }

[hidden] { display: none !important; }

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body-m);
  line-height: 1.65;
  color: var(--color-text-body);
  background-color: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--color-text-primary);
  line-height: 1.1;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p {
  max-width: 65ch;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-blue);
  color: var(--color-surface);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-body-s);
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-md);
}

.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-body-s);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
}

.section-heading {
  font-size: var(--text-display-l);
  margin-top: var(--space-sm);
}

.section-subtitle {
  font-size: var(--text-body-l);
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}

.section-placeholder {
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  font-size: var(--text-body-s);
  font-family: var(--font-mono);
}
