:root {
  color-scheme: dark;
  --bg: #080809;
  --surface: #101113;
  --text: #ececee;
  --muted: #b6b6bf;
  --line: #29292e;
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  background: none;
  border: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid #dddde5;
  outline-offset: 5px;
}
::selection {
  color: #fff;
  background: #454552;
}
.site-shell {
  max-width: 1264px;
  padding: 0 32px;
  margin: auto;
}
.site-header {
  display: flex;
  align-items: center;
  gap: 58px;
  min-height: 88px;
  position: relative;
  z-index: 5;
}
.brand {
  font-family: 'Sora', sans-serif;
  font-size: 27px;
  letter-spacing: -1.8px;
  font-weight: 700;
}
.desktop-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
}
.desktop-nav a {
  padding: 10px 0;
  color: var(--muted);
}
nav a:hover {
  color: #fff;
}
nav a[aria-current] {
  color: #fff;
  position: relative;
}
.desktop-nav a[aria-current]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: #fff;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.icon-button,
.mobile-nav summary {
  min-width: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.icon-button:hover,
.mobile-nav summary:hover {
  background: var(--surface);
}
.mobile-nav {
  display: none;
}
.mobile-nav summary {
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker {
  display: none;
}
.mobile-nav nav {
  position: absolute;
  right: 0;
  top: 72px;
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}
.mobile-nav nav a {
  display: block;
  padding: 12px;
}
.hero-banner {
  width: 100%;
  aspect-ratio: 3.53;
  height: auto;
  object-fit: cover;
  object-position: center;
  border: 1px solid #202329;
  border-radius: 9px;
}
.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(240px, 1fr);
  gap: 30px;
  margin-top: 22px;
}
.article,
.post-list {
  min-width: 0;
}
.article-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 27px;
  margin-bottom: 26px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}
