:root {
  --bg: #0a0a0b;
  --panel: #121415;
  --text: #ededeb;
  --muted: #76767a;
  --subtle: #4d4d52;
  --line: rgba(237, 237, 235, 0.12);
  --accent: #ff6b3d;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4.5vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #000;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font: inherit;
  touch-action: manipulation;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  vertical-align: middle;
}

p {
  line-height: 1.8;
  margin-top: 0;
}

h1, h2, h3, h4 {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.screen-reader-text, .skip-link:not(:focus) {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute !important;
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  background: var(--text);
  color: var(--bg);
  padding: 12px;
}

.tiny-dot, .brand-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* line mask reveal */
.ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.ln > span {
  display: inline-block;
  will-change: transform;
}

/* =========================================================
 * FIXED FULLSCREEN CANVAS & HUD
 * ========================================================= */
#orbit-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
}

main#main {
  position: relative;
  z-index: 1;
}

.hud {
  position: fixed;
  right: var(--gutter);
  bottom: 28px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  pointer-events: none;
  user-select: none;
}

.hud i {
  width: 72px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.hud b {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  display: block;
}

.hud #hudIdx {
  color: var(--text);
  font-weight: 600;
}

.hud #hudName {
  letter-spacing: 0.08em;
}

/* =========================================================
 * SITE HEADER & NAVIGATION
 * ========================================================= */
.site-header {
  height: 80px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  z-index: 40;
  width: 100%;
  top: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 11, 0.85) 0%, rgba(10, 10, 11, 0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(237, 237, 235, 0.06);
}

.brand {
  font-size: 16px;
  letter-spacing: -0.02em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}

.brand-dot {
  width: 5px;
  height: 5px;
  margin-top: 1px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.desktop-nav a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.25s;
}

.desktop-nav a:hover, .desktop-nav a.on {
  color: var(--text);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.clock {
  color: var(--muted);
  font-size: 11px;
}

.clock [data-clock] {
  color: var(--text);
  margin-left: 6px;
}

.search-toggle, .menu-toggle {
  background: none;
  border: 0;
  padding: 8px;
  color: var(--muted);
  transition: color 0.2s;
}

.search-toggle:hover, .menu-toggle:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  font-size: 18px;
}

.search-panel {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  z-index: 39;
  background: rgba(18, 20, 21, 0.95);
  backdrop-filter: blur(16px);
  border-block: 1px solid var(--line);
  padding: 28px var(--gutter);
}

.search-inner {
  max-width: 1000px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.search-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 860px;
}

.search-form input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--subtle);
  padding: 14px 4px;
  color: var(--text);
  font-size: 17px;
}

.search-form button {
  white-space: nowrap;
  background: var(--text);
  color: var(--bg);
  padding: 10px 22px;
  border: 0;
  font-weight: 500;
}

.search-close {
  white-space: nowrap;
  background: none;
  border: 0;
  color: var(--muted);
}

.mobile-nav {
  position: fixed;
  top: 80px;
  left: 0;
  background: rgba(18, 20, 21, 0.95);
  backdrop-filter: blur(16px);
  width: 100%;
  z-index: 38;
  border-block: 1px solid var(--line);
  padding: 20px var(--gutter);
}

.mobile-nav a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
}

/* =========================================================
 * 00 HERO SECTION
 * ========================================================= */
.hero-section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px var(--gutter) 40px;
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 160px);
  min-height: calc(100svh - 160px);
}

.hero-eyebrow {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.hero-title {
  margin: auto 0;
  padding: 24px 0;
}

.hero-title h1 {
  font-size: clamp(52px, 9.5vw, 150px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin: 0;
}

.hero-title .accent {
  color: var(--accent);
  font-weight: 300;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-top: 30px;
}

.hero-caption {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 580px;
}

.avatar-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  flex-shrink: 0;
}

.avatar-mark span {
  font-size: 11px;
  color: var(--accent);
  margin-left: 2px;
}

.hero-caption p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 4px;
}

