:root {
  color-scheme: dark;
  --background: #222222;
  --background-start: #242424;
  --background-glow: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --muted: #b2b2b6;
  --muted-strong: #d1d1d4;
  --border: #3b3b3d;
  --border-soft: rgba(255, 255, 255, 0.11);
  --accent: #6bb6ff;
  --accent-strong: #9cccff;
  --category: #8fd6c2;
  --code-background: #333333;
  --header-background: rgba(34, 34, 34, 0.78);
  --panel-background: rgba(48, 48, 48, 0.72);
  --panel-hover-background: rgba(52, 52, 52, 0.82);
  --nav-background: rgba(255, 255, 255, 0.04);
  --nav-active-background: rgba(255, 255, 255, 0.08);
  --subtle-hover-background: rgba(255, 255, 255, 0.06);
  --count-background: rgba(255, 255, 255, 0.1);
  --code-block-background: #191919;
  --comment-token: #7f8c98;
  --name-token: #d7e8ff;
  --operator-token: #b9c5d0;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.16);
}

[data-theme=light] {
  color-scheme: light;
  --background: #f6f4ef;
  --background-start: #fffaf0;
  --background-glow: rgba(72, 118, 168, 0.14);
  --text: #1f252b;
  --muted: #606973;
  --muted-strong: #3f4852;
  --border: #d8d2c8;
  --border-soft: rgba(29, 34, 40, 0.12);
  --accent: #0068b7;
  --accent-strong: #004f8f;
  --category: #0d7564;
  --code-background: #ece6dc;
  --header-background: rgba(246, 244, 239, 0.82);
  --panel-background: rgba(255, 255, 255, 0.72);
  --panel-hover-background: rgba(255, 255, 255, 0.92);
  --nav-background: rgba(31, 37, 43, 0.04);
  --nav-active-background: rgba(31, 37, 43, 0.08);
  --subtle-hover-background: rgba(31, 37, 43, 0.06);
  --count-background: rgba(31, 37, 43, 0.09);
  --code-block-background: #fffaf3;
  --comment-token: #6f7780;
  --name-token: #263747;
  --operator-token: #5f6872;
  --shadow: 0 18px 44px rgba(39, 35, 29, 0.12);
  --shadow-soft: 0 10px 28px rgba(39, 35, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: radial-gradient(circle at 50% -18rem, var(--background-glow), transparent 35rem), linear-gradient(180deg, var(--background-start) 0, var(--background) 28rem);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  transition: background 160ms ease, color 160ms ease;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

a:hover {
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  letter-spacing: 0;
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

p {
  margin: 0 0 1rem;
}

code,
pre {
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

code {
  background: var(--code-background);
  border-radius: 6px;
  font-size: 0.92em;
  padding: 0.12em 0.34em;
}

pre {
  background: var(--code-block-background);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: var(--text);
  overflow-x: auto;
  padding: 1rem;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.site-main,
.site-footer,
.site-header-inner {
  width: min(100% - 2rem, 1080px);
  margin: 0 auto;
}

.site-header {
  backdrop-filter: blur(20px) saturate(1.15);
  background: var(--header-background);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 1.05rem 0;
}

.site-title {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}

.site-nav,
.footer-links,
.link-row,
.project-links,
.badge-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-nav {
  background: var(--nav-background);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.24rem;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1;
  padding: 0.55rem 0.78rem;
  text-decoration: none;
}

.site-nav a[aria-current=page],
.site-nav a:hover {
  background: var(--nav-active-background);
  color: var(--text);
}

.theme-toggle {
  align-items: center;
  background: var(--nav-background);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.24rem;
}

.theme-toggle-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 1.88rem;
  justify-content: center;
  line-height: 1;
  width: 1.88rem;
}

.theme-toggle-icon svg {
  fill: none;
  height: 1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1rem;
}

[data-theme=dark] .theme-toggle-moon,
[data-theme=light] .theme-toggle-sun,
.theme-toggle:hover .theme-toggle-icon {
  background: var(--nav-active-background);
  color: var(--text);
}

.site-main {
  padding: 3.5rem 0 4.5rem;
}

.hero {
  display: grid;
  min-height: 48vh;
  align-items: center;
  padding: 3rem 0 4rem;
}

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

.hero p:first-of-type {
  color: var(--muted-strong);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.32;
  max-width: 760px;
}

.hero p:not(:first-of-type),
.lede {
  color: var(--muted);
  max-width: 700px;
}

.link-row {
  align-items: center;
  margin-top: 2rem;
}

.link-row a,
.section-heading a,
.project-links a {
  font-size: 0.95rem;
  font-weight: 650;
}

.project-links a,
.section-heading a {
  text-decoration: none;
}

.project-links a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.46rem 0.72rem;
}

.project-links a:hover {
  background: rgba(107, 182, 255, 0.1);
  border-color: rgba(107, 182, 255, 0.28);
}

.section {
  border-top: 1px solid var(--border);
  padding: 2.75rem 0;
}

.section-heading {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.page-content,
.post {
  max-width: 790px;
}

.page-content-wide {
  max-width: none;
}

.page-content-wide > p {
  max-width: 790px;
}

.project-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin-top: 1.25rem;
}

.project-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.project-card,
.post-preview,
.empty-state {
  background: var(--panel-background);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 1.35rem;
}

.project-card,
.post-preview {
  display: flex;
  flex-direction: column;
}

.post-preview,
.post-preview-link {
  color: var(--text);
  text-decoration: none;
}

.post-preview-link:hover {
  color: var(--text);
}

.project-card:hover,
.post-preview:hover {
  background: var(--panel-hover-background);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.project-card h2,
.post-preview h2 {
  font-size: 1.22rem;
}

.project-card-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.project-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
  margin: -0.35rem 0 0;
}

.badge,
.tag,
.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  line-height: 1;
  padding: 0.36rem 0.58rem;
  white-space: nowrap;
}

.chip-category {
  background: rgba(143, 214, 194, 0.09);
  border-color: rgba(143, 214, 194, 0.28);
  color: var(--category);
}

.chip-tag {
  background: rgba(107, 182, 255, 0.08);
  border-color: rgba(107, 182, 255, 0.24);
  color: var(--accent-strong);
}

a.chip {
  text-decoration: none;
}

a.chip:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.muted {
  color: var(--muted);
}

.project-meta {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 1.15rem;
}

.project-meta div {
  display: grid;
  gap: 0.1rem;
}

.project-meta dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-meta dd {
  margin: 0;
}

.post-list {
  display: grid;
  gap: 1rem;
}

.post-taxonomy {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0 0;
}

.meta-chip-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.meta-chip-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-right: 0.05rem;
  text-transform: uppercase;
}

.post-preview p:last-child {
  margin-bottom: 0;
}

.post-preview .post-taxonomy {
  margin-top: auto;
  padding-top: 0.7rem;
}

.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  max-width: none;
}

