:root {
  --ink: #0c1734;
  --night: #0b1430;
  --night-soft: #121f45;
  --panel: #172654;
  --blue: #536dfe;
  --blue-dark: #3550bc;
  --violet: #7a5cff;
  --mint: #7ce8cf;
  --paper: #f5f7fd;
  --surface: #ffffff;
  --soft: #e9eeff;
  --line: #dbe3f7;
  --muted: #566480;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: clamp(3.35rem, 7.3vw, 6.35rem);
  --font-page-title: clamp(3rem, 7vw, 5.4rem);
  --font-section-title: clamp(2.25rem, 4.5vw, 3.75rem);
  --font-lead: clamp(1.08rem, 1.8vw, 1.3rem);
  --content-wide: 1180px;
  --content-reading: 960px;
  --shadow-soft: 0 20px 60px rgba(24, 39, 88, .12);
  --shadow-lift: 0 28px 70px rgba(11, 20, 48, .18);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
a { text-underline-offset: .18em; }
.eyebrow { font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.lead { font-size: var(--font-lead); }
a:focus-visible, button:focus-visible { outline: 3px solid #91a8ff; outline-offset: 4px; }

.site-header { position: relative; z-index: 20; background: var(--night); color: #fff; }
.site-nav { width: min(100%, var(--content-wide)); min-height: 94px; margin: 0 auto; padding: 18px 26px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand { min-height: 58px; padding: 6px 14px 6px 7px; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.06); border-radius: 16px; background: #07102a; color: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.site-brand img { display: block; width: 46px; height: 46px; object-fit: contain; }
.site-brand-name { color: #fff; font-size: 1.32rem; font-weight: 850; letter-spacing: -.04em; }
.site-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-links a { color: #dfe6ff; font-size: .98rem; font-weight: 600; line-height: 1.4; text-decoration: none; transition: color .18s ease, transform .18s ease; }
.site-links a:hover { color: #fff; transform: translateY(-1px); }
.site-links a[aria-current="page"] { color: #fff; font-weight: 820; }
.status-link { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #59d390; box-shadow: 0 0 0 4px rgba(89,211,144,.12); }
.github-link span { color: var(--mint); }

.site-footer { background: #07102a; color: #fff; padding: 68px max(26px, calc((100vw - var(--content-wide)) / 2)); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 58px; height: 58px; }
.footer-brand strong { display: block; font-size: 1.55rem; letter-spacing: -.04em; }
.footer-brand span { display: block; margin-top: 2px; color: #aeb9d7; }
.footer-links { display: grid; grid-template-columns: repeat(2, 150px); gap: 45px; }
.footer-links div { display: grid; gap: 8px; }
.footer-links strong { margin-bottom: 4px; color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { color: #bfc9e5; text-decoration: none; }
.footer-links a:hover { color: var(--mint); }
.footer-bottom { margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.11); display: flex; justify-content: space-between; gap: 20px; color: #8f9abb; font-size: .84rem; }

@media (max-width: 780px) {
  .site-nav { min-height: auto; padding: 15px 18px 17px; align-items: flex-start; }
  .site-brand { min-height: 52px; padding-right: 11px; border-radius: 13px; }
  .site-brand img { width: 40px; height: 40px; }
  .site-brand-name { font-size: 1.12rem; }
  .site-links { justify-content: flex-end; gap: 10px 14px; padding-top: 6px; }
  .site-links a { font-size: .84rem; }
  .github-link { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 42px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
  .footer-bottom { display: grid; }
}

@media (max-width: 480px) {
  .site-brand-name { display: none; }
  .site-brand { padding-right: 6px; }
  .site-links { gap: 9px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
