:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0a0a0a;
  --line: rgba(255,255,255,.12);
  --line-soft: rgba(255,255,255,.07);
  --text: #f5f5f5;
  --muted: #a7a7a7;
  --dim: #727272;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Inter Tight", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #f5f5f5; outline-offset: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 14px; background: #fff; color: #000; }
.skip-link:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  min-height: 58px;
  padding: 7px clamp(16px, 2vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-soft);
  background: #050505;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: 142px; height: auto; max-height: 42px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); color: #a4a4a4; font-size: 13px; }
.main-nav > a:not(.nav-github):hover, .footer-github:hover, .all-repos-link:hover { color: #fff; }
.nav-github { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; color: #d4d4d4; }
.nav-github:hover { border-color: rgba(255,255,255,.3); color: #fff; }

.status-section { max-width: 1480px; margin: 8px auto 0; padding: 0 16px; }
.status-panel {
  min-height: 150px;
  padding: 24px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(115deg, rgba(255,255,255,.035), rgba(255,255,255,.012) 56%, rgba(255,255,255,.018));
}
.status-icon { position: relative; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.23); border-radius: 9px; display: grid; place-items: center; }
.status-icon::before { content: ""; width: 14px; height: 14px; border: 1px solid #d8d8d8; border-radius: 50%; }
.status-icon::after { content: ""; position: absolute; width: 5px; height: 5px; right: 11px; top: 11px; border: 1px solid #d8d8d8; border-radius: 50%; background: var(--panel); }
.status-content { min-width: 0; }
.status-label, .tiny-label { margin: 0 0 10px; color: #b7b7b7; font: 10px/1.5 var(--mono); letter-spacing: .065em; }
.status-content h1 { margin: 0 0 7px; color: #f5f5f5; font-size: clamp(20px, 2vw, 24px); font-weight: 620; line-height: 1.2; letter-spacing: -.035em; }
.status-content > p:last-child { max-width: 540px; margin: 0; color: #b7b7b7; font-size: 13px; line-height: 1.65; }
.status-meta { display: flex; min-width: 180px; flex-direction: column; align-items: flex-end; gap: 10px; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.24); border-radius: 8px; color: #ededed; font: 10px/1.2 var(--mono); letter-spacing: .035em; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; display: inline-block; border: 1px solid #bfbfbf; border-radius: 1px; }
.status-panel.is-online .status-dot { background: #f5f5f5; }
.meta-caption { color: #818181; font: 9px/1.4 var(--mono); letter-spacing: .045em; }

.temporary-note { max-width: 1480px; margin: 24px auto 0; padding: 0 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 18px; }
.temporary-label { display: inline-flex; align-items: center; gap: 8px; color: #d0d0d0; font: 10px/1.5 var(--mono); letter-spacing: .055em; white-space: nowrap; }
.temporary-label > span { width: 6px; height: 6px; display: inline-block; border: 1px solid #bcbcbc; }
.temporary-note p { margin: 0; color: #858585; font-size: 12px; line-height: 1.6; }

.projects-section { max-width: 1480px; margin: 48px auto 0; padding: 0 18px; }
.projects-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.projects-heading .tiny-label { margin-bottom: 8px; color: #777; }
.projects-heading h2 { margin: 0; font-size: 25px; line-height: 1.1; letter-spacing: -.04em; font-weight: 600; }
.projects-heading h2 span { color: #888; }
.all-repos-link { display: inline-flex; align-items: center; gap: 8px; color: #adadad; font-size: 12px; white-space: nowrap; }
.project-count { margin: 13px 0 0; color: #777; font: 9px/1.5 var(--mono); letter-spacing: .06em; }
.project-list { margin-top: 5px; }
.project-row { min-height: 74px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--line-soft); }
.project-number { color: #666; font: 10px var(--mono); }
.project-main { min-width: 0; }
.project-title { display: inline-block; font-size: 14px; font-weight: 550; color: #eee; }
.project-title:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.project-description { margin: 5px 0 0; max-width: 740px; overflow: hidden; color: #858585; font-size: 12px; line-height: 1.5; text-overflow: ellipsis; }
.project-language { color: #777; font: 10px var(--mono); white-space: nowrap; }
.project-placeholder, .project-empty { margin: 0; padding: 22px 0; color: #858585; font-size: 12px; line-height: 1.7; }
.projects-footnote { margin: 13px 0 0; color: #646464; font: 9px/1.5 var(--mono); letter-spacing: .035em; }

.site-footer { max-width: 1480px; min-height: 66px; margin: 50px auto 0; padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line-soft); color: #666; font: 9px/1.5 var(--mono); letter-spacing: .035em; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: #aaa; font-size: 9px; }
.footer-brand img { display: block; object-fit: contain; }
.footer-temporary { text-align: center; }
.footer-github { color: #9b9b9b; }

@media (min-width: 1520px) {
  .site-header { padding-left: max(28px, calc((100vw - 1424px) / 2)); padding-right: max(28px, calc((100vw - 1424px) / 2)); }
}
@media (max-width: 640px) {
  .site-header { min-height: 56px; padding: 8px 14px; gap: 12px; }
  .brand img { width: 120px; max-height: 36px; }
  .main-nav { gap: 13px; font-size: 11px; }
  .main-nav > a:first-child { display: none; }
  .nav-github { padding: 8px 9px; }
  .status-section { margin-top: 10px; padding: 0 10px; }
  .status-panel { grid-template-columns: 36px minmax(0,1fr); gap: 13px; padding: 17px 14px; min-height: 0; }
  .status-icon { width: 36px; height: 36px; }
  .status-icon::after { right: 7px; top: 7px; }
  .status-content h1 { font-size: 19px; }
  .status-content > p:last-child { font-size: 12px; }
  .status-meta { grid-column: 2; min-width: 0; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  .status-chip { padding: 7px 9px; }
  .meta-caption { font-size: 8px; }
  .temporary-note { grid-template-columns: 1fr; gap: 8px; margin-top: 21px; padding: 0 14px; }
  .projects-section { margin-top: 38px; padding: 0 14px; }
  .projects-heading { align-items: center; gap: 12px; }
  .projects-heading h2 { font-size: 23px; }
  .all-repos-link { font-size: 11px; }
  .project-row { grid-template-columns: 25px minmax(0,1fr); gap: 12px; padding: 12px 0; }
  .project-language { grid-column: 2; margin-top: -5px; }
  .site-footer { margin-top: 36px; padding: 15px 14px; flex-wrap: wrap; }
  .footer-temporary { order: 3; width: 100%; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Minimal branded 404 page */
.error-page { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.error-card { width: min(100%, 620px); padding-block: 48px; }
.error-logo { display: block; width: 58px; height: 58px; object-fit: contain; margin-bottom: 30px; }
.error-eyebrow { margin: 0 0 18px; color: #777; font: 10px/1.5 var(--mono); letter-spacing: .06em; }
.error-card h1 { margin: 0 0 16px; font-size: clamp(3rem, 8vw, 5rem); line-height: 1; letter-spacing: -.05em; font-weight: 600; }
.error-card h1 span { color: #777; }
.error-card > p:not(.eyebrow) { margin: 0 0 24px; color: #888; line-height: 1.65; }
.error-card .button { display: inline-flex; gap: 12px; align-items: center; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; color: #eee; font-size: 12px; }
.error-card .button:hover { border-color: rgba(255,255,255,.35); }
