/* ═══════════════════════════════════════════════
   MIAO MONEY — SITE STYLES
   ═══════════════════════════════════════════════ */

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

:root {
  /* PAPER & INK — lighter, less yellow */
  --paper:        #F6F2EB;
  --sidebar:      #FBF8F1;
  --paper-deep:   #ECE6DA;
  --ink:          #14110D;
  --ink-mid:      #3D3832;
  --ink-soft:     #6B655C;
  --ink-faint:    #9C9389;
  --rule:         #D8D1C3;
  --rule-soft:    #E4DECF;

  /* ACCENT */
  --accent:       #B85A36;
  --accent-tint:  rgba(184, 90, 54, 0.08);
  --accent-bg:    rgba(184, 90, 54, 0.04);
  --accent-mid:   rgba(184, 90, 54, 0.15);
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ═══════════════ TOP BAR ═══════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 12px 32px;
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: 32px;
  align-items: center;
}

.topbar-brand {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.topbar-center { display: flex; justify-content: center; }

.search-box {
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sidebar);
  border: 1px solid var(--rule);
  padding: 7px 14px;
  cursor: text;
  transition: border-color 0.15s;
}
.search-box:hover { border-color: var(--accent); }

.search-icon {
  width: 12px; height: 12px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 50%;
  position: relative;
}
.search-icon::after {
  content: ''; position: absolute;
  bottom: -3px; right: -3px;
  width: 5px; height: 1.5px;
  background: var(--ink-soft);
  transform: rotate(45deg);
}

.search-text {
  font-size: 12px;
  color: var(--ink-soft);
  flex: 1;
}

.search-key {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 2px 6px;
}

.topbar-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  align-items: center;
}

.topbar-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.topbar-link:hover { color: var(--accent); }

.topbar-subscribe {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 7px 14px;
  cursor: pointer;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.15s;
}
.topbar-subscribe:hover { background: var(--accent); }

/* ═══════════════ LAYOUT ═══════════════ */
.layout-3col {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  min-height: calc(100vh - 56px);
}

.layout-2col {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 56px);
}

/* ═══════════════ SIDEBAR ═══════════════ */
.sidebar-left {
  background: var(--sidebar);
  border-right: 1px solid var(--rule);
  padding: 32px 24px;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.nav-section { margin-bottom: 26px; }

.nav-section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
  padding: 0 8px;
  display: block;
}

.nav-list { list-style: none; display: flex; flex-direction: column; }

.nav-list a {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mid);
  padding: 5px 8px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.12s ease;
}

.nav-list a:hover {
  background: var(--accent-tint);
  color: var(--ink);
}

.nav-list a.active {
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 500;
  box-shadow: inset 2px 0 0 var(--accent);
}

.nav-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--ink-faint);
  font-weight: 400;
}

.nav-sub {
  list-style: none;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--rule);
  margin-top: 2px;
  margin-bottom: 4px;
}

.nav-sub a {
  font-size: 12px;
  color: var(--ink-soft);
  padding: 3px 8px;
}

.chevron {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  color: var(--ink-faint);
  margin-right: 6px;
}

/* ═══════════════ MAIN CONTENT ═══════════════ */
.main {
  padding: 56px 64px 100px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.breadcrumb {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 10px; color: var(--rule); }
.breadcrumb .current { color: var(--ink); }

/* SECTION HEADERS */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}

.section-view {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-view:hover { color: var(--accent); }

/* RIGHT SIDEBAR */
.sidebar-right {
  border-left: 1px solid var(--rule);
  padding: 56px 28px;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.toc-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
  display: block;
}

.toc-list { list-style: none; margin-bottom: 36px; }

.toc-list a {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  display: block;
  line-height: 1.4;
  transition: all 0.12s ease;
}
.toc-list a:hover {
  color: var(--ink);
  border-left-color: var(--rule);
}
.toc-list a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}

.meta-panel {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.meta-item { margin-bottom: 16px; }

.meta-item-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
  display: block;
}

.meta-item-value {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  color: var(--ink-mid);
}