.tags a {
  overflow-wrap: anywhere;
  display: block;
  padding: 6px 12px;
  border-radius: 9px;
  background: #1b1c1f;
  color: #f2f2f4;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.tags a:hover {
  background: #303136;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Sora', sans-serif;
  overflow-wrap: anywhere;
  color: #f6f6f7;
  letter-spacing: -0.035em;
}
.article-header h1,
.featured h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.2;
  margin: 0 0 15px;
  font-weight: 700;
  text-wrap: balance;
}
.deck {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 24px;
  overflow-wrap: anywhere;
}
.byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
}
.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.author {
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.author img {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 7px;
  border-radius: 50%;
  background: #27272b;
  object-fit: cover;
}
.author a {
  font-weight: 600;
}
.author a:hover {
  text-decoration: underline;
}
.author small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.post-dates {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-align: right;
}
.sidebar {
  border-left: 1px solid #1b1b1f;
  padding-left: 28px;
  margin-top: 26px;
  align-self: start;
  position: sticky;
  top: 24px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  min-height: 46px;
  padding: 0 12px;
}
.search-form:focus-within {
  border-color: #b6b6bf;
}
.search-form > span {
  font-size: 27px;
  line-height: 1;
}
.search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 14px;
  padding: 12px 0;
}
.search-form input::placeholder {
  color: #96969f;
}
.sidebar section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 22px;
}
.sidebar h2 {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.category {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 15px;
  padding: 8px 0;
}
.category:hover {
  text-decoration: underline;
}
.category span {
  color: var(--muted);
}
.recent-posts {
  display: grid;
  gap: 25px;
}
.recent-post {
  display: flex;
  gap: 15px;
  font-size: 14px;
  line-height: 1.5;
}
.recent-post img {
  flex: 0 0 64px;
  width: 64px;
  height: 70px;
  object-fit: cover;
  border-radius: 7px;
}
.recent-post strong {
  font-weight: 500;
}
.recent-post:hover strong {
  text-decoration: underline;
}
.recent-post time {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.rss-link {
  display: block;
  color: var(--muted);
  font-size: 13px;
  padding: 24px 0;
}
.prose {
  font-size: 17px;
  line-height: 1.72;
  color: #c7c7d0;
  overflow-wrap: anywhere;
}
.prose > :first-child {
  margin-top: 0;
}
.prose p {
  margin: 0 0 22px;
}
.prose h2 {
  font-size: 27px;
  line-height: 1.3;
  margin: 32px 0 12px;
}
.prose h3 {
  font-size: 23px;
  margin: 28px 0 10px;
}
.prose h4 {
  font-size: 20px;
}
.prose h5 {
  font-size: 18px;
}
.prose h6 {
  font-size: 17px;
}
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  scroll-margin-top: 24px;
  position: relative;
  padding-right: 20px;
}
.heading-anchor {
  position: absolute;
  right: 0;
  top: 0;
  display: inline-block;
  color: #8f8f9e !important;
  text-decoration: none !important;
  padding: 0 8px;
  opacity: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.75em;
}
:is(h2, h3, h4, h5, h6):hover .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #eeeef4;
}
.prose strong {
  color: #e8e8ef;
  font-weight: 600;
}
.prose ul,
.prose ol {
  padding-left: 25px;
  margin: 10px 0 24px;
}
.prose li {
  padding-left: 2px;
}
.prose li > p {
  margin: 8px 0;
}
.prose blockquote {
  margin: 26px 0;
  border-left: 2px solid #757583;
  padding: 2px 20px;
  color: var(--muted);
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.prose :not(pre) > code {
  background: #1a1b20;
  color: #e0e0eb;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.87em;
  overflow-wrap: anywhere;
}
.code-block {
  border: 1px solid #24252b;
  border-radius: 8px;
  background: #101215;
  margin: 22px 0 28px;
  overflow: hidden;
}
.code-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.code-toolbar span {
  font-family: monospace;
}
.code-toolbar button {
  padding: 2px 5px;
  min-height: 28px;
}
.code-toolbar button:hover {
  color: #fff;
}
.prose pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 0;
  padding: 10px 16px 18px;
  font-size: 13px;
  line-height: 1.65;
  tab-size: 2;
  scrollbar-width: thin;
}
.prose pre code {
  white-space: pre;
  overflow-wrap: normal;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-literal {
  color: #d99aff;
}
.hljs-string,
.hljs-attr,
.hljs-template-variable {
  color: #b2d99c;
}
.hljs-title,
.hljs-title.function_,
.hljs-name {
  color: #98d4ff;
}
.hljs-number,
.hljs-built_in {
  color: #f0d699;
}
.hljs-comment {
  color: #9494a1;
}
.hljs-variable,
.hljs-params {
  color: #dedee8;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.prose th,
.prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  min-width: 130px;
}
.prose th {
  background: var(--surface);
  color: #eee;
}
.prose tr:last-child td {
  border-bottom: 0;
}
.prose img {
  border-radius: 8px;
}
.prose figure {
  margin: 28px 0;
}
.prose figcaption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}
.prose details {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.prose details summary {
  color: #eee;
  font-weight: 600;
}
.prose details[open] summary {
  margin-bottom: 12px;
}
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid #9bafc3;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 26px 0;
}
.callout > strong {
  display: block;
  margin-bottom: 8px;
}
.callout p:last-child {
  margin-bottom: 0;
}
.callout-warning {
  border-left-color: #c6ac77;
}
.callout-tip {
  border-left-color: #96b69c;
}
.task-list-item {
  list-style: none;
}
.task-list-item input {
  margin-right: 8px;
  accent-color: #aaa;
}
.footnotes {
  font-size: 14px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 20px;
}
.demo-label {
  color: #c8bea8;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.listing-intro {
  padding: 30px 0 28px;
}
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.listing-intro h1 {
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.25;
  margin: 0 0 12px;
}
.listing-intro .deck {
  margin-bottom: 0;
}
.featured-banner {
  display: block;
}
.post-summary {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
}
.post-summary.featured {
  display: block;
  padding-top: 0;
}
.post-summary h2 {
  font-size: 25px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.post-summary.featured h2 {
  font-size: clamp(30px, 3.2vw, 42px);
}
.post-summary h2 a:hover {
  color: #c7c7d0;
}
.post-summary .deck {
  font-size: 16px;
}
.post-summary.featured .deck {
  font-size: 18px;
}
.listing-thumbnail {
  width: 100%;
  aspect-ratio: 1.7;
  object-fit: cover;
  border-radius: 8px;
}
.read-link {
  display: inline-block;
  font-size: 14px;
  color: #dedee5;
  margin-top: 24px;
}
.read-link:hover {
  text-decoration: underline;
}
.compact-search {
  display: none;
  margin-bottom: 22px;
  scroll-margin-top: 20px;
}
.empty-state {
  color: var(--muted);
  line-height: 1.7;
  padding: 24px 0;
}
.empty-state a {
  text-decoration: underline;
}
.site-footer {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 65px;
  border-top: 1px solid var(--line);
  padding: 26px 0 35px;
  font-size: 12px;
  color: var(--muted);
}
.site-footer a:last-child {
  margin-left: auto;
}
dialog {
  border: 1px solid #3b3b43;
  background: var(--bg);
  color: var(--text);
  border-radius: 9px;
  width: min(600px, calc(100% - 32px));
  max-height: 80dvh;
  padding: 24px;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dialog-header h2 {
  margin: 0;
  font-size: 22px;
}
.search-status {
  font-size: 13px;
  color: var(--muted);
}
.search-result {
  display: block;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.search-result:hover strong {
  text-decoration: underline;
}
.search-result p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 8px 0 0;
}
.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;
}
.focus-reveal:focus {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  white-space: normal;
}
.skip-link {
  position: absolute;
  z-index: 20;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  background: #fff;
  color: #111;
  padding: 12px;
  border-radius: 6px;
}
.skip-link:focus {
  transform: translateY(0);
}
@media (max-width: 1100px) {
  .site-shell {
    max-width: 960px;
    padding: 0 28px;
  }
  .reading-layout {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .mobile-nav {
    display: block;
  }
  .hero-banner {
    aspect-ratio: 2.6;
  }
  .compact-search {
    display: block;
  }
  .article-header h1,
  .featured h2 {
    max-width: 760px;
  }
  .article {
    max-width: 800px;
    margin: auto;
  }
}
@media (max-width: 600px) {
  .site-shell {
    padding: 0 20px;
  }
  .site-header {
    min-height: 78px;
    gap: 0;
  }
  .brand {
    font-size: 26px;
  }
  .desktop-nav {
    display: none;
  }
  .header-actions {
    gap: 14px;
  }
  .hero-banner {
    aspect-ratio: 1.8;
    border-radius: 7px;
  }
  .reading-layout {
    margin-top: 24px;
  }
  .tags {
    gap: 7px;
    margin-bottom: 16px;
  }
  .tags a {
    font-size: 11px;
    padding: 6px 11px;
  }
  .article-header h1,
  .post-summary.featured h2 {
    font-size: clamp(26px, 6.8vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.045em;
    text-wrap: initial;
  }
  .deck,
  .post-summary.featured .deck {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 23px;
  }
  .byline {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }
  .author {
    font-size: 14px;
  }
  .post-dates {
    text-align: left;
    padding-left: 56px;
    font-size: 12px;
  }
  .article-header {
    padding-bottom: 24px;
    margin-bottom: 25px;
  }
  .prose {
    font-size: 16px;
    line-height: 1.72;
  }
  .prose h2 {
    font-size: 23px;
    line-height: 1.3;
    margin-top: 30px;
  }
  .prose h3 {
    font-size: 20px;
  }
  .heading-anchor {
    opacity: 1;
  }
  .code-toolbar {
    padding: 8px 12px 0;
  }
  .prose pre {
    padding: 10px 12px 16px;
    font-size: 12px;
  }
  .listing-intro {
    padding-top: 24px;
  }
  .listing-intro h1 {
    font-size: 30px;
  }
  .post-summary {
    display: block;
  }
  .listing-thumbnail {
    margin-bottom: 20px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 45px;
  }
  dialog {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
