:root {
  --bg: #efe8de;
  --paper: #f6f1e8;
  --card: rgba(248, 243, 236, 0.86);
  --text: #2f3845;
  --muted: #657082;
  --line: #d4cabb;
  --brand: #9e7f66;
  --brand-2: #768c86;
  --shadow: 0 16px 38px rgba(31, 41, 51, 0.08);
  --bg-accent-a: rgba(157, 173, 161, 0.3);
  --bg-accent-b: rgba(189, 165, 153, 0.28);
  --shape-a1: #d2c2b3;
  --shape-a2: #9ea99f;
  --shape-b1: #9cacad;
  --shape-b2: #d6c4b6;
  --sun-x: 78%;
  --sun-y: 22%;
  --sun-size: 240px;
  --sun-opacity: 0.28;
  --sun-core: rgba(241, 197, 142, 0.82);
  --sun-edge: rgba(241, 197, 142, 0.1);
  --code-bg: #eff1f5;
  --code-panel: #e6e9ef;
  --code-border: #bcc0cc;
  --code-text: #4c4f69;
  --code-muted: #7c7f93;
  --code-inline-bg: #dce0e8;
  --code-inline-text: #8839ef;
  --code-comment: #9ca0b0;
  --code-red: #d20f39;
  --code-orange: #fe640b;
  --code-yellow: #df8e1d;
  --code-green: #40a02b;
  --code-teal: #179299;
  --code-blue: #1e66f5;
  --code-mauve: #8839ef;
  --code-pink: #ea76cb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -5%, var(--bg-accent-a), transparent 38%),
    radial-gradient(circle at 90% 5%, var(--bg-accent-b), transparent 42%),
    var(--bg);
  line-height: 1.75;
  transition: background 520ms ease, color 360ms ease;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -3;
  pointer-events: none;
  filter: blur(14px);
  opacity: 0.34;
  will-change: transform;
}

body::before {
  width: 56vw;
  height: 56vw;
  min-width: 460px;
  min-height: 460px;
  left: -18vw;
  top: 8vh;
  background: radial-gradient(circle at 35% 35%, var(--bg-accent-a), transparent 68%);
  animation: ambientFloatA 72s ease-in-out infinite alternate;
}

body::after {
  width: 52vw;
  height: 52vw;
  min-width: 420px;
  min-height: 420px;
  right: -16vw;
  bottom: -8vh;
  background: radial-gradient(circle at 55% 45%, var(--bg-accent-b), transparent 70%);
  animation: ambientFloatB 84s ease-in-out infinite alternate;
}

.container {
  width: min(1180px, 94vw);
  margin: 0 auto;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  filter: blur(10px);
  opacity: 0.3;
  animation: shapeDrift 36s ease-in-out infinite;
}

.bg-shape-a {
  width: 380px;
  height: 380px;
  border-radius: 51% 49% 63% 37% / 40% 43% 57% 60%;
  background: linear-gradient(135deg, var(--shape-a1), var(--shape-a2));
  top: -120px;
  right: -100px;
}

.bg-shape-b {
  width: 320px;
  height: 320px;
  border-radius: 47% 53% 35% 65% / 66% 31% 69% 34%;
  background: linear-gradient(120deg, var(--shape-b1), var(--shape-b2));
  bottom: -140px;
  left: -100px;
  animation-duration: 44s;
}

.solar-blob {
  position: fixed;
  z-index: -1;
  left: var(--sun-x);
  top: var(--sun-y);
  width: var(--sun-size);
  height: var(--sun-size);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, var(--sun-core) 0%, var(--sun-edge) 68%, transparent 75%);
  opacity: var(--sun-opacity);
  filter: blur(1px);
  animation: sunPulse 18s ease-in-out infinite;
}

@keyframes sunPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes shapeDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(16px, -18px, 0) scale(1.06);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes ambientFloatA {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(7vw, -4vh, 0) scale(1.08);
  }
  100% {
    transform: translate3d(14vw, 2vh, 0) scale(0.96);
  }
}

@keyframes ambientFloatB {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-8vw, 6vh, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-14vw, -3vh, 0) scale(0.94);
  }
}

.hero {
  padding: 4.2rem 0 3rem;
}

.hero-inner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 235, 0.92));
  border: 1px solid rgba(217, 211, 196, 0.7);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2.4rem 2rem;
  backdrop-filter: blur(8px);
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--brand-2);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 0.8rem;
}

.subtitle {
  color: var(--muted);
  font-size: 1.03rem;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
  backdrop-filter: none;
  padding: 0.65rem 0;
}

.nav-inner {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(37, 48, 59, 0.08);
  padding: 0.4rem 0.46rem;
}

