:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --text: #1c1c1a;
  --muted: #6b6b66;
  --border: #e4e4df;
  --border-hover: #c9c9c2;
  --accent: #2f5d50;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 16px rgb(0 0 0 / 0.04);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --card: #1d1d1b;
    --text: #ededea;
    --muted: #9b9b95;
    --border: #2d2d2a;
    --border-hover: #46463f;
    --accent: #8cc4b2;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 16px 32px;
}
header { margin-bottom: 32px; }
h1 { margin: 0; font-size: 1.5rem; font-weight: 650; letter-spacing: -0.01em; }
.sub { margin: 4px 0 0; color: var(--muted); }
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card h2 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; flex: 1; }
.card code {
  margin-top: 8px;
  color: var(--accent);
  font: 500 .85rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.lock {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.status { color: var(--muted); }
footer {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 16px 32px;
  color: var(--muted);
  font-size: .85rem;
}
.legend { display: inline-flex; align-items: center; gap: 6px; }
.notfound a { color: var(--accent); }
@media (max-width: 560px) {
  main { padding-top: 32px; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}
