@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Oxanium';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/oxanium-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Oxanium';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/oxanium-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --carbon: #0a0a0a;
  --graphite: #404040;
  --iron: #52525b;
  --slate: #6b7280;
  --mist: #f5f5f5;
  --white: #ffffff;
  --cream: #fafaf9;
  --border: #e8e8e8;
  --atomdrift-blue: #3b82f6;
  --atomdrift-blue-dim: rgba(59, 130, 246, 0.1);
  --toxic: #d0ff00;
  --toxic-muted: #9abe25;
  --toxic-dark: #4a6b0f;
  --toxic-dim: rgba(208, 255, 0, 0.14);
}

html { font-size: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--carbon);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

a { color: var(--atomdrift-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--atomdrift-blue); outline-offset: 2px; border-radius: 2px; }
code, .mono { font-family: 'SF Mono', Consolas, monospace; font-size: 0.92em; }
:not(pre) > code { background: var(--mist); padding: 1px 5px; border-radius: 3px; }

/* ========== HEADER ========== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0 14px;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-block a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.logo-block a:hover { text-decoration: none; }

.atom-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: 'Oxanium', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--carbon);
  line-height: 1;
}

.logo-accent { color: var(--toxic-muted); }

.logo-tagline {
  font-size: 14px;
  color: var(--iron);
  font-weight: 400;
  margin-top: 3px;
  letter-spacing: 0.2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}

.project-header .badge {
  margin-left: 0;
}

.proj-logo {
  display: block;
  height: 64px;
  width: auto;
  margin: 0;
}

.header-links {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.header-links a {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--graphite);
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s;
}

.header-links a:hover {
  border-color: var(--atomdrift-blue);
}

.header-links a.hl {
  background: var(--carbon);
  color: var(--white);
  border-color: var(--carbon);
}

.header-links a.hl:hover { background: var(--graphite); }

/* ========== TOXIC STRIPE ========== */
.toxic-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--toxic) 0%, var(--toxic-muted) 50%, transparent 100%);
}

/* ========== NAV ========== */
.nav {
  background: var(--mist);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
}

.nav a {
  display: block;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--graphite);
  border-right: 1px solid var(--border);
  font-weight: 400;
  transition: background 0.2s;
}

.nav a:hover { text-decoration: none; }

.nav a:first-child { border-left: 1px solid var(--border); }
.nav a:hover { background: var(--border); }

.nav a.active {
  background: var(--cream);
  border-bottom: 2px solid var(--atomdrift-blue);
  margin-bottom: -1px;
  font-weight: 500;
}

/* ========== MAIN LAYOUT ========== */
.main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
}

.main-full {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}

/* ========== CONTENT ========== */
.content h2 {
  font-family: 'Oxanium', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--carbon);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 14px;
  margin-top: 32px;
  letter-spacing: -0.3px;
}

.content h2:first-child { margin-top: 0; }
.content p {
  margin-bottom: 12px;
  color: #1a1a1a;
  line-height: 1.65;
  max-width: 65ch;
}

.content ul,
.content ol {
  margin-left: 1.5rem;
  margin-bottom: 14px;
  color: #1a1a1a;
  line-height: 1.65;
  max-width: 65ch;
}

.content li {
  margin-bottom: 4px;
}

/* ========== RSS ICON ========== */
.rss-link {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
}

.rss-link:hover { color: #f97316; text-decoration: none; }

.rss-icon {
  width: 14px;
  height: 14px;
  vertical-align: -1px;
}

/* ========== NEWS LIST ========== */
.news-list { list-style: none; }

.news-list li {
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--border);
  margin-bottom: 2px;
  transition: border-color 0.2s;
}

.news-list li:hover {
  border-left-color: var(--toxic-muted);
}