.nav-links {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid rgba(0, 0, 0, 0);
  border-radius: 999px;
  padding: 0.34rem 0.76rem;
  transition: all 180ms ease;
  font-weight: 500;
  font-size: 0.92rem;
}

.nav-links a:hover {
  border-color: var(--line);
  color: var(--brand);
  background: rgba(255, 255, 255, 0.92);
}

.theme-controls {
  display: flex;
  gap: 0.34rem;
  align-items: center;
}

.theme-select {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 0.33rem 0.7rem;
  line-height: 1.2;
}

.theme-select:disabled {
  opacity: 0.55;
}

body[data-theme="sunrise"] {
  --bg: #f0e7dd;
  --paper: #f8f2e8;
  --card: rgba(249, 243, 236, 0.88);
  --text: #3a3f46;
  --muted: #757f89;
  --line: #d7cabc;
  --brand: #b28974;
  --brand-2: #7f9a93;
  --bg-accent-a: rgba(190, 165, 153, 0.34);
  --bg-accent-b: rgba(149, 168, 157, 0.28);
  --shape-a1: #ddcfc2;
  --shape-a2: #b8b3a8;
  --shape-b1: #a8b8b4;
  --shape-b2: #d7bcae;
}

body[data-theme="noon"] {
  --bg: #e8ece7;
  --paper: #f0f3ef;
  --card: rgba(241, 245, 240, 0.88);
  --text: #32404d;
  --muted: #667986;
  --line: #c8d3cc;
  --brand: #798f8d;
  --brand-2: #9a8f7d;
  --bg-accent-a: rgba(165, 180, 172, 0.33);
  --bg-accent-b: rgba(177, 170, 157, 0.26);
  --shape-a1: #b9c6be;
  --shape-a2: #d5ccb9;
  --shape-b1: #a0b3b5;
  --shape-b2: #c2cebf;
}

body[data-theme="dusk"] {
  --bg: #e6e0db;
  --paper: #f1ebe7;
  --card: rgba(240, 233, 228, 0.88);
  --text: #38404b;
  --muted: #737985;
  --line: #cec2b9;
  --brand: #9d7a71;
  --brand-2: #7e8895;
  --bg-accent-a: rgba(163, 151, 162, 0.28);
  --bg-accent-b: rgba(180, 165, 154, 0.3);
  --shape-a1: #a69dab;
  --shape-a2: #c8b5ad;
  --shape-b1: #8e9ba6;
  --shape-b2: #d3bcae;
}

body[data-theme="midnight"] {
  --bg: #313844;
  --paper: #394251;
  --card: rgba(63, 72, 86, 0.86);
  --text: #dfe4ec;
  --muted: #b3bcc9;
  --line: #4f5b6f;
  --brand: #c9a889;
  --brand-2: #9db9b6;
  --bg-accent-a: rgba(125, 133, 153, 0.32);
  --bg-accent-b: rgba(109, 131, 139, 0.26);
  --shape-a1: #5f6b7f;
  --shape-a2: #87929f;
  --shape-b1: #576f78;
  --shape-b2: #6f7b8c;
  --sun-core: rgba(229, 214, 177, 0.26);
  --sun-edge: rgba(229, 214, 177, 0.05);
}

body[data-theme="midnight"] .top-nav {
  background: transparent;
}

body[data-theme="midnight"] .nav-inner {
  background: rgba(52, 61, 75, 0.88);
  border-color: #617089;
  box-shadow: 0 12px 28px rgba(17, 24, 35, 0.45);
}

body[data-theme="midnight"] .nav-links,
body[data-theme="midnight"] .theme-controls {
  background: transparent;
  border-color: transparent;
}

body[data-theme="midnight"] .nav-links a,
body[data-theme="midnight"] .theme-select {
  background: rgba(66, 76, 92, 0.9);
  color: #dfe4ec;
  border-color: #617089;
}

body[data-theme="midnight"] .nav-links a:hover {
  background: rgba(79, 91, 111, 0.95);
  color: #ffffff;
}

body[data-theme="midnight"] .hero-inner,
body[data-theme="midnight"] .home-intro,
body[data-theme="midnight"] .home-channel-card,
body[data-theme="midnight"] .home-recent-simple,
body[data-theme="midnight"] .home-hero-card,
body[data-theme="midnight"] .home-metric-item,
body[data-theme="midnight"] .home-feature-card,
body[data-theme="midnight"] .home-topic,
body[data-theme="midnight"] .home-gallery-entry,
body[data-theme="midnight"] .home-author-card,
body[data-theme="midnight"] .home-recent-card,
body[data-theme="midnight"] .post-card,
body[data-theme="midnight"] .single-post,
body[data-theme="midnight"] .post-toc-inner,
body[data-theme="midnight"] .gallery-spotlight-meta,
body[data-theme="midnight"] .gallery-feed-item,
body[data-theme="midnight"] .gallery-empty,
body[data-theme="midnight"] .not-found-side {
  background: rgba(66, 76, 92, 0.88);
  border-color: #5c6b82;
  box-shadow: 0 14px 32px rgba(18, 24, 35, 0.42);
}

