:root {
  --bg: #0b0e14;
  --surface: #10141d;
  --text: #e6e9ef;
  --text-muted: #8b93a7;
  --accent: #5fb3a3;
  --border: #232838;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; font-size: 17px; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

header.site { border-bottom: 1px solid var(--border); }
.site nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; flex-wrap: wrap; gap: 12px; }
.site nav .name { font-weight: 600; color: var(--text); font-size: 16px; }
.site nav .name:hover { text-decoration: none; }
.site nav .links { display: flex; gap: 24px; font-size: 15px; }
.site nav .links a { color: var(--text-muted); }
.site nav .links a.current, .site nav .links a:hover { color: var(--text); }

.hero { padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.hero h1 { font-size: 34px; line-height: 1.25; margin: 0 0 8px; font-weight: 600; }
.hero .role { color: var(--accent); font-size: 17px; margin: 0 0 20px; }
.hero p.intro { color: var(--text-muted); max-width: 60ch; margin: 0 0 24px; }
.hero .links a { margin-right: 20px; font-size: 15px; }

section.block { padding: 48px 0; border-bottom: 1px solid var(--border); }
section.block:last-of-type { border-bottom: none; }
section.block h2 { font-size: 22px; font-weight: 600; margin: 0 0 24px; }

.cert { padding: 18px 0; border-top: 1px solid var(--border); }
.cert:first-of-type { border-top: none; }
.cert .cert-title { font-weight: 600; font-size: 16px; }
.cert .cert-issuer { color: var(--text-muted); font-size: 14px; margin-top: 2px; }
.cert .cert-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.cert .cert-meta a { color: var(--text-muted); }
.cert .cert-meta a:hover { color: var(--accent); }

.project { padding: 20px 0; border-top: 1px solid var(--border); }
.project:first-of-type { border-top: none; }
.project h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.project .tools { font-family: var(--font-mono); font- }
.empty-state { color: var(--text-muted); font-size: 15px; }

footer.site { padding: 40px 0 64px; color: var(--text-muted); font-size: 14px; }

.tool-category { padding: 16px 0; border-top: 1px solid var(--border); }
.tool-category:first-of-type { border-top: none; }
.tool-category h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--text); }
.tool-list { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); margin: 0; }

.group-heading { font-size: 14px; font-weight: 600; color: var(--accent); margin: 40px 0 4px; }

/* Case study pages */
.wrap-wide { max-width: 880px; margin: 0 auto; padding: 0 24px; }

.breadcrumb { font-size: 14px; color: var(--text-muted); margin: 28px 0 0; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

.case-header { padding: 20px 0 40px; border-bottom: 1px solid var(--border); }
.case-header h1 { font-size: 28px; margin: 12px 0 8px; font-weight: 600; line-height: 1.3; }
.case-header .case-org { color: var(--accent); font-size: 15px; margin: 0 0 16px; }
.case-header .case-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

.case-section { padding: 40px 0; border-bottom: 1px solid var(--border); }
.case-section:last-of-type { border-bottom: none; }
.case-section h2 { font-size: 20px; font-weight: 600; margin: 0 0 16px; }
.case-section p { color: var(--text-muted); margin: 0 0 16px; }

.case-figure { margin: 24px 0; }
.case-figure img { width: 100%; height: auto; display: block; border-radius: 6px; border: 1px solid var(--border); }
.case-figure figcaption { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

ul.role-list { list-style: none; padding: 0; margin: 16px 0; }
ul.role-list li { padding-left: 22px; position: relative; margin-bottom: 10px; color: var(--text-muted); }
ul.role-list li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); }

table.sla-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
table.sla-table th, table.sla-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
table.sla-table th { color: var(--text); font-weight: 600; font-family: var(--font-mono); font-size: 12px; }

.scope-note { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 16px 18px; font-size: 14px; color: var(--text-muted); margin: 16px 0; }