.meta-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.meta-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 3px 8px;
  letter-spacing: 0.06em;
}

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.main { animation: fadeIn 0.5s ease both; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1100px) {
  .layout-3col { grid-template-columns: 240px 1fr; }
  .sidebar-right { display: none; }
}

@media (max-width: 800px) {
  .layout-3col, .layout-2col { grid-template-columns: 1fr; }
  .sidebar-left { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .topbar-center { display: none; }
  .main { padding: 32px 24px 64px; }
}


  /* WOO WOO section - just slightly more playful */
  .nav-woo .nav-section-label {
    color: var(--accent);
  }

  .woo-sparkle {
    display: inline-block;
    margin-left: 4px;
    font-size: 11px;
    color: var(--accent);
    animation: sparkle 3s ease-in-out infinite;
  }

  @keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: rotate(0deg); }
    50% { opacity: 1; transform: rotate(180deg); }
  }

  .nav-woo .nav-list a:hover {
    background: var(--accent-tint);
    color: var(--accent);
  }

  /* Bottom section sits at the bottom of the sidebar */
  .nav-bottom {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
  }

  /* Make sidebar use flexbox so nav-bottom can stick to bottom */
  .sidebar-left {
    display: flex;
    flex-direction: column;
  }

  /* Footer links — replaces "Other" + "Behind the Scenes" sections */
  .nav-footer-links {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    color: var(--ink-soft);
    letter-spacing: 0.06em;
    line-height: 2.1;
    padding-left: 8px;
  }

  .nav-footer-links a {
    color: var(--ink-soft);
    transition: color 0.12s;
  }

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

/* ═══════════════════════════════════════════════
   GLOBAL ITALIC OVERRIDE
   Keep typographic contrast minimal — IBM Plex Sans italic
   reads more like a diary, less like editorial display type.
   ═══════════════════════════════════════════════ */

.essay-body em,
.vig-body em,
.about-body em,
.now-section em,
.now-list em,
.now-section li em,
.essay-deck em,
.archive-essay-deck em,
.fn-body em,
.fn-deck em,
.featured-deck em,
.essay-excerpt em,
.field-note-text em,
.subscribe-headline em,
.hero-bio em,
.hero-title em,
.essay-title em,
.about-title em,
.fw-tagline em,
.about-deck em {
  font-family: 'IBM Plex Sans', sans-serif !important;
  font-style: italic !important;
  font-size: inherit !important;
}

/* Pull quotes / kickers / lessons — keep larger size, still IBM Plex italic */
.pull-quote,
.vig-kicker,
.lesson {
  font-family: 'IBM Plex Sans', sans-serif !important;
  font-style: italic !important;
}

/* ═══════════════════════════════════════════════
   SITE FOOTER — the "back of book" index
   The quiet bookmarks for everything not in the top nav.
   ═══════════════════════════════════════════════ */

