/* ═══════════════════════════════════════════
   Stratum — Grav 2.0 / Dark Theme
   Accent: #f97316 (orange)
   Source: https://short-circuit.github.io/stratum
   ═══════════════════════════════════════════ */

/* ── Design Tokens (Dark) ── */
:root {
  /* Palette — dark mode */
  --stratum-bg: #030712;
  --stratum-bg-alt: #111827;
  --stratum-surface: #1f2937;
  --stratum-text: #f3f4f6;
  --stratum-text-muted: #9ca3af;
  --stratum-border: #374151;
  --stratum-accent: #f97316;
  --stratum-accent-hover: #fb923c;
  --stratum-accent-light: rgba(249,115,22,.12);
  --stratum-accent-secondary: #803300;

  /* Semantic aliases */
  --color-bg: var(--stratum-bg);
  --color-surface: var(--stratum-surface);
  --color-fg: var(--stratum-text);
  --color-muted: var(--stratum-text-muted);
  --color-border: var(--stratum-border);
  --color-accent: var(--stratum-accent);
  --color-accent-secondary: var(--stratum-accent-secondary);

  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, 'Liberation Mono', Menlo, Courier, monospace;

  /* Layout */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 100px;
  --border-weight: 1px;
  --space-unit: 8px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --section-padding: 100px;
  --max-width: 1200px;
  --nav-height: 64px;

  /* Shadows — subdued on dark */
  --shadow: 0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.4), 0 4px 10px rgba(0,0,0,.2);

  /* Motion */
  --ease-out-expo: cubic-bezier(.16,1,.3,1);
  --duration-fast: .2s;
  --duration-mid: .3s;
  --duration-slow: .8s;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}
a:hover { color: var(--stratum-accent-hover); }

img { max-width: 100%; display: block; height: auto; }
code { font-family: var(--font-mono); font-size: .875em; }

/* ── Utility: Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ── Section ── */
section, .section {
  padding: var(--section-padding) 0;
}
.section-alt { background: var(--stratum-bg-alt); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.centered { text-align: center; }
.centered .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--duration-mid), backdrop-filter var(--duration-mid), box-shadow var(--duration-mid);
}
.navbar.scrolled {
  background: rgba(3,7,18,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-fg);
  text-decoration: none;
}
.navbar .logo svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.navbar .nav-links {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  list-style: none;
}
.navbar .nav-links a {
  color: var(--color-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--duration-fast);
}
.navbar .nav-links a:hover { color: var(--color-fg); }
.navbar .nav-links .btn-nav {
  background: var(--color-accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.navbar .nav-links .btn-nav:hover {
  background: var(--stratum-accent-hover);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-fg);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(249,115,22,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-icon {
  width: 112px;
  height: 112px;
  margin: 0 auto 32px;
  color: var(--color-accent);
  animation: float 5s var(--ease-out-expo) infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.hero h1 .accent-gradient {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-muted);
  max-width: 768px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-badges img { height: 24px; border-radius: 4px; }

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all .25s var(--ease-out-expo);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249,115,22,.35);
}
.btn-primary:hover {
  background: var(--stratum-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,.4);
}

.btn-secondary {
  background: var(--stratum-bg-alt);
  color: var(--color-fg);
  border: var(--border-weight) solid var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-border);
  transform: translateY(-2px);
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--color-bg);
  border: var(--border-weight) solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--duration-mid) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fb923c, #ea580c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out-expo);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--stratum-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  font-size: 22px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.feature-card p {
  font-size: .9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ── Content / Blog ── */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  gap: 60px;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 80px;
}

.content-main h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}
.content-main h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: var(--space-sm);
}
.content-main h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: var(--space-xs);
}
.content-main p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}
.content-main ul, .content-main ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}
.content-main li { margin-bottom: var(--space-xs); }
.content-main blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  color: var(--color-muted);
  font-style: italic;
}
.content-main pre {
  background: #111827;
  border-radius: var(--radius);
  padding: var(--space-lg);
  overflow-x: auto;
  margin: var(--space-md) 0;
}
.content-main pre code {
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.7;
  color: #e5e7eb;
}
.content-main table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
}
.content-main th, .content-main td {
  padding: var(--space-sm);
  border: var(--border-weight) solid var(--color-border);
  text-align: left;
}
.content-main th {
  background: var(--stratum-bg-alt);
  font-weight: 600;
}
.content-main img {
  border-radius: var(--radius);
  margin: var(--space-md) auto;
}