body[data-theme="midnight"] .not-found-terminal {
  border-color: #5c6b82;
  box-shadow: 0 20px 42px rgba(16, 21, 31, 0.56);
}

body[data-theme="midnight"] .ascii-penguin {
  color: #d7dfec;
  background: linear-gradient(145deg, rgba(79, 91, 111, 0.72), rgba(71, 82, 102, 0.68));
  border-color: #6b7c97;
}

body[data-theme="midnight"] .home-channel-note {
  background: rgba(79, 91, 111, 0.76);
  border-color: #6d7e98;
}

body[data-theme="midnight"] .home-hero-copy h2,
body[data-theme="midnight"] .home-intro h2,
body[data-theme="midnight"] .home-channel-body h3,
body[data-theme="midnight"] .home-channel-note strong,
body[data-theme="midnight"] .post-title,
body[data-theme="midnight"] .home-feature-card h3 a,
body[data-theme="midnight"] .home-recent-list a,
body[data-theme="midnight"] .post-content h1,
body[data-theme="midnight"] .post-content h2,
body[data-theme="midnight"] .post-content h3 {
  color: #f0f4fb;
}

body[data-theme="midnight"] .subtitle,
body[data-theme="midnight"] .home-intro p,
body[data-theme="midnight"] .home-channel-body p,
body[data-theme="midnight"] .home-recent-copy p,
body[data-theme="midnight"] .post-summary,
body[data-theme="midnight"] .home-hero-copy p,
body[data-theme="midnight"] .home-feature-card p,
body[data-theme="midnight"] .home-recent-list span,
body[data-theme="midnight"] .post-content p,
body[data-theme="midnight"] .post-content li,
body[data-theme="midnight"] .post-desc,
body[data-theme="midnight"] .section-head p {
  color: #c7cfdd;
}

body[data-theme="midnight"] .home-readmore,
body[data-theme="midnight"] .home-channel-link,
body[data-theme="midnight"] .home-recent-head a,
body[data-theme="midnight"] .post-content a,
body[data-theme="midnight"] .home-author-link {
  color: #e8c9a6;
}

body[data-theme="midnight"] .post-divider {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), #617089, rgba(0, 0, 0, 0));
}

body[data-theme="midnight"] .gallery-spotlight-media {
  border-color: #5c6b82;
  box-shadow: 0 14px 32px rgba(18, 24, 35, 0.5);
}

body[data-theme="midnight"] .gallery-kicker,
body[data-theme="midnight"] .gallery-feed-index {
  color: #b7c8dc;
}

body[data-theme="midnight"] .gallery-meta-row span {
  background: rgba(79, 91, 111, 0.84);
  border-color: #6d7e98;
  color: #d6ddea;
}

