:root {
  --ink: #222;
  --muted: #5f6368;
  --line: #dedede;
  --soft: #f7f7f7;
  --paper: #fff;
  --link: #3273dc;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans", Arial, sans-serif; font-size: 16px; line-height: 1.65; }
a { color: var(--link); }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(50, 115, 220, 0.35); outline-offset: 3px; }
.container { width: min(var(--max-width), calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 850px; }
.has-text-centered { text-align: center; }

.hero { padding: 92px 20px 58px; }
.hero-content { max-width: 1000px; text-align: center; }
.project-label { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: "Noto Serif", Georgia, serif; font-size: clamp(48px, 7vw, 76px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.08; }
.subtitle { max-width: 900px; margin: 18px auto 0; font-size: clamp(20px, 3vw, 28px); font-weight: 400; line-height: 1.4; }
.project-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.project-button { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 9px 17px; border-radius: 999px; color: #fff; background: #363636; font-size: 14px; font-weight: 600; text-decoration: none; }
.project-button:hover { background: #111; }
.project-button svg { width: 17px; height: 17px; }
.release-line { margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.release-line span { padding: 0 5px; color: #aaa; }

.section { padding: 70px 0; }
.section-light { background: var(--soft); }
.section-title { margin: 0 0 24px; font-size: 30px; font-weight: 700; line-height: 1.25; text-align: center; }
.section-lead { max-width: 820px; margin: -10px auto 34px; color: var(--muted); text-align: center; }
.prose { text-align: justify; }
.prose p { margin: 0 0 18px; }
.scope-box, .evidence-note { margin: 26px 0 0; padding: 16px 18px; border-left: 3px solid #363636; background: var(--soft); color: #444; font-size: 14px; }

.stats { display: grid; margin: 38px 0 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); grid-template-columns: repeat(5, 1fr); }
.stats div { display: flex; min-height: 108px; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid var(--line); }
.stats div:last-child { border-right: 1px solid var(--line); }
.stats strong { font-size: 30px; line-height: 1.2; }
.stats span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.overview-figure { max-width: 920px; margin: 0 auto; }
.overview-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.overview-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; }

.check-grid { display: grid; margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); grid-template-columns: repeat(4, 1fr); }
.check-grid article { min-height: 235px; padding: 24px; border-left: 1px solid var(--line); }
.check-grid article:last-child { border-right: 1px solid var(--line); }
.check-grid article > span { color: #888; font-size: 12px; font-weight: 700; }
.check-grid h3 { margin: 44px 0 10px; font-size: 18px; line-height: 1.35; }
.check-grid p { margin: 0; color: var(--muted); font-size: 13px; }

.task-controls { display: grid; max-width: 1000px; margin: 0 auto; grid-template-columns: minmax(260px, 1fr) 230px auto; gap: 10px; }
.search-control, .select-control { position: relative; display: flex; min-height: 44px; align-items: center; border: 1px solid #cfcfcf; border-radius: 5px; background: #fff; }
.search-control svg { position: absolute; left: 13px; width: 17px; height: 17px; color: #777; }
.search-control input, .select-control select { width: 100%; height: 42px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-control input { padding: 0 12px 0 40px; }
.select-control select { padding: 0 12px; }
.scale-control { display: inline-flex; padding: 3px; border: 1px solid #cfcfcf; border-radius: 5px; background: #fff; }
.scale-control button { padding: 7px 10px; border: 0; border-radius: 4px; color: #555; background: transparent; font-size: 12px; cursor: pointer; }
.scale-control button.is-active { color: #fff; background: #363636; }
.result-count { margin: 18px 0 8px; color: var(--muted); font-size: 12px; text-align: right; }
.table-wrap { overflow-x: auto; border-top: 2px solid #363636; border-bottom: 1px solid #bbb; background: #fff; }
table { width: 100%; border-collapse: collapse; }
.task-table { min-width: 980px; }
th { padding: 12px 10px; color: #555; font-size: 11px; font-weight: 700; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 16px 10px; border-top: 1px solid #e5e5e5; color: #555; font-size: 12px; vertical-align: top; }
.task-table th:first-child, .task-table td:first-child { width: 39%; }
.task-title { display: block; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.45; }
.task-target { display: block; margin-top: 4px; color: var(--muted); line-height: 1.5; }
.domain-label, .scale-label { display: inline-block; padding: 2px 7px; border: 1px solid #d7d7d7; border-radius: 999px; color: #444; background: #fafafa; font-size: 10px; white-space: nowrap; }
.metric-reference { display: block; margin-top: 3px; color: #777; }
.repository-link { display: inline-grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: #363636; }
.repository-link svg { width: 14px; height: 14px; }
.empty-state { padding: 40px; color: var(--muted); text-align: center; }
.show-all { display: block; margin: 18px auto 0; padding: 8px 16px; border: 1px solid #aaa; border-radius: 999px; color: #333; background: #fff; cursor: pointer; }

.command { margin: 30px 0 0; padding: 20px 22px; overflow-x: auto; border-radius: 6px; color: #f5f5f5; background: #2b2b2b; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.75; }
.email-link { display: inline-block; margin-top: 4px; font-weight: 600; }
.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); background: var(--soft); font-size: 13px; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-content > span { color: var(--ink); font-weight: 700; }
.footer-content div { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats div:nth-child(4), .stats div:nth-child(5) { border-top: 1px solid var(--line); }
  .check-grid { grid-template-columns: repeat(2, 1fr); }
  .check-grid article:nth-child(3), .check-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .task-controls { grid-template-columns: 1fr 220px; }
  .scale-control { width: fit-content; grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(var(--max-width), calc(100% - 28px)); }
  .hero { padding: 68px 14px 42px; }
  .subtitle { font-size: 19px; }
  .project-links { gap: 8px; }
  .project-button { min-height: 40px; padding: 8px 13px; font-size: 13px; }
  .release-line { line-height: 1.9; }
  .section { padding: 52px 0; }
  .section-title { font-size: 25px; }
  .prose { text-align: left; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div, .stats div:nth-child(4), .stats div:nth-child(5) { min-height: 92px; border-top: 1px solid var(--line); }
  .stats div:first-child, .stats div:nth-child(2) { border-top: 0; }
  .stats div:nth-child(2n) { border-right: 1px solid var(--line); }
  .check-grid { grid-template-columns: 1fr; }
  .check-grid article, .check-grid article:nth-child(3), .check-grid article:nth-child(4) { min-height: auto; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
  .check-grid article:first-child { border-top: 0; }
  .check-grid h3 { margin-top: 18px; }
  .task-controls { grid-template-columns: 1fr; }
  .scale-control { width: 100%; grid-column: auto; }
  .scale-control button { flex: 1; padding: 7px 4px; }
  .result-count { text-align: left; }
  .footer-content { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