/* ── Sidebar ── */
.sidebar {
  padding-top: 8px;
}
.sidebar-module {
  background: var(--stratum-bg-alt);
  border: var(--border-weight) solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.sidebar-module h3 {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}
.sidebar-module ul { list-style: none; }
.sidebar-module li { margin-bottom: var(--space-xs); }
.sidebar-module a {
  font-size: .9rem;
  color: var(--color-fg);
}
.sidebar-module a:hover { color: var(--color-accent); }

/* ── Showcase ── */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.showcase-text .showcase-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm, 12px);
  background: var(--stratum-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  font-size: 24px;
}
.showcase-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}
.showcase-text p {
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .95rem;
}
.showcase-list li svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.showcase-visual {
  background: var(--stratum-bg-alt);
  border: var(--border-weight) solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.showcase-visual .mock-editor {
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.8;
}
.showcase-visual .mock-editor .line {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 2px 0;
}
.showcase-visual .mock-editor .gutter {
  color: #9ca3af;
  text-align: right;
  width: 20px;
  user-select: none;
  font-size: .75rem;
}
.showcase-visual .mock-editor .content { padding-left: var(--space-xs); }
.showcase-visual .mock-editor .hl-orange { color: var(--color-accent); }
.showcase-visual .mock-editor .hl-gray { color: #9ca3af; }
.showcase-visual .mock-editor .hl-green { color: #10b981; }
.showcase-visual .mock-editor .hl-blue { color: #3b82f6; }
.showcase-visual .mock-editor .indent-1 { padding-left: 24px; }
.showcase-visual .mock-editor .indent-2 { padding-left: 48px; }
.showcase-visual .mock-editor .indent-3 { padding-left: 72px; }

/* ── Why Section ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.why-item {
  display: flex;
  gap: 16px;
  padding: var(--space-lg);
  border-radius: var(--radius);
  border: var(--border-weight) solid var(--color-border);
  transition: all var(--duration-mid) ease;
}
.why-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.why-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--stratum-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 22px;
  flex-shrink: 0;
}
.why-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.why-item p { font-size: .82rem; color: var(--color-muted); line-height: 1.6; }

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(249,115,22,.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: var(--space-md);
}
.cta-section p {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  padding: 48px 0;
  border-top: var(--border-weight) solid var(--color-border);
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer .copy {
  font-size: .85rem;
  color: var(--color-muted);
}
.footer .links {
  display: flex;
  gap: 16px;
  list-style: none;
}
.footer .links a {
  font-size: .85rem;
  color: var(--color-muted);
  transition: color var(--duration-fast);
}
.footer .links a:hover { color: var(--color-fg); }

/* ── Breadcrumbs ── */
.breadcrumbs {
  padding: 16px 0;
  font-size: .85rem;
  color: var(--color-muted);
}
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs .active { color: var(--color-fg); font-weight: 500; }

/* ── Pagination ── */
.pagination {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  padding: 48px 0;
  list-style: none;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  border: var(--border-weight) solid var(--color-border);
  color: var(--color-fg);
  text-decoration: none;
}
.pagination a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.pagination .active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ── Form Elements ── */
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: var(--border-weight) solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--color-bg);
  color: var(--color-fg);
  transition: border-color var(--duration-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.form-label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group { margin-bottom: var(--space-md); }

/* ── Grav-specific ── */
#grav-login {
  max-width: 400px;
  margin: 80px auto;
  padding: var(--space-xl);
  background: var(--color-bg);
  border: var(--border-weight) solid var(--color-border);
  border-radius: var(--radius);
}

/* ── Animation utilities ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo);
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo);
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

.scale-in {
  opacity: 0;
  transform: scale(.85);
  transition: opacity .6s var(--ease-out-expo), transform .6s var(--ease-out-expo);
}
.scale-in.visible { opacity: 1; transform: scale(1); }

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.stagger.visible > *:nth-child(1) { transition-delay: .05s; }
.stagger.visible > *:nth-child(2) { transition-delay: .12s; }
.stagger.visible > *:nth-child(3) { transition-delay: .19s; }
.stagger.visible > *:nth-child(4) { transition-delay: .26s; }
.stagger.visible > *:nth-child(5) { transition-delay: .33s; }
.stagger.visible > *:nth-child(6) { transition-delay: .40s; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .content-wrapper { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-padding: 60px; }

  .navbar .nav-links { display: none; }
  .navbar .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 200;
    top: var(--nav-height);
    transform: none;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: var(--space-md);
    border-bottom: var(--border-weight) solid var(--color-border);
    box-shadow: var(--shadow);
  }
  .nav-toggle { display: block; }

  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}

/* ── Blog listing ── */
.blog-item {
  padding: var(--space-lg) 0;
  border-bottom: var(--border-weight) solid var(--color-border);
}
.blog-item:last-child { border-bottom: none; }
.blog-item h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.blog-item h2 a { color: var(--color-fg); }
.blog-item h2 a:hover { color: var(--color-accent); }
.blog-meta {
  font-size: .85rem;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}
.blog-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.blog-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--stratum-accent-light);
  color: var(--color-accent) !important;
  font-size: .75rem;
  font-weight: 500;
  transition: background var(--duration-fast);
}
.blog-tag:hover { background: rgba(249,115,22,.2); }
.blog-item p { color: var(--color-muted); line-height: 1.7; }
.btn-sm { padding: 10px 24px; font-size: .85rem; }

/* ── Blog item (single post) ── */
.blog-header { margin-bottom: var(--space-xxl); }
.blog-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}
.e-content { line-height: 1.8; }
.e-content p { margin-bottom: var(--space-md); }
.e-content h2, .e-content h3, .e-content h4 {
  margin-top: 48px;
  margin-bottom: var(--space-sm);
}
.e-content h2 { font-size: 1.6rem; font-weight: 700; }
.e-content h3 { font-size: 1.25rem; font-weight: 600; }
.e-content h4 { font-size: 1.1rem; font-weight: 600; }
.e-content ul, .e-content ol { margin-bottom: var(--space-md); padding-left: var(--space-lg); }
.e-content li { margin-bottom: var(--space-xs); }
.e-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  color: var(--color-muted);
  font-style: italic;
}
.e-content pre {
  background: #111827;
  border-radius: var(--radius);
  padding: var(--space-lg);
  overflow-x: auto;
  margin: var(--space-md) 0;
}
.e-content pre code {
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.7;
  color: #e5e7eb;
}
.e-content img {
  border-radius: var(--radius);
  margin: var(--space-md) auto;
}
.e-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
}
.e-content th, .e-content td {
  padding: var(--space-sm);
  border: var(--border-weight) solid var(--color-border);
  text-align: left;
}
.e-content th {
  background: var(--stratum-bg-alt);
  font-weight: 600;
}