.hero-caption span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.3s;
}

.scroll-cue:hover {
  color: var(--text);
}

.scroll-line {
  width: 52px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  animation: scrollRunner 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes scrollRunner {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* =========================================================
 * 01 STORY SECTION (400vh SCROLL STICKY)
 * ========================================================= */
.story-chap {
  position: relative;
  height: calc(var(--steps, 3) * var(--step, 130vh));
  padding: 0;
}

.chap__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
}

.story-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--gutter) 80px;
  opacity: 0;
  transform: translateY(36px);
  filter: blur(10px);
  transition: opacity 0.75s var(--ease),
              transform 0.85s var(--ease),
              filter 0.75s var(--ease);
  pointer-events: none;
}

.story-panel.on {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.story-panel .kicker {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  margin-bottom: 24px;
  letter-spacing: 0.06em;
}

.story-panel .kicker span {
  color: var(--accent);
}

.story-panel .big {
  font-size: clamp(68px, 12vw, 180px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin: 0 0 28px;
}

.story-panel .big .accent {
  color: var(--accent);
}

.story-panel .cap {
  color: var(--muted);
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.8;
  max-width: 520px;
  margin: 0;
  letter-spacing: 0.01em;
}

/* =========================================================
 * 02 ABOUT SECTION & 03 WRITING SECTION
 * ========================================================= */
.section-shell {
  padding: 140px var(--gutter);
  position: relative;
}

.about-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
}

.about-copy {
  max-width: 620px;
  background: rgba(10, 10, 11, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.about-copy h2 {
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--text);
}

.about-copy h2 .accent {
  color: var(--accent);
  margin-left: 6px;
}

.about-copy p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 32px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips span {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 11px;
  color: var(--muted);
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.02);
}

.chips span:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.writing-section {
  min-height: 90vh;
  border-top: 1px solid var(--line);
}

.section-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 35px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0;
}

.section-heading h2 span {
  color: var(--muted);
}

.section-heading h2 .accent {
  font-style: normal;
  color: var(--accent);
}

.text-link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.post-row {
  position: relative;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 60px 1fr 100px;
  gap: 24px;
  padding: 32px 0;
  transition: background 0.25s;
}

.post-row:last-child {
  border-bottom: 1px solid var(--line);
}

.row-number {
  color: var(--subtle);
  font-size: 11px;
  padding-top: 5px;
}