body[data-theme="midnight"] .home-cta {
  background: linear-gradient(135deg, #ba9870, #9c7650);
  color: #fdf8ef;
}

body[data-theme="midnight"] .tag {
  background: rgba(79, 91, 111, 0.88);
  border-color: #6d7e98;
  color: #dce3ef;
}

body[data-theme="midnight"] .post-content code:not(pre code) {
  background: var(--code-inline-bg);
  color: var(--code-inline-text);
}

body[data-theme="mist"] {
  --bg: #e3e8e6;
  --paper: #eef2ef;
  --card: rgba(238, 243, 240, 0.88);
  --text: #324247;
  --muted: #6b7d82;
  --line: #c7d2d0;
  --brand: #7b8f95;
  --brand-2: #9ea68f;
  --bg-accent-a: rgba(163, 176, 176, 0.28);
  --bg-accent-b: rgba(176, 187, 174, 0.25);
  --shape-a1: #b7c5c6;
  --shape-a2: #c4cdbb;
  --shape-b1: #9eb2b3;
  --shape-b2: #bbc9c0;
}

body[data-theme="rose"] {
  --bg: #ebe0df;
  --paper: #f4ebea;
  --card: rgba(244, 236, 235, 0.88);
  --text: #3f3d44;
  --muted: #7f7884;
  --line: #d8c8c7;
  --brand: #ae8985;
  --brand-2: #8d9e9a;
  --bg-accent-a: rgba(186, 160, 162, 0.32);
  --bg-accent-b: rgba(169, 180, 171, 0.25);
  --shape-a1: #d3bfc1;
  --shape-a2: #b5a7b0;
  --shape-b1: #b7c3bd;
  --shape-b2: #d7c0b7;
}

body[data-theme="midnight"] {
  --code-bg: #1e1e2e;
  --code-panel: #181825;
  --code-border: #45475a;
  --code-text: #cdd6f4;
  --code-muted: #7f849c;
  --code-inline-bg: #313244;
  --code-inline-text: #cba6f7;
  --code-comment: #6c7086;
  --code-red: #f38ba8;
  --code-orange: #fab387;
  --code-yellow: #f9e2af;
  --code-green: #a6e3a1;
  --code-teal: #94e2d5;
  --code-blue: #89b4fa;
  --code-mauve: #cba6f7;
  --code-pink: #f5c2e7;
}

.main-wrap {
  padding: 2rem 0 2.5rem;
}

.section-head {
  margin-bottom: 1.1rem;
}

.section-head h2 {
  font-size: 1.45rem;
  margin-bottom: 0.2rem;
}

.section-head p {
  color: var(--muted);
}

.post-card,
.single-post {
  background: var(--card);
  border: 1px solid rgba(217, 211, 196, 0.9);
  border-radius: 18px;
  padding: 1.3rem 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.post-card {
  margin-bottom: 1rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(31, 41, 51, 0.12);
}

.post-date,
.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.post-card h3 {
  margin: 0.32rem 0 0.55rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.post-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--brand);
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  font-size: 0.76rem;
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.12), rgba(15, 118, 110, 0.12));
  color: var(--brand-2);
  border: 1px solid rgba(15, 118, 110, 0.2);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.tag:hover {
  transform: translateY(-1px);
  color: var(--brand);
  border-color: rgba(180, 83, 9, 0.28);
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.16), rgba(15, 118, 110, 0.16));
}

.single-post {
  padding: 1.9rem 1.65rem 2rem;
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1rem;
  align-items: start;
}

.post-header {
  max-width: 900px;
}

.post-kicker {
  color: var(--brand-2);
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.post-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 0.7rem;
}

.post-summary {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
  max-width: 56ch;
}

.post-meta {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.95rem;
}

.post-divider {
  width: 100%;
  height: 1px;
  margin: 1.25rem 0 1.35rem;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), var(--line), rgba(0, 0, 0, 0));
}

.post-tags {
  margin-top: 0.8rem;
}

.post-content {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 1.02rem;
  line-height: 1.9;
  max-width: 900px;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content pre,
.post-content table {
  margin-bottom: 1rem;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.18;
}

.post-content h1 {
  font-size: 1.9rem;
  margin: 1.35rem 0 0.8rem;
}

.post-content h2 {
  font-size: 1.55rem;
  margin: 2.05rem 0 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0);
  background: linear-gradient(90deg, rgba(118, 140, 134, 0.22), rgba(118, 140, 134, 0)) left bottom / 100% 1px no-repeat;
}

.post-content h3 {
  font-size: 1.2rem;
  margin: 1.45rem 0 0.72rem;
}

.post-content a {
  color: var(--brand-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.post-content code:not(pre code) {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  color: var(--code-inline-text);
  background: var(--code-inline-bg);
  border-radius: 6px;
  padding: 0.12rem 0.34rem;
}

.post-content pre {
  border-radius: 12px;
  overflow: auto;
  border: 1px solid var(--code-border);
  background: var(--code-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.post-content pre code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--code-text);
  background: transparent;
  display: block;
  padding: 1rem 1.05rem;
}

.hljs {
  background: var(--code-bg);
  color: var(--code-text);
}

.hljs-comment,
.hljs-quote {
  color: var(--code-comment);
  font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
  color: var(--code-mauve);
}

.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-template-variable,
.hljs-tag .hljs-attr {
  color: var(--code-orange);
}

.hljs-string,
.hljs-doctag,
.hljs-regexp,
.hljs-addition,
.hljs-attribute,
.hljs-meta .hljs-string {
  color: var(--code-green);
}

.hljs-title,
.hljs-section,
.hljs-selector-id,
.hljs-selector-class,
.hljs-type,
.hljs-built_in,
.hljs-builtin-name {
  color: var(--code-blue);
}

.hljs-symbol,
.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-selector-attr,
.hljs-selector-pseudo {
  color: var(--code-teal);
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: 700;
}

.hljs-deletion {
  color: var(--code-red);
}

.hljs-operator,
.hljs-punctuation {
  color: var(--code-muted);
}

.post-content blockquote {
  border-left: 3px solid var(--brand);
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.08), rgba(118, 140, 134, 0.06));
  border-radius: 0 14px 14px 0;
  padding: 0.8rem 1rem;
  color: #7c2d12;
}