.site-footer {
  max-width: 760px;
  margin: 96px auto 0;
  padding: 40px 32px 56px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.footer-nav {
  margin-bottom: 18px;
  line-height: 2.2;
}

.footer-nav a {
  color: var(--ink-soft);
  transition: color 0.12s;
}
.footer-nav a:hover { color: var(--accent); }

.footer-dot {
  color: var(--rule);
  margin: 0 10px;
}

.footer-meta {
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.footer-meta .meta-dot {
  margin: 0 10px;
  color: var(--rule);
}

/* ═══════════════════════════════════════════════
   SIMPLIFIED TOP NAV (used on diary-style pages)
   ═══════════════════════════════════════════════ */

.home-topbar {
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(246, 242, 235, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, padding 0.2s;
}
.home-topbar.scrolled {
  border-bottom-color: var(--rule);
  padding: 16px 48px;
}

/* Title that fades in centered when essay H1 scrolls past the nav */
.topbar-title {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  text-align: center;
  flex: 1;
  pointer-events: none;
  margin: 0 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-title.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 720px) {
  .topbar-title { display: none; }
}

.home-brand {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.home-nav {
  display: flex;
  gap: 28px;
}

.home-nav a {
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  color: var(--ink-mid);
  transition: color 0.15s;
}
.home-nav a:hover { color: var(--accent); }
.home-nav a.active {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ═══════════════════════════════════════════════
   STICK-FIGURE PEEPING SIDEBAR
   Left-edge toggle that pulls a slide-out nav panel.
   ═══════════════════════════════════════════════ */

.peep-toggle {
  position: fixed;
  bottom: 28px;
  left: 28px;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  width: 44px;
  height: 64px;
  cursor: pointer;
  z-index: 100;
  color: var(--accent);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Hide the legacy inline peeking SVG — figure is now drawn via ::before */
.peep-toggle svg { display: none; }

.peep-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 64'><g fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='22' cy='12' r='7'/><circle cx='19' cy='12' r='1' fill='black'/><circle cx='25' cy='12' r='1' fill='black'/><path d='M18 15 Q22 17 26 15'/><line x1='22' y1='19' x2='22' y2='42'/><line x1='22' y1='25' x2='10' y2='8'/><line x1='22' y1='25' x2='34' y2='8'/><circle cx='10' cy='8' r='1.2' fill='black'/><circle cx='34' cy='8' r='1.2' fill='black'/><line x1='22' y1='42' x2='15' y2='60'/><line x1='22' y1='42' x2='29' y2='60'/></g></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 64'><g fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='22' cy='12' r='7'/><circle cx='19' cy='12' r='1' fill='black'/><circle cx='25' cy='12' r='1' fill='black'/><path d='M18 15 Q22 17 26 15'/><line x1='22' y1='19' x2='22' y2='42'/><line x1='22' y1='25' x2='10' y2='8'/><line x1='22' y1='25' x2='34' y2='8'/><circle cx='10' cy='8' r='1.2' fill='black'/><circle cx='34' cy='8' r='1.2' fill='black'/><line x1='22' y1='42' x2='15' y2='60'/><line x1='22' y1='42' x2='29' y2='60'/></g></svg>") no-repeat center / contain;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.peep-toggle:hover {
  color: var(--ink);
}
.peep-toggle:hover::before {
  animation: little-wave 0.9s ease-in-out infinite;
}

@keyframes little-wave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-3deg); }
  75% { transform: translateY(-2px) rotate(3deg); }
}

/* Speech bubble caption that appears on hover */
.peep-toggle::after {
  content: 'hi! pages →';
  position: absolute;
  left: 52px;
  bottom: 14px;
  font-family: 'Caveat', cursive;
  font-size: 16px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  pointer-events: none;
}
.peep-toggle:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* The slide-out panel */
.peep-panel {
  position: fixed;
  top: 0;
  left: -360px;
  width: 320px;
  height: 100vh;
  background: var(--paper);
  border-right: 1px solid var(--rule);
  padding: 36px 32px;
  z-index: 101;
  transition: left 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.34s ease;
  box-shadow: 8px 0 32px rgba(0,0,0,0);
  overflow-y: auto;
}
.peep-panel.open {
  left: 0;
  box-shadow: 8px 0 32px rgba(0,0,0,0.08);
}

.peep-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,17,13,0);
  z-index: 99;
  pointer-events: none;
  transition: background 0.34s ease;
}
.peep-overlay.open {
  background: rgba(20,17,13,0.18);
  pointer-events: auto;
}