.post-meta {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.post-meta > span:first-child {
  color: var(--accent);
}

.post-row h3 {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.5;
  margin-bottom: 10px;
}

.post-row h3 a {
  display: block;
}

.post-row h3 a:after {
  content: '';
  position: absolute;
  inset: 0;
}

.row-arrow {
  display: inline-block;
  margin-left: 14px;
  color: var(--subtle);
  transition: transform 0.25s, color 0.25s;
}

.post-row:hover .row-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.post-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.post-row p {
  font-size: 13px;
  color: var(--muted);
  max-width: 760px;
  margin: 0;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reading-time {
  font-size: 10px;
  color: var(--subtle);
  align-self: center;
  text-align: right;
  white-space: nowrap;
}

.archive-cta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  padding: 34px 0;
  color: var(--muted);
}

.archive-cta span:last-child {
  color: var(--text);
  transition: color 0.25s;
}

.archive-cta:hover span:last-child {
  color: var(--accent);
}

/* =========================================================
 * SITE FOOTER
 * ========================================================= */
.site-footer {
  padding: 80px var(--gutter) 36px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
  background: var(--bg);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 75px;
  gap: 24px;
}

.footer-top p {
  font-size: clamp(34px, 4vw, 64px);
  letter-spacing: -0.04em;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

.footer-top p > span {
  color: var(--subtle);
}

.back-top {
  font-size: 11px;
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  transition: color 0.25s;
}

.back-top:hover {
  color: var(--text);
}

.footer-bottom {
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--subtle);
  line-height: 1.8;
}

.footer-bottom > div {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: var(--muted);
  transition: color 0.25s;
}

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

/* =========================================================
 * ARTICLES, LISTING PAGES & COMMENTS
 * ========================================================= */
.listing-page {
  min-height: 75vh;
  padding-top: 160px;
  max-width: 1400px;
  margin: auto;
  padding-inline: var(--gutter);
}

.listing-page .section-heading {
  margin-bottom: 60px;
}

.listing-page h1 {
  font-size: clamp(38px, 5.5vw, 84px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.045em;
  margin: 0;
  overflow-wrap: anywhere;
}

.count-label {
  color: var(--muted);
  white-space: nowrap;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-block: 1px solid var(--line);
  padding: 24px 0;
  margin-bottom: 55px;
}

.category-list a {
  font-size: 12px;
  color: var(--muted);
}

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

.category-list sup {
  font-size: 9px;
  margin-left: 6px;
  color: var(--subtle);
}

.archive-year {
  font-size: 16px;
  color: var(--accent);
  font-weight: 500;
  margin: 50px 0 22px;
}

.pagination, .nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.pagination .page-numbers {
  padding: 10px 16px;
  border: 1px solid var(--line);
  font-size: 12px;
}

.pagination .current {
  background: var(--text);
  color: var(--bg);
}

.empty-state {
  padding: 45px 0;
  color: var(--muted);
}

.archive-description {
  max-width: 760px;
  color: var(--muted);
  margin-bottom: 35px;
}

.article-shell {
  max-width: 1100px;
  padding: 140px var(--gutter) 90px;
  margin: auto;
}

.article-back {
  display: inline-block;
  color: var(--muted);
  margin-bottom: 50px;
  font-size: 12px;
}

.article-header {
  max-width: 860px;
  margin: 0 auto 60px;
  padding-bottom: 45px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  font-weight: 500;
  font-size: clamp(30px, 4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.4;
  margin: 20px 0 28px;
  overflow-wrap: anywhere;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}

.article-byline > span:not(.tiny-dot) {
  color: var(--line);
}

.article-layout {
  position: relative;
}

.entry-content {
  max-width: 760px;
  margin: auto;
  font-size: 16px;
  line-height: 1.95;
  color: #cdd0ca;
  overflow-wrap: anywhere;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p {
  margin-bottom: 1.6em;
  line-height: 1.95;
}

.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
  color: var(--text);
  line-height: 1.5;
  margin-top: 2em;
  margin-bottom: 0.8em;
  scroll-margin-top: 40px;
}

.entry-content h2 {
  font-size: 26px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.entry-content h3 {
  font-size: 20px;
  font-weight: 500;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(255, 107, 61, 0.35);
  text-underline-offset: 4px;
}

.entry-content a:hover {
  text-decoration-color: var(--accent);
}

.entry-content figure {
  margin: 2em 0;
}

.entry-content img {
  height: auto;
  border-radius: 4px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.entry-content img.can-zoom {
  cursor: zoom-in;
}

.entry-content img.can-zoom:hover {
  opacity: 0.92;
}

.broken-img-badge {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(255, 60, 60, 0.08);
  border: 1px dashed rgba(255, 100, 100, 0.3);
  border-radius: 4px;
  color: #ff8888;
  font-size: 12px;
  margin: 12px 0;
}

/* Image Lightbox Modal */
.orbit-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.orbit-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lb-container {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lb-img {
  max-width: 92vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: zoom-out;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.orbit-lightbox.is-open .lb-img {
  transform: scale(1);
}

.lb-caption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  max-width: 800px;
  letter-spacing: 0.04em;
}

.lb-close {
  position: absolute;
  top: -46px;
  right: -10px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.entry-content figcaption {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.7;
}

.entry-content pre {
  background: #121415;
  border: 1px solid var(--line);
  padding: 24px;
  overflow: auto;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.85;
  white-space: pre;
  tab-size: 4;
  color: #d6dbcd;
}

.entry-content code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: #1b1e1f;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  color: #dddac5;
}

.entry-content pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.entry-content blockquote {
  border-left: 2px solid var(--accent);
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  color: var(--muted);
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content ul, .entry-content ol {
  padding-left: 1.5em;
}

.entry-content li {
  margin-bottom: 0.4em;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.7;
}

.entry-content td, .entry-content th {
  padding: 12px;
  border: 1px solid var(--line);
  color: inherit;
}

.article-toc {
  margin: 0 auto 40px;
  max-width: 760px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.article-toc > .mono {
  color: var(--muted);
  font-size: 10px;
}

.article-toc ol {
  padding-left: 18px;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
}

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

.article-end {
  max-width: 760px;
  margin: 60px auto 30px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}

.article-end > .mono {
  color: var(--subtle);
  font-size: 10px;
}

.tag-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.tag-links a {
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 99px;
  color: var(--muted);
  font-size: 11px;
}

.tag-links a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.post-navigation {
  max-width: 860px;
  margin: 60px auto;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block: 1px solid var(--line);
  padding: 30px 0;
  gap: 35px;
}

.post-navigation .nav-next {
  text-align: right;
  grid-column: 2;
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.8;
}

.nav-label {
  font-size: 10px;
  color: var(--muted);
}

.comments-area {
  max-width: 760px;
  margin: 80px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.comments-area h2 {
  font-weight: 500;
  font-size: 26px;
}

.comment-list {
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.comment-list .children {
  list-style: none;
  padding-left: 24px;
}

.comment-body {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.comment-meta {
  color: var(--muted);
  font-size: 11px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-author img {
  border-radius: 50%;
}

.comment-content {
  padding-top: 16px;
}

.reply a {
  color: var(--accent);
  font-size: 12px;
}

.comment-form p {
  font-size: 12px;
  color: var(--muted);
}

.comment-form label {
  display: block;
  margin-bottom: 8px;
}

.comment-form textarea, .comment-form input:not([type=checkbox]):not([type=submit]) {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 13px;
  color: var(--text);
  border-radius: 4px;
}

.comment-form input[type=submit] {
  background: var(--text);
  color: var(--bg);
  border: 0;
  padding: 12px 26px;
  cursor: pointer;
  font-weight: 500;
}

.code-wrap {
  position: relative;
}

.copy-code {
  position: absolute;
  right: 10px;
  top: 10px;
  background: #202426;
  color: #c3c7bd;
  font-size: 10px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.code-wrap pre {
  padding-top: 40px;
}

.logged-in.admin-bar .site-header {
  top: 32px;
}

/* =========================================================
 * RESPONSIVE RULES
 * ========================================================= */
@media (min-width: 1500px) {
  .article-toc {
    position: absolute;
    left: calc(100% + 30px);
    top: 0;
    width: 200px;
    font-size: 11px;
  }
  .article-shell {
    max-width: 1100px;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .clock {
    display: none;
  }
  .about-section {
    padding-block: 90px;
  }
  .about-copy {
    max-width: 100%;
  }
  .post-row {
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }
  .reading-time {
    display: none;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 70px;
  }
  .mobile-nav, .search-panel {
    top: 70px;
  }
  .hero-section {
    padding-top: 96px;
  }
  .hero-inner {
    min-height: calc(100vh - 120px);
  }
  .hero-title h1 {
    font-size: clamp(48px, 14vw, 76px);
  }
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .scroll-cue {
    display: none;
  }
  .story-panel .big {
    font-size: clamp(52px, 15vw, 92px);
  }
  .story-panel .cap {
    font-size: 14px;
  }
  .section-shell {
    padding: 90px var(--gutter);
  }
  .post-row {
    grid-template-columns: 28px 1fr;
    gap: 12px;
    padding: 24px 0;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
  .logged-in.admin-bar .site-header {
    top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *:before, *:after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body {
    background: white;
    color: black;
  }
  .site-header, .site-footer, #orbit-canvas, .hud, .search-panel, .copy-code {
    display: none !important;
  }
}