.post-header .post-taxonomy {
  margin: 1rem 0 1.1rem;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.empty-state h2 {
  font-size: 1.25rem;
}

.empty-state p {
  color: var(--muted);
  margin-bottom: 0;
}

.archive-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  padding-bottom: 1.4rem;
}

.archive-header h1 {
  max-width: 12ch;
}

.taxonomy-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.taxonomy-index-chip {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
}

.taxonomy-index-chip span:last-child {
  background: var(--count-background);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 760;
  min-width: 1.35rem;
  padding: 0.2rem 0.38rem;
  text-align: center;
}

.taxonomy-post-list {
  display: grid;
  gap: 1rem;
}

.taxonomy-post {
  background: var(--panel-background);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 1.35rem;
}

.taxonomy-post h2 {
  font-size: 1.22rem;
}

.taxonomy-post h2 a {
  color: var(--text);
  text-decoration: none;
}

.taxonomy-post h2 a:hover {
  color: var(--accent-strong);
}

.archive-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.archive-section {
  background: var(--panel-background);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
}

.archive-section h2 {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.archive-post-list {
  display: grid;
  gap: 0.45rem;
}

.archive-post {
  align-items: baseline;
  border-radius: 10px;
  color: var(--text);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.52rem 0.6rem;
  text-decoration: none;
}

.archive-post:hover {
  background: var(--subtle-hover-background);
  color: var(--text);
}

.archive-post time {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.88rem;
}

.highlight .c,
.highlight .cm,
.highlight .cp,
.highlight .c1,
.highlight .cs {
  color: var(--comment-token);
  font-style: italic;
}

.highlight .k,
.highlight .kc,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt {
  color: #ff8fc7;
}

.highlight .n,
.highlight .na,
.highlight .nb,
.highlight .nc,
.highlight .no,
.highlight .nd,
.highlight .ni,
.highlight .ne,
.highlight .nf,
.highlight .nl,
.highlight .nn,
.highlight .nx,
.highlight .py,
.highlight .nt,
.highlight .nv {
  color: var(--name-token);
}

.highlight .kt,
.highlight .nc {
  color: #8fd6c2;
}

.highlight .nf,
.highlight .fm {
  color: #9cccff;
}

.highlight .s,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .s2,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .sr,
.highlight .s1,
.highlight .ss {
  color: #ffd38f;
}

.highlight .m,
.highlight .mb,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .mo,
.highlight .il {
  color: #b8a7ff;
}

.highlight .o,
.highlight .ow,
.highlight .p {
  color: var(--operator-token);
}

.highlight .gd {
  color: #ff9b9b;
}

.highlight .gi {
  color: #9be7b1;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.6rem 0 2rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
  .site-footer,
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .header-actions {
    justify-content: flex-end;
    width: 100%;
  }
  .site-nav {
    flex: 1;
    width: 100%;
  }
  .site-nav a {
    flex: 1;
    text-align: center;
  }
  .site-main {
    padding-top: 1.5rem;
  }
  .hero {
    min-height: auto;
    padding: 2rem 0 3rem;
  }
  .section-heading,
  .project-card-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .archive-post {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.1rem;
  }
}

/*# sourceMappingURL=main.css.map */