:root {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-soft: #111827;
  --panel: rgba(21, 27, 35, 0.84);
  --panel-strong: #1b2430;
  --text: #e6edf3;
  --muted: #8b949e;
  --border: #30363d;
  --green: #7ee787;
  --cyan: #79c0ff;
  --purple: #d2a8ff;
  --amber: #f2cc60;
  --coral: #ff7b72;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(126, 231, 135, 0.12), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(210, 168, 255, 0.1), transparent 28rem),
    linear-gradient(135deg, rgba(121, 192, 255, 0.035) 25%, transparent 25%) 0 0 / 28px 28px,
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(230, 237, 243, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 70%);
}

a { color: inherit; text-decoration: none; }

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 0 72px;
  padding: 12px 14px;
  border: 1px solid rgba(48, 54, 61, 0.78);
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.brand, .nav { display: flex; align-items: center; }
.menu-toggle { display: none; }

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(126, 231, 135, 0.45);
  border-radius: 10px;
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  background: rgba(126, 231, 135, 0.08);
}

.nav { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 160ms ease, background 160ms ease;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--text); background: rgba(230, 237, 243, 0.08); }

.hero { margin-bottom: 40px; }
.eyebrow, .section-kicker {
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: center;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 12vw, 8.7rem);
  line-height: 0.86;
  letter-spacing: -0.09em;
}
h2 { margin-bottom: 10px; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.055em; }
h3 { margin-bottom: 10px; font-size: 1.16rem; line-height: 1.25; letter-spacing: -0.025em; }

.lede {
  max-width: 780px;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.055em;
}
.hero-copy > p:not(.lede) { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.garage-line { color: var(--text) !important; font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(230, 237, 243, 0.05);
  color: var(--text);
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); border-color: rgba(126, 231, 135, 0.7); }
.button.primary { background: linear-gradient(135deg, rgba(126, 231, 135, 0.24), rgba(121, 192, 255, 0.14)); border-color: rgba(126, 231, 135, 0.46); }
.button.ghost { color: var(--purple); }

