:root {
  color-scheme: light dark;
  --bg: #f7f8fb;
  --text: #111827;
  --muted: #5b6472;
  --line: #d9dee8;
  --accent: #126b63;
  --panel: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101418;
    --text: #f4f6f8;
    --muted: #b2bdca;
    --line: #2a3542;
    --panel: #161d24;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 18px min(6vw, 72px);
  border-bottom: 1px solid var(--line);
}
a { color: var(--accent); text-decoration: none; }
nav { display: flex; gap: 16px; flex-wrap: wrap; }
main { max-width: 980px; margin: 0 auto; padding: 48px 20px; }
.brand { color: var(--text); font-weight: 800; }
.brand span { color: var(--accent); }
.hero h1 { font-size: clamp(2rem, 6vw, 4.8rem); line-height: 1; margin: 0 0 18px; }
.hero p { max-width: 760px; color: var(--muted); font-size: 1.18rem; }
.lab-hero h1 { font-size: clamp(2.4rem, 7vw, 5.8rem); }
.actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.actions a {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px 14px;
  border-radius: 6px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 40px 0; }
.grid article, .list article {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  padding: 18px;
}
.grid strong { display: block; font-size: 1.6rem; }
.grid span, .list p, .section-head p { color: var(--muted); }
table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.lead { color: var(--muted); font-size: 1.15rem; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.detail dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 18px; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; overflow-wrap: anywhere; }
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-top: 42px; }
.section-head h2 { margin-bottom: 0; }
.project-list article { min-height: 190px; }
.doc-list { line-height: 1.9; }
pre {
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  padding: 16px;
}
form { display: grid; gap: 14px; max-width: 680px; }
label { display: grid; gap: 6px; color: var(--muted); }
input, textarea, button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
}
button { cursor: pointer; color: white; background: var(--accent); border-color: var(--accent); }
.inline-form { margin-top: 18px; max-width: 180px; }
@media (max-width: 640px) {
  header { align-items: flex-start; flex-direction: column; }
  .detail dl { grid-template-columns: 1fr; }
}