.news-list .date {
  display: inline;
  color: var(--iron);
  font-size: 13px;
  font-family: 'SF Mono', Consolas, monospace;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.news-list .headline {
  font-size: 16px;
  line-height: 1.55;
  color: var(--carbon);
  display: block;
  margin-top: 2px;
}

.news-list .headline a {
  font-weight: 500;
  text-decoration: none;
}

.news-list .headline a:hover {
  text-decoration: underline;
}

.news-summary {
  display: block;
  font-size: 15px;
  color: var(--graphite);
  margin-top: 2px;
  line-height: 1.55;
}

/* ========== PROJECT LIST ========== */
.proj-list { list-style: none; }

.proj-list li {
  padding: 12px 14px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.proj-list li:hover {
  box-shadow: -3px 0 0 0 var(--toxic), 0 1px 3px rgba(0,0,0,0.06);
}

.proj-name {
  font-family: 'Oxanium', sans-serif;
  font-weight: 700;
  font-size: 17px;
}

.proj-desc {
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.55;
  margin-top: 4px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 8px;
  letter-spacing: 0.3px;
}

.badge-stable { background: var(--toxic-dim); color: var(--toxic-dark); border: 1px solid rgba(208,255,0,0.2); }
.badge-beta { background: #fef9c3; color: #854d0e; }
.badge-alpha { background: var(--atomdrift-blue-dim); color: #1d4ed8; }
.badge-planned { background: var(--mist); color: var(--iron); }

.proj-links {
  margin-top: 6px;
  display: flex;
  gap: 14px;
  font-size: 14px;
}

.proj-links a { text-decoration: none; }
.proj-links a:hover { text-decoration: underline; }

/* ========== FEATURE LIST ========== */
.feature-list {
  margin-left: 22px;
  margin-bottom: 14px;
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.6;
}

.feature-list li {
  margin-bottom: 6px;
}

/* ========== INSTALL BLOCK ========== */
.install-block {
  background: var(--carbon);
  color: #f4f4f5;
  padding: 14px 18px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 14px;
  line-height: 1.55;
  margin: 8px 0 12px;
}

/* ========== LAB CALLOUT (sidebar) ========== */
.lab-callout {
  background: var(--carbon);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.lab-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--toxic);
}

.lab-callout strong {
  font-family: 'Oxanium', sans-serif;
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--toxic);
}

.lab-callout p {
  font-size: 14px;
  color: #a1a1aa;
  margin-bottom: 10px;
}

.lab-callout a {
  display: inline-block;
  color: var(--carbon);
  background: var(--toxic);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.lab-callout a:hover {
  background: var(--toxic-muted);
  color: var(--white);
}

/* ========== SIDEBAR ========== */
.sidebar h3 {
  font-family: 'Oxanium', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--iron);
  border-bottom: 2px solid var(--atomdrift-blue);
  padding-bottom: 5px;
  margin-bottom: 10px;
  margin-top: 20px;
}

.sidebar h3:first-child { margin-top: 0; }

.sidebar ul {
  list-style: none;
  font-size: 15px;
  line-height: 1.55;
}

.sidebar li { padding: 5px 0; }
.sidebar li::before { content: "\203A\00a0"; color: var(--iron); }
.sidebar a { text-decoration: none; }
.sidebar a:hover { text-decoration: underline; }

.stats {
  font-size: 15px;
  color: var(--graphite);
  line-height: 1.55;
}

.stats dt {
  font-weight: 500;
  float: left;
  clear: left;
  width: 80px;
}

.stats dd {
  margin-left: 84px;
  padding: 2px 0;
}

/* ========== BLOG / NEWS PAGE ========== */
.post-list { list-style: none; }

.post-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--mist);
}

.post-item .post-date {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 13px;
  color: var(--iron);
  display: block;
  margin-bottom: 4px;
}

.post-item .post-title {
  font-family: 'Oxanium', sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.post-item .post-summary {
  color: var(--iron);
  font-size: 14px;
  margin-top: 4px;
}

/* Single post */
.post-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  font-family: 'Oxanium', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}

.post-header .post-meta {
  font-size: 13px;
  color: var(--iron);
  font-family: 'SF Mono', Consolas, monospace;
}

.post-body p {
  margin-bottom: 14px;
  color: #1a1a1a;
  line-height: 1.7;
  max-width: 65ch;
}

.post-body h2 {
  font-family: 'Oxanium', sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
}

.post-body ul,
.post-body ol {
  margin-left: 1.5rem;
  margin-bottom: 14px;
  color: #1a1a1a;
  line-height: 1.7;
  max-width: 65ch;
}

.post-body li {
  margin-bottom: 4px;
}

.post-body code {
  background: var(--mist);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

.post-body pre {
  background: var(--carbon);
  color: #f4f4f5;
  padding: 18px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.55;
}

.post-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--carbon);
  color: var(--slate);
  font-size: 14px;
  padding: 18px 0;
  margin-top: 32px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--toxic);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
}

.site-footer a { color: #93c5fd; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ========== RESPONSIVE ========== */
@media (max-width: 700px) {
  .main {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .lab-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
