:root {
  --bg: #0e1117;
  --shell: #161b22;
  --panel: #0d1117;
  --panel-2: #1f242d;
  --text: #f0f6fc;
  --muted: #8b949e;
  --line: #30363d;
  --blue: #0078d4;
  --blue-2: #1f9cf0;
  --green: #3fb950;
  --yellow: #d29922;
  --light: #f6f8fa;
  --radius: 8px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.55;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #58a6ff;
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(14, 17, 23, 0.92);
  backdrop-filter: blur(16px);
}

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

.brand {
  gap: 11px;
  font-weight: 800;
}

.brand-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 0.82rem;
}

.nav {
  gap: 24px;
  color: var(--muted);
  font-weight: 700;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a:hover {
  color: var(--text);
}

.topbar-cta,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 800;
}

.topbar-cta,
.button.secondary {
  border: 1px solid var(--line);
  background: #161b22;
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.primary:hover {
  background: var(--blue-2);
}

.hero-shell {
  display: grid;
  width: min(1580px, calc(100% - 96px));
  min-height: calc(100vh - 68px);
  grid-template-columns: minmax(380px, 0.82fr) minmax(680px, 1.18fr);
  gap: clamp(72px, 6vw, 112px);
  align-items: center;
  margin: 0 auto;
  padding: 64px 0;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #58a6ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 4.55rem;
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: 3rem;
  line-height: 1.06;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.lede {
  max-width: 680px;
  color: #c9d1d9;
  font-size: 1.18rem;
}

.trust-line,
.cta-note {
  max-width: 680px;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-line {
  margin-bottom: 0;
  font-weight: 800;
}

.cta-note {
  margin-top: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ide-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--shell);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.titlebar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: #c9d1d9;
  font-size: 0.82rem;
  font-weight: 700;
}

.titlebar div {
  display: flex;
  gap: 7px;
}

.titlebar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6e7681;
}

.activity-layout {
  display: grid;
  grid-template-columns: 48px 176px 1fr;
  height: clamp(560px, 58vh, 640px);
  min-height: 0;
}

.activity-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 8px;
  border-right: 1px solid var(--line);
  background: #0d1117;
}

.activity-rail span {
  display: grid;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
}

.activity-rail .active {
  background: #1f6feb;
  color: #fff;
}

.activity-rail .rail-avatar {
  overflow: hidden;
  margin-top: auto;
  border: 1px solid rgba(240, 246, 252, 0.62);
  background: #fff;
  padding: 0;
}

.rail-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explorer {
  padding: 14px;
  border-right: 1px solid var(--line);
  background: #161b22;
}

.explorer p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.explorer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c9d1d9;
  font-size: 0.83rem;
}

.explorer li {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.explorer .open {
  color: #fff;
  font-weight: 800;
}

.editor {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  min-height: 0;
  background: var(--panel);
}

.editor pre {
  min-height: 0;
}

.tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.tabs span {
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.tabs .active {
  color: #fff;
  background: #0d1117;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 26px;
}

code {
  color: #dbeafe;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.8;
}

code b {
  color: #ff7b72;
  font-weight: 700;
}

.panel {
  border-top: 1px solid var(--line);
  background: #0b1220;
}

.panel-tabs {
  display: flex;
  gap: 18px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.panel-tabs .active {
  color: #fff;
}

.panel p {
  margin: 0;
  padding: 0 16px 8px;
  color: #c9d1d9;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
}

.panel p:first-of-type {
  padding-top: 12px;
}

.panel span {
  color: var(--green);
}

.statusbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.quick-access {
  display: grid;
  width: min(var(--max), calc(100% - 40px));
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 auto 84px;
}

.quick-access a,
.command-list article,
.case-board article,
.process-list article,
.stack-table div,
.note-card,
.inline-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--shell);
}

.quick-access a {
  display: flex;
  gap: 14px;
  min-height: 84px;
  align-items: center;
  padding: 18px;
}

.quick-access span,
.command-list span,
.process-list span,
.file-label,
.stack-table span,
.note-card > span:not(.note-card-cover) {
  color: #58a6ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 900;
}

.section,
.case-section,
.how-section,
.stack-section,
.notes-section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.work-grid,
.how-section,
.stack-section,
.notes-section {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 54px;
}

.section-copy {
  max-width: 680px;
}

.command-list,
.case-board,
.process-list,
.stack-table {
  display: grid;
  gap: 14px;
}

.command-list {
  grid-template-columns: repeat(2, 1fr);
}

.command-list article,
.case-board article,
.process-list article,
.stack-table div,
.note-card {
  padding: 22px;
}

.command-list p,
.case-board p,
.process-list p,
.stack-table p,
.note-card p {
  color: #c9d1d9;
}

.case-board {
  grid-template-columns: repeat(2, 1fr);
}

.featured-case {
  grid-column: 1 / -1;
  border-color: rgba(88, 166, 255, 0.5);
  background: #101722;
}

.case-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 18px 0 0;
}

