:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1b1f24;
  --muted: #5a6472;
  --accent: #1f6feb;
  --border: #e2e6eb;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121517;
    --surface: #1b1f23;
    --text: #e7eaee;
    --muted: #98a2ad;
    --accent: #71b4ff;
    --border: #2c333a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 1.25rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
}

.site-header {
  padding-top: 3rem;
}

.brand {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

main {
  flex: 1 0 auto;
}

.intro {
  margin: 0 0 2rem;
  color: var(--muted);
}

.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem 1.5rem;
}

.project-name {
  margin: 0;
  font-size: 1.25rem;
}

.project-note {
  margin: 0.35rem 0 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.doc-list li {
  display: grid;
  gap: 0.2rem;
}

.doc-list a {
  width: fit-content;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.doc-list a:hover {
  text-decoration: underline;
}

.doc-description {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.site-footer {
  padding: 1.25rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.not-found {
  padding-top: 3rem;
}

.not-found h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

@media (max-width: 30rem) {
  .project {
    padding: 1.15rem 1.15rem 1.25rem;
  }
}
