:root {
  color-scheme: light;
  --bg: #0b0d12;
  --panel: #131722;
  --panel-2: #1a1f2e;
  --ink: #e6e8ee;
  --muted: #94a0b3;
  --line: #232a3b;
  --accent: #76b900;          /* NVIDIA green */
  --accent-soft: #a4dc4c;
  --warn: #f59e0b;
  --link: #60a5fa;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* layout */
.shell { max-width: 1100px; margin: 0 auto; padding: 32px 20px 80px; }
header.site {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 28px; gap: 16px;
}
header.site h1 { font-size: 24px; margin: 0; font-weight: 700; }
header.site .sub { color: var(--muted); font-size: 13px; }
header.site nav a { margin-left: 14px; font-size: 13px; }

.lede {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 20px 22px; margin-bottom: 24px;
}
.lede h2 { margin: 0 0 8px; font-size: 16px; color: var(--accent-soft); }
.lede p { margin: 0; color: var(--muted); font-size: 14px; }

/* card grid */
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; transition: border-color .15s, transform .15s;
  color: inherit;
}
.card:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.card .num {
  font-size: 11px; color: var(--accent); font-weight: 700;
  letter-spacing: .08em; margin-bottom: 4px;
}
.card .title { font-size: 16px; font-weight: 650; margin-bottom: 6px; }
.card .desc { font-size: 13px; color: var(--muted); margin: 0 0 10px; flex-grow: 1; }
.card .tag {
  display: inline-block; font-size: 11px; padding: 2px 8px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
}
.card .tag.ok { color: var(--accent-soft); border-color: var(--accent); }
.card .tag.skip { color: var(--warn); border-color: #5a4310; }

/* topic page */
article.topic h1 { font-size: 26px; margin: 0 0 4px; }
article.topic .meta { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
article.topic h2 { font-size: 18px; margin: 28px 0 8px; color: var(--accent-soft); }
article.topic h3 { font-size: 15px; margin: 18px 0 6px; }
article.topic p { font-size: 14.5px; }
article.topic ul { padding-left: 22px; }
article.topic li { margin: 4px 0; font-size: 14.5px; }

.figure {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; margin: 16px 0;
}
.figure img { width: 100%; height: auto; display: block; border-radius: 6px; }
.figure .cap { color: var(--muted); font-size: 12px; margin-top: 8px; text-align: center; }

.figure-row {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

pre, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
}
pre {
  background: #0a0d14; border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px; overflow-x: auto; line-height: 1.5;
}
code { background: rgba(118,185,0,.10); color: var(--accent-soft); padding: 1px 5px; border-radius: 4px; }
pre code { background: transparent; color: inherit; padding: 0; }

.dl {
  display: inline-block; margin-top: 8px; padding: 8px 14px;
  background: var(--accent); color: #0b0d12; border-radius: 6px;
  font-weight: 650; font-size: 13px;
}
.dl:hover { background: var(--accent-soft); text-decoration: none; }

.notice {
  background: #2a1d05; border: 1px solid #5a4310; color: #fbd38d;
  padding: 10px 14px; border-radius: 8px; font-size: 13px; margin: 14px 0;
}

footer.site {
  margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px; display: flex; justify-content: space-between;
}
