/* VALIDATION-002 static sample — local CSS only; no external resources */

:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #444444;
  --border: #c8c8c4;
  --accent: #0b4f6c;
  --label-hist: #5c4d00;
  --label-synth: #4a3060;
  --focus: #005fcc;
  --max-width: 48rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1e1e1e;
    --text: #f0f0ec;
    --muted: #b8b8b0;
    --border: #3a3a38;
    --accent: #7ec8e3;
    --label-hist: #e8d86a;
    --label-synth: #c9a8e0;
    --focus: #6cb6ff;
  }
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell,
    "Noto Sans", sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--focus);
  color: #fff;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.site-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.site-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.25;
  color: var(--accent);
}

.lead,
.intro-note {
  margin: 0;
  color: var(--muted);
}

.intro-note {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem 1.15rem;
}

.card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border);
}

.label--historical {
  color: var(--label-hist);
  background: color-mix(in srgb, var(--label-hist) 12%, var(--surface));
}

.label--synthetic {
  color: var(--label-synth);
  background: color-mix(in srgb, var(--label-synth) 12%, var(--surface));
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.card-meta {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.card-meta a {
  color: var(--accent);
  word-break: break-word;
}

.card-meta a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.deadline {
  font-weight: 600;
}

.card section {
  margin-top: 0.85rem;
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.card p,
.card ul {
  margin: 0;
  font-size: 0.92rem;
}

.card ul {
  padding-left: 1.2rem;
}

.interpretation {
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.short-copy {
  margin-top: 0.85rem;
  font-style: italic;
  color: var(--muted);
}

.rubric-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}

.rubric-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.rubric-section h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}

.rubric-section p,
.rubric-section ol,
.rubric-section ul {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
}

.rubric-note {
  padding: 0.75rem;
  border: 1px dashed var(--border);
  border-radius: 0.35rem;
  background: var(--surface);
  font-size: 0.9rem;
}

.hypothesis {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: var(--surface);
}

.hypothesis strong {
  display: block;
  margin-bottom: 0.35rem;
}

.site-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .page-wrap {
    max-width: none;
    padding: 0;
  }

  .card,
  .hypothesis,
  .rubric-note {
    break-inside: avoid;
    border-color: #999;
    box-shadow: none;
  }

  .skip-link {
    display: none;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    word-break: break-all;
  }
}

@media (min-width: 40rem) {
  .page-wrap {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
