:root {
  --bg: #0b0d10;
  --panel: #11151a;
  --panel-alt: #0f1318;
  --text: #d7dde5;
  --muted: #8b97a7;
  --faint: #5c6673;
  --border: #202833;
  --link: #e7edf5;
  --accent: #9fd3ff;
  --max-width: 760px;
  --radius: 10px;
  --shadow: 0 0 0 1px rgba(255,255,255,0.02);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 17px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration: none;
}

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

.shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 13, 16, 0.9);
  backdrop-filter: blur(8px);
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--muted);
}

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

main.shell {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.page-title,
.post-title {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.page-intro {
  margin: 0 0 2.5rem;
  color: var(--muted);
  max-width: 65ch;
}

.post {
  padding-bottom: 4rem;
}

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.post-kicker {
  margin: 0 0 0.75rem;
  color: var(--faint);
  font-size: 0.92rem;
}

.post-kicker a {
  color: var(--faint);
}

.post-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.post-description {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 70ch;
}

.post-meta,
.post-list-meta {
  margin: 0;
  color: var(--faint);
  font-size: 0.92rem;
}

.post-content > * {
  margin-top: 0;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content pre,
.post-content blockquote,
.post-content img {
  margin: 1.35rem 0;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #f2f6fb;
}

.post-content h2 {
  font-size: 1.45rem;
}

.post-content h3 {
  font-size: 1.15rem;
}

.post-content p,
.post-content li {
  color: var(--text);
}

.post-content ul,
.post-content ol {
  padding-left: 1.4rem;
}

.post-content li + li {
  margin-top: 0.4rem;
}

.post-content strong {
  color: #f3f7fc;
}

.post-content blockquote {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--panel-alt);
  color: var(--muted);
  border-radius: 0 8px 8px 0;
}

.post-content code {
  font-family: inherit;
  font-size: 0.95em;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}

.post-content pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-content pre code {
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
}

.post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

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

.post-list-item {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(to bottom, rgba(255,255,255,0.015), rgba(255,255,255,0.01));
  box-shadow: var(--shadow);
}

.post-list-title {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.post-list-description {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

::selection {
  background: rgba(159, 211, 255, 0.22);
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-left a,
.footer-right {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.contact-links {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.contact-links p {
  margin: 0;
}

.contact-links a {
  color: var(--link);
}

.contact-links a:hover {
  color: var(--accent);
}