.case-details div {
  min-width: 0;
}

.case-details dt {
  margin-bottom: 5px;
  color: #58a6ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-details dd {
  margin: 0;
  color: #c9d1d9;
}

.process-list {
  grid-template-columns: 1fr;
}

.case-board strong,
.note-card strong {
  display: block;
  margin: 16px 0 10px;
  font-size: 1.24rem;
  line-height: 1.25;
}

.note-card-cover {
  display: block;
  overflow: hidden;
  margin: -22px -22px 20px;
  border-bottom: 1px solid var(--line);
  background: #0b1220;
}

.note-card-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  height: auto;
  object-fit: cover;
}

.stack-table {
  grid-template-columns: repeat(2, 1fr);
}

.notes-section {
  padding-bottom: 120px;
}

.inline-cta {
  display: flex;
  width: min(var(--max), calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
  padding: 28px;
}

.inline-cta h2 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: 2rem;
}

.inline-cta p:last-child,
.contact-band p {
  max-width: 760px;
  margin-bottom: 0;
  color: #c9d1d9;
}

.contact-band {
  display: flex;
  width: min(var(--max), calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto 96px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #161b22;
}

.contact-band h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 2.15rem;
}

.internal-hero,
.article-hero,
.content-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.internal-hero,
.article-hero {
  padding: 78px 0 34px;
}

.internal-hero h1,
.article-hero h1 {
  max-width: 920px;
  font-size: 4.1rem;
}

.internal-hero p,
.article-hero p {
  max-width: 760px;
  color: #c9d1d9;
  font-size: 1.16rem;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
  padding: 28px 0 96px;
}

.archive-feed {
  display: grid;
  gap: 14px;
}

.archive-card,
.sidebar-window,
.article-window {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--shell);
}

.archive-card {
  padding: 24px;
}

.archive-cover {
  display: block;
  overflow: hidden;
  margin: -24px -24px 22px;
  border-bottom: 1px solid var(--line);
  background: #0b1220;
}

.archive-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  height: auto;
  object-fit: cover;
}

.archive-card.featured {
  border-color: rgba(88, 166, 255, 0.5);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.file-meta span:first-child {
  color: #58a6ff;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.archive-meta span:first-child {
  color: #58a6ff;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.archive-card h2 {
  margin-bottom: 10px;
  font-size: 1.75rem;
  line-height: 1.15;
}

.archive-card p,
.sidebar-window p,
.article-body p,
.article-body li,
.entry-content p,
.entry-content li {
  color: #c9d1d9;
}

.text-link {
  color: #58a6ff;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(88, 166, 255, 0.34);
  text-underline-offset: 5px;
}

.blog-sidebar {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 14px;
}

.sidebar-window {
  padding: 20px;
}

.sidebar-title {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 900;
}

.sidebar-window h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.sidebar-window ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-window li {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sidebar-window li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sidebar-window a {
  color: #c9d1d9;
  font-weight: 800;
}

.explorer-widget li::before {
  content: "▸ ";
  color: #58a6ff;
}

.article-window {
  overflow: hidden;
}

.article-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.article-tabs span {
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.article-tabs .active {
  background: var(--panel);
  color: #fff;
}

.article-body {
  padding: 34px;
}

.article-cover {
  overflow: hidden;
  margin: 34px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b1220;
}

.article-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  height: auto;
  object-fit: cover;
}

.entry-content {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--shell);
}

.article-body .lead {
  color: #fff;
  font-size: 1.22rem;
}

.article-body h1,
.article-body h2,
.article-body h3,
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  color: #fff;
}

.article-body h2 {
  margin-top: 46px;
  font-size: 2rem;
}