.peep-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.peep-brand {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.peep-close {
  background: none;
  border: none;
  font-family: 'EB Garamond', serif;
  font-size: 32px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
}
.peep-close:hover { color: var(--accent); }

.peep-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.peep-list li {
  padding: 2px 0;
}
.peep-list a {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  color: var(--ink-mid);
  padding: 6px 0 6px 30px;
  display: block;
  position: relative;
  transition: color 0.15s, padding 0.15s;
}
.peep-list a:hover {
  color: var(--accent);
  padding-left: 34px;
}
.peep-list a.current {
  color: var(--accent);
}
/* Mini stick figure marks the current page */
.peep-list a.current::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 22px;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'><circle cx='9' cy='5' r='3.5' fill='black'/><line x1='9' y1='8' x2='9' y2='15' stroke='black' stroke-width='1.4'/><line x1='9' y1='11' x2='5' y2='13' stroke='black' stroke-width='1.4'/><line x1='9' y1='11' x2='13' y2='13' stroke='black' stroke-width='1.4'/><line x1='9' y1='15' x2='6' y2='20' stroke='black' stroke-width='1.4'/><line x1='9' y1='15' x2='12' y2='20' stroke='black' stroke-width='1.4'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'><circle cx='9' cy='5' r='3.5' fill='black'/><line x1='9' y1='8' x2='9' y2='15' stroke='black' stroke-width='1.4'/><line x1='9' y1='11' x2='5' y2='13' stroke='black' stroke-width='1.4'/><line x1='9' y1='11' x2='13' y2='13' stroke='black' stroke-width='1.4'/><line x1='9' y1='15' x2='6' y2='20' stroke='black' stroke-width='1.4'/><line x1='9' y1='15' x2='12' y2='20' stroke='black' stroke-width='1.4'/></svg>") no-repeat center / contain;
}

.peep-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 24px 0 12px;
}
.peep-section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 6px;
  padding-left: 30px;
}

/* ═══════════════════════════════════════════════
   PAGE NAV — quiet inline prev/next
   No boxes, no shadows. Just italic titles with arrows.
   ═══════════════════════════════════════════════ */

.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}

.page-nav-link {
  display: block;
  text-decoration: none;
  color: var(--ink-mid);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              color 0.2s ease;
}
.page-nav-link:hover { color: var(--accent); }
.page-nav-prev:hover { transform: translateX(-5px); }
.page-nav-next:hover { transform: translateX(5px); }
.page-nav-next { text-align: right; }

.page-nav-direction {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-right: 6px;
  transition: color 0.2s;
}
.page-nav-next .page-nav-direction {
  margin-right: 0;
  margin-left: 6px;
}
.page-nav-link:hover .page-nav-direction { color: var(--accent); }

.page-nav-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-mid);
  line-height: 1.4;
  transition: color 0.2s;
}
.page-nav-link:hover .page-nav-title { color: var(--accent); }

@media (max-width: 640px) {
  .page-nav { grid-template-columns: 1fr; gap: 14px; }
  .page-nav-next { text-align: left; }
}

/* ═══════════════════════════════════════════════
   ESSAY BODY — styled markdown output
   ═══════════════════════════════════════════════ */

.essay-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.essay-hero {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.essay-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.essay-hero-label::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.essay-title {
  font-family: 'EB Garamond', serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.15;
}

.essay-deck {
  font-family: 'IBM Plex Sans', sans-serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto 14px;
}

.essay-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.essay-body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-mid);
}

.essay-body p  { margin-bottom: 18px; }
.essay-body em { font-family: 'IBM Plex Sans', sans-serif; font-style: italic; }
.essay-body strong { font-weight: 500; color: var(--ink); }

.essay-body h2 {
  font-family: 'EB Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  margin: 52px 0 16px;
  border-bottom: 1px solid var(--rule);
}

.essay-body h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 24px 0 10px;
  font-weight: 500;
}

.essay-body ul { margin: 12px 0 18px 22px; }
.essay-body ol { margin: 12px 0 18px 22px; }
.essay-body li { margin-bottom: 6px; }

.essay-body hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

.essay-body code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  background: var(--sidebar);
  color: var(--ink);
  padding: 1px 6px;
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.essay-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: all 0.12s;
}
.essay-body a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* blockquote = Claude's take */
.essay-body blockquote {
  background: var(--sidebar);
  border-left: 2px solid var(--accent);
  padding: 14px 18px;
  margin: 22px 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-mid);
}
.essay-body blockquote::before {
  content: 'Claude\'s take';
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.essay-body blockquote p { margin-bottom: 8px; }
.essay-body blockquote p:last-child { margin-bottom: 0; }

/* About page */
.about-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 32px 80px;
}
.about-greeting {
  font-family: 'EB Garamond', serif;
  font-size: 38px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 28px;
  line-height: 1.2;
}
.about-greeting em {
  font-family: 'IBM Plex Sans', sans-serif;
  font-style: italic;
  color: var(--accent);
}
.about-body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-mid);
}
.about-body p  { margin-bottom: 22px; }
.about-body em { font-family: 'IBM Plex Sans', sans-serif; font-style: italic; }
.about-body strong { font-weight: 500; color: var(--ink); }
.about-body a  { color: var(--ink); border-bottom: 1px solid var(--rule); transition: all 0.12s; }
.about-body a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.about-body h2 {
  font-family: 'EB Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin: 56px 0 18px;
}

