/* uig.me. Tokens match lab.uig.me and honeypot.uig.me. */
:root {
  --bg: #fbfbfa; --surface: #ffffff; --text: #1f2328; --muted: #5d646d; --border: #e3e4e6;
  --accent: #0b6bcb; --chip: #eef1f4; --code-bg: #f3f4f6; --radius: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111418; --surface: #181c21; --text: #e4e7eb; --muted: #9aa3ad; --border: #2b3139;
    --accent: #5aa9f5; --chip: #232931; --code-bg: #1f242b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111418; --surface: #181c21; --text: #e4e7eb; --muted: #9aa3ad; --border: #2b3139;
  --accent: #5aa9f5; --chip: #232931; --code-bg: #1f242b; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--code-bg); padding: 1px 5px; border-radius: 4px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { font-weight: 700; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--muted); }
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 24px 0; color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--muted); }
.site-footer .credit { margin: 8px 0 0; }

main.wrap { padding-top: 48px; }
h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; margin: 48px 0 16px; }
h3 { font-size: 1.1rem; line-height: 1.35; margin: 0 0 8px; }
h3 a { color: var(--text); }

.hero { max-width: 720px; }
.role { font-size: 1.15rem; color: var(--muted); margin: 0 0 20px; }
.facts { margin: 0 0 16px; padding-left: 1.2em; }
.facts li { margin: 4px 0; }
.certs { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.certs li { background: var(--chip); border: 1px solid var(--border); border-radius: 999px; padding: 2px 12px; font-size: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.button {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 6px;
  background: var(--accent); color: #fff; font-weight: 600; border: 1px solid var(--accent);
}
.button:hover { text-decoration: none; opacity: 0.9; }
.button.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .button:not(.secondary) { color: #0d1117; } }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; min-width: 0; display: flex; flex-direction: column;
}
.card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.card .kicker { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.nums { display: flex; gap: 24px; margin: 4px 0 12px; }
.nums[hidden] { display: none; }
.nums div { display: flex; flex-direction: column; }
.num { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.3; }
.label { color: var(--muted); font-size: 13px; }
.card .top-ttp { font-size: 14px; }
.card .more { margin-top: auto; margin-bottom: 0; font-size: 14px; }

.contact p { color: var(--muted); }

@media (max-width: 800px) {
  .projects { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  main.wrap { padding-top: 32px; }
  h1 { font-size: 1.9rem; }
  .site-header nav { gap: 16px; }
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 2px; }
}