/* ── Prev / Next post nav ── */
.prev-next {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: 64px;
  padding-top: 32px;
  border-top: var(--border-weight) solid var(--color-border);
}

/* TEST */

/* ── Project cards ── */
.pcard {
  display: flex;
  flex-direction: column;
  background: var(--color-surface, #1e293b);
  border: var(--border-weight, 1px) solid var(--color-border, #334155);
  border-radius: var(--radius, 12px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, transform .2s;
}
.pcard:hover {
  border-color: var(--color-accent, #f97316);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.pcard-banner {
  width: 100%;
  aspect-ratio: 1200 / 500;
  max-height: 140px;
  overflow: hidden;
  background: var(--color-surface, #1e293b);
  line-height: 0;
}
.pcard-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pcard-body {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pcard-desc {
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--color-muted, #9ca3af);
}
.pcard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .75rem;
  color: var(--color-muted, #9ca3af);
}
.pmeta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.pmeta-archived {
  color: var(--color-accent, #f97316);
  font-weight: 500;
}
.pcard-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ptopic {
  background: var(--color-accent-light, rgba(249,115,22,.12));
  color: var(--color-accent, #f97316);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 500;
}

/* ── Project grid ── */
.projects-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 16px !important;
  margin-top: var(--space-xl, 32px);
}
@media (max-width: 700px) {
  .projects-grid { grid-template-columns: 1fr !important; }
}

/* ── Pinned post card ── */
.pinned-card {
  display: flex;
  background: var(--color-surface, #1e293b);
  border: 1px solid var(--color-accent, #f97316);
  border-radius: var(--radius, 12px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  margin-bottom: 24px;
}
.pinned-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.pinned-card-img {
  flex: 0 0 280px;
  max-width: 280px;
  overflow: hidden;
  background: var(--color-surface, #1e293b);
}
.pinned-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pinned-card-body {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.pinned-card-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-accent, #f97316);
}
.pinned-card-body h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-fg, #f3f4f6);
}
.pinned-card-body p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--color-muted, #9ca3af);
}
.pinned-card-read {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-accent, #f97316);
}
@media (max-width: 700px) {
  .pinned-card { flex-direction: column; }
  .pinned-card-img { flex: 0 0 200px; max-width: 100%; }
  .pinned-card-body { padding: 16px 20px; }
}

/* ── About page ── */
.about-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
}
.about-img {
  flex: 0 0 120px;
}
.about-img img {
  border-radius: 50%;
  width: 100%;
}
.about-text {
  flex: 1;
  min-width: 260px;
}
@media (max-width: 640px) {
  .about-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-img { flex: none; width: 100px; }
  .about-text { text-align: left; }
}

/* ── Responsive content ── */
.content-main {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.content-main table {
  width: 100%;
  overflow-x: auto;
  display: block;
  max-width: 100%;
}
.content-main img {
  max-width: 100%;
  height: auto;
}

/* ── Responsive content ── */
.content-main {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.content-main table {
  width: 100%;
  overflow-x: auto;
  display: block;
  max-width: 100%;
}
.content-main img {
  max-width: 100%;
  height: auto;
}
.content-main > * {
  max-width: 100%;
}
.content-main table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.content-main pre {
  overflow-x: auto;
}
.content-main .about-wrap {
  width: 100%;
}
.content-main {
  overflow-x: hidden;
}
.content-main table {
  overflow-x: auto;
  display: block;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}
.content-main .about-wrap {
  width: 100%;
}
.content-main .about-text {
  min-width: 0;
  word-break: break-word;
}