/* ═══════════════════════════════════════════════
   HOME PAGE
   ═══════════════════════════════════════════════ */

.home-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 32px 120px;
}

.home-greeting {
  font-family: 'EB Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 28px;
  line-height: 1.2;
}

.home-body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-mid);
}

.home-body p { margin-bottom: 22px; }
.home-body strong { font-weight: 500; color: var(--ink); }
.home-body a { color: var(--ink); border-bottom: 1px solid var(--rule); text-decoration: none; transition: color 0.12s, border-color 0.12s; }
.home-body a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.signature {
  display: block;
  width: 140px;
  margin: 0 0 12px;
  filter: invert(1) grayscale(1) contrast(6) brightness(0.35);
  mix-blend-mode: multiply;
}

/* Home — recent writing strip */
.recent {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.recent-label {
  font-family: 'EB Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 20px;
}

.recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 2.2;
}

.recent-list li {
  display: grid;
  grid-template-columns: 130px 14px 1fr;
  align-items: baseline;
  gap: 0;
}

.recent-list .r-date {
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.recent-list .r-pipe {
  color: var(--ink-faint);
  text-align: center;
}

.recent-list a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.12s;
}

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

.recent-more {
  margin-top: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.recent-more a { color: var(--accent); text-decoration: none; }

/* Home — sign-off */
.sign-off {
  margin-top: 28px;
  padding-top: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.sign-off-byline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.sign-off a {
  color: var(--ink-mid);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: color 0.12s, border-color 0.12s;
}

.sign-off a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ═══════════════════════════════════════════════
   WRITING PAGE — diary list layout
   ═══════════════════════════════════════════════ */

.diary-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.diary-section {
  margin-bottom: 56px;
}

/* Section label with a horizontal rule that trails off to the right */
.diary-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: none;
}

.diary-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.diary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Grid: bullet | date | pipe | title — clean alignment + subtle hover */
.diary-list li {
  display: grid;
  grid-template-columns: 18px 88px 14px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: 4px;
  transition: background 0.15s;
}

.diary-list li:hover {
  background: var(--accent-bg);
}

.d-bullet {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  line-height: 1;
  text-align: center;
}

.d-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.d-pipe {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--rule);
  text-align: center;
}

.diary-list a {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.12s;
}

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

/* Upcoming entries: italic + faded, so they feel like placeholders */
.diary-list .upcoming {
  font-family: 'IBM Plex Sans', sans-serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-faint);
  line-height: 1.4;
}

.upcoming-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--rule);
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 10px;
  vertical-align: middle;
}

/* On narrow screens, drop the bullet column and let it wrap nicely */
@media (max-width: 520px) {
  .diary-list li {
    grid-template-columns: 14px 70px 10px 1fr;
    gap: 8px;
    padding: 8px 10px;
    margin: 0 -10px;
  }
}

/* ═══════════════════════════════════════════════
   FIELD NOTES PAGE — feed layout
   ═══════════════════════════════════════════════ */

.feed-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

/* Month divider — centered, decorative, with dashed rules */
.month-divider {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  margin: 56px 0 36px;
  padding: 12px 0;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
}

.month-divider:first-of-type { margin-top: 0; }

/* Each note — left-margin stick-figure icon, then meta + body + tags */
.note {
  position: relative;
  padding: 28px 0 32px 38px;
  border-bottom: 1px solid var(--rule-soft);
}