.post-content img {
  display: block;
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  margin: 1rem auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(55, 44, 27, 0.1);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.post-content th,
.post-content td {
  border: 1px solid var(--line);
  padding: 0.52rem 0.6rem;
  text-align: left;
}

.post-content thead {
  background: rgba(82, 96, 109, 0.08);
}

.post-toc {
  position: sticky;
  top: 92px;
  width: 280px;
}

.post-toc-inner {
  background: var(--card);
  border: 1px solid rgba(217, 211, 196, 0.9);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1rem 1rem 1.05rem;
  max-height: calc(100vh - 118px);
  overflow: auto;
}

.post-toc-title {
  margin-bottom: 0.7rem;
  font-weight: 700;
  color: var(--brand-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.post-toc nav ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.post-toc nav ul ul {
  margin-top: 0.2rem;
  margin-left: 0.75rem;
  padding-left: 0.55rem;
  border-left: 1px dashed var(--line);
}

.post-toc li {
  margin: 0.2rem 0;
}

.post-toc a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  display: block;
  padding: 0.14rem 0.48rem;
  border-radius: 8px;
}

.post-toc a:hover {
  color: var(--brand);
}

.post-toc a.active {
  color: var(--brand);
  font-weight: 700;
  background: rgba(180, 83, 9, 0.12);
  border-left: 3px solid var(--brand);
}

.home-page .hero {
  padding: 2.6rem 0 1.2rem;
}

.home-page .hero-inner h1 {
  font-size: clamp(1.65rem, 3.3vw, 2.3rem);
}

.home-intro {
  background: linear-gradient(145deg, rgba(250, 247, 240, 0.92), rgba(244, 238, 229, 0.84));
  border: 1px solid #ddd5c3;
  border-radius: 26px;
  box-shadow: 0 16px 38px rgba(92, 80, 62, 0.12);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}

.home-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  max-width: 20ch;
}

.home-intro p {
  color: var(--muted);
  max-width: 56ch;
}

.home-channel-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.home-channel-card {
  background: rgba(250, 247, 240, 0.88);
  border: 1px solid #ddd5c3;
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(92, 80, 62, 0.14);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  min-height: 320px;
}

.home-channel-media-link {
  display: block;
}

.home-channel-image,
.home-channel-media {
  width: 100%;
  height: 100%;
  display: block;
}

.home-channel-image {
  object-fit: cover;
  transition: transform 500ms ease;
}

.home-channel-card:hover .home-channel-image {
  transform: scale(1.03);
}

.home-channel-media-blog {
  position: relative;
  background:
    linear-gradient(140deg, #ebe4d7, #f7f3ea);
}

.home-channel-media-gallery {
  position: relative;
  background:
    linear-gradient(150deg, #e8e2d7, #f4efe6);
}

.home-channel-grid {
  position: absolute;
  inset: 16px;
  border-radius: 20px;
  background-image:
    linear-gradient(rgba(120, 132, 138, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 132, 138, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(135deg, #000 55%, transparent);
}

.home-channel-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  animation: floatOrb 8s ease-in-out infinite;
}

.home-channel-orb-a {
  width: 144px;
  height: 144px;
  left: 28px;
  top: 28px;
  background: rgba(141, 177, 155, 0.48);
}

.home-channel-orb-b {
  width: 82px;
  height: 82px;
  right: 42px;
  bottom: 32px;
  background: rgba(215, 184, 163, 0.42);
  animation-delay: 0.6s;
}

.home-channel-orb-c {
  width: 110px;
  height: 110px;
  left: 32px;
  bottom: 28px;
  background: rgba(178, 198, 186, 0.44);
}

.home-channel-orb-d {
  width: 72px;
  height: 72px;
  right: 34px;
  top: 34px;
  background: rgba(211, 182, 158, 0.38);
  animation-delay: 0.4s;
}

.home-channel-body {
  padding: 1.25rem 1.2rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-channel-body h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.18;
  margin-bottom: 0.4rem;
}

.home-channel-body p {
  color: var(--muted);
  margin-bottom: 0.82rem;
  max-width: 34ch;
}

.home-channel-note {
  margin-bottom: 0.9rem;
  padding: 0.58rem 0.7rem;
  border: 1px solid #ddd1be;
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.8);
}

.home-channel-note span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 0.18rem;
}

.home-channel-note strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.45;
}

.home-channel-link {
  text-decoration: none;
  color: #fffaf0;
  font-weight: 600;
  align-self: flex-start;
  background: linear-gradient(135deg, #bc9a63, #a87e47);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  box-shadow: 0 10px 22px rgba(132, 104, 61, 0.22);
}

.home-channel-link:hover {
  transform: translateY(-1px);
}

.home-recent-simple {
  background: rgba(250, 247, 240, 0.88);
  border: 1px solid #ddd5c3;
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(92, 80, 62, 0.12);
  padding: 1.05rem 1.1rem;
}

.home-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.home-recent-head h3 {
  font-size: 1.06rem;
}

.home-recent-head a {
  text-decoration: none;
  color: #8a6a3f;
  font-size: 0.9rem;
}

.home-recent-head a:hover {
  text-decoration: underline;
}

.home-hero-card {
  display: grid;
  grid-template-columns: 36% 1fr;
  border-radius: 30px;
  background: linear-gradient(155deg, #f9f6ef, #f0ece2);
  border: 1px solid #ddd4c2;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(90, 80, 62, 0.16);
  margin-bottom: 1rem;
}

.home-hero-art {
  position: relative;
  min-height: 250px;
  background:
    radial-gradient(circle at 25% 24%, rgba(151, 186, 163, 0.45), transparent 40%),
    radial-gradient(circle at 74% 70%, rgba(203, 169, 153, 0.38), transparent 45%),
    linear-gradient(145deg, #e8e2d4, #f7f4eb);
}

.home-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
}

.home-orb-a {
  width: 128px;
  height: 128px;
  top: 18px;
  left: 20px;
  background: rgba(140, 178, 154, 0.46);
  animation: floatOrb 7s ease-in-out infinite;
}

.home-orb-b {
  width: 86px;
  height: 86px;
  right: 26px;
  top: 42px;
  background: rgba(220, 198, 170, 0.5);
  animation: floatOrb 8s ease-in-out infinite 0.6s;
}

.home-orb-c {
  width: 60px;
  height: 60px;
  right: 72px;
  bottom: 30px;
  background: rgba(182, 202, 186, 0.55);
  animation: floatOrb 6.8s ease-in-out infinite 0.3s;
}

@keyframes floatOrb {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.home-hero-copy {
  padding: 1.55rem 1.45rem 1.4rem;
}

.home-label {
  color: #8f7350;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.home-hero-copy h2 {
  font-size: clamp(1.38rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 0.6rem;
  max-width: 18ch;
}

.home-hero-copy p {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 44ch;
}

.home-cta {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(135deg, #bc9a63, #a87e47);
  color: #fffaf0;
  border-radius: 999px;
  padding: 0.42rem 0.98rem;
  font-size: 0.84rem;
  box-shadow: 0 8px 18px rgba(132, 104, 61, 0.24);
}

.home-cta:hover {
  transform: translateY(-1px);
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.95rem;
}

.home-metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.95rem;
}

.home-metric-item {
  background: rgba(255, 252, 245, 0.75);
  border: 1px solid #ded6c4;
  border-radius: 16px;
  padding: 0.7rem 0.8rem;
  text-align: center;
  box-shadow: 0 10px 26px rgba(91, 79, 59, 0.09);
}

.home-metric-num {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}

.home-metric-label {
  display: block;
  margin-top: 0.1rem;
  color: #786e60;
  font-size: 0.82rem;
}

.home-feature-card {
  background: rgba(250, 247, 240, 0.86);
  border: 1px solid #ddd5c4;
  border-radius: 26px;
  padding: 0.9rem 0.82rem 1rem;
  text-align: center;
  box-shadow: 0 14px 35px rgba(94, 82, 63, 0.13);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(94, 82, 63, 0.18);
}

.home-feature-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 999px;
  max-height: 170px;
  margin-bottom: 0.6rem;
  background:
    radial-gradient(circle at 64% 30%, rgba(160, 194, 171, 0.4), transparent 45%),
    radial-gradient(circle at 24% 70%, rgba(204, 169, 169, 0.42), transparent 43%),
    #ebe7dd;
  border: 1px solid #d9d1bf;
}

.home-feature-card h3 {
  font-size: 1.02rem;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.home-feature-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.home-feature-card p {
  color: var(--muted);
  font-size: 0.88rem;
  min-height: 2.8em;
}

.home-readmore {
  display: inline-block;
  margin-top: 0.45rem;
  text-decoration: none;
  color: #8a6a3f;
  font-weight: 600;
  font-size: 0.86rem;
}

.home-topic-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1.05rem;
}

.home-topic {
  text-align: center;
  background: linear-gradient(180deg, #faf7f1, #f2ede2);
  border: 1px solid #ded6c5;
  color: #6d6356;
  border-radius: 999px;
  padding: 0.5rem 0.5rem;
  text-decoration: none;
  font-size: 0.88rem;
  box-shadow: 0 8px 18px rgba(88, 76, 58, 0.09);
}

.home-topic:hover {
  color: var(--brand);
  border-color: #c7b188;
}

.home-gallery-entry {
  background: rgba(250, 247, 240, 0.86);
  border: 1px solid #ddd5c3;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(92, 80, 62, 0.12);
  padding: 0.95rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.home-gallery-copy h3 {
  font-size: 1.18rem;
  margin-bottom: 0.2rem;
}

.home-gallery-copy p {
  color: var(--muted);
  font-size: 0.9rem;
}

.home-gallery-btn {
  text-decoration: none;
  background: linear-gradient(135deg, #bc9a63, #a87e47);
  color: #fffaf0;
  border-radius: 999px;
  padding: 0.45rem 0.92rem;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(132, 104, 61, 0.24);
}

.home-bottom-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0.9rem;
}

.home-author-card,
.home-recent-card {
  background: rgba(250, 247, 240, 0.86);
  border: 1px solid #ddd5c3;
  border-radius: 22px;
  padding: 0.95rem;
  box-shadow: 0 14px 34px rgba(92, 80, 62, 0.12);
}

.home-author-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0.4rem auto 0.6rem;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #765f3f;
  background: linear-gradient(160deg, #efe8d8, #dac9ac);
}

.home-author-card h3 {
  text-align: center;
  margin-bottom: 0.3rem;
}

.home-author-card p {
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.home-author-link {
  display: inline-block;
  margin: 0.65rem auto 0;
  text-decoration: none;
  color: #84633a;
  border: 1px solid #cfbea0;
  border-radius: 999px;
  padding: 0.26rem 0.72rem;
  font-size: 0.82rem;
}

.home-recent-card h3 {
  margin-bottom: 0.6rem;
}

.home-recent-list {
  list-style: none;
}

.home-recent-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-top: 1px solid #e5ddce;
  padding: 0.75rem 0;
}

.home-recent-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.home-recent-list a {
  text-decoration: none;
  color: var(--text);
  line-height: 1.35;
  font-size: 1rem;
}

.home-recent-copy {
  min-width: 0;
}

.home-recent-copy p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.18rem;
  max-width: 56ch;
}

.home-recent-list a:hover {
  color: var(--brand);
}

.home-recent-list span {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.gallery-spotlight {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.gallery-spotlight-media {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #ddd5c3;
  box-shadow: 0 16px 34px rgba(92, 80, 62, 0.18);
}

.gallery-spotlight-media img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.gallery-spotlight-meta {
  background: rgba(250, 247, 240, 0.86);
  border: 1px solid #ddd5c3;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(92, 80, 62, 0.12);
  padding: 1.2rem 1.1rem;
}

.gallery-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-2);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gallery-spotlight-meta h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.gallery-spotlight-meta p {
  color: var(--muted);
}

.gallery-meta-row {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gallery-meta-row span {
  display: inline-flex;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  border: 1px solid #d7c9b6;
  background: rgba(255, 252, 247, 0.86);
  font-size: 0.78rem;
  color: var(--muted);
}

.gallery-feed {
  display: grid;
  gap: 0.8rem;
}

.gallery-feed-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 0.85rem;
  background: rgba(250, 247, 240, 0.86);
  border: 1px solid #ddd5c3;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(92, 80, 62, 0.12);
  padding: 0.7rem;
}

.gallery-feed-thumb {
  border-radius: 14px;
  overflow: hidden;
  display: block;
}

.gallery-feed-thumb img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  display: block;
}

.gallery-feed-index {
  font-size: 0.78rem;
  color: var(--brand-2);
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.gallery-feed-body h4 {
  font-size: 1.03rem;
  margin-bottom: 0.26rem;
}

.gallery-feed-desc {
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.gallery-feed-link {
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
}

.gallery-feed-link:hover {
  text-decoration: underline;
}

.gallery-empty {
  background: rgba(250, 247, 240, 0.86);
  border: 1px solid #ddd5c3;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(92, 80, 62, 0.12);
  padding: 1rem;
  color: var(--muted);
}

.not-found-page {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.not-found-terminal {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #d6cabb;
  background: #171b23;
  box-shadow: 0 20px 42px rgba(24, 28, 36, 0.3);
}

.terminal-bar {
  height: 40px;
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  background: linear-gradient(180deg, #2a3040, #222836);
  border-bottom: 1px solid rgba(224, 232, 248, 0.14);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5a667d;
}

.terminal-bar span:first-child {
  background: #d78a8a;
}

.terminal-bar span:nth-child(2) {
  background: #d6bb87;
}

.terminal-bar span:nth-child(3) {
  background: #8db39a;
}

.terminal-bar p {
  margin-left: 0.34rem;
  font-family: "JetBrains Mono", monospace;
  color: #c6cfde;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.terminal-body {
  padding: 1.1rem 1rem 0.85rem;
  font-family: "JetBrains Mono", monospace;
  color: #d7deea;
}

.terminal-line {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 0.42rem;
}

.prompt {
  color: #8ec9b4;
  margin-right: 0.35rem;
}

.terminal-error {
  color: #e9a7a5;
}

.terminal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.56rem;
  padding: 0 1rem 1rem;
}

.terminal-btn {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f5f8ff;
  background: linear-gradient(135deg, #7d8ea8, #6f819f);
  border-radius: 999px;
  padding: 0.36rem 0.76rem;
  border: 1px solid rgba(236, 242, 252, 0.22);
  transition: transform 180ms ease, background 180ms ease;
}

.terminal-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #8798b2, #778aa8);
}

.terminal-btn-alt {
  background: linear-gradient(135deg, #5e728f, #516682);
}

.not-found-side {
  border-radius: 20px;
  border: 1px solid #d8cdbe;
  background: rgba(251, 247, 239, 0.85);
  box-shadow: 0 14px 34px rgba(72, 63, 48, 0.14);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.not-found-side-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--brand-2);
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.ascii-penguin {
  white-space: pre;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.28;
  color: #55616f;
  background: linear-gradient(145deg, rgba(245, 240, 230, 0.8), rgba(236, 229, 215, 0.72));
  border: 1px solid #d9ccbb;
  border-radius: 12px;
  padding: 0.78rem 0.72rem;
  animation: penguinShiver 1.25s ease-in-out infinite;
  transform-origin: center 70%;
}

.not-found-side-note {
  margin-top: 0.58rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.84rem;
}

@keyframes penguinShiver {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  16% {
    transform: translateX(-1.5px) rotate(-0.5deg);
  }
  32% {
    transform: translateX(1.7px) rotate(0.6deg);
  }
  48% {
    transform: translateX(-1.2px) rotate(-0.4deg);
  }
  64% {
    transform: translateX(1.3px) rotate(0.4deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 1.4rem 0 2rem;
}

.footer-meta {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  opacity: 0.92;
}

.footer-github {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.45rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid #d8cfbe;
  background: rgba(255, 252, 245, 0.8);
  text-decoration: none;
  transition: all 180ms ease;
}

.footer-github svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-github:hover {
  color: var(--brand);
  border-color: #cdb68f;
  transform: translateY(-1px);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.post-card:nth-of-type(2) {
  transition-delay: 60ms;
}

.post-card:nth-of-type(3) {
  transition-delay: 120ms;
}

.post-card:nth-of-type(4) {
  transition-delay: 180ms;
}

@media (max-width: 820px) {
  body::before,
  body::after {
    opacity: 0.24;
    filter: blur(12px);
  }

  .hero {
    padding-top: 3.1rem;
  }

  .hero-inner {
    padding: 1.8rem 1.2rem;
    border-radius: 18px;
  }

  .nav-inner {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }

  .theme-controls {
    width: 100%;
    justify-content: center;
  }

  .main-wrap {
    padding-top: 1.3rem;
  }

  .post-card,
  .single-post {
    border-radius: 14px;
  }

  .single-post {
    padding: 1.25rem 1rem 1.4rem;
  }

  .post-title {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .home-hero-card {
    grid-template-columns: 1fr;
  }

  .home-intro,
  .home-channel-card,
  .home-recent-simple {
    border-radius: 16px;
  }

  .home-channel-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-channel-image,
  .home-channel-media {
    height: 210px;
  }

  .home-channel-body {
    padding: 1rem 0.95rem 1rem;
  }

  .home-recent-list li {
    flex-direction: column;
    gap: 0.35rem;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-metric-strip {
    grid-template-columns: 1fr;
  }

  .home-topic-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-bottom-grid {
    grid-template-columns: 1fr;
  }

  .home-gallery-entry {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-spotlight {
    grid-template-columns: 1fr;
  }

  .gallery-spotlight-media img {
    height: 300px;
  }

  .gallery-feed-item {
    grid-template-columns: 1fr;
  }

  .gallery-feed-thumb img {
    height: 210px;
  }

  .not-found-page {
    grid-template-columns: 1fr;
  }

  .single-layout {
    grid-template-columns: 1fr;
  }

  .post-toc {
    position: static;
    order: -1;
    width: auto;
  }

  .post-toc-inner {
    max-height: none;
  }
}