.console-card, .panel, .card, .lab-callout, .about {
  border: 1px solid rgba(48, 54, 61, 0.88);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.console-card { overflow: hidden; border-radius: 24px; transform: rotate(1.25deg); }
.console-topbar { display: flex; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: rgba(230, 237, 243, 0.04); }
.console-topbar span { width: 11px; height: 11px; border-radius: 50%; background: var(--coral); }
.console-topbar span:nth-child(2) { background: var(--amber); }
.console-topbar span:nth-child(3) { background: var(--green); }
.console-lines { padding: 18px; font-family: "IBM Plex Mono", monospace; font-size: 0.92rem; color: var(--muted); }
.console-lines p { margin-bottom: 10px; }
.console-lines span { color: var(--cyan); }
.console-lines strong { color: var(--text); font-weight: 600; }

.section, .panel, .lab-callout, .about { margin: 28px 0; }
.panel, .lab-callout, .about {
  border-radius: 28px;
  padding: clamp(22px, 4vw, 34px);
}
.tending { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; align-items: start; }
.tending-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tending-list article {
  padding: 14px;
  border: 1px solid rgba(48, 54, 61, 0.72);
  border-radius: 18px;
  background: rgba(230, 237, 243, 0.04);
  color: var(--text);
  font-weight: 600;
}
.tending-list span { margin-right: 8px; }

.section { padding-top: 36px; }
.section-heading { max-width: 760px; margin-bottom: 18px; }
.section-heading p:not(.section-kicker), .about p, .lab-callout p { color: var(--muted); }
.section-heading.split { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: none; }
.section-heading.split > p { max-width: 420px; }

.card-grid { display: grid; gap: 16px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  min-height: 240px;
  padding: 20px;
  border-radius: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(121, 192, 255, 0.45); background: rgba(27, 36, 48, 0.92); }
.card p { color: var(--muted); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 42px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(230, 237, 243, 0.12);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
}
.seedling, .note { color: var(--amber); background: rgba(242, 204, 96, 0.08); }
.growing, .active { color: var(--green); background: rgba(126, 231, 135, 0.08); }
.prototype { color: var(--purple); background: rgba(210, 168, 255, 0.09); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags span { color: var(--cyan); font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; }

.link-list { display: grid; gap: 12px; }
.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(48, 54, 61, 0.84);
  border-radius: 18px;
  background: rgba(21, 27, 35, 0.76);
  color: var(--text);
  font-weight: 700;
}
.link-list a:hover { border-color: rgba(126, 231, 135, 0.5); }
.link-list small { color: var(--muted); font-family: "IBM Plex Mono", monospace; }

.lab-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(210, 168, 255, 0.13), rgba(21, 27, 35, 0.84) 42%, rgba(126, 231, 135, 0.1));
}
.lab-callout p { max-width: 720px; }
.about { max-width: 780px; margin-left: auto; margin-right: auto; text-align: center; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 48px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--green); font-weight: 700; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.page-hero { max-width: 820px; padding: 30px 0 54px; }
.page-hero h1 { font-size: clamp(3.4rem, 10vw, 7rem); }
.page-hero p { max-width: 680px; color: var(--muted); font-size: 1.15rem; }
.page-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: .78rem; }
.content-stack { display: grid; gap: 16px; }
.entry { display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; align-items: start; padding: 24px; border: 1px solid var(--border); border-radius: 22px; background: var(--panel); }
.entry:hover { border-color: rgba(126,231,135,.45); }
.entry time, .entry .entry-state { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: .78rem; }
.entry p { margin-bottom: 0; color: var(--muted); }
.entry-arrow { color: var(--green); font-size: 1.25rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 52px; align-items: start; }
.prose { max-width: 740px; }
.prose p, .prose li { color: #b8c0ca; }
.prose h2 { margin-top: 52px; font-size: 2rem; }
.prose blockquote { margin: 32px 0; padding: 20px 24px; border-left: 3px solid var(--green); border-radius: 0 14px 14px 0; background: rgba(126,231,135,.06); font-size: 1.15rem; }
.toc { position: sticky; top: 100px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); }
.toc strong { display: block; margin-bottom: 12px; font-family: "IBM Plex Mono", monospace; font-size: .75rem; color: var(--green); text-transform: uppercase; letter-spacing: .1em; }
.toc a { display: block; padding: 6px 0; color: var(--muted); font-size: .9rem; }
.project-row { scroll-margin-top: 110px; min-height: 250px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px; border: 1px solid var(--border); border-radius: 26px; background: var(--panel); }
.project-row + .project-row { margin-top: 18px; }
.project-visual { display: grid; place-items: center; min-height: 190px; border: 1px solid rgba(121,192,255,.18); border-radius: 20px; background: radial-gradient(circle, rgba(121,192,255,.12), transparent 60%), #0b1016; color: var(--cyan); font: 600 1.1rem "IBM Plex Mono", monospace; }
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.shelf .card { min-height: 180px; }
.notice { padding: 18px 20px; border: 1px dashed rgba(242,204,96,.5); border-radius: 18px; color: var(--amber); font-family: "IBM Plex Mono", monospace; font-size: .85rem; }
.now-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.now-grid .panel { margin: 0; }
.timeline { list-style: none; padding: 0; }
.timeline li { position: relative; padding: 0 0 24px 24px; border-left: 1px solid var(--border); color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.big-link { color: var(--green); font-weight: 700; }

@media (max-width: 860px) {
  .site-header { align-items: center; border-radius: 24px; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--text); font: 600 .8rem "IBM Plex Mono", monospace; }
  .nav { display: none; width: 100%; justify-content: flex-start; padding-top: 8px; border-top: 1px solid var(--border); }
  .nav.open { display: flex; }
  .hero-grid, .tending, .card-grid.three { grid-template-columns: 1fr; }
  .console-card { transform: none; }
  .section-heading.split, .lab-callout, .site-footer { align-items: flex-start; flex-direction: column; }
  .tending-list { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr auto; }
  .entry time { grid-column: 1 / -1; }
  .article-layout, .project-row, .now-grid { grid-template-columns: 1fr; }
  .toc { display: none; }
}

@media (max-width: 520px) {
  .site-shell { width: min(100% - 22px, 1120px); }
  .site-header { margin-bottom: 42px; }
  .nav a { padding: 7px 8px; font-size: 0.84rem; }
  h1 { font-size: clamp(3.45rem, 20vw, 5.4rem); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .card { min-height: 0; }
  .shelf { grid-template-columns: 1fr; }
}