.note:last-child { border-bottom: none; }

.note::before {
  content: '';
  position: absolute;
  left: 0;
  top: 30px;
  width: 16px;
  height: 20px;
  background-color: var(--accent);
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'><circle cx='8' cy='5' r='3' fill='none' stroke='black' stroke-width='1.2'/><line x1='8' y1='8' x2='8' y2='14' stroke='black' stroke-width='1.2'/><line x1='8' y1='10' x2='4' y2='12' stroke='black' stroke-width='1.2'/><line x1='8' y1='10' x2='12' y2='12' stroke='black' stroke-width='1.2'/><line x1='8' y1='14' x2='5' y2='19' stroke='black' stroke-width='1.2'/><line x1='8' y1='14' x2='11' y2='19' stroke='black' stroke-width='1.2'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'><circle cx='8' cy='5' r='3' fill='none' stroke='black' stroke-width='1.2'/><line x1='8' y1='8' x2='8' y2='14' stroke='black' stroke-width='1.2'/><line x1='8' y1='10' x2='4' y2='12' stroke='black' stroke-width='1.2'/><line x1='8' y1='10' x2='12' y2='12' stroke='black' stroke-width='1.2'/><line x1='8' y1='14' x2='5' y2='19' stroke='black' stroke-width='1.2'/><line x1='8' y1='14' x2='11' y2='19' stroke='black' stroke-width='1.2'/></svg>") no-repeat center / contain;
  transition: opacity 0.2s;
}

.note:hover::before { opacity: 1; }

.note-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.note-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

/* Soft accent-tinted pill — replaces the old hard-bordered box */
.note-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  border: none;
  padding: 3px 10px;
  border-radius: 12px;
}

.note-body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.note-body p { margin-bottom: 14px; }
.note-body p:last-child { margin-bottom: 0; }
.note-body em { font-family: 'IBM Plex Sans', sans-serif; font-style: italic; }
.note-body strong { font-weight: 500; }

.note-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: color 0.12s, border-color 0.12s;
}

.note-body a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Hashtags — color-only, no background fill */
.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.note-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: transparent;
  padding: 0;
  border-radius: 0;
  transition: color 0.12s;
}

.note-tag:hover { color: var(--accent); }

@media (max-width: 640px) {
  .diary-page,
  .feed-page { padding: 48px 20px 80px; }
  .diary-intro h1,
  .feed-title { font-size: 30px; }
}

/* ═══════════════════════════════════════════════
   CLAUDE HACKS — bespoke page components
   ═══════════════════════════════════════════════ */

.ch-page { max-width: 760px; margin: 0 auto; padding: 56px 32px 80px; }

/* Meta note bar */
.ch-meta {
  background: var(--sidebar);
  border-left: 2px solid var(--accent);
  padding: 16px 20px;
  margin: 0 0 40px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mid);
}
.ch-meta strong { color: var(--ink); font-weight: 500; }

/* Intro lede */
.ch-intro {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-mid);
  margin-bottom: 56px;
}
.ch-intro p { margin-bottom: 16px; }
.ch-intro a { color: var(--ink); border-bottom: 1px solid var(--rule); transition: all 0.12s; }
.ch-intro a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.ch-intro em { font-style: italic; }

/* TOC */
.ch-toc { margin-bottom: 56px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.ch-toc-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
  display: block;
}
.ch-toc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
}
.ch-toc-grid a {
  color: var(--ink-mid);
  padding: 2px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  transition: color 0.12s;
  text-decoration: none;
}
.ch-toc-grid a:hover { color: var(--accent); }
.ch-toc-num { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--ink-faint); margin-right: 6px; }
.ch-toc-grade { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--accent); margin-left: 8px; flex-shrink: 0; }

/* Each graded item */
.ch-item { margin-bottom: 56px; padding-bottom: 12px; }
.ch-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.ch-item-title {
  font-family: 'EB Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}
.ch-item-title .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-right: 8px;
  vertical-align: top;
  position: relative;
  top: 4px;
}
.ch-grade {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 2px 10px;
  border: 1px solid var(--accent);
  flex-shrink: 0;
}
.ch-grade.low { color: var(--ink-faint); border-color: var(--ink-faint); }
.ch-stamp {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
  display: block;
}
.ch-stamp .change { color: var(--accent); margin-left: 8px; }