.article-body h3,
.entry-content h3 {
  margin-top: 34px;
  font-size: 1.45rem;
}

.article-body a,
.entry-content a {
  color: #58a6ff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(88, 166, 255, 0.34);
  text-underline-offset: 5px;
}

.article-body ul,
.article-body ol,
.entry-content ul,
.entry-content ol {
  display: grid;
  gap: 10px;
  padding-left: 1.4rem;
}

.article-body blockquote,
.entry-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid #58a6ff;
  background: #0b1220;
  color: #c9d1d9;
}

.article-body img,
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.article-body table,
.entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-body th,
.article-body td,
.entry-content th,
.entry-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
}

.article-body pre,
.entry-content pre,
.wp-block-code {
  margin: 26px 0;
  overflow-x: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b1220;
}

.article-body pre code,
.entry-content pre code,
.wp-block-code code {
  display: block;
  min-width: max-content;
  padding: 24px;
}

.code-window {
  margin: 26px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b1220;
}

.code-window figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 900;
}

.code-window figcaption span:first-child {
  color: #58a6ff;
}

.navigation.pagination,
.post-navigation {
  margin-top: 22px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.page-numbers,
.post-navigation a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: var(--shell);
  color: #c9d1d9;
  font-weight: 800;
}

.page-numbers.current,
.page-numbers:hover,
.post-navigation a:hover {
  border-color: rgba(88, 166, 255, 0.5);
  color: #fff;
}

.search-form,
.wp-block-search {
  display: grid;
  gap: 10px;
}

.search-form label,
.wp-block-search__label {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 900;
}

.search-field,
.wp-block-search__input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #0d1117;
  color: var(--text);
  font: inherit;
}

.search-submit,
.wp-block-search__button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 16px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.sidebar-window :where(.wp-block-heading, h2, h3) {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-window :where(.wp-block-latest-posts, .wp-block-categories-list, .wp-block-archives-list) {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-window :where(.wp-block-latest-posts li, .wp-block-categories-list li, .wp-block-archives-list li) {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sidebar-window :where(.wp-block-latest-posts li:last-child, .wp-block-categories-list li:last-child, .wp-block-archives-list li:last-child) {
  padding-bottom: 0;
  border-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(18px, 4vw, 44px);
  background: #0d1117;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  width: min(var(--max), 100%);
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 18px;
    overflow: visible;
    padding-top: 2px;
  }

  .nav a {
    white-space: nowrap;
  }

  .hero-shell,
  .work-grid,
  .how-section,
  .stack-section,
  .notes-section,
  .command-list,
  .case-board,
  .process-list,
  .stack-table,
  .quick-access,
  .content-shell {
    grid-template-columns: 1fr;
  }

  .inline-cta,
  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-shell {
    width: min(var(--max), calc(100% - 40px));
    min-height: auto;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .activity-layout {
    grid-template-columns: 44px 1fr;
    height: auto;
    min-height: 560px;
  }

  .explorer {
    display: none;
  }

  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding-inline: 18px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav {
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav ul {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .nav a {
    font-size: 0.92rem;
  }

  h1 {
    font-size: 2.65rem;
  }

  .hero-shell {
    width: min(100% - 28px, var(--max));
  }

  .internal-hero,
  .article-hero,
  .content-shell,
  .inline-cta,
  .contact-band {
    width: min(100% - 28px, var(--max));
  }

  .case-details {
    grid-template-columns: 1fr;
  }

  .internal-hero h1,
  .article-hero h1 {
    font-size: 2.65rem;
  }

  .actions,
  .button {
    width: 100%;
  }

  .ide-window {
    min-width: 0;
  }

  .activity-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .activity-rail {
    display: none;
  }

  pre {
    padding: 18px;
  }

  .editor pre {
    overflow-x: hidden;
    padding: 0;
    white-space: pre-wrap;
  }

  .tabs {
    overflow-x: hidden;
  }

  .tabs span {
    flex: 1 1 0;
    overflow: hidden;
    padding-inline: 12px;
    text-overflow: ellipsis;
  }

  .editor pre code {
    min-width: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  code {
    font-size: 0.78rem;
  }

  .article-body {
    padding: 22px;
  }

  .contact-band {
    padding: 24px;
  }

  .inline-cta {
    padding: 24px;
  }

  .contact-band h2 {
    font-size: 1.85rem;
  }
}
