:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1a1d23;
  --muted: #4a5160;
  --accent: #1f4fd1;
  --border: #d9dde5;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --surface: #1b1e25;
    --text: #eceef2;
    --muted: #b4bac6;
    --accent: #8fb0ff;
    --border: #2f3440;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.page {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.page-header {
  padding: 1rem 0 1.5rem;
  border-bottom: 3px solid var(--accent);
  margin-bottom: 1.5rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.sections {
  display: grid;
  gap: 1rem;
}

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--accent);
}

.section p {
  margin: 0 0 0.75rem;
}

.items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.items li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}

.items li:first-child {
  border-top: 0;
  padding-top: 0;
}

.item-label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}

.item-value {
  font-weight: 600;
}

.item-placeholder {
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
}

.group + .group {
  margin-top: 1.25rem;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.section-source {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

.section .item-placeholder {
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
}

.group + .group {
  margin-top: 1.25rem;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.section-source {
  margin-bottom: 0;
}

.section-source a {
  color: inherit;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

.page-footer {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 48rem) {
  .page {
    padding-top: 3rem;
  }

  .section {
    padding: 1.5rem 1.75rem 1.25rem;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  .skip-link {
    display: none;
  }

  .section {
    border-color: #999;
    break-inside: avoid;
  }
}