/* Item body */
.ch-body { font-family: 'IBM Plex Sans', sans-serif; font-size: 15.5px; line-height: 1.75; color: var(--ink-mid); }
.ch-body p { margin-bottom: 18px; }
.ch-body em { font-style: italic; }
.ch-body strong { font-weight: 500; color: var(--ink); }
.ch-body ul { margin: 12px 0 18px 22px; }
.ch-body li { margin-bottom: 6px; }
.ch-body h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 24px 0 10px;
  font-weight: 500;
}
.ch-body code, .ch-intro code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  background: var(--sidebar);
  color: var(--ink);
  padding: 1px 6px;
  border: 1px solid var(--rule);
  border-radius: 2px;
}

/* Claude's take box */
.ch-claude {
  background: var(--sidebar);
  border-left: 2px solid var(--accent);
  padding: 14px 18px;
  margin: 22px 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-mid);
}
.ch-claude::before {
  content: "Claude's take";
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.ch-claude em { font-style: italic; }
.ch-claude p { margin: 0 0 10px; }
.ch-claude p:last-child { margin-bottom: 0; }
.ch-claude.long { padding: 18px 22px; }
.ch-claude.long::before { content: "Claude's take (the longer one)"; }

/* Michelle's marginalia */
.ch-michelle {
  background: #FBF5E6;
  border: 1px dashed rgba(184,90,54,0.35);
  padding: 14px 18px;
  margin: 22px 0;
  font-family: 'Caveat', cursive;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-mid);
  transform: rotate(-0.3deg);
}
.ch-michelle::before {
  content: '— Michelle, in the margin';
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  font-style: normal;
}
.ch-michelle .pov-date {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--ink-faint);
  margin-top: 8px;
  letter-spacing: 0.1em;
}

/* Section titles (Workflows, Gaps, Wishlist, Updates) */
.ch-section { margin: 72px 0 40px; padding-top: 32px; border-top: 1px solid var(--rule); }
.ch-section-title { font-family: 'EB Garamond', serif; font-size: 28px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.ch-section-stamp { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 20px; display: block; }

/* Workflow rows */
.ch-workflow {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mid);
}
.ch-workflow-name { font-weight: 500; color: var(--ink); }

/* Updates log */
.ch-log { font-family: 'IBM Plex Mono', monospace; font-size: 12px; line-height: 1.9; color: var(--ink-mid); }
.ch-log-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--rule-soft); }
.ch-log-date { color: var(--ink-soft); letter-spacing: 0.06em; }
.ch-log-change strong { color: var(--ink); }

/* Footer note */
.ch-foot { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--rule); font-family: 'IBM Plex Sans', sans-serif; font-style: italic; font-size: 13px; color: var(--ink-soft); text-align: center; line-height: 1.7; }

/* Hero */
.ch-hero { text-align: center; margin-bottom: 56px; padding-bottom: 36px; border-bottom: 1px solid var(--rule); }
.ch-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.ch-pulse::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: ch-pulse-anim 2s ease-in-out infinite;
}
@keyframes ch-pulse-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.ch-title { font-family: 'EB Garamond', serif; font-size: 48px; font-weight: 400; color: var(--ink); margin-bottom: 14px; }
.ch-deck { font-family: 'IBM Plex Sans', sans-serif; font-style: italic; font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 540px; margin: 0 auto 14px; }
.ch-updated { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }

/* Workflow name links */
.ch-workflow-name a { color: var(--ink); border-bottom: 1px solid transparent; transition: all 0.12s; }
.ch-workflow-name a:hover { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 600px) {
  .ch-toc-grid { grid-template-columns: 1fr; }
  .ch-workflow { grid-template-columns: 1fr; gap: 4px; }
  .ch-log-row { grid-template-columns: 1fr; gap: 4px; }
}
