/* ================================================================
   Garden Theme — Design System
   自有极简主题 · 浅色为主 + 深色模式 · 系统字体栈
   灰 + moss 绿品牌色延续
   ================================================================ */

@font-face {
  font-family: "Maple Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/maple-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/fonts/caveat-latin-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Kalam";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/kalam-latin-400.woff2") format("woff2");
}

/* Chinese calligraphy used only by the garden title and opening scene. */
@font-face {
  font-family: "Liu Jian Mao Cao";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/liu-jian-mao-cao-100.woff2") format("woff2");
  unicode-range: U+82D4;
}

@font-face {
  font-family: "Liu Jian Mao Cao";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/liu-jian-mao-cao-104.woff2") format("woff2");
  unicode-range: U+832B;
}

@font-face {
  font-family: "Liu Jian Mao Cao";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/liu-jian-mao-cao-108.woff2") format("woff2");
  unicode-range: U+75D5;
}

@font-face {
  font-family: "Liu Jian Mao Cao";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/liu-jian-mao-cao-111.woff2") format("woff2");
  unicode-range: U+7070;
}

@font-face {
  font-family: "Liu Jian Mao Cao";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/liu-jian-mao-cao-113.woff2") format("woff2");
  unicode-range: U+8FF9, U+96E8;
}

@font-face {
  font-family: "Liu Jian Mao Cao";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/liu-jian-mao-cao-115.woff2") format("woff2");
  unicode-range: U+6B62;
}

@font-face {
  font-family: "Liu Jian Mao Cao";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/liu-jian-mao-cao-119.woff2") format("woff2");
  unicode-range: U+6709;
}

/* ===== Tokens ===== */
:root {
  /* 浅色模式 */
  --g-bg:          #dde4da;
  --g-bg-elevated: #e9ede6;
  --g-bg-soft:     #d3ddd0;
  --g-border:      #c0ccbd;
  --g-border-hover:#a4b4a1;
  --g-text:        #30342f;
  --g-text-soft:   #565c56;
  --g-text-mute:   #626b62;
  --g-reading-bg:      rgba(236,238,233,.97);
  --g-reading-text:    #3b403a;
  --g-reading-heading: #262a26;
  --g-reading-soft:    #5b625b;
  --g-on-scene:        #eef3ec;
  --g-on-scene-soft:   #c8d3c9;
  --g-on-scene-accent: #add2b3;
  --g-scene-halo:      rgba(8,14,10,.58);
  --g-accent:      #4b704f;
  --g-accent-hover:#3e6344;
  --g-accent-soft: rgba(75,112,79,0.1);
  --g-accent-text: #35533b;
  --g-accent-border: rgba(75,112,79,.24);
  --g-ambient:      rgba(75,112,79,0.09);
  --g-glow:         rgba(75,112,79,.2);
  --g-ash:         #787874;
  --g-ash-soft:    rgba(120,120,116,0.08);
  --g-shadow:      0 1px 3px rgba(34,54,38,.06), 0 1px 2px rgba(34,54,38,.03);
  --g-shadow-lg:   0 8px 28px rgba(34,54,38,.09), 0 2px 6px rgba(34,54,38,.04);
  --g-surface-sheen: rgba(255,255,255,.38);
  --g-nav-material: rgba(221,228,218,.76);
  /* Motion: frequent UI stays fast; narrative motion gets more room. */
  --g-motion-press:  120ms;
  --g-motion-fast:   180ms;
  --g-motion-ui:     240ms;
  --g-motion-enter:  560ms;
  --g-motion-scene:  720ms;
  --g-motion-intro:  1750ms;
  --g-ease-linear:   linear;
  --g-ease-standard: cubic-bezier(.2, .8, .2, 1);
  --g-ease-out:      cubic-bezier(.22, 1, .36, 1);
  --g-ease-soft:     cubic-bezier(.4, 0, .2, 1);
  --g-ease-drawer:   cubic-bezier(.32, .72, 0, 1);
  --g-code-bg:     rgba(222,228,219,.98);
  --g-code-chrome: #d5ddd2;
  --g-code-border: #bec9bb;
  --g-code-text:   #26312a;
  --g-code-gutter: #8a938c;
  --g-code-comment:#78827b;
  --g-code-string: #4f7f5b;
  --g-code-keyword:#8a5d35;
  --g-code-value:  #8a6545;

  /* 字级 */
  --g-font:       -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --g-font-mono:  "Maple Mono", "SF Mono", "JetBrains Mono", "Cascadia Code", "Consolas", "Menlo", ui-monospace, monospace;
  --g-font-script:"Caveat", "Segoe Script", "STXingkai", "华文行楷", "KaiTi", cursive;
  --g-font-zh-script: "Liu Jian Mao Cao", "STXingkai", "华文行楷", "KaiTi", cursive;
  --g-font-title: "Kalam", "Zhi Mang Xing", "STXingkai", "KaiTi", cursive;

  /* 间距 */
  --g-gap: 24px;
  --g-radius: 8px;
}

/* 深色模式：手动选择，或未指定时跟随系统。 */
:root[data-theme="dark"] {
  --g-bg:          #121212;
  --g-bg-elevated: #1e1e1e;
  --g-bg-soft:     #1a1a1a;
  --g-border:      #2a2a2a;
  --g-border-hover:#3e3e3e;
  --g-text:        #e8e8e6;
  --g-text-soft:   #b0b0b0;
  --g-text-mute:   #a0a09a;
  --g-reading-bg:      rgba(30,30,30,.97);
  --g-reading-text:    #d7d9d6;
  --g-reading-heading: #eeeeeb;
  --g-reading-soft:    #adb1ac;
  --g-on-scene:        #dce2dc;
  --g-on-scene-soft:   #bdc8be;
  --g-on-scene-accent: #a3c9ac;
  --g-scene-halo:      rgba(18,18,18,.88);
  --g-accent:      #8cb896;
  --g-accent-hover:#a3c9ac;
  --g-accent-soft: rgba(140,184,150,0.1);
  --g-accent-text: #a3c9ac;
  --g-accent-border: rgba(140,184,150,.22);
  --g-ambient:      rgba(140,184,150,0.055);
  --g-glow:         rgba(140,184,150,.16);
  --g-ash:         #a8a8a3;
  --g-ash-soft:    rgba(168,168,163,0.08);
  --g-shadow:      0 1px 3px rgba(0,0,0,.2), 0 1px 2px rgba(0,0,0,.15);
  --g-shadow-lg:   0 4px 16px rgba(0,0,0,.3), 0 1px 4px rgba(0,0,0,.2);
  --g-surface-sheen: rgba(255,255,255,.055);
  --g-nav-material: rgba(18,18,18,.72);
  --g-code-bg:     rgba(15,20,17,.97);
  --g-code-chrome: #171d19;
  --g-code-border: #2b352e;
  --g-code-text:   #dbe5de;
  --g-code-gutter: #657069;
  --g-code-comment:#7d8b82;
  --g-code-string: #91bd9b;
  --g-code-keyword:#d6ad7c;
  --g-code-value:  #d3a47f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --g-bg:          #121212;
    --g-bg-elevated: #1e1e1e;
    --g-bg-soft:     #1a1a1a;
    --g-border:      #2a2a2a;
    --g-border-hover:#3e3e3e;
    --g-text:        #e8e8e6;
    --g-text-soft:   #b0b0b0;
    --g-text-mute:   #a0a09a;
    --g-reading-bg:      rgba(30,30,30,.97);
    --g-reading-text:    #d7d9d6;
    --g-reading-heading: #eeeeeb;
    --g-reading-soft:    #adb1ac;
    --g-on-scene:        #dce2dc;
    --g-on-scene-soft:   #bdc8be;
    --g-on-scene-accent: #a3c9ac;
    --g-scene-halo:      rgba(18,18,18,.88);
    --g-accent:      #8cb896;
    --g-accent-hover:#a3c9ac;
    --g-accent-soft: rgba(140,184,150,0.1);
    --g-accent-text: #a3c9ac;
    --g-accent-border: rgba(140,184,150,.22);
    --g-ambient:      rgba(140,184,150,0.055);
    --g-glow:         rgba(140,184,150,.16);
    --g-ash:         #a8a8a3;
    --g-ash-soft:    rgba(168,168,163,0.08);
    --g-shadow:      0 1px 3px rgba(0,0,0,.2), 0 1px 2px rgba(0,0,0,.15);
    --g-shadow-lg:   0 4px 16px rgba(0,0,0,.3), 0 1px 4px rgba(0,0,0,.2);
    --g-surface-sheen: rgba(255,255,255,.055);
    --g-nav-material: rgba(18,18,18,.72);
    --g-code-bg:     rgba(15,20,17,.97);
    --g-code-chrome: #171d19;
    --g-code-border: #2b352e;
    --g-code-text:   #dbe5de;
    --g-code-gutter: #657069;
    --g-code-comment:#7d8b82;
    --g-code-string: #91bd9b;
    --g-code-keyword:#d6ad7c;
    --g-code-value:  #d3a47f;
  }
}

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

/* Same-origin page transitions are progressive enhancement. */
@view-transition { navigation: auto; }

[data-post-transition-title].is-transition-source,
.article-header > h1[data-post-transition-title] {
  view-transition-name: garden-post-title;
}
::view-transition-old(root) {
  animation: g-page-out 160ms var(--g-ease-out) both;
}
::view-transition-new(root) {
  animation: g-page-in 280ms var(--g-ease-out) both;
}
::view-transition-group(garden-post-title) {
  animation-duration: 420ms;
  animation-timing-function: var(--g-ease-out);
}
::view-transition-old(garden-post-title),
::view-transition-new(garden-post-title) {
  height: 100%;
  mix-blend-mode: normal;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: color-mix(in srgb, var(--g-accent) 42%, var(--g-border-hover)) var(--g-bg);
  scrollbar-width: thin;
  background: var(--g-bg);
}

html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: var(--g-bg); }
html::-webkit-scrollbar-thumb {
  min-height: 52px;
  background: color-mix(in srgb, var(--g-accent) 42%, var(--g-border-hover));
  background-clip: padding-box;
  border: 3px solid var(--g-bg);
  border-radius: 999px;
}
html::-webkit-scrollbar-thumb:hover {
  background: var(--g-accent);
  background-clip: padding-box;
  border-width: 2px;
}
html::-webkit-scrollbar-corner { background: var(--g-bg); }

body {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  font-family: var(--g-font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--g-text);
  background: transparent;
  overflow-x: hidden;
}

.site-backdrop {
  --g-fog-x: 62%;
  --g-fog-y: 34%;
  --g-scene-x: 0px;
  --g-scene-y: 0px;
  position: fixed;
  inset: -24px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  transform: scale(1.035) translate3d(var(--g-scene-x), var(--g-scene-y), 0);
  transform-origin: center;
  filter: none;
  transition:
    transform var(--g-motion-fast) var(--g-ease-standard),
    filter var(--g-motion-ui) var(--g-ease-soft);
}

html.theme-switching .site-backdrop {
  filter: brightness(.82) saturate(.9);
}

.site-backdrop::before,
.site-backdrop::after {
  content: "";
  position: absolute;
  inset: -18px;
  background-image:
    linear-gradient(180deg, rgba(42,58,46,.18), rgba(42,58,46,.32)),
    url("/images/garden-bg-light-cat.jpg");
  background-position: center, 60% 54%;
  background-size: cover;
  filter: blur(4px) saturate(.72) brightness(.88) contrast(1);
}

.site-backdrop::after {
  display: none;
}

:root[data-theme="dark"] .site-backdrop::before,
:root[data-theme="dark"] .site-backdrop::after {
  background-image:
    linear-gradient(rgba(13,18,15,.2), rgba(13,18,15,.4)),
    url("/images/garden-bg-dark-cat.jpg");
  background-position: center, 60% 54%;
  filter: blur(4px) saturate(.72) brightness(.96) contrast(1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .site-backdrop::before,
  :root:not([data-theme]) .site-backdrop::after {
    background-image:
      linear-gradient(rgba(13,18,15,.2), rgba(13,18,15,.4)),
      url("/images/garden-bg-dark-cat.jpg");
    background-position: center, 60% 54%;
    filter: blur(4px) saturate(.72) brightness(.96) contrast(1);
  }
}

/* Home signature: a clear patch follows the pointer like fog wiped from glass. */
@supports ((mask-image: radial-gradient(circle, #000, transparent)) or (-webkit-mask-image: radial-gradient(circle, #000, transparent))) {
  body.is-home.hero-motion-ready .site-backdrop::after {
    display: block;
    background-image:
      linear-gradient(rgba(42,58,46,.1), rgba(42,58,46,.22)),
      radial-gradient(circle at var(--g-fog-x) var(--g-fog-y), rgba(75,112,79,.1), transparent 34%),
      url("/images/garden-bg-light-cat.jpg");
    background-position: center, center, 60% 54%;
    filter: blur(1px) saturate(.78) brightness(.9) contrast(1);
    opacity: 0;
    -webkit-mask-image: radial-gradient(circle 190px at var(--g-fog-x) var(--g-fog-y), #000 0 43%, rgba(0,0,0,.86) 58%, transparent 100%);
    mask-image: radial-gradient(circle 190px at var(--g-fog-x) var(--g-fog-y), #000 0 43%, rgba(0,0,0,.86) 58%, transparent 100%);
    transition: opacity var(--g-motion-ui) var(--g-ease-soft);
    contain: paint;
    will-change: opacity;
  }

  body.is-home.hero-fog-active .site-backdrop::after {
    opacity: .94;
  }

  :root[data-theme="dark"] body.is-home.hero-motion-ready .site-backdrop::after {
    background-image:
      linear-gradient(rgba(18,18,18,.32), rgba(18,18,18,.5)),
      radial-gradient(circle at var(--g-fog-x) var(--g-fog-y), rgba(140,184,150,.13), transparent 34%),
      url("/images/garden-bg-dark-cat.jpg");
    background-position: center, center, 60% 54%;
    filter: blur(1px) saturate(.78) brightness(.96) contrast(1);
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme]) body.is-home.hero-motion-ready .site-backdrop::after {
      background-image:
        linear-gradient(rgba(18,18,18,.32), rgba(18,18,18,.5)),
        radial-gradient(circle at var(--g-fog-x) var(--g-fog-y), rgba(140,184,150,.13), transparent 34%),
        url("/images/garden-bg-dark-cat.jpg");
      background-position: center, center, 60% 54%;
      filter: blur(1px) saturate(.78) brightness(.96) contrast(1);
    }
  }
}

/* ===== Home Entry: a replayable mist-to-garden overture ===== */
.garden-entry {
  --g-motion-intro: 2200ms;
  --entry-clear-x: 50%;
  --entry-clear-y: 45%;
  --entry-stage-y: 0px;
  --entry-stage-opacity: 1;
  --entry-bg-y: 0px;
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  color: #eef5ef;
  background: #0d130f;
}
.garden-entry::before,
.garden-entry::after {
  content: "";
  position: absolute;
  inset: -12px;
  pointer-events: none;
}
.garden-entry::before {
  z-index: 0;
  background-image:
    linear-gradient(rgba(8,13,10,.28), rgba(8,13,10,.5)),
    url("/images/garden-window-bg.jpg");
  background-position: center;
  background-size: cover;
  filter: blur(2px) saturate(.84) brightness(.88) contrast(1.06);
  transform: translate3d(0, var(--entry-bg-y), 0) scale(1.035);
}
.garden-entry::after {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 45%, rgba(140,184,150,.19), transparent 31%),
    linear-gradient(180deg, rgba(5,9,7,.16), transparent 34%, rgba(5,9,7,.58));
}
.garden-entry-veil {
  position: absolute;
  inset: -18px;
  z-index: 2;
  background-image:
    linear-gradient(180deg, rgba(4, 8, 6, .18), rgba(4, 8, 6, .54)),
    url("/images/garden-night-window.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 120px rgba(2, 6, 4, .42);
  filter: blur(2px) saturate(.8) brightness(.78) contrast(1.08);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
}
.garden-entry.entry-motion-ready .garden-entry-veil { opacity: 1; }
.garden-entry.entry-motion-ready.is-active .garden-entry-veil {
  animation: g-entry-veil var(--g-motion-intro) var(--g-ease-out) both;
}
.garden-entry-reveal {
  display: none;
  position: absolute;
  inset: -12px;
  z-index: 3;
  background-image:
    linear-gradient(180deg, rgba(7, 12, 9, .1), rgba(5, 10, 7, .38)),
    url("/images/garden-window-bg.jpg");
  background-position: center;
  background-size: cover;
  filter: saturate(.96) brightness(.92) contrast(1.08);
  pointer-events: none;
}
@supports ((-webkit-mask-image: radial-gradient(ellipse, #000, transparent)) or (mask-image: radial-gradient(ellipse, #000, transparent))) {
  .garden-entry-reveal {
    display: block;
    -webkit-mask-image: radial-gradient(ellipse, #000 0 56%, rgba(0, 0, 0, .88) 64%, rgba(0, 0, 0, .24) 70%, transparent 76%);
    mask-image: radial-gradient(ellipse, #000 0 56%, rgba(0, 0, 0, .88) 64%, rgba(0, 0, 0, .24) 70%, transparent 76%);
    -webkit-mask-position: 50% 47%;
    mask-position: 50% 47%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 0% 0%;
    mask-size: 0% 0%;
  }
  .garden-entry.entry-motion-ready.is-active .garden-entry-reveal {
    animation: g-entry-reveal var(--g-motion-intro) var(--g-ease-out) both;
  }
}
.garden-entry-impact {
  position: absolute;
  top: 47%;
  left: 50%;
  z-index: 5;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.garden-entry-impact::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -5px;
  width: 4px;
  height: 10px;
  border-radius: 50% 50% 54% 54%;
  background: linear-gradient(180deg, rgba(234, 245, 236, .18), rgba(178, 216, 186, .95));
  box-shadow: 0 0 12px rgba(172, 218, 182, .72), 0 0 28px rgba(140, 184, 150, .36);
  opacity: 0;
  transform: translate3d(0, -54vh, 0) scale(.68, 1.5);
}
.garden-entry-impact::after {
  content: "";
  position: absolute;
  inset: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 242, 229, .38), rgba(140, 184, 150, .15) 24%, transparent 62%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: scale(.12);
}
.garden-entry-impact i {
  position: absolute;
  inset: -42px;
  border: 1px solid rgba(190, 222, 197, .42);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(140, 184, 150, .13), inset 0 0 18px rgba(214, 235, 218, .08);
  opacity: 0;
  transform: scale(.08);
}
.garden-entry-impact i:nth-child(2) { inset: -58px; }
.garden-entry-impact i:nth-child(3) { inset: -78px; }
.garden-entry.entry-motion-ready.is-active .garden-entry-impact::before {
  animation: g-entry-drop var(--g-motion-intro) cubic-bezier(.35, 0, .78, .42) both;
}
.garden-entry.entry-motion-ready.is-active .garden-entry-impact::after {
  animation: g-entry-impact-flash var(--g-motion-intro) var(--g-ease-out) both;
}
.garden-entry.entry-motion-ready.is-active .garden-entry-impact i {
  animation: g-entry-ripple var(--g-motion-intro) var(--g-ease-out) both;
}
.garden-entry.entry-motion-ready.is-active .garden-entry-impact i:nth-child(2) { animation-delay: 70ms; }
.garden-entry.entry-motion-ready.is-active .garden-entry-impact i:nth-child(3) { animation-delay: 140ms; }
.garden-entry-mist {
  position: absolute;
  inset: -12%;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.garden-entry-mist i {
  position: absolute;
  width: clamp(260px, 38vw, 620px);
  aspect-ratio: 1.7;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(186, 210, 191, .12), rgba(113, 148, 121, .04) 46%, transparent 72%);
  filter: blur(28px);
  opacity: .12;
  transform: translate3d(0, 0, 0);
}
.garden-entry-mist i:nth-child(1) { top: 8%; left: -8%; --mist-x: 11vw; --mist-y: 4vh; --mist-time: 12s; }
.garden-entry-mist i:nth-child(2) { top: 38%; right: -12%; --mist-x: -13vw; --mist-y: -5vh; --mist-time: 15s; }
.garden-entry-mist i:nth-child(3) { bottom: -9%; left: 29%; --mist-x: 7vw; --mist-y: -7vh; --mist-time: 18s; }
.garden-entry.is-active .garden-entry-mist i {
  animation: g-entry-mist var(--mist-time) var(--g-ease-soft) infinite alternate;
}
.garden-entry-glimmers {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}
.garden-entry-glimmers i {
  position: absolute;
  top: var(--glimmer-top);
  left: var(--glimmer-left);
  width: var(--glimmer-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c4dfca;
  box-shadow: 0 0 8px rgba(177, 216, 185, .7), 0 0 22px rgba(116, 166, 127, .38);
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(.5);
}
.garden-entry-glimmers i:nth-child(1) { --glimmer-top: 22%; --glimmer-left: 14%; --glimmer-size: 3px; --glimmer-x: 26px; --glimmer-y: -34px; --glimmer-time: 7.8s; --glimmer-delay: 0s; }
.garden-entry-glimmers i:nth-child(2) { --glimmer-top: 68%; --glimmer-left: 23%; --glimmer-size: 2px; --glimmer-x: -18px; --glimmer-y: -42px; --glimmer-time: 9.2s; --glimmer-delay: .8s; }
.garden-entry-glimmers i:nth-child(3) { --glimmer-top: 29%; --glimmer-left: 74%; --glimmer-size: 3px; --glimmer-x: -30px; --glimmer-y: 28px; --glimmer-time: 8.6s; --glimmer-delay: 1.6s; }
.garden-entry-glimmers i:nth-child(4) { --glimmer-top: 73%; --glimmer-left: 84%; --glimmer-size: 2px; --glimmer-x: 16px; --glimmer-y: -38px; --glimmer-time: 10.4s; --glimmer-delay: .3s; }
.garden-entry-glimmers i:nth-child(5) { --glimmer-top: 48%; --glimmer-left: 8%; --glimmer-size: 2px; --glimmer-x: 34px; --glimmer-y: 18px; --glimmer-time: 9.7s; --glimmer-delay: 2.1s; }
.garden-entry-glimmers i:nth-child(6) { --glimmer-top: 17%; --glimmer-left: 89%; --glimmer-size: 2px; --glimmer-x: -22px; --glimmer-y: 36px; --glimmer-time: 8.9s; --glimmer-delay: 1.1s; }
.garden-entry.entry-motion-ready.is-active .garden-entry-glimmers i {
  animation: g-entry-glimmer var(--glimmer-time) calc(1.55s + var(--glimmer-delay)) ease-in-out infinite both;
}
.garden-entry-clear {
  display: none;
  position: absolute;
  inset: -12px;
  z-index: 4;
  background-image:
    radial-gradient(circle at var(--entry-clear-x) var(--entry-clear-y), rgba(140,184,150,.1), transparent 38%),
    url("/images/garden-window-bg.jpg");
  background-position: center;
  background-size: cover;
  filter: saturate(1.02) brightness(.94) contrast(1.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--g-motion-ui) var(--g-ease-soft);
}
@supports ((mask-image: radial-gradient(circle, #000, transparent)) or (-webkit-mask-image: radial-gradient(circle, #000, transparent))) {
  .garden-entry-clear {
    display: block;
    -webkit-mask-image: radial-gradient(circle 180px at var(--entry-clear-x) var(--entry-clear-y), #000 0 42%, rgba(0,0,0,.86) 62%, transparent 100%);
    mask-image: radial-gradient(circle 180px at var(--entry-clear-x) var(--entry-clear-y), #000 0 42%, rgba(0,0,0,.86) 62%, transparent 100%);
  }
  .garden-entry.is-pointer-active .garden-entry-clear { opacity: .92; }
}
.garden-entry-rain {
  position: absolute;
  inset: -12% 0 0;
  z-index: 4;
  overflow: hidden;
  opacity: .52;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 78%, transparent);
}
.garden-entry-rain i {
  position: absolute;
  top: -22%;
  left: var(--rain-x);
  width: 1px;
  height: var(--rain-h);
  background: linear-gradient(180deg, transparent, rgba(220,235,224,.64), transparent);
  opacity: 0;
  transform: translate3d(-18px, -20vh, 0) rotate(12deg);
}
.garden-entry.is-active .garden-entry-rain i {
  animation: g-entry-rain var(--rain-speed) var(--rain-delay) linear infinite;
}
.garden-entry-rain i:nth-child(1) { --rain-x: 9%;  --rain-h: 18vh; --rain-speed: 3.8s; --rain-delay: -.6s; }
.garden-entry-rain i:nth-child(2) { --rain-x: 23%; --rain-h: 12vh; --rain-speed: 3.1s; --rain-delay: -2.2s; }
.garden-entry-rain i:nth-child(3) { --rain-x: 38%; --rain-h: 21vh; --rain-speed: 4.4s; --rain-delay: -1.4s; }
.garden-entry-rain i:nth-child(4) { --rain-x: 52%; --rain-h: 14vh; --rain-speed: 3.5s; --rain-delay: -2.8s; }
.garden-entry-rain i:nth-child(5) { --rain-x: 67%; --rain-h: 19vh; --rain-speed: 4.1s; --rain-delay: -.2s; }
.garden-entry-rain i:nth-child(6) { --rain-x: 81%; --rain-h: 11vh; --rain-speed: 3.3s; --rain-delay: -1.9s; }
.garden-entry-rain i:nth-child(7) { --rain-x: 94%; --rain-h: 16vh; --rain-speed: 3.9s; --rain-delay: -3.1s; }
.garden-entry-coordinates {
  position: absolute;
  top: max(24px, env(safe-area-inset-top));
  left: clamp(22px, 4vw, 58px);
  right: clamp(22px, 4vw, 58px);
  z-index: 5;
  display: flex;
  justify-content: space-between;
  color: rgba(222,235,225,.48);
  font-family: var(--g-font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .2em;
  text-shadow: 0 1px 10px rgba(0,0,0,.65);
}
.garden-entry.entry-motion-ready .garden-entry-coordinates { opacity: 0; }
.garden-entry.entry-motion-ready.is-active .garden-entry-coordinates {
  animation: g-entry-meta var(--g-motion-intro) var(--g-ease-out) both;
}
.garden-entry-stage {
  position: relative;
  z-index: 5;
  opacity: var(--entry-stage-opacity);
  transform: translate3d(0, var(--entry-stage-y), 0);
  will-change: transform, opacity;
}
.garden-entry-mark {
  position: relative;
  z-index: 5;
  display: grid;
  justify-items: center;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.garden-entry.entry-motion-ready .garden-entry-mark {
  opacity: 0;
  transform: translateY(8px) scale(.96);
}
.garden-entry.entry-motion-ready.is-active .garden-entry-mark {
  animation: g-entry-mark var(--g-motion-intro) var(--g-ease-out) both;
}
.garden-entry-mark span {
  margin-bottom: 8px;
  font-family: var(--g-font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  opacity: .68;
}
.garden-entry-mark strong {
  font-family: var(--g-font-zh-script);
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .06em;
}
.garden-entry-mark em {
  margin-top: 11px;
  color: rgba(222,235,225,.72);
  font-family: var(--g-font);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .32em;
  text-indent: .32em;
}
.garden-entry-mark i {
  width: 116px;
  height: 1px;
  margin-top: 16px;
  background: linear-gradient(90deg, transparent, #8cb896, transparent);
  box-shadow: 0 0 12px rgba(140,184,150,.48);
  transform-origin: center;
}
.garden-entry.entry-motion-ready .garden-entry-mark i { transform: scaleX(0); }
.garden-entry.entry-motion-ready.is-active .garden-entry-mark i {
  animation: g-entry-line var(--g-motion-intro) var(--g-ease-out) both;
}
.garden-entry-atmosphere {
  position: absolute;
  right: auto;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: clamp(22px, 4vw, 58px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  color: rgba(222, 235, 225, .5);
  font-family: var(--g-font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .18em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .65);
  pointer-events: none;
}
.garden-entry.entry-motion-ready .garden-entry-atmosphere { opacity: 0; }
.garden-entry.entry-motion-ready.is-active .garden-entry-atmosphere {
  animation: g-entry-atmosphere var(--g-motion-intro) var(--g-ease-out) both;
}
.garden-entry-signal,
.garden-entry-clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.garden-entry-signal i {
  position: relative;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8cb896;
  box-shadow: 0 0 8px rgba(140, 184, 150, .56);
}
.garden-entry-signal i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(140, 184, 150, .4);
  border-radius: 50%;
  opacity: 0;
}
.garden-entry.entry-motion-ready.is-active .garden-entry-signal i::after {
  animation: g-entry-signal 3.8s 1.8s var(--g-ease-out) infinite both;
}
.garden-entry-clock time {
  min-width: 58px;
  color: rgba(238, 245, 239, .72);
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
  text-align: right;
}
.garden-entry-scroll {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 5;
  display: grid;
  gap: 10px;
  justify-items: center;
  color: rgba(238,245,239,.72);
  text-decoration: none;
  transform: translateX(-50%);
  transition: color var(--g-motion-ui), opacity var(--g-motion-ui);
}
.garden-entry-scroll:hover { color: #fff; }
.garden-entry-scroll:focus-visible {
  color: #fff;
  outline: 1px solid rgba(140,184,150,.72);
  outline-offset: 8px;
}
.garden-entry-scroll span {
  font-family: var(--g-font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .2em;
  white-space: nowrap;
}
.garden-entry-scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: rgba(238,245,239,.22);
}
.garden-entry-scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, #8cb896, transparent);
  transform: translateY(-100%);
}
.garden-entry.entry-motion-ready .garden-entry-scroll { opacity: 0; }
.garden-entry.entry-motion-ready.is-active .garden-entry-scroll {
  animation: g-entry-scroll-reveal var(--g-motion-intro) var(--g-ease-out) both;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: var(--g-accent-soft);
  color: var(--g-accent-text);
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--g-text); }
h1 { font-size: clamp(36px, 6vw, 56px); }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

p + p { margin-top: 1em; }

a {
  color: var(--g-accent-text);
  text-decoration: none;
  transition: color var(--g-motion-fast) var(--g-ease-standard);
}
a:hover { color: var(--g-accent); }

:focus-visible {
  outline: 2px solid var(--g-accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  color: var(--g-text);
  background: var(--g-bg-elevated);
  border: 1px solid var(--g-accent);
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

code {
  font-family: var(--g-font-mono);
  font-size: 0.875em;
  background: var(--g-ash-soft);
  padding: 1px 5px;
  border-radius: 3px;
}

pre {
  font-family: var(--g-font-mono);
  font-size: 14px;
  line-height: 1.6;
  background: var(--g-bg-soft);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  padding: 20px;
  overflow-x: auto;
}

pre code { background: none; padding: 0; }

blockquote {
  border-left: 3px solid var(--g-accent);
  padding: 8px 0 8px 20px;
  margin: 1.5em 0;
  color: var(--g-text-soft);
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--g-border);
  margin: 2em 0;
}

/* ===== Layout ===== */
.g-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.g-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.g-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--g-nav-material);
  border-bottom: 0;
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  transition: background var(--g-motion-ui), box-shadow var(--g-motion-ui);
}
.g-nav::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 12px;
  background: linear-gradient(to bottom, rgba(18,24,20,.09), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--g-motion-fast);
}
.g-nav.scrolled {
  background: color-mix(in srgb, var(--g-nav-material) 92%, var(--g-bg-elevated));
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--g-border) 68%, transparent);
}
.g-nav.scrolled::after { opacity: 1; }

.g-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 960px; margin: 0 auto;
  padding: 16px 24px;
}

.g-nav-logo {
  font-family: var(--g-font-script);
  font-size: 24px; font-weight: 400;
  color: var(--g-text);
  letter-spacing: 0;
  text-decoration: none;
  transition: color var(--g-motion-fast), transform var(--g-motion-press) var(--g-ease-out);
}
.g-nav-logo:hover { color: var(--g-accent); }
.g-nav-logo:active { transform: scale(.97); }

.g-nav-links {
  display: flex; align-items: center; gap: 24px; list-style: none;
}

.g-nav-links a {
  position: relative;
  display: inline-block;
  padding: 3px 0;
  font-size: 14px; font-weight: 500;
  color: var(--g-text-soft);
  letter-spacing: 0.02em;
  transition: color var(--g-motion-fast), opacity var(--g-motion-fast);
}
.g-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--g-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .24s var(--g-ease-out);
}
.g-nav-links a:hover,
.g-nav-links a.active { color: var(--g-text); }
.g-nav-links a:active { opacity: .68; }
.g-nav-links a:hover::after,
.g-nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.g-nav-links a.g-nav-search {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
}
.g-nav-search svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}
.g-nav-links a.g-nav-search::after { display: none; }
.g-nav-links a.g-nav-search:hover,
.g-nav-links a.g-nav-search.active {
  color: var(--g-accent-text);
  background: var(--g-accent-soft);
  border-color: var(--g-accent-border);
}
.g-scroll-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.g-scroll-track.is-visible { opacity: 1; }
.g-scroll-progress {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--g-accent-hover), var(--g-accent));
  box-shadow: 0 0 8px var(--g-accent-soft);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ===== Section Labels ===== */
.g-sec-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--g-on-scene);
  text-shadow:
    0 1px 0 var(--g-scene-halo),
    0 0 10px var(--g-scene-halo);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
body.is-home .g-sec-label::before {
  content: var(--garden-section-index, "00");
  flex: none;
  color: var(--g-on-scene-accent);
  font-family: var(--g-font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
}
.g-sec-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--g-border) 0 86%, var(--g-accent-soft));
}
.g-sec-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.g-sec-heading .g-sec-label {
  flex: 1;
  margin-bottom: 0;
}
.g-sec-heading > a {
  flex: none;
  color: var(--g-on-scene);
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 0 9px var(--g-scene-halo);
}
.g-sec-heading > a:hover {
  color: var(--g-accent-text);
}

.section-freshness {
  flex: none;
  color: var(--g-on-scene-soft);
  font-family: var(--g-font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-shadow: 0 1px 10px var(--g-scene-halo);
}
.posts-sec .section-freshness,
.life-sec .section-freshness {
  color: var(--g-reading-soft);
  text-shadow: none;
}

#latest-posts { --garden-section-index: "01"; }
#now { --garden-section-index: "02"; }
#garden-map { --garden-section-index: "03"; }
#featured { --garden-section-index: "04"; }
#life { --garden-section-index: "05"; }

.posts-sec .g-sec-label::before,
.life-sec .g-sec-label::before {
  color: var(--g-accent-text);
}

/* ===== Home Garden Route ===== */
.garden-route {
  --garden-route-progress: 0;
  position: fixed;
  top: 50%;
  left: max(24px, calc(50vw - 536px));
  z-index: 28;
  display: grid;
  gap: 4px;
  width: 18px;
  padding: 9px 0;
  opacity: .76;
  transform: translateY(-50%);
  transition: opacity var(--g-motion-ui);
}
.garden-route:hover,
.garden-route:focus-within { opacity: 1; }
.garden-route-track {
  position: absolute;
  top: 25px;
  bottom: 25px;
  left: 8px;
  width: 2px;
  overflow: visible;
  background: color-mix(in srgb, var(--g-border) 82%, transparent);
  border-radius: 999px;
  pointer-events: none;
}
.garden-route-track i {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--g-accent-hover), var(--g-accent));
  border-radius: inherit;
  box-shadow: 0 0 8px var(--g-glow);
  transform: scaleY(var(--garden-route-progress));
  transform-origin: top;
  transition: transform var(--g-motion-fast) var(--g-ease-standard);
}
.garden-route a {
  position: relative;
  display: block;
  width: 18px;
  height: 34px;
  color: var(--g-text-mute);
}
.garden-route a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  z-index: 1;
  width: 9px;
  height: 11px;
  background: var(--g-bg-elevated);
  border: 1px solid var(--g-border-hover);
  border-radius: 72% 28% 68% 32%;
  transform: translateY(-50%) rotate(45deg) scale(.78);
  transition: transform var(--g-motion-fast) var(--g-ease-out);
}
.garden-route a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 9px;
  width: 9px;
  height: 1px;
  background: var(--g-accent-border);
  opacity: .32;
  transform: scaleX(.28);
  transform-origin: left;
  transition: opacity var(--g-motion-fast), transform var(--g-motion-fast) var(--g-ease-out);
}
.garden-route a span {
  position: absolute;
  top: 50%;
  right: 26px;
  padding: 3px 7px;
  color: var(--g-text-soft);
  background: color-mix(in srgb, var(--g-bg-elevated) 88%, transparent);
  border: 1px solid var(--g-border);
  border-radius: 4px;
  box-shadow: var(--g-shadow);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity var(--g-motion-fast), transform var(--g-motion-fast) var(--g-ease-out);
  white-space: nowrap;
}
.garden-route a:hover::before,
.garden-route a:focus-visible::before,
.garden-route a.active::before {
  background: var(--g-accent);
  border-color: var(--g-accent);
  box-shadow: 0 0 0 4px var(--g-accent-soft), 0 0 14px var(--g-glow);
  transform: translateY(-50%) rotate(45deg) scale(1);
}
.garden-route a:hover::after,
.garden-route a:focus-visible::after,
.garden-route a.active::after {
  opacity: 1;
  transform: scaleX(1);
}
.garden-route a:hover span,
.garden-route a:focus-visible span,
.garden-route a.active span {
  opacity: 1;
  transform: translate(0, -50%);
}
.garden-route a:focus-visible {
  outline-offset: 6px;
}

/* ===== Module 1: Personal Hero ===== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px 64px;
  align-items: center;
  padding: 92px 0 72px;
  text-align: left;
}
.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.hero-fireflies {
  position: absolute;
  inset: 5% -5% 12%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-fireflies i {
  --fly-x: 24px;
  --fly-y: -32px;
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--g-accent);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--g-accent), 0 0 16px var(--g-glow);
  opacity: 0;
}
.hero-fireflies i:nth-child(1) { top: 18%; left: 8%; --fly-x: 38px; --fly-y: -24px; animation-duration: 8.7s; animation-delay: -2.1s; }
.hero-fireflies i:nth-child(2) { top: 64%; left: 16%; --fly-x: -26px; --fly-y: -42px; animation-duration: 10.4s; animation-delay: -6.8s; }
.hero-fireflies i:nth-child(3) { top: 34%; left: 32%; --fly-x: 31px; --fly-y: 28px; animation-duration: 9.3s; animation-delay: -4.2s; }
.hero-fireflies i:nth-child(4) { top: 76%; left: 43%; --fly-x: -18px; --fly-y: -36px; animation-duration: 11.2s; animation-delay: -7.4s; }
.hero-fireflies i:nth-child(5) { top: 15%; left: 57%; --fly-x: 22px; --fly-y: 34px; animation-duration: 8.2s; animation-delay: -5.6s; }
.hero-fireflies i:nth-child(6) { top: 58%; left: 68%; --fly-x: -32px; --fly-y: 24px; animation-duration: 10.8s; animation-delay: -1.8s; }
.hero-fireflies i:nth-child(7) { top: 28%; left: 79%; --fly-x: 26px; --fly-y: -38px; animation-duration: 9.8s; animation-delay: -8.1s; }
.hero-fireflies i:nth-child(8) { top: 72%; left: 88%; --fly-x: -35px; --fly-y: -25px; animation-duration: 11.5s; animation-delay: -4.9s; }
.hero-fireflies i:nth-child(9) { top: 45%; left: 96%; --fly-x: -28px; --fly-y: 30px; animation-duration: 9.1s; animation-delay: -3.3s; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--g-on-scene-soft);
  text-shadow: 0 1px 12px var(--g-scene-halo);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .11em;
}
.hero-eyebrow span {
  position: relative;
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--g-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--g-accent-soft);
}
.hero-eyebrow span::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--g-accent);
  border-radius: inherit;
  opacity: 0;
  transform: scale(.72);
}
.hero h1 {
  font-family: var(--g-font);
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--g-on-scene);
  text-shadow: 0 2px 20px var(--g-scene-halo);
  margin-bottom: 8px;
}
.hero-name {
  display: inline-block;
  white-space: nowrap;
  color: var(--g-on-scene);
  font-family: var(--g-font-script);
  font-size: 1.04em;
  font-weight: 400;
  letter-spacing: 0;
  transform: rotate(-2deg);
  transform-origin: center;
}
.hero-thesis {
  max-width: 640px;
  margin: 0 0 22px;
  color: var(--g-on-scene);
  text-shadow: 0 1px 16px var(--g-scene-halo);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.025em;
}
.hero-thesis em {
  color: var(--g-on-scene-accent);
  font-style: normal;
}
.hero .tagline {
  max-width: 610px;
  margin: 0;
  color: var(--g-on-scene-soft);
  text-shadow: 0 1px 14px var(--g-scene-halo);
  font-size: 16px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  color: var(--g-text-soft);
  background: var(--g-bg-elevated);
  border: 1px solid var(--g-border);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--g-shadow);
  transition:
    color var(--g-motion-fast),
    background var(--g-motion-fast),
    border-color var(--g-motion-fast),
    transform var(--g-motion-fast) var(--g-ease-out);
}
.hero-action:hover {
  color: var(--g-accent-text);
  border-color: var(--g-accent-border);
  transform: translateY(-1px);
}
.hero-action.primary {
  color: #fff;
  background: var(--g-accent);
  border-color: var(--g-accent);
}
.hero-action.primary:hover {
  color: #fff;
  background: var(--g-accent-hover);
  border-color: var(--g-accent-hover);
}
.hero-action:active {
  transform: translateY(0) scale(.97);
  transition-duration: var(--g-motion-press);
}
.hero-action span {
  transition: transform var(--g-motion-fast) var(--g-ease-out);
}
.hero-action.primary:hover span { transform: translateY(2px); }
.hero-action:not(.primary):hover span { transform: translateX(3px); }
.hero-identity {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 30px 28px 24px;
  background:
    linear-gradient(145deg, var(--g-accent-soft), transparent 58%),
    var(--g-bg-elevated);
  border: 1px solid var(--g-border);
  border-radius: 16px 6px 16px 6px;
  box-shadow: var(--g-shadow-lg);
}
.hero-companion {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 78px;
  height: 78px;
  overflow: hidden;
  background: var(--g-bg-soft);
  border: 3px solid var(--g-bg-elevated);
  border-radius: 44% 56% 48% 52% / 52% 44% 56% 48%;
  box-shadow: 0 0 0 1px var(--g-border), var(--g-shadow-lg);
  transform: rotate(2deg);
}
.hero-companion img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(.82) contrast(1.04);
}
.hero-companion .hero-companion-dark { display: none; }
:root[data-theme="dark"] .hero-companion .hero-companion-light { display: none; }
:root[data-theme="dark"] .hero-companion .hero-companion-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hero-companion .hero-companion-light { display: none; }
  :root:not([data-theme]) .hero-companion .hero-companion-dark { display: block; }
}
.hero-identity::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -50px;
  width: 136px;
  height: 136px;
  border: 1px solid var(--g-accent-border);
  border-radius: 50%;
  opacity: .7;
}
.hero-hand {
  position: relative;
  z-index: 1;
  padding-right: 82px;
  margin: 0 0 8px;
  color: var(--g-text);
  font-family: var(--g-font-zh-script);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .04em;
}
.hero-motto {
  position: relative;
  z-index: 1;
  padding-right: 82px;
  margin: 0;
  color: var(--g-text-soft);
  font-size: 14px;
}
.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 25px 0 20px;
  padding-top: 20px;
  border-top: 1px solid var(--g-border);
}
.hero-stats div {
  min-width: 0;
}
.hero-stats dt {
  margin-bottom: 4px;
  color: var(--g-text-mute);
  font-size: 11px;
  letter-spacing: .08em;
}
.hero-stats dd {
  overflow: hidden;
  color: var(--g-text);
  font-family: var(--g-font-mono);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-stats small {
  margin-left: 2px;
  color: var(--g-text-mute);
  font-family: var(--g-font);
  font-size: 10px;
  font-weight: 500;
}
.hero-since {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--g-ash);
  font-family: var(--g-font-mono);
  font-size: 11px;
  letter-spacing: .05em;
}
.hero-trace {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  width: 148px;
  height: 13px;
  margin: -8px auto 0;
}
.hero-trace::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g-accent), transparent);
  transform-origin: center;
}
.hero-trace::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  background: var(--g-bg);
  border: 1px solid var(--g-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--g-accent-soft);
}

/* ===== Module 2: Garden Map ===== */
.garden-map {
  margin-bottom: 80px;
}
.garden-map-note {
  flex: none;
  color: var(--g-on-scene-soft);
  font-size: 12px;
  text-shadow: 0 1px 10px var(--g-scene-halo);
}
.garden-terrain {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  color: var(--g-reading-text);
  background:
    radial-gradient(circle at 49% 48%, var(--g-accent-soft), transparent 19%),
    linear-gradient(145deg, var(--g-surface-sheen), transparent 46%),
    var(--g-reading-bg);
  border: 1px solid var(--g-border);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 var(--g-surface-sheen), var(--g-shadow-lg);
  isolation: isolate;
}
.garden-terrain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-radial-gradient(ellipse at 50% 50%, transparent 0 44px, var(--g-accent-soft) 45px 46px, transparent 47px 63px),
    linear-gradient(115deg, transparent 0 58%, var(--g-ash-soft) 58% 72%, transparent 72%);
  opacity: .55;
  pointer-events: none;
}
.garden-terrain-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.garden-terrain-lines path {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.terrain-contour {
  stroke: var(--g-border);
  stroke-width: 1;
  stroke-dasharray: 2 7;
  opacity: .48;
}
.terrain-contour-b { opacity: .3; }
.terrain-branch {
  stroke: var(--g-accent-border);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.terrain-compass {
  position: absolute;
  top: 22px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--g-reading-soft);
  font-family: var(--g-font-mono);
  font-size: 8px;
  letter-spacing: .1em;
}
.terrain-compass i {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid var(--g-accent-border);
  border-radius: 50%;
}
.terrain-compass i::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 1px;
  height: 6px;
  background: var(--g-accent);
  transform: translateX(-50%);
}
.terrain-origin {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  gap: 9px;
  color: var(--g-accent-text);
  font-family: var(--g-font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  transform: translate(-50%, -50%);
}
.terrain-origin i {
  position: relative;
  width: 13px;
  height: 13px;
  background: var(--g-accent);
  border: 4px solid var(--g-reading-bg);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--g-accent), 0 0 18px var(--g-glow);
}
.terrain-origin i::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid var(--g-accent-border);
  border-radius: 50%;
  opacity: .6;
}
.terrain-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 218px;
  min-height: 132px;
  padding: 22px 24px;
  color: var(--g-reading-text);
  background: color-mix(in srgb, var(--g-reading-bg) 93%, transparent);
  border: 1px solid var(--g-border);
  box-shadow: var(--g-shadow);
  text-decoration: none;
  backdrop-filter: blur(12px) saturate(1.04);
  -webkit-backdrop-filter: blur(12px) saturate(1.04);
  transition: transform var(--g-motion-ui) var(--g-ease-out);
}
.terrain-node-code {
  top: 54px;
  left: 7%;
  border-radius: 46% 54% 38% 62% / 43% 38% 62% 57%;
}
.terrain-node-notes {
  top: 48px;
  right: 7%;
  border-radius: 58% 42% 52% 48% / 40% 55% 45% 60%;
}
.terrain-node-life {
  right: 7%;
  bottom: 38px;
  border-radius: 41% 59% 57% 43% / 55% 45% 55% 45%;
}
.terrain-node-meta {
  margin-bottom: 15px;
  color: var(--g-accent-text);
  font-family: var(--g-font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
}
.terrain-node strong {
  margin-bottom: 5px;
  color: var(--g-reading-heading);
  font-size: 19px;
}
.terrain-node small {
  padding-right: 18px;
  color: var(--g-reading-soft);
  font-size: 11px;
  line-height: 1.55;
}
.terrain-node b {
  position: absolute;
  right: 23px;
  bottom: 19px;
  color: var(--g-accent-text);
  font-size: 14px;
  font-weight: 400;
  transition: transform var(--g-motion-fast) var(--g-ease-out);
}
.terrain-node:active {
  transform: scale(.985);
  transition-duration: var(--g-motion-press);
}
.garden-wander {
  position: absolute;
  left: 12%;
  bottom: 50px;
  z-index: 2;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 1px 12px;
  align-items: center;
  width: 194px;
  padding: 15px 18px;
  color: #f1f5f0;
  background: color-mix(in srgb, var(--g-accent) 92%, #18271b);
  border: 1px solid color-mix(in srgb, var(--g-accent) 72%, white);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(24,39,27,.15), 0 0 22px var(--g-glow);
  text-decoration: none;
  transition: transform var(--g-motion-fast) var(--g-ease-out);
}
.garden-wander > span {
  grid-row: 1 / 3;
  font-size: 25px;
  line-height: 1;
}
.garden-wander strong { font-size: 12px; }
.garden-wander small { color: rgba(241,245,240,.7); font-size: 9px; }
.garden-wander:active {
  transform: scale(.97);
  transition-duration: var(--g-motion-press);
}

/* ===== Module 2: Editorial Posts ===== */
.posts-sec,
.life-sec {
  margin-bottom: 80px;
  padding: 28px 30px;
  background: var(--g-reading-bg);
  border: 1px solid var(--g-border);
  border-radius: 14px;
  box-shadow: var(--g-shadow);
}
.posts-sec .g-sec-label,
.posts-sec .g-sec-heading > a,
.life-sec .g-sec-label,
.life-sec .g-sec-heading > a {
  color: var(--g-reading-heading);
  text-shadow: none;
}
.posts-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(270px, .82fr);
  min-height: 370px;
  overflow: hidden;
  border-top: 1px solid var(--g-border);
  border-bottom: 1px solid var(--g-border);
}
.posts-editorial.is-single { grid-template-columns: minmax(0, 1fr); }
.post-lead {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 36px 42px 34px 4px;
  overflow: hidden;
  color: var(--g-reading-text);
  border-right: 1px solid var(--g-border);
  text-decoration: none;
  isolation: isolate;
  transition: background var(--g-motion-fast), transform var(--g-motion-press) var(--g-ease-out);
}
.posts-editorial.is-single .post-lead { border-right: 0; }
.post-lead::after {
  content: "";
  position: absolute;
  right: -76px;
  bottom: -92px;
  z-index: -1;
  width: 230px;
  height: 230px;
  background: radial-gradient(circle at 35% 35%, var(--g-accent-soft), transparent 69%);
  border: 1px solid var(--g-accent-border);
  border-radius: 47% 53% 61% 39% / 42% 39% 61% 58%;
  opacity: .72;
  transform: rotate(-12deg);
  transition: transform var(--g-motion-ui) var(--g-ease-out), opacity var(--g-motion-fast);
}
.post-lead-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 46px;
  color: var(--g-accent-text);
  font-family: var(--g-font-mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.post-lead-kicker i {
  width: 18px;
  height: 1px;
  background: var(--g-accent-border);
}
.post-lead h3 {
  max-width: 620px;
  margin-bottom: 16px;
  font-family: var(--g-font-title);
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 400;
  line-height: 1.22;
  color: var(--g-reading-heading);
  letter-spacing: .025em;
  text-wrap: balance;
  transition: color var(--g-motion-fast);
}
.post-lead > p {
  max-width: 580px;
  color: var(--g-reading-soft);
  font-size: 15px;
  line-height: 1.75;
}
.post-lead-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 34px;
  color: var(--g-reading-soft);
  font-size: 11px;
  line-height: 1.4;
}
.post-lead-foot time {
  font-family: var(--g-font-mono);
}
.post-lead-foot b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--g-accent-text);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.post-lead-foot b span,
.post-brief-arrow {
  transition: transform var(--g-motion-fast) var(--g-ease-out);
}
.post-brief-list {
  display: flex;
  flex-direction: column;
}
.post-brief {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 17px 4px 17px 24px;
  color: var(--g-reading-text);
  border-bottom: 1px solid var(--g-border);
  text-decoration: none;
  transition: background var(--g-motion-fast), transform var(--g-motion-press) var(--g-ease-out);
}
.post-brief:last-child { border-bottom: 0; }
.post-brief-index {
  color: var(--g-reading-soft);
  font-family: var(--g-font-mono);
  font-size: 9px;
  letter-spacing: .06em;
  opacity: .72;
}
.post-brief-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.post-brief-copy strong {
  overflow: hidden;
  color: var(--g-reading-heading);
  font-family: var(--g-font-title);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .025em;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--g-motion-fast);
}
.post-brief-copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--g-reading-soft);
  font-size: 11px;
  font-style: normal;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.post-brief-count-4 .post-brief-copy > span,
.post-brief-count-5 .post-brief-copy > span { display: none; }
.post-brief-copy small {
  color: var(--g-reading-soft);
  font-family: var(--g-font-mono);
  font-size: 9px;
  letter-spacing: .035em;
}
.post-brief-arrow {
  color: var(--g-accent-text);
  font-size: 14px;
}
.post-lead:active,
.post-brief:active {
  transform: scale(.992);
  transition-duration: var(--g-motion-press);
}

/* ===== Module 3: Right Now ===== */
.present-sec { margin-bottom: 80px; }
.present-board {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
  overflow: hidden;
  color: var(--g-reading-text);
  background: var(--g-reading-bg);
  border: 1px solid var(--g-border);
  border-radius: 14px;
  box-shadow: var(--g-shadow);
}
.present-status-panel {
  padding: 30px;
  border-right: 1px solid var(--g-border);
}
.present-lede { margin-bottom: 28px; }
.present-lede > span,
.present-block-heading > span,
.present-log-label {
  display: block;
  margin-bottom: 12px;
  color: var(--g-accent-text);
  font-family: var(--g-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}
.present-lede h3 {
  max-width: 390px;
  margin-bottom: 8px;
  color: var(--g-reading-heading);
  font-size: 21px;
  line-height: 1.45;
  text-wrap: balance;
}
.present-lede p,
.present-block-heading p {
  color: var(--g-reading-soft);
  font-size: 12px;
  line-height: 1.65;
}
.present-status-list { border-top: 1px solid var(--g-border); }
.present-status-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--g-border);
}
.present-status-item:last-child { border-bottom: 0; padding-bottom: 0; }
.present-status-item .now-signal {
  position: relative;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  background: var(--g-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--g-accent-soft), 0 0 12px var(--g-glow);
}
.present-status-item .now-signal::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid var(--g-accent);
  border-radius: inherit;
  opacity: 0;
  transform: scale(1);
}
.present-status-item h4 {
  margin-bottom: 4px;
  color: var(--g-reading-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}
.present-status-item p {
  color: var(--g-reading-text);
  font-size: 14px;
  line-height: 1.6;
}
.present-workbench { padding: 30px; }
.present-block-heading {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--g-border);
}
.present-block-heading > span { margin: 4px 0 0; }
.present-block-heading h3 {
  margin-bottom: 5px;
  color: var(--g-reading-heading);
  font-size: 19px;
}
.present-stack-groups { display: grid; }
.present-stack-group {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid var(--g-border);
}
.present-stack-group:last-child { padding-bottom: 0; border-bottom: 0; }
.present-stack-group h4 {
  padding-top: 3px;
  color: var(--g-reading-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}
.present-stack-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.present-stack-tag {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.present-stack-tag strong {
  overflow: hidden;
  color: var(--g-reading-heading);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.present-stack-tag small {
  overflow: hidden;
  color: var(--g-reading-soft);
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.present-log {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 92px 108px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 30px;
  color: var(--g-reading-text);
  background: linear-gradient(90deg, var(--g-accent-soft), transparent 72%);
  border-top: 1px solid var(--g-border);
  text-decoration: none;
  transition: background var(--g-motion-fast), transform var(--g-motion-press) var(--g-ease-out);
}
.present-log-label { margin: 0; }
.present-log time {
  color: var(--g-accent-text);
  font-family: var(--g-font-mono);
  font-size: 10px;
}
.present-log-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.present-log-copy strong {
  color: var(--g-reading-heading);
  font-size: 14px;
}
.present-log-copy small {
  overflow: hidden;
  color: var(--g-reading-soft);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.present-log-arrow {
  color: var(--g-accent-text);
  transition: transform var(--g-motion-fast) var(--g-ease-out);
}
.present-board-without-status .present-workbench,
.present-board-without-workbench .present-status-panel { grid-column: 1 / -1; }
.present-board-without-workbench .present-status-panel { border-right: 0; }
.present-log:active {
  transform: scale(.994);
  transition-duration: var(--g-motion-press);
}

/* ===== Module 4: Featured Projects ===== */
.featured-sec {
  margin-bottom: 80px;
}
.featured-card {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: linear-gradient(145deg, var(--g-surface-sheen), transparent 42%), var(--g-bg-elevated);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  box-shadow: inset 0 1px 0 var(--g-surface-sheen), var(--g-shadow);
  text-decoration: none; color: inherit;
  transition: transform .24s var(--g-ease-out), box-shadow 0.2s, border-color 0.2s;
}
.featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(380px circle at var(--spot-x) var(--spot-y), var(--g-glow), transparent 68%),
    linear-gradient(125deg, transparent 58%, var(--g-accent-soft));
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s;
}
.featured-card:hover {
  border-color: var(--g-border-hover);
  box-shadow: var(--g-shadow-lg);
}
body.card-motion-ready .featured-card:hover::before { opacity: 1; }
.featured-card > * { position: relative; z-index: 1; }
.featured-card h3 {
  font-family: var(--g-font-title);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .035em;
  color: var(--g-text);
  margin-bottom: 6px;
}
.featured-card .desc {
  font-size: 14px; color: var(--g-text-soft);
  line-height: 1.6;
  margin-bottom: 10px;
}
.featured-card .meta {
  font-size: 12px; color: var(--g-text-mute);
  font-family: var(--g-font-mono);
  display: flex; gap: 12px;
}
.featured-card .badge {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--g-accent);
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--g-accent);
  border-radius: 99px;
  white-space: nowrap;
}

/* ===== Module 6: Life ===== */
.life-notes-grid { display: grid; gap: 12px; }
.life-note {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr);
  min-height: 250px;
  overflow: hidden;
  color: var(--g-reading-text);
  background: var(--g-bg-elevated);
  border: 1px solid var(--g-border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color var(--g-motion-fast), box-shadow var(--g-motion-fast), transform var(--g-motion-press) var(--g-ease-out);
}
.life-note-media {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: var(--g-bg-soft);
}
.life-note-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 52%, color-mix(in srgb, var(--g-bg-elevated) 38%, transparent));
  pointer-events: none;
}
.life-note-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  filter: saturate(.72) contrast(1.04);
  transition: transform var(--g-motion-ui) var(--g-ease-out), filter var(--g-motion-ui);
}
.life-note-media .life-note-media-dark { display: none; }
:root[data-theme="dark"] .life-note-media .life-note-media-light { display: none; }
:root[data-theme="dark"] .life-note-media .life-note-media-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .life-note-media .life-note-media-light { display: none; }
  :root:not([data-theme]) .life-note-media .life-note-media-dark { display: block; }
}
.life-note-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(24px, 4vw, 38px);
}
.life-note-kicker {
  color: var(--g-reading-soft);
  font-family: var(--g-font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.life-note-copy strong {
  margin: 16px 0 8px;
  color: var(--g-reading-heading);
  font-family: var(--g-font-title);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.life-note-desc { color: var(--g-reading-soft); font-size: 13px; line-height: 1.7; }
.life-note-link {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 24px;
  color: var(--g-accent-text);
  font-size: 12px;
  font-weight: 650;
}
.life-note-link b { font-weight: 400; }
.life-note:hover { border-color: var(--g-accent-border); box-shadow: var(--g-shadow-lg); }
.life-note:active { transform: scale(.992); }
@media (hover: hover) and (pointer: fine) {
  .life-note:hover .life-note-media img { transform: scale(1.018); filter: saturate(.82) contrast(1.06); }
}

/* ===== Module 8: About ===== */
.about-sec {
  margin-bottom: 80px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  background: var(--g-bg-elevated);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow);
}
.about-photo {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  margin: 0;
  background: var(--g-bg-soft);
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(6,10,7,.76));
  pointer-events: none;
}
.about-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 54% center;
  filter: saturate(.78) contrast(1.04);
  transition: transform var(--g-motion-ui) var(--g-ease-out), filter var(--g-motion-ui);
}
.about-photo figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 17px;
  z-index: 1;
  color: rgba(255,255,255,.84);
  font-size: 12px;
  letter-spacing: .08em;
}
.about-sec:hover .about-photo img {
  filter: saturate(.9) contrast(1.06);
}
.about-summary {
  align-self: center;
  padding: 34px 32px;
}
.about-sec h2 { font-size: 28px; margin-bottom: 14px; }
.about-sec p {
  font-size: 16px; color: var(--g-text-soft);
  line-height: 1.85;
  margin-bottom: 10px;
}
.about-sec .links {
  margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap;
}
.about-sec .link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--g-text-soft);
  background: var(--g-bg-soft);
  border: 1px solid var(--g-border);
  border-radius: 99px;
  text-decoration: none;
  transition: background var(--g-motion-fast), border-color var(--g-motion-fast), color var(--g-motion-fast), transform var(--g-motion-press) var(--g-ease-out);
}
.about-sec .link-btn:hover {
  background: var(--g-accent);
  border-color: var(--g-accent);
  color: #fff;
}
.about-sec .link-btn.primary {
  color: #fff;
  background: var(--g-accent);
  border-color: var(--g-accent);
}
.about-sec .link-btn.primary:hover {
  background: var(--g-accent-hover);
  border-color: var(--g-accent-hover);
}
.about-sec .about-signature {
  margin-top: 16px;
  color: var(--g-text-mute);
  font-family: var(--g-font-mono);
  font-size: 11px;
}
.about-signature span { color: var(--g-accent-text); font-weight: 700; }
.about-sec .link-btn:active { transform: scale(.97); }
/* ===== About Page ===== */
.about-page {
  margin-top: 48px;
  margin-bottom: 88px;
  padding: 56px clamp(28px, 5vw, 56px) 64px;
  color: var(--g-reading-text);
  background: var(--g-reading-bg);
  border: 1px solid var(--g-border);
  border-radius: 14px;
  box-shadow: var(--g-shadow-lg);
}
.about-page h1,
.about-page h2,
.about-page h3,
.about-page h4 {
  color: var(--g-reading-heading);
}
.about-page .g-sec-label {
  color: var(--g-reading-heading);
  text-shadow: none;
}
.about-page-hero {
  max-width: 760px;
  margin-bottom: 88px;
}
.about-page-kicker {
  margin-bottom: 18px;
  color: var(--g-text-mute);
  font-family: var(--g-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.about-page-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 7vw, 64px);
}
.about-page-lede {
  max-width: 700px;
  color: var(--g-text-soft);
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.8;
}
.about-maintained {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: var(--g-text-mute);
  font-size: 13px;
}
.about-maintained-dot {
  width: 7px;
  height: 7px;
  background: var(--g-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--g-accent-soft);
}
.about-chapter {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 80px);
  padding: 56px 0;
  border-top: 1px solid var(--g-border);
}
.about-chapter-heading .g-sec-label {
  margin-bottom: 12px;
}
.about-chapter-heading .g-sec-label::after {
  display: none;
}
.about-chapter-heading p {
  color: var(--g-text-mute);
  font-size: 13px;
  line-height: 1.7;
}
.garden-paths {
  position: relative;
  padding-left: 30px;
  border-left: 1px solid var(--g-border);
}
.garden-path {
  position: relative;
  padding: 0 0 42px;
}
.garden-path:last-child {
  padding-bottom: 0;
}
.garden-path::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -35px;
  width: 9px;
  height: 9px;
  background: var(--g-bg);
  border: 2px solid var(--g-accent);
  border-radius: 50%;
  transition: background .2s, box-shadow .2s;
}
.garden-path:hover::before {
  background: var(--g-accent);
  box-shadow: 0 0 0 5px var(--g-accent-soft);
}
.garden-path-meta {
  margin-bottom: 6px;
  color: var(--g-accent-text);
  font-family: var(--g-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.garden-path h2 {
  margin-bottom: 8px;
  font-size: 21px;
}
.garden-path p {
  max-width: 540px;
  margin-bottom: 12px;
  color: var(--g-text-soft);
  font-size: 15px;
  line-height: 1.75;
}
.garden-path a {
  font-size: 13px;
  font-weight: 600;
}
.about-now-list {
  border-top: 1px solid var(--g-border);
}
.about-now-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--g-border);
}
.about-now-item > span {
  color: var(--g-text-mute);
  font-size: 13px;
}
.about-now-item p {
  color: var(--g-text);
  font-size: 15px;
}
.about-principles {
  list-style: none;
}
.about-principles li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  color: var(--g-text);
  border-bottom: 1px solid var(--g-border);
  font-size: 16px;
}
.about-principles li:first-child {
  border-top: 1px solid var(--g-border);
}
.about-principles li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: .7em;
  background: var(--g-accent);
  border-radius: 50%;
}
.about-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(36px, 8vw, 88px);
  margin-top: 32px;
  padding: 40px;
  color: var(--g-text);
  background: var(--g-bg-elevated);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow);
}
.about-contact h2 {
  margin-bottom: 12px;
  font-size: 28px;
}
.about-contact p {
  color: var(--g-text-soft);
  font-size: 14px;
  line-height: 1.75;
}
.about-contact-links {
  border-top: 1px solid var(--g-border);
}
.about-contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  color: var(--g-text);
  border-bottom: 1px solid var(--g-border);
  font-family: var(--g-font-mono);
  font-size: 13px;
}
.about-contact-links a:hover {
  color: var(--g-accent-text);
}
.about-contact-links small {
  display: block;
  margin-bottom: 2px;
  color: var(--g-text-mute);
  font-family: var(--g-font);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ===== Search & Garden Log ===== */
.search-page,
.garden-log-page {
  margin-top: 48px;
  margin-bottom: 88px;
  padding: 56px clamp(28px, 5vw, 56px) 64px;
  color: var(--g-reading-text);
  background: var(--g-reading-bg);
  border: 1px solid var(--g-border);
  border-radius: 14px;
  box-shadow: var(--g-shadow-lg);
}
.search-page h1,
.search-page h2,
.search-page h3,
.garden-log-page h1,
.garden-log-page h2,
.garden-log-page h3 {
  color: var(--g-reading-heading);
}
.search-hero,
.garden-log-hero {
  max-width: 720px;
  margin-bottom: 44px;
}
.search-kicker,
.garden-log-kicker {
  margin-bottom: 14px;
  color: var(--g-accent-text);
  font-family: var(--g-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.search-hero h1,
.garden-log-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 56px);
}
.search-hero > p:last-child,
.garden-log-hero > p:last-child {
  color: var(--g-reading-soft);
  font-size: 17px;
  line-height: 1.8;
}

.garden-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.garden-search svg {
  position: absolute;
  left: 18px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--g-reading-soft);
  stroke-linecap: round;
  stroke-width: 1.7;
  pointer-events: none;
}
.garden-search input {
  width: 100%;
  height: 58px;
  padding: 0 72px 0 52px;
  color: var(--g-reading-heading);
  background: linear-gradient(145deg, var(--g-surface-sheen), transparent 38%), var(--g-bg-elevated);
  border: 1px solid var(--g-border);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  outline: none;
  box-shadow: inset 0 1px 0 var(--g-surface-sheen), var(--g-shadow);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.garden-search input::placeholder { color: var(--g-reading-soft); }
.garden-search input:focus {
  background: var(--g-reading-bg);
  border-color: var(--g-accent);
  box-shadow: 0 0 0 3px var(--g-accent-soft), var(--g-shadow);
}
.garden-search kbd {
  position: absolute;
  right: 14px;
  padding: 3px 7px;
  color: var(--g-reading-soft);
  background: var(--g-bg-soft);
  border: 1px solid var(--g-border);
  border-radius: 5px;
  font-family: var(--g-font-mono);
  font-size: 10px;
  pointer-events: none;
}
.garden-search.is-unavailable { opacity: .68; }
.search-hint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 30px;
  margin-bottom: 32px;
  color: var(--g-reading-soft);
  font-size: 12px;
}
.search-hint button {
  padding: 4px 9px;
  color: var(--g-reading-soft);
  background: transparent;
  border: 1px solid var(--g-border);
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.search-hint button:hover,
.search-hint button:focus-visible {
  color: var(--g-accent-text);
  background: var(--g-accent-soft);
  border-color: var(--g-accent-border);
}
.search-status {
  min-height: 22px;
  margin-bottom: 14px;
  color: var(--g-reading-soft);
  font-family: var(--g-font-mono);
  font-size: 11px;
}
.search-results { list-style: none; }
.search-results li { border-top: 1px solid var(--g-border); }
.search-results li:last-child { border-bottom: 1px solid var(--g-border); }
.search-results a {
  position: relative;
  display: block;
  padding: 22px 18px;
  color: var(--g-reading-text);
  transition: background var(--g-motion-fast);
}
.search-results a::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 2px;
  background: var(--g-accent);
  border-radius: 99px;
  opacity: 0;
  transform: scaleY(1);
  transition: opacity var(--g-motion-fast);
}
.search-results a:hover,
.search-results a:focus-visible {
  background: var(--g-accent-soft);
}
.search-results a:hover::before,
.search-results a:focus-visible::before {
  opacity: 1;
}
.search-results h2 {
  margin-bottom: 7px;
  font-family: var(--g-font-title);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .025em;
}
.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 8px;
  color: var(--g-reading-soft);
  font-size: 11px;
}
.search-result-meta time { font-family: var(--g-font-mono); }
.search-results p {
  color: var(--g-reading-soft);
  font-size: 14px;
  line-height: 1.7;
}
.search-empty,
.garden-log-empty {
  padding: 44px 24px;
  color: var(--g-reading-soft);
  background: var(--g-bg-soft);
  border: 1px dashed var(--g-border-hover);
  border-radius: 10px;
  text-align: center;
}
.search-empty strong,
.search-empty span { display: block; }
.search-empty strong {
  margin-bottom: 5px;
  color: var(--g-reading-heading);
}
.search-empty span { font-size: 13px; }

.garden-log-timeline {
  position: relative;
}
.garden-log-entry {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 64px);
  padding: 48px 0 56px;
  border-top: 1px solid var(--g-border);
}
.garden-log-entry:last-child { padding-bottom: 8px; }
.garden-log-date {
  position: sticky;
  top: 92px;
  align-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--g-reading-soft);
  font-family: var(--g-font-mono);
  font-size: 11px;
}
.garden-log-date::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--g-accent);
  border: 3px solid var(--g-reading-bg);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--g-accent), 0 0 0 6px var(--g-accent-soft);
}
.garden-log-date a {
  color: var(--g-reading-soft);
  opacity: 0;
  transition: opacity .2s, color .2s;
}
.garden-log-entry:hover .garden-log-date a,
.garden-log-date a:focus-visible { opacity: 1; }
.garden-log-content h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 32px);
}
.garden-log-summary {
  max-width: 620px;
  color: var(--g-reading-soft);
  font-size: 15px;
  line-height: 1.8;
}
.garden-log-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.garden-log-groups h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  letter-spacing: .06em;
}
.garden-log-groups h3 span {
  color: var(--g-accent-text);
  font-family: var(--g-font-mono);
}
.garden-log-groups ul {
  display: grid;
  gap: 10px;
  list-style: none;
}
.garden-log-groups li {
  position: relative;
  padding-left: 14px;
  color: var(--g-reading-soft);
  font-size: 13px;
  line-height: 1.72;
}
.garden-log-groups li::before {
  content: "";
  position: absolute;
  top: .75em;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--g-accent);
  border-radius: 50%;
}
.garden-log-groups a { color: var(--g-reading-text); }
.garden-log-groups a:hover { color: var(--g-accent-text); }

/* ===== 404 Page ===== */
.error-page {
  min-height: calc(100vh - 178px);
  display: grid;
  place-items: center;
  padding-top: 72px;
  padding-bottom: 88px;
  text-align: center;
}
.error-page-inner {
  width: min(100%, 560px);
  padding: 48px clamp(24px, 6vw, 52px);
  color: var(--g-reading-text);
  background: var(--g-reading-bg);
  border: 1px solid var(--g-border);
  border-radius: 14px;
  box-shadow: var(--g-shadow-lg);
}
.error-code {
  color: var(--g-accent);
  font-family: var(--g-font-mono);
  font-size: clamp(72px, 14vw, 136px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.08em;
}
.error-kicker {
  margin-top: 26px;
  color: var(--g-text-mute);
  font-family: var(--g-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.error-page h1 {
  margin-top: 12px;
  font-size: clamp(28px, 5vw, 40px);
}
.error-page p {
  max-width: 460px;
  margin: 16px auto 30px;
  color: var(--g-text-soft);
}
.error-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 20px;
  color: #fff;
  background: var(--g-accent);
  border-radius: var(--g-radius);
  font-size: 14px;
  font-weight: 600;
}
.error-home:hover {
  color: #fff;
  background: var(--g-accent-hover);
}

/* ===== Footer ===== */
.g-footer {
  border-top: 1px solid color-mix(in srgb, var(--g-on-scene) 24%, transparent);
  padding: 32px 0 48px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--g-on-scene-soft);
  text-shadow: 0 1px 12px var(--g-scene-halo);
}
.g-footer-inner {
  max-width: 960px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.g-footer-author {
  color: var(--g-on-scene);
  font-family: var(--g-font-script);
  font-size: 17px;
  font-weight: 400;
}
.g-footer a { color: var(--g-on-scene-soft); }
.g-footer a:hover { color: var(--g-on-scene-accent); }
.g-footer .links { display: flex; gap: 18px; }

/* ===== Post Page ===== */
.article {
  padding: 48px 40px 64px;
  color: var(--g-reading-text);
  background: var(--g-reading-bg);
  border: 1px solid var(--g-border);
  border-radius: 14px;
  box-shadow: 0 18px 54px rgba(35,47,36,.1), var(--g-shadow);
}
.article-header { margin-bottom: 40px; }
.article-garden-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 14px;
  color: var(--g-reading-soft);
  font-family: var(--g-font-mono);
  font-size: 10px;
}
.note-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  color: var(--g-accent-text);
  background: var(--g-accent-soft);
  border: 1px solid var(--g-accent-border);
  border-radius: 99px;
  font-family: var(--g-font);
  font-size: 11px;
  font-weight: 650;
}
.note-status i {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.note-status-seedling i { transform: scale(.72); }
.note-status-evergreen i { box-shadow: 0 0 0 3px var(--g-accent-soft); }
.article-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.16;
  margin-bottom: 14px;
  color: var(--g-reading-heading);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.article-meta {
  font-size: 13px; color: var(--g-text-mute);
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
}
.article-meta time { font-family: var(--g-font-mono); }
.article-meta .sep { color: var(--g-border); }
.article-meta-more {
  color: var(--g-reading-soft);
  font-family: var(--g-font-mono);
  font-size: 11px;
}

.article-body {
  font-size: 17px;
  line-height: 1.9;
  color: var(--g-reading-text);
  text-wrap: pretty;
}
.article-body p a,
.article-body li a {
  text-decoration: underline;
  text-decoration-color: var(--g-border-hover);
  text-underline-offset: 0.2em;
}
.article-body p a:hover,
.article-body li a:hover {
  text-decoration-color: var(--g-accent);
}
.article-body h2 {
  font-size: 24px; font-weight: 600;
  margin: 2em 0 0.7em;
  padding-top: 0.5em;
  color: var(--g-reading-heading);
  border-top: 1px solid var(--g-border);
}
.article-body h3 {
  margin: 1.6em 0 0.5em;
  color: var(--g-reading-heading);
  font-size: 20px;
}
.article-body h4 { color: var(--g-reading-heading); }
.article-body p { margin-bottom: 1.2em; }
.article-body ul, .article-body ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.article-body li { margin-bottom: 0.4em; }
.article-body blockquote { color: var(--g-reading-soft); }
.article-body img { max-width: 100%; border-radius: var(--g-radius); }
.article-body table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; margin: 1.5em 0;
}
.article-body th, .article-body td {
  padding: 10px 14px; text-align: left;
  border: 1px solid var(--g-border);
}
.article-body th {
  background: var(--g-bg-soft);
  font-weight: 600;
  color: var(--g-reading-heading);
}
.article-body td { color: var(--g-reading-soft); }

/* Article spacing refinements */
.article-body > *:first-child { margin-top: 0; }
.article-body > *:last-child { margin-bottom: 0; }

/* Digital-garden connections */
.article-connections {
  display: grid;
  gap: 38px;
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--g-border);
}
.article-connections-heading { margin-bottom: 18px; }
.article-connections-heading p {
  margin-bottom: 5px;
  color: var(--g-accent-text);
  font-family: var(--g-font-mono);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.article-connections-heading h2 {
  color: var(--g-reading-heading);
  font-size: 22px;
}
.article-connections-heading.compact h2 { font-size: 17px; }
.related-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.related-notes-grid > a {
  display: flex;
  min-width: 0;
  min-height: 180px;
  flex-direction: column;
  padding: 18px;
  color: var(--g-reading-text);
  background: var(--g-bg-elevated);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  text-decoration: none;
  transition: border-color var(--g-motion-fast), background var(--g-motion-fast), transform var(--g-motion-press) var(--g-ease-out);
}
.related-notes-grid time {
  color: var(--g-reading-soft);
  font-family: var(--g-font-mono);
  font-size: 9px;
}
.related-notes-grid h3 {
  margin: 14px 0 7px;
  color: var(--g-reading-heading);
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.related-notes-grid p { color: var(--g-reading-soft); font-size: 12px; line-height: 1.6; }
.related-notes-grid span {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  color: var(--g-accent-text);
  font-size: 11px;
  font-weight: 650;
}
.related-notes-grid b { font-weight: 400; }
.related-notes-grid > a:hover {
  background: var(--g-accent-soft);
  border-color: var(--g-accent-border);
}
.related-notes-grid > a:active { transform: scale(.985); }
.backlink-notes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.backlink-notes a {
  display: inline-flex;
  padding: 6px 10px;
  color: var(--g-reading-text);
  background: var(--g-bg-soft);
  border: 1px solid var(--g-border);
  border-radius: 99px;
  font-size: 12px;
}
.backlink-notes a:hover { color: var(--g-accent-text); border-color: var(--g-accent-border); }

/* Article prev/next navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--g-border);
}
.post-nav a {
  display: block;
  padding: 16px 18px;
  background: var(--g-bg-elevated);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.post-nav a:hover {
  border-color: var(--g-accent);
  box-shadow: var(--g-shadow);
}
.post-nav .dir {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--g-text-mute);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.post-nav .t {
  font-size: 15px; font-weight: 500;
  color: var(--g-text);
  line-height: 1.4;
}
.post-nav .next { text-align: right; grid-column: 2; }
.post-nav .prev { text-align: left;  grid-column: 1; }
@media (max-width: 480px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: 1; }
}

/* ===== Archive / Content Index ===== */
.archive {
  margin-top: 48px;
  margin-bottom: 80px;
  padding: 48px clamp(28px, 5vw, 56px) 56px;
  color: var(--g-reading-text);
  background: var(--g-reading-bg);
  border: 1px solid var(--g-border);
  border-radius: 14px;
  box-shadow: var(--g-shadow-lg);
}
.archive h1,
.archive h2,
.archive h3,
.archive h4 {
  color: var(--g-reading-heading);
}
.archive-header {
  max-width: 700px;
  margin-bottom: 44px;
}
.archive h1 {
  margin-bottom: 10px;
  font-size: clamp(36px, 6vw, 52px);
}
.archive .sub {
  color: var(--g-text-mute);
  font-family: var(--g-font-mono);
  font-size: 12px;
}
.archive-back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--g-text-mute);
  font-size: 13px;
  font-weight: 600;
}
.archive-taxonomy {
  display: grid;
  gap: 22px;
  margin-bottom: 48px;
  padding: 28px 0;
  border-top: 1px solid var(--g-border);
  border-bottom: 1px solid var(--g-border);
}
.taxonomy-group {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.taxonomy-label {
  padding-top: 7px;
  color: var(--g-text-mute);
  font-family: var(--g-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.taxonomy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.taxonomy-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  color: var(--g-text-soft);
  background: var(--g-bg-elevated);
  border: 1px solid var(--g-border);
  border-radius: 99px;
  font-size: 13px;
  line-height: 1.4;
  transition: color .2s, border-color .2s, background .2s;
}
.taxonomy-links a:hover {
  color: var(--g-accent-text);
  background: var(--g-accent-soft);
  border-color: var(--g-accent);
}
.taxonomy-links small {
  color: var(--g-text-mute);
  font-family: var(--g-font-mono);
  font-size: 10px;
}
.archive-filter {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 38px;
}
.archive-filter-field {
  position: relative;
  flex: 1;
  max-width: 520px;
}
.archive-filter-field svg {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--g-text-mute);
  pointer-events: none;
  transform: translateY(-50%);
}
.archive-filter-field input {
  width: 100%;
  height: 44px;
  padding: 0 42px;
  color: var(--g-text);
  background: var(--g-bg-elevated);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.archive-filter-field input::placeholder {
  color: var(--g-text-mute);
}
.archive-filter-field input:focus {
  border-color: var(--g-accent);
  box-shadow: 0 0 0 3px var(--g-accent-soft);
}
.archive-filter-status {
  flex: none;
  color: var(--g-text-mute);
  font-size: 12px;
}
.archive-list {
  max-width: 820px;
}
.archive-year {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  margin-bottom: 48px;
}
.archive-year h2 {
  padding-top: 14px;
  color: var(--g-accent-text);
  font-family: var(--g-font-mono);
  font-size: 16px;
}
.archive-post {
  grid-column: 2;
  display: grid;
  grid-template-columns: 64px minmax(160px, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--g-border);
}
.archive-post:first-of-type {
  border-top: 1px solid var(--g-border);
}
.archive-post time {
  color: var(--g-text-mute);
  font-family: var(--g-font-mono);
  font-size: 11px;
  white-space: nowrap;
}
.archive-post-title {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--g-text);
  font-size: 15px;
  font-weight: 600;
  transition: color .2s;
}
.archive-post:hover .archive-post-title {
  color: var(--g-accent-text);
}
.archive-post-terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.archive-post-terms a {
  color: var(--g-text-mute);
  font-size: 11px;
  white-space: nowrap;
}
.archive-post-terms a:hover {
  color: var(--g-accent-text);
}
.archive-empty,
.archive-filter-empty {
  padding: 36px;
  color: var(--g-text-soft);
  background: var(--g-bg-elevated);
  border: 1px dashed var(--g-border-hover);
  border-radius: var(--g-radius);
  text-align: center;
}
.archive-empty p,
.archive-filter-empty p {
  margin-bottom: 4px;
  color: var(--g-text);
  font-weight: 600;
}
.archive-empty a,
.archive-filter-empty span {
  color: var(--g-text-mute);
  font-size: 13px;
}

/* Floating garden controls */
.garden-control-button {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--g-text-soft);
  background: var(--g-bg-elevated);
  border: 1px solid var(--g-border);
  border-radius: 50%;
  box-shadow: var(--g-shadow-lg);
  cursor: pointer;
  transition:
    color var(--g-motion-fast),
    border-color var(--g-motion-fast),
    background var(--g-motion-fast),
    box-shadow var(--g-motion-fast),
    opacity var(--g-motion-ui),
    transform var(--g-motion-ui) var(--g-ease-out);
}
.garden-control-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.garden-control-button:hover {
  color: var(--g-accent-text);
  background: color-mix(in srgb, var(--g-bg-elevated) 92%, var(--g-accent-soft));
  border-color: var(--g-accent-border);
  box-shadow: 0 8px 24px var(--g-glow), var(--g-shadow);
}
.garden-control-button:not(.article-back-top):active {
  transform: scale(.94);
  transition-duration: var(--g-motion-press);
}
.article-back-top.visible:active {
  transform: translateY(0) scale(.94);
  transition-duration: var(--g-motion-press);
}
.garden-control-button:focus-visible {
  outline: 2px solid var(--g-accent);
  outline-offset: 3px;
}
.garden-controls {
  position: fixed;
  right: 28px;
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 70;
}
body.is-home .garden-controls {
  opacity: .72;
  transition: opacity var(--g-motion-fast);
}
body.is-home .garden-controls:hover,
body.is-home .garden-controls:focus-within { opacity: 1; }
.garden-control-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
}
.article-back-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}
.article-back-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.garden-home-button { text-decoration: none; }
.garden-settings-toggle[aria-expanded="true"] {
  color: var(--g-accent-text);
  background: var(--g-accent-soft);
  border-color: var(--g-accent-border);
}
.garden-settings-toggle svg { transition: transform var(--g-motion-ui) var(--g-ease-out); }
.garden-settings-toggle[aria-expanded="true"] svg { transform: rotate(32deg); }
.garden-settings {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: min(304px, calc(100vw - 32px));
  padding: 20px;
  color: var(--g-text);
  background: color-mix(in srgb, var(--g-bg-elevated) 91%, transparent);
  border: 1px solid var(--g-border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(18,24,20,.15), var(--g-shadow-lg);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  transform-origin: right bottom;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(.96);
  transition:
    opacity 160ms var(--g-ease-out),
    transform var(--g-motion-ui) var(--g-ease-out),
    visibility 0s linear var(--g-motion-ui);
}
.garden-settings.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}
.garden-settings-kicker {
  margin-bottom: 5px;
  color: var(--g-accent-text);
  font-family: var(--g-font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
}
.garden-settings h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.015em;
}
.garden-settings-copy {
  margin: 4px 0 16px;
  color: var(--g-text-mute);
  font-size: 12px;
}
.garden-theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.garden-theme-options button {
  display: grid;
  min-width: 0;
  padding: 10px 5px 9px;
  gap: 6px;
  place-items: center;
  color: var(--g-text-mute);
  background: var(--g-bg-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: color var(--g-motion-fast), border-color var(--g-motion-fast), background var(--g-motion-fast), transform var(--g-motion-fast) var(--g-ease-out);
}
.garden-theme-options button:hover {
  color: var(--g-text);
  border-color: var(--g-border-hover);
  transform: translateY(-1px);
}
.garden-theme-options button:active {
  transform: scale(.96);
  transition-duration: var(--g-motion-press);
}
.garden-theme-options button[aria-pressed="true"] {
  color: var(--g-accent-text);
  background: var(--g-accent-soft);
  border-color: var(--g-accent-border);
}
.garden-theme-options button:focus-visible {
  outline: 2px solid var(--g-accent);
  outline-offset: 2px;
}
.garden-theme-options svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.garden-theme-options span {
  overflow: hidden;
  max-width: 100%;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.featured-card:active {
  transform: scale(.99);
  transition-duration: var(--g-motion-press);
}
.garden-theme-status {
  min-height: 18px;
  margin-top: 12px;
  color: var(--g-text-mute);
  font-family: var(--g-font-mono);
  font-size: 10px;
  line-height: 1.5;
}
.garden-performance-settings { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--g-border); }
.garden-performance-options button { min-height: 36px; padding: 8px; }

/* Pause invisible scenes without changing their layout or interaction targets. */
html.garden-page-hidden *, html.garden-page-hidden *::before, html.garden-page-hidden *::after,
[data-motion-section][data-motion-visible="false"],
[data-motion-section][data-motion-visible="false"] *,
[data-motion-section][data-motion-visible="false"]::before,
[data-motion-section][data-motion-visible="false"]::after,
[data-motion-section][data-motion-visible="false"] *::before,
[data-motion-section][data-motion-visible="false"] *::after { animation-play-state: paused !important; }

html[data-render-quality="economy"] body.is-inner .site-backdrop::before,
html[data-render-quality="economy"] .inner-atmosphere::before,
html[data-render-quality="economy"] .inner-atmosphere > i,
html.garden-lite-motion body.is-inner .site-backdrop::before,
html.garden-lite-motion .inner-atmosphere::before,
html.garden-lite-motion .inner-atmosphere > i { animation: none !important; will-change: auto; }
html[data-render-quality="economy"] body.is-inner :is(.article, .article-toc, .g-nav, .garden-settings, .garden-control-button) {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--os-panel-solid);
}

/* ===== TOC Sidebar ===== */
.article-wrap {
  --toc-w: 200px;
  display: grid;
  grid-template-columns: minmax(0, 760px) 12px var(--toc-w);
  gap: 0;
  justify-content: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* no headings → hide TOC column + handle on ALL screen sizes */
.article-wrap.no-toc {
  grid-template-columns: minmax(0, 760px);
}
.article-wrap.no-toc .toc-handle,
.article-wrap.no-toc .article-toc {
  display: none;
}

/* TOC resize handle (grid col 2: 8px) */
.toc-handle {
  cursor: col-resize;
  position: relative;
  z-index: 10;
  touch-action: none;
}
.toc-handle::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--g-border);
  border-radius: 1px;
  opacity: .55;
  transition: background var(--g-motion-fast), opacity var(--g-motion-fast);
}
.toc-handle:hover::after,
.toc-handle:focus-visible::after,
body.toc-resizing .toc-handle::after {
  background: var(--g-accent);
  opacity: 1;
}

/* Desktop TOC — sticky sidebar */
.article-toc {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  padding: 16px 14px;
  color: var(--g-reading-text);
  background: var(--g-reading-bg);
  border: 1px solid var(--g-border);
  border-radius: 10px;
  box-shadow: var(--g-shadow);
}

/* TOC entries */
.article-toc .toc-title {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--g-reading-heading);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.toc-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toc-close {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--g-text-soft);
  background: transparent;
  border: 1px solid var(--g-border);
  border-radius: 50%;
  cursor: pointer;
}
.article-toc a {
  display: block;
  padding: 3px 0;
  color: var(--g-reading-soft);
  text-decoration: none;
  transition: color 0.2s;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -12px;
}
.article-toc a:hover,
.article-toc a.active {
  color: var(--g-accent-text);
  border-left-color: var(--g-accent);
}
.article-toc a.toc-h3 {
  display: none;
  padding-left: 20px;
  font-size: 12px;
}
.article-toc a.toc-h3.toc-context,
.article-toc a.toc-h3.active,
.article-toc a.toc-h3.toc-orphan { display: block; }

/* prevent text selection while resizing */
body.toc-resizing {
  user-select: none;
  cursor: col-resize;
}
body.toc-resizing * { cursor: col-resize !important; }
body.toc-open { overflow: hidden; }

/* ===== Mobile TOC (≤1023px) ===== */
.toc-toggle { display: none; }
.toc-overlay { display: none; }

@media (max-width: 1023px) {
  /* collapse grid, full width */
  .article-wrap,
  .article-wrap.no-toc {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  /* hide desktop TOC + handle */
  .article-wrap .toc-handle {
    display: none !important;
  }
  .article-wrap.has-toc .article-toc {
    display: block !important;
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: min(72dvh, 680px);
    background: var(--g-reading-bg);
    z-index: 60;
    padding:
      24px
      max(20px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
    border-top: 1px solid var(--g-border);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,.12);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(100% + 12px));
    transition:
      transform 240ms var(--g-ease-drawer),
      opacity 180ms var(--g-ease-out),
      visibility 0s linear 240ms;
    will-change: transform, opacity;
  }
  .article-wrap.has-toc .article-toc.mobile-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-duration: 240ms, 160ms, 0s;
    transition-delay: 0s;
  }
  .article-wrap.has-toc .article-toc a.toc-h3 { display: block; }
  .article-toc.mobile-open .toc-heading {
    position: sticky;
    top: -24px;
    margin: -24px 0 12px;
    padding: 18px 0 12px;
    background: var(--g-reading-bg);
    z-index: 1;
  }
  .article-toc.mobile-open .toc-title { margin-bottom: 0; }
  .article-toc.mobile-open .toc-close { display: inline-flex; }
  /* Persistent mobile TOC trigger: stays available throughout reading. */
  body.has-toc-page .toc-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: max(20px, env(safe-area-inset-left));
    bottom: max(28px, env(safe-area-inset-bottom));
    z-index: 52;
    width: auto;
    height: 48px;
    margin: 0;
    padding: 0 16px;
    gap: 7px;
    background: var(--g-reading-bg);
    border: 1px solid var(--g-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--g-reading-heading);
    cursor: pointer;
    box-shadow: var(--g-shadow-lg);
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform .2s var(--g-ease-out);
  }
  body.has-toc-page .garden-control-actions .toc-toggle {
    position: static;
    width: 42px;
    height: 42px;
    padding: 0;
    gap: 0;
    color: var(--g-text-soft);
    background: var(--g-bg-elevated);
    border-color: var(--g-border);
    box-shadow: var(--g-shadow-lg);
  }
  .garden-control-actions .toc-toggle > span { display: none; }
  /* overlay backdrop */
  .toc-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 55;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(2px);
    transition:
      opacity 180ms var(--g-ease-out),
      visibility 0s linear 180ms;
  }
  .toc-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  /* prevent content overflow */
  .article-body {
    overflow-x: clip;
    word-break: break-word;
  }
  .article-body pre {
    max-width: 100%;
    white-space: pre;
  }
}
:root[data-theme="dark"] .toc-overlay.open { background: rgba(0,0,0,0.5); }
@media (max-width: 1023px) and (prefers-color-scheme: dark) {
  :root:not([data-theme]) .toc-overlay.open { background: rgba(0,0,0,0.5); }
}
@media (max-width: 1023px) and (hover: hover) and (pointer: fine) {
  .toc-toggle:hover {
    color: var(--g-accent-text);
    background: var(--g-accent-soft);
    border-color: var(--g-accent-border);
    transform: translateY(-1px);
  }
}

/* ===== Heading Anchor Links ===== */
.article-body :is(h1, h2, h3, h4, h5, h6) {
  position: relative;
}
.article-body :is(h1, h2, h3, h4, h5, h6) .h-anchor {
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  color: var(--g-text-mute);
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
  line-height: 1;
}
.article-body :is(h1, h2, h3, h4, h5, h6):hover .h-anchor,
.article-body :is(h1, h2, h3, h4, h5, h6) .h-anchor:focus-visible {
  opacity: 1;
}
.article-body :is(h1, h2, h3, h4, h5, h6) .h-anchor:hover {
  color: var(--g-accent);
}
.article-body :is(h1, h2, h3, h4, h5, h6) .h-anchor:focus-visible {
  color: var(--g-accent-text);
  outline: 2px solid var(--g-accent);
  outline-offset: 4px;
  border-radius: 2px;
}
@media (max-width: 768px) {
  .article-body h2 .h-anchor,
  .article-body h3 .h-anchor {
    left: auto; right: 8px;
  }
}

/* ===== Code Block: macOS chrome + Maple Mono ===== */
.table-scroll {
  width: 100%;
  margin: 1.5em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--g-radius);
}
.table-scroll table {
  min-width: 560px;
  margin: 0;
}

.article-body .mac-code-block {
  position: relative;
  margin: 1.7em 0;
  color: var(--g-code-text);
  background: var(--g-code-bg);
  border: 1px solid var(--g-code-border);
  border-radius: 10px;
  box-shadow: var(--g-shadow-lg);
}
.article-body .mac-code-block::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  z-index: 2;
  height: 42px;
  background: var(--g-code-chrome);
  border-bottom: 1px solid var(--g-code-border);
  pointer-events: none;
}
.article-body pre.mac-code-block {
  max-width: 100%;
  padding: 59px 20px 20px;
  overflow-x: auto;
  font-family: var(--g-font-mono);
  font-size: 14px;
  font-variant-ligatures: contextual;
  font-feature-settings: "calt" 1, "liga" 1;
  line-height: 1.68;
  white-space: pre;
}
.article-body figure.highlight.mac-code-block {
  overflow: hidden;
  padding-top: 42px;
}
.article-body figure.highlight table {
  display: block;
  width: 100%;
  margin: 0;
  overflow-x: auto;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--g-font-mono);
  font-size: 14px;
  font-variant-ligatures: contextual;
  font-feature-settings: "calt" 1, "liga" 1;
}
.article-body figure.highlight tbody {
  display: table;
  min-width: 100%;
}
.article-body figure.highlight tr {
  display: table-row;
}
.article-body figure.highlight td {
  padding: 0;
  color: var(--g-code-text);
  background: transparent;
  border: 0;
  vertical-align: top;
}
.article-body figure.highlight td.gutter {
  width: 1%;
  background: color-mix(in srgb, var(--g-code-chrome) 58%, transparent);
  border-right: 1px solid var(--g-code-border);
  user-select: none;
}
.article-body figure.highlight pre {
  min-width: max-content;
  margin: 0;
  padding: 18px 20px;
  overflow: visible;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.68;
}
.article-body figure.highlight .gutter pre {
  padding-right: 12px;
  padding-left: 12px;
  color: var(--g-code-gutter);
  text-align: right;
}
.code-window-controls {
  position: absolute;
  top: 15px;
  left: 16px;
  z-index: 4;
  display: flex;
  gap: 7px;
  pointer-events: none;
}
.code-copy-status {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 56px;
  max-width: calc(100% - 160px);
  color: var(--g-code-text);
  background: var(--g-code-chrome);
  font: 11px/1.6 var(--g-font-mono);
}
.code-window-controls i {
  width: 11px;
  height: 11px;
  display: block;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,.16);
}
.code-window-controls i:nth-child(1) { background: #ff5f57; }
.code-window-controls i:nth-child(2) { background: #febc2e; }
.code-window-controls i:nth-child(3) { background: #28c840; }
.code-lang {
  position: absolute;
  top: 10px;
  right: 50px;
  z-index: 4;
  font-family: var(--g-font-mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.06em;
  color: var(--g-code-gutter);
  text-transform: uppercase;
  pointer-events: none;
}
.code-copy {
  position: absolute;
  top: 7px;
  right: 9px;
  z-index: 5;
  width: 28px;
  height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  color: var(--g-code-gutter);
  cursor: pointer;
  opacity: .72;
  transition: opacity .2s, background .2s, border-color .2s, color .2s;
}
.mac-code-block:hover .code-copy { opacity: 1; }
.code-copy:hover {
  color: var(--g-code-text);
  background: var(--g-accent-soft);
  border-color: var(--g-accent-border);
}
.code-copy:focus-visible {
  opacity: 1;
  color: var(--g-code-text);
  outline: 2px solid var(--g-accent);
  outline-offset: 2px;
}
.code-copy.copied {
  color: var(--g-accent);
  background: var(--g-accent-soft);
  border-color: var(--g-accent-border);
}

.highlight .comment,
.highlight .quote { color: var(--g-code-comment); font-style: italic; }
.highlight .string,
.highlight .regexp,
.highlight .addition { color: var(--g-code-string); }
.highlight .keyword,
.highlight .selector-tag,
.highlight .section,
.highlight .name,
.highlight .built_in { color: var(--g-code-keyword); }
.highlight .number,
.highlight .literal,
.highlight .variable,
.highlight .template-variable { color: var(--g-code-value); }
.highlight .attr,
.highlight .attribute,
.highlight .title,
.highlight .type { color: var(--g-accent-text); }
.highlight .deletion { color: #c85f5f; }

@media (hover: none) {
  .code-copy { opacity: 1; }
}

@media (hover: hover) and (pointer: fine) {
  .post-lead:hover,
  .post-brief:hover { background: var(--g-ash-soft); }
  .post-lead:hover::after { opacity: 1; transform: rotate(-7deg) scale(1.04); }
  .post-lead:hover h3,
  .post-brief:hover .post-brief-copy strong { color: var(--g-accent); }
  .post-lead:hover .post-lead-foot b span,
  .post-brief:hover .post-brief-arrow,
  .present-log:hover .present-log-arrow { transform: translate(3px, -1px); }
  .present-log:hover { background: linear-gradient(90deg, var(--g-accent-soft), transparent 88%); }
  .terrain-node:hover {
    border-color: var(--g-border-hover);
    box-shadow: var(--g-shadow-lg);
    transform: translateY(-3px);
  }
  .terrain-node:hover b { transform: translate(3px, -1px); }
  .garden-wander:hover {
    box-shadow: 0 13px 28px rgba(24,39,27,.2), 0 0 28px var(--g-glow);
    transform: translateY(-2px);
  }
  .featured-card:hover { transform: translateY(-2px); }
  .about-sec:hover .about-photo img { transform: scale(1.025); }
  .terrain-node:hover:active { transform: scale(.985); }
  .garden-wander:hover:active { transform: scale(.97); }
  .featured-card:hover:active { transform: scale(.99); }
}

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .garden-route { display: none; }
}
@media (max-width: 768px) {
  .garden-entry { --g-motion-intro: 1900ms; }
  .garden-entry-veil { background-position: 52% center; }
  .garden-entry-reveal {
    background-position: 47% center;
    -webkit-mask-position: 50% 45%;
    mask-position: 50% 45%;
  }
  .garden-entry-impact { top: 45%; }
  .garden-entry-impact i { inset: -34px; }
  .garden-entry-impact i:nth-child(2) { inset: -46px; }
  .garden-entry-impact i:nth-child(3) { inset: -60px; }
  .garden-entry-mist i:nth-child(3) { display: none; }
  .garden-entry-glimmers i:nth-child(even) { display: none; }
  .garden-entry::before { background-position: 47% center; }
  .garden-entry-coordinates {
    font-size: 7px;
    letter-spacing: .14em;
  }
  .garden-entry-rain { opacity: .36; }
  .garden-entry-rain i:nth-child(even) { display: none; }
  .garden-entry-atmosphere {
    right: auto;
    bottom: max(18px, env(safe-area-inset-bottom));
    left: 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    font-size: 7px;
    letter-spacing: .14em;
  }
  @supports ((-webkit-mask-image: radial-gradient(circle, #000, transparent)) or (mask-image: radial-gradient(circle, #000, transparent))) {
    .garden-entry-clear {
      -webkit-mask-image: radial-gradient(circle 125px at var(--entry-clear-x) var(--entry-clear-y), #000 0 42%, rgba(0, 0, 0, .86) 62%, transparent 100%);
      mask-image: radial-gradient(circle 125px at var(--entry-clear-x) var(--entry-clear-y), #000 0 42%, rgba(0, 0, 0, .86) 62%, transparent 100%);
    }
  }
  .garden-entry-mark strong { font-size: clamp(46px, 15vw, 64px); }
  .article {
    padding: 38px 32px 50px;
    border-radius: 12px;
  }
  .article-body {
    font-size: 16px;
    line-height: 1.86;
  }
  .site-backdrop {
    inset: -16px;
    transform: scale(1.025);
  }
  .site-backdrop::before { background-position: center, 60% 54%; }
  .site-backdrop::after { background-position: center, center, 60% 54%; }
  .hero-fireflies { display: none; }
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 56px 0 48px;
  }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-thesis { max-width: 560px; }
  .hero-identity { max-width: 480px; }
  .hero-trace { margin-top: 2px; }
  .garden-terrain {
    display: grid;
    min-height: 0;
    gap: 12px;
    padding: 20px;
  }
  .garden-terrain-lines,
  .terrain-compass,
  .terrain-origin { display: none; }
  .terrain-node,
  .garden-wander {
    position: relative;
    inset: auto;
    width: 100%;
  }
  .terrain-node {
    min-height: 0;
    padding: 22px 24px;
    border-radius: 12px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .garden-wander {
    order: 4;
    max-width: 270px;
    margin-top: 2px;
  }
  .g-nav-links { gap: 16px; }
  .g-nav-links a { font-size: 13px; }
  .archive {
    margin-top: 32px;
    margin-bottom: 64px;
    padding: 40px 28px 48px;
  }
  .archive-header { margin-bottom: 36px; }
  .taxonomy-group { grid-template-columns: 1fr; gap: 10px; }
  .taxonomy-label { padding-top: 0; }
  .archive-filter { align-items: flex-start; flex-direction: column; gap: 8px; }
  .archive-filter-field { width: 100%; max-width: none; }
  .archive-year { grid-template-columns: 1fr; gap: 8px; }
  .archive-year h2 { padding-top: 0; }
  .archive-post {
    grid-column: 1;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px 14px;
  }
  .archive-post-terms {
    grid-column: 2;
    justify-content: flex-start;
  }
  .about-sec {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  .about-photo {
    min-height: 220px;
    aspect-ratio: 16 / 9;
  }
  .about-summary { padding: 26px 24px 28px; }
  .life-note { grid-template-columns: 1fr; }
  .life-note-media { min-height: 230px; aspect-ratio: 16 / 10; }
  .about-page {
    margin-top: 32px;
    margin-bottom: 64px;
    padding: 44px 28px 52px;
  }
  .about-page-hero { margin-bottom: 64px; }
  .about-chapter { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .about-chapter-heading { max-width: 360px; }
  .about-contact { grid-template-columns: 1fr; padding: 28px; }
  .search-page,
  .garden-log-page {
    margin-top: 32px;
    margin-bottom: 64px;
    padding: 44px 28px 52px;
  }
  .garden-log-entry {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 32px;
  }
  .posts-editorial { grid-template-columns: minmax(0, 1fr); }
  .post-lead {
    min-height: 330px;
    padding-right: 4px;
    border-right: 0;
    border-bottom: 1px solid var(--g-border);
  }
  .post-brief { padding-left: 4px; }
  .present-board { grid-template-columns: minmax(0, 1fr); }
  .present-status-panel {
    border-right: 0;
    border-bottom: 1px solid var(--g-border);
  }
  .present-log { grid-template-columns: 82px 96px minmax(0, 1fr) auto; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .badge { justify-self: start; }
}
@media (max-width: 480px) {
  .garden-entry-coordinates span:first-child { display: none; }
  .garden-entry-coordinates { justify-content: flex-end; }
  .garden-entry-mark em {
    font-size: 10px;
    letter-spacing: .22em;
    text-indent: .22em;
  }
  .garden-entry-clock > span { display: none; }
  .site-backdrop::before { background-position: center, 60% 54%; }
  .site-backdrop::after { background-position: center, center, 60% 54%; }
  .g-container, .g-wide { padding: 0 16px; }
  .posts-sec,
  .life-sec { padding: 22px 20px; }
  .g-sec-heading { align-items: flex-start; flex-wrap: wrap; }
  .section-freshness { width: 100%; margin-top: -18px; }
  .post-lead {
    min-height: 315px;
    padding: 28px 0 26px;
  }
  .post-lead-kicker { margin-bottom: 32px; }
  .post-lead h3 { font-size: clamp(29px, 9vw, 36px); }
  .post-lead-foot { align-items: flex-start; flex-wrap: wrap; gap: 8px 11px; padding-top: 26px; }
  .post-lead-foot b { width: 100%; margin: 5px 0 0; }
  .post-brief {
    grid-template-columns: 25px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 16px 0;
  }
  .post-brief-copy strong { font-size: 17px; }
  .present-status-panel,
  .present-workbench { padding: 24px 20px; }
  .present-block-heading { grid-template-columns: 1fr; gap: 8px; }
  .present-block-heading > span { margin-top: 0; }
  .present-stack-group { grid-template-columns: 1fr; gap: 10px; }
  .present-stack-group > div { grid-template-columns: 1fr; gap: 10px; }
  .present-stack-tag small { white-space: normal; }
  .present-log {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    padding: 18px 20px;
  }
  .present-log-label { grid-column: 1; }
  .present-log time { grid-column: 2; grid-row: 1; }
  .present-log-copy { grid-column: 1; }
  .present-log-arrow { grid-column: 2; grid-row: 2; }
  .present-log-copy small {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .related-notes-grid { grid-template-columns: 1fr; }
  .related-notes-grid > a { min-height: 0; }
  .article-connections { margin-top: 48px; }
  .article-wrap { padding: 36px 16px 56px; }
  .article {
    padding: 30px 20px 42px;
    border-radius: 10px;
  }
  .g-nav-inner { padding: 14px 16px; }
  .g-nav-logo { font-size: 21px; }
  .g-nav-links { gap: 10px; }
  .g-nav-links a { font-size: 12px; }
  .g-nav-links a.g-nav-search { width: 26px; height: 26px; }
  .garden-controls {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  body.has-toc-page .toc-toggle {
    left: max(16px, env(safe-area-inset-left));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .garden-settings {
    right: 0;
    bottom: 54px;
    padding: 18px;
  }
  .article-body .mac-code-block { max-width: 100%; }
  .article-body pre.mac-code-block {
    padding: 55px 14px 16px;
    font-size: 12px;
    line-height: 1.55;
    tab-size: 2;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }
  .article-body figure.highlight.mac-code-block { padding-top: 38px; }
  .article-body figure.highlight.mac-code-block::before { height: 38px; }
  .article-body figure.highlight table {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.55;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }
  .article-body figure.highlight td.gutter { display: none; }
  .article-body figure.highlight pre {
    padding: 14px 12px;
    line-height: 1.55;
    tab-size: 2;
  }
  .article-body pre.mac-code-block::-webkit-scrollbar,
  .article-body figure.highlight table::-webkit-scrollbar { height: 6px; }
  .article-body pre.mac-code-block::-webkit-scrollbar-thumb,
  .article-body figure.highlight table::-webkit-scrollbar-thumb {
    background: var(--g-border-hover);
    border-radius: 999px;
  }
  .code-window-controls { top: 13px; left: 14px; gap: 6px; }
  .code-window-controls i { width: 10px; height: 10px; }
  .code-lang {
    top: 8px;
    right: 46px;
    max-width: 42%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .code-copy { top: 5px; right: 7px; }
  .hero { gap: 26px; padding: 40px 0 38px; }
  .hero h1 { font-size: clamp(38px, 12vw, 48px); }
  .hero-thesis { font-size: 21px; }
  .hero .tagline { font-size: 15px; }
  .hero-actions { margin-top: 24px; }
  .hero-action { justify-content: center; }
  .hero-identity { padding: 25px 22px 21px; }
  .hero-hand { font-size: 38px; }
  .hero-companion {
    top: 19px;
    right: 19px;
    width: 70px;
    height: 70px;
  }
  .hero-hand,
  .hero-motto { padding-right: 74px; }
  .hero-stats { gap: 8px; }
  .hero-stats dd { font-size: 15px; }
  .garden-map-note { display: none; }
  .garden-terrain { padding: 14px; }
  .terrain-node { padding: 20px; }
  .about-page {
    margin-top: 20px;
    margin-bottom: 48px;
    padding: 34px 20px 42px;
    border-radius: 10px;
  }
  .about-page-hero { margin-bottom: 48px; }
  .about-page-lede { font-size: 17px; }
  .garden-paths { padding-left: 24px; }
  .garden-path::before { left: -29px; }
  .about-now-item { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; }
  .about-contact { padding: 24px 20px; }
  .about-photo { min-height: 190px; }
  .about-photo figcaption { left: 18px; right: 18px; bottom: 14px; }
  .about-summary { padding: 24px 20px 26px; }
  .search-page,
  .garden-log-page {
    margin-top: 20px;
    margin-bottom: 48px;
    padding: 34px 20px 42px;
    border-radius: 10px;
  }
  .search-hero,
  .garden-log-hero { margin-bottom: 34px; }
  .search-hero > p:last-child,
  .garden-log-hero > p:last-child { font-size: 15px; }
  .garden-search input {
    height: 54px;
    padding-right: 48px;
  }
  .garden-search kbd { display: none; }
  .search-results a { padding: 19px 8px; }
  .garden-log-entry {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 36px 0 42px;
  }
  .garden-log-date {
    position: static;
    font-size: 10px;
  }
  .garden-log-date a { opacity: 1; }
  .garden-log-groups {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .archive-taxonomy { padding: 22px 0; }
  .archive {
    margin-top: 20px;
    margin-bottom: 48px;
    padding: 32px 20px 40px;
    border-radius: 10px;
  }
  .taxonomy-links { gap: 6px; }
  .taxonomy-links a { padding: 5px 9px; font-size: 12px; }
  .archive-post {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 15px 0;
  }
  .archive-post-terms { grid-column: 1; margin-top: 4px; }
  .archive-filter-empty,
  .archive-empty { padding: 28px 20px; }
  .g-sec-heading { gap: 12px; }
  .g-sec-heading > a { font-size: 11px; }
  .g-footer-inner { flex-direction: column; text-align: center; }
}

/* ===== Progressive Reveal ===== */
.reveal-ready {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--g-motion-enter) var(--g-ease-out),
    transform var(--g-motion-enter) var(--g-ease-out);
}
.reveal-ready.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: none), (pointer: coarse) {
  body.is-home .garden-controls { opacity: 1; }
}
.reveal-ready .g-sec-label::after {
  transform: scaleX(0);
  transform-origin: left;
}
.reveal-ready.reveal-visible .g-sec-label::after {
  transform: scaleX(1);
  transition: transform var(--g-motion-scene) .12s var(--g-ease-out);
}

/* ===== Animations ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero-fireflies i {
    animation-name: g-firefly;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
  }
  .hero-eyebrow span::after {
    animation: g-status-wave 4.2s var(--g-ease-out) infinite;
  }
  .now-signal {
    animation: g-now-core 2.8s var(--g-ease-soft) infinite;
  }
  .now-signal::after {
    animation: g-now-wave 2.8s var(--g-ease-out) infinite;
  }
  .present-status-item:nth-child(2) .now-signal,
  .present-status-item:nth-child(2) .now-signal::after { animation-delay: -.93s; }
  .present-status-item:nth-child(3) .now-signal,
  .present-status-item:nth-child(3) .now-signal::after { animation-delay: -1.86s; }
  .hero-copy > *,
  .hero-identity {
    animation: g-fade-up var(--g-motion-enter) var(--g-ease-out) both;
  }
  .hero-copy > :nth-child(2) { animation-delay: .05s; }
  .hero-copy > :nth-child(3) { animation-delay: .1s; }
  .hero-copy > :nth-child(4) { animation-delay: .15s; }
  .hero-copy > :nth-child(5) { animation-delay: .2s; }
  .hero-identity { animation-delay: .18s; }
  .hero-trace::before {
    animation: g-trace-grow .7s .32s var(--g-ease-out) both;
  }
  .hero-trace::after {
    animation: g-trace-dot .35s .72s ease both;
  }
  .garden-entry.is-active .garden-entry-scroll i::after {
    animation: g-entry-scroll-line 2.2s 1.9s var(--g-ease-soft) infinite;
  }
}

@keyframes g-entry-veil {
  0%, 72% { opacity: 1; transform: scale(1.02); }
  92%, 100% { opacity: 0; transform: scale(1.065); }
}

@keyframes g-entry-reveal {
  0%, 31% {
    -webkit-mask-size: 0% 0%;
    mask-size: 0% 0%;
    transform: scale(1.018);
  }
  38% {
    -webkit-mask-size: 8% 8%;
    mask-size: 8% 8%;
  }
  82%, 100% {
    -webkit-mask-size: 260% 260%;
    mask-size: 260% 260%;
    transform: scale(1);
  }
}

@keyframes g-entry-drop {
  0%, 8% { opacity: 0; transform: translate3d(0, -54vh, 0) scale(.68, 1.5); }
  13% { opacity: .92; }
  34% { opacity: 1; transform: translate3d(0, -4px, 0) scale(.76, 1.28); }
  38% { opacity: 1; transform: translate3d(0, 0, 0) scale(1.6, .42); }
  41%, 100% { opacity: 0; transform: translate3d(0, 1px, 0) scale(1.8, .28); }
}

@keyframes g-entry-impact-flash {
  0%, 35% { opacity: 0; transform: scale(.12); }
  41% { opacity: .92; transform: scale(.34); }
  63%, 100% { opacity: 0; transform: scale(1.45); }
}

@keyframes g-entry-ripple {
  0%, 36% { opacity: 0; transform: scale(.08); }
  43% { opacity: .74; }
  78%, 100% { opacity: 0; transform: scale(6.6); }
}

@keyframes g-entry-mist {
  0% { opacity: .08; transform: translate3d(0, 0, 0) scale(.96); }
  55% { opacity: .18; }
  100% { opacity: .1; transform: translate3d(var(--mist-x), var(--mist-y), 0) scale(1.08); }
}

@keyframes g-entry-mark {
  0%, 49% { opacity: 0; filter: blur(12px); transform: translateY(14px) scale(.94); }
  80%, 100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes g-entry-line {
  0%, 61% { opacity: 0; transform: scaleX(0); }
  88%, 100% { opacity: 1; transform: scaleX(1); }
}

@keyframes g-entry-scroll-reveal {
  0%, 79% { opacity: 0; transform: translate(-50%, 8px); }
  98%, 100% { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes g-entry-meta {
  0%, 61% { opacity: 0; transform: translateY(-5px); }
  88%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes g-entry-atmosphere {
  0%, 76% { opacity: 0; transform: translateY(5px); }
  96%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes g-entry-glimmer {
  0%, 100% { opacity: 0; transform: translate3d(0, 8px, 0) scale(.5); }
  18% { opacity: .5; }
  44% { opacity: .12; }
  68% { opacity: .72; transform: translate3d(var(--glimmer-x), var(--glimmer-y), 0) scale(1.12); }
  84% { opacity: .08; }
}

@keyframes g-entry-signal {
  0%, 48% { opacity: 0; transform: scale(.72); }
  62% { opacity: .6; }
  86%, 100% { opacity: 0; transform: scale(1.7); }
}

@keyframes g-entry-rain {
  0% { opacity: 0; transform: translate3d(-18px, -20vh, 0) rotate(12deg); }
  14% { opacity: .62; }
  72% { opacity: .38; }
  100% { opacity: 0; transform: translate3d(18px, 125vh, 0) rotate(12deg); }
}

@keyframes g-entry-scroll-line {
  0% { opacity: 0; transform: translateY(-100%); }
  24% { opacity: 1; }
  72%, 100% { opacity: 0; transform: translateY(100%); }
}

@keyframes g-firefly {
  0%, 100% {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(.6);
  }
  20% { opacity: .28; }
  43% { opacity: .9; }
  72% {
    opacity: .2;
    transform: translate3d(var(--fly-x), var(--fly-y), 0) scale(1.25);
  }
  86% { opacity: .62; }
}

@keyframes g-status-wave {
  0%, 58% { opacity: 0; transform: scale(.72); }
  68% { opacity: .72; }
  84%, 100% { opacity: 0; transform: scale(1.72); }
}

@keyframes g-now-core {
  0%, 100% {
    opacity: .72;
    transform: scale(.82);
  }
  22% {
    opacity: 1;
    transform: scale(1.16);
  }
  42% { opacity: .9; transform: scale(.96); }
}

@keyframes g-now-wave {
  0% { opacity: .78; transform: scale(.8); }
  38%, 100% { opacity: 0; transform: scale(3.15); }
}

@keyframes g-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes g-page-out {
  to { opacity: 0; transform: scale(.995); }
}

@keyframes g-page-in {
  from { opacity: 0; transform: translateY(8px); }
}

@keyframes g-trace-grow {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes g-trace-dot {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation-duration: 0.01ms !important; }

  .site-backdrop {
    --g-scene-x: 0px !important;
    --g-scene-y: 0px !important;
  }
  .site-backdrop::after { display: none !important; }
  .hero-fireflies { display: none !important; }
  .garden-entry-veil,
  .garden-entry-reveal,
  .garden-entry-impact,
  .garden-entry-mist { display: none !important; }
  .garden-entry-glimmers { display: none !important; }
  .garden-entry-rain,
  .garden-entry-clear { display: none !important; }
  .garden-entry-stage,
  .garden-entry-coordinates,
  .garden-entry-atmosphere {
    opacity: 1 !important;
    transform: none !important;
  }
  .garden-entry-signal i::after { display: none !important; }
  .garden-entry-mark,
  .garden-entry-scroll { opacity: 1 !important; transform: translateX(-50%); }
  .garden-entry-mark { transform: none; }
  .garden-entry-mark i { transform: scaleX(1) !important; }
  .garden-entry-scroll i::after { display: none; }
  .now-signal { animation: none !important; opacity: 1; transform: none; }
  .now-signal::after { display: none; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .g-nav,
  .garden-settings,
  .article-toc,
  .terrain-node {
    background: var(--g-bg-elevated);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .g-nav,
  .garden-settings,
  .article-toc,
  .garden-terrain,
  .terrain-node,
  .present-board,
  .featured-card {
    border-color: var(--g-text-mute);
  }
  .g-sec-label,
  .g-sec-heading > a { text-shadow: none; }
}

/* ==================================================================
   Garden OS / Inner pages
   The home terrain continues into reading, archive and utility pages.
   ================================================================== */
:root {
  --os-bg: #e3e8e0;
  --os-panel: rgba(241, 244, 238, .84);
  --os-panel-solid: #eff2ec;
  --os-ink: #202720;
  --os-soft: #5f695f;
  --os-dim: #7b857b;
  --os-line: rgba(48, 63, 50, .18);
  --os-line-strong: rgba(48, 63, 50, .38);
  --os-moss: #4e7657;
  --os-moss-bright: #315e3c;
  --os-grid: rgba(48, 63, 50, .04);
  --os-shadow: rgba(42, 56, 44, .12);
  --os-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --os-serif: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
  --os-display-serif: "Cormorant Garamond", "LXGW WenKai Screen", "Noto Serif SC", "Songti SC", serif;
  --os-pixel: "DotGothic16", "Maple Mono", monospace;
  --os-mono: "JetBrains Mono", "Maple Mono", Consolas, monospace;
  --os-tech: "Unbounded", "JetBrains Mono", sans-serif;
  --os-ease: cubic-bezier(.16, 1, .3, 1);
}

:root[data-theme="dark"] {
  --os-bg: #090b0a;
  --os-panel: rgba(12, 16, 13, .86);
  --os-panel-solid: #0d110e;
  --os-ink: #edf1eb;
  --os-soft: #a4ada4;
  --os-dim: #747e75;
  --os-line: rgba(218, 229, 216, .13);
  --os-line-strong: rgba(218, 229, 216, .32);
  --os-moss: #789d7f;
  --os-moss-bright: #a7c9ad;
  --os-grid: rgba(211, 225, 211, .025);
  --os-shadow: rgba(0, 0, 0, .42);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --os-bg: #090b0a;
    --os-panel: rgba(12, 16, 13, .86);
    --os-panel-solid: #0d110e;
    --os-ink: #edf1eb;
    --os-soft: #a4ada4;
    --os-dim: #747e75;
    --os-line: rgba(218, 229, 216, .13);
    --os-line-strong: rgba(218, 229, 216, .32);
    --os-moss: #789d7f;
    --os-moss-bright: #a7c9ad;
    --os-grid: rgba(211, 225, 211, .025);
    --os-shadow: rgba(0, 0, 0, .42);
  }
}

body.is-inner {
  min-height: 100svh;
  color: var(--os-ink);
  background: var(--os-bg);
  font-family: var(--os-sans);
}
body.is-inner main { position: relative; z-index: 2; min-height: calc(100svh - 180px); }
body.is-inner a { text-decoration-thickness: 1px; text-underline-offset: .22em; }
body.is-inner .site-backdrop {
  inset: 0;
  z-index: -3;
  opacity: 1;
  background: var(--os-bg);
  transform: none;
}
body.is-inner .site-backdrop::before {
  inset: 0;
  opacity: .3;
  background-image: url("/images/garden-bg-light-cat.jpg");
  background-position: 58% 54%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(.9) saturate(.46) contrast(.9) brightness(1.08);
  transform: scale(1.018);
  transform-origin: center;
  animation: os-inner-breathe 24s cubic-bezier(.45, 0, .55, 1) infinite alternate;
  will-change: transform;
}
body.is-inner .site-backdrop::after {
  display: block;
  inset: 0;
  opacity: 1;
  background:
    radial-gradient(ellipse at 50% 35%, transparent 0 30%, color-mix(in srgb, var(--os-bg) 22%, transparent) 66%, color-mix(in srgb, var(--os-bg) 78%, transparent) 112%),
    linear-gradient(180deg, color-mix(in srgb, var(--os-bg) 22%, transparent), transparent 34%, color-mix(in srgb, var(--os-bg) 42%, transparent));
  filter: none;
}
:root[data-resolved-theme="dark"] body.is-inner .site-backdrop::before {
  opacity: .48;
  background-image: url("/images/garden-bg-dark-cat.jpg");
  filter: grayscale(.72) sepia(.08) hue-rotate(68deg) saturate(.58) contrast(1.15) brightness(.42);
}
:root[data-resolved-theme="dark"] body.is-inner .site-backdrop::after {
  background:
    radial-gradient(ellipse at 50% 34%, transparent 0 26%, color-mix(in srgb, var(--os-bg) 32%, transparent) 64%, color-mix(in srgb, var(--os-bg) 92%, transparent) 112%),
    linear-gradient(180deg, color-mix(in srgb, var(--os-bg) 28%, transparent), transparent 38%, color-mix(in srgb, var(--os-bg) 58%, transparent));
}

.inner-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.inner-atmosphere::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  background: radial-gradient(ellipse at 48% 48%, color-mix(in srgb, var(--os-panel-solid) 17%, transparent), transparent 63%);
  opacity: .52;
  transform: translate3d(-2%, 0, 0);
  animation: os-fog-drift 19s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}
.inner-atmosphere > i { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; opacity: 0; background: linear-gradient(transparent, var(--os-moss-bright), transparent); box-shadow: 0 0 20px color-mix(in srgb, var(--os-moss) 20%, transparent); animation: os-field-scan 14s cubic-bezier(.45, 0, .35, 1) infinite; }
.inner-page-readout { position: fixed; right: 14px; top: 38%; z-index: 4; display: grid; gap: 12px; color: var(--os-dim); font: 7px/1 var(--os-mono); letter-spacing: .16em; writing-mode: vertical-rl; pointer-events: none; }
.inner-page-readout b { color: var(--os-moss-bright); font-weight: 400; text-transform: uppercase; }
.inner-page-readout i { font-style: normal; }

body.is-inner .g-nav { position: sticky; top: 0; color: var(--os-ink); background: color-mix(in srgb, var(--os-bg) 78%, transparent); border-bottom: 1px solid var(--os-line); box-shadow: none; backdrop-filter: blur(16px) saturate(.9); }
body.is-inner .g-nav::after { height: 18px; bottom: -18px; background: linear-gradient(var(--os-shadow), transparent); opacity: 0; }
body.is-inner .g-nav.scrolled { background: color-mix(in srgb, var(--os-bg) 90%, transparent); box-shadow: none; }
body.is-inner .g-nav-inner { max-width: 1220px; min-height: 60px; padding: 0 30px; }
body.is-inner .g-nav-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--os-ink); font: 600 13px/1 var(--os-tech); letter-spacing: .03em; }
body.is-inner .g-nav-logo::before { content: ""; width: 7px; height: 7px; background: var(--os-moss); box-shadow: 0 0 11px color-mix(in srgb, var(--os-moss) 60%, transparent); animation: os-status-pulse 2.1s ease-in-out infinite; }
body.is-inner .g-nav-links { gap: 25px; }
body.is-inner .g-nav-links a { color: var(--os-dim); font: 600 8px/1 var(--os-pixel); letter-spacing: .14em; text-transform: uppercase; }
body.is-inner .g-nav-links a:hover, body.is-inner .g-nav-links a.active { color: var(--os-ink); }
body.is-inner .g-nav-links a::after { bottom: -9px; background: var(--os-moss); }
body.is-inner .g-nav-links a.g-nav-search { border-radius: 0; border-color: var(--os-line); }
body.is-inner .g-nav-links a.g-nav-search:hover, body.is-inner .g-nav-links a.g-nav-search.active { color: var(--os-moss-bright); background: color-mix(in srgb, var(--os-moss) 9%, transparent); border-color: var(--os-line-strong); }
body.is-inner .g-scroll-track { height: 1px; }
body.is-inner .g-scroll-progress { background: var(--os-moss-bright); box-shadow: 0 0 9px color-mix(in srgb, var(--os-moss) 48%, transparent); }

body.is-inner .g-wide { width: min(1180px, calc(100% - 64px)); max-width: none; padding-inline: 0; }
body.is-inner .g-container { width: min(780px, calc(100% - 48px)); max-width: none; padding-inline: 0; }
.inner-content-kicker { margin: 0 0 22px; color: var(--os-moss-bright); font: 600 8px/1 var(--os-pixel); letter-spacing: .16em; text-transform: uppercase; }

/* Article as an opened field file, not a floating card. */
body.is-post .article-wrap { grid-template-columns: minmax(0, 820px) 16px var(--toc-w); max-width: 1290px; padding: 64px 32px 84px; }
body.is-post .article-wrap.no-toc { grid-template-columns: minmax(0, 790px); }
body.is-inner .article { position: relative; padding: clamp(42px, 5vw, 64px) clamp(28px, 4.5vw, 58px) clamp(54px, 6vw, 76px); color: var(--os-ink); background: var(--os-panel); border: 0; border-top: 1px solid var(--os-line-strong); border-bottom: 1px solid var(--os-line-strong); border-radius: 0; box-shadow: 0 28px 80px var(--os-shadow); backdrop-filter: blur(13px); }
body.is-inner .article::before { content: "FIELD_NOTE / OPEN"; position: absolute; left: -22px; top: 74px; color: var(--os-dim); font: 7px/1 var(--os-mono); letter-spacing: .15em; writing-mode: vertical-rl; }
body.is-inner .article-header { margin-bottom: 36px; padding-bottom: 26px; border-bottom: 1px solid var(--os-line); }
body.is-inner .article-garden-state { margin-bottom: 18px; color: var(--os-dim); font: 7px/1.7 var(--os-mono); letter-spacing: .08em; text-transform: uppercase; }
body.is-inner .note-status { padding: 0; color: var(--os-moss-bright); background: transparent; border: 0; border-radius: 0; font: 7px/1 var(--os-pixel); letter-spacing: .12em; }
body.is-inner .note-status i { width: 6px; height: 6px; box-shadow: 0 0 9px color-mix(in srgb, var(--os-moss) 55%, transparent); }
body.is-inner .article-header h1 { margin: 0 0 18px; color: var(--os-ink); font: 600 clamp(38px, 4vw, 50px)/1.13 var(--os-display-serif); font-feature-settings: "kern" 1, "palt" 1; letter-spacing: -.012em; text-wrap: balance; }
body.is-inner .article-meta { gap: 7px 13px; color: var(--os-dim); font: 9px/1.55 var(--os-mono); letter-spacing: .035em; }
body.is-inner .article-meta a { color: var(--os-soft); }
body.is-inner .article-meta a:hover { color: var(--os-moss-bright); }
body.is-inner .article-meta .sep { color: var(--os-line-strong); }
body.is-inner .article-body { color: color-mix(in srgb, var(--os-ink) 89%, var(--os-soft)); font: 400 16px/1.78 var(--os-sans); }
body.is-inner .article-body h2 { margin: 1.85em 0 .66em; padding: .58em 0 0 25px; color: var(--os-ink); border-top: 1px solid var(--os-line); font: 500 clamp(24px, 2.7vw, 30px)/1.32 var(--os-serif); }
body.is-inner .article-body h2::before { content: ">"; position: absolute; left: 0; color: var(--os-moss-bright); font: 500 .7em/1.7 var(--os-tech); }
body.is-inner .article-body h3 { margin: 1.5em 0 .58em; color: var(--os-ink); font: 500 19px/1.42 var(--os-sans); }
body.is-inner .article-body h4 { color: var(--os-ink); }
body.is-inner .article-body p, body.is-inner .article-body li { color: inherit; }
body.is-inner .article-body p { margin: 0 0 .92em; }
body.is-inner .article-body ul, body.is-inner .article-body ol { margin: 0 0 1em; padding-left: 1.45em; }
body.is-inner .article-body li { margin-bottom: .24em; }
body.is-inner .article-body hr { margin: 2em 0; border: 0; border-top: 1px solid var(--os-line); }
body.is-inner .article-body hr + h2 { margin-top: 0; padding-top: .34em; border-top: 0; }
body.is-inner .article-body a { color: var(--os-moss-bright); text-decoration-color: color-mix(in srgb, var(--os-moss) 50%, transparent); }
body.is-inner .article-body blockquote { margin: 1.45em 0; padding: 2px 0 2px 22px; color: var(--os-soft); border-left: 1px solid var(--os-moss); font-family: var(--os-serif); font-size: 1.04em; line-height: 1.72; }
body.is-inner .article-body img { border: 1px solid var(--os-line); border-radius: 0; box-shadow: 0 18px 50px var(--os-shadow); }
body.is-inner .article-body th, body.is-inner .article-body td { border-color: var(--os-line); }
body.is-inner .article-body th { color: var(--os-ink); background: color-mix(in srgb, var(--os-moss) 7%, transparent); }
body.is-inner .article-body td { color: var(--os-soft); }
body.is-inner .article-connections { border-color: var(--os-line); }
body.is-inner .article-connections-heading p { color: var(--os-moss-bright); font: 600 8px/1 var(--os-pixel); }
body.is-inner .article-connections-heading h2 { color: var(--os-ink); font: 400 27px/1.2 var(--os-serif); }
body.is-inner .related-notes-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--os-line); }
body.is-inner .related-notes-grid > a { min-height: 0; padding: 25px 4px; color: var(--os-ink); background: transparent; border: 0; border-bottom: 1px solid var(--os-line); border-radius: 0; }
body.is-inner .related-notes-grid > a:hover { padding-inline: 16px; color: var(--os-moss-bright); background: color-mix(in srgb, var(--os-moss) 6%, transparent); }
body.is-inner .related-notes-grid h3 { color: inherit; font-family: var(--os-serif); font-size: 21px; }
body.is-inner .related-notes-grid p, body.is-inner .related-notes-grid time { color: var(--os-dim); }
body.is-inner .related-notes-grid span { color: var(--os-moss-bright); }
body.is-inner .backlink-notes a { color: var(--os-soft); background: transparent; border-color: var(--os-line); border-radius: 0; }
body.is-inner .post-nav { gap: 0; border-color: var(--os-line-strong); }
body.is-inner .post-nav a { padding: 24px; background: transparent; border: 0; border-bottom: 1px solid var(--os-line); border-radius: 0; }
body.is-inner .post-nav a + a { border-left: 1px solid var(--os-line); }
body.is-inner .post-nav a:hover { background: color-mix(in srgb, var(--os-moss) 7%, transparent); box-shadow: none; }
body.is-inner .post-nav .dir { color: var(--os-dim); font: 7px/1 var(--os-pixel); letter-spacing: .14em; }
body.is-inner .post-nav .t { color: var(--os-ink); font-family: var(--os-serif); font-size: 18px; }
body.is-inner .article-toc { color: var(--os-soft); background: color-mix(in srgb, var(--os-panel) 84%, transparent); border-color: var(--os-line); border-radius: 0; box-shadow: none; backdrop-filter: blur(12px); }
body.is-inner .article-wrap.has-toc .article-toc, body.is-inner .article-toc.mobile-open, body.is-inner .article-toc.mobile-open .toc-heading { background: var(--os-panel-solid); }
body.is-inner .article-toc .toc-title { color: var(--os-ink); font: 600 8px/1 var(--os-pixel); letter-spacing: .15em; }
body.is-inner .article-toc a { color: var(--os-dim); border-left-color: transparent; }
body.is-inner .article-toc a:hover, body.is-inner .article-toc a.active { color: var(--os-moss-bright); border-left-color: var(--os-moss); }
body.is-inner .toc-handle::after { background: var(--os-line-strong); }

/* Shared index-page opening. */
body.is-inner .archive, body.is-inner .about-page, body.is-inner .search-page, body.is-inner .garden-log-page { position: relative; margin-top: 0; margin-bottom: 0; padding: clamp(76px, 9vw, 126px) 0 clamp(90px, 10vw, 150px); color: var(--os-ink); background: transparent; border: 0; border-radius: 0; box-shadow: none; }
body.is-inner .archive::before, body.is-inner .about-page::before, body.is-inner .search-page::before, body.is-inner .garden-log-page::before { content: ""; position: absolute; top: 76px; bottom: 90px; left: -28px; width: 1px; background: linear-gradient(transparent, var(--os-line-strong) 8%, var(--os-line-strong) 88%, transparent); }
body.is-inner .archive-header, body.is-inner .about-page-hero, body.is-inner .search-hero, body.is-inner .garden-log-hero { position: relative; max-width: 900px; margin: 0 0 clamp(62px, 8vw, 102px); padding: 0 0 38px; border-bottom: 1px solid var(--os-line-strong); }
body.is-inner .archive-header::after, body.is-inner .about-page-hero::after, body.is-inner .search-hero::after, body.is-inner .garden-log-hero::after { position: absolute; right: 0; bottom: -10px; z-index: -1; color: color-mix(in srgb, var(--os-ink) 4%, transparent); font: 700 clamp(80px, 15vw, 176px)/.72 "Big Shoulders Display", sans-serif; letter-spacing: -.04em; }
body.is-inner .archive-header::after { content: "INDEX"; }
body.is-inner .about-page-hero::after { content: "SELF"; }
body.is-inner .search-hero::after { content: "FIND"; }
body.is-inner .garden-log-hero::after { content: "LOG"; }
body.is-inner .archive h1, body.is-inner .about-page-hero h1, body.is-inner .search-hero h1, body.is-inner .garden-log-hero h1 { margin: 0 0 18px; color: var(--os-ink); font: 400 clamp(52px, 8vw, 92px)/.98 var(--os-serif); letter-spacing: .02em; }
body.is-inner .archive .sub, body.is-inner .about-page-lede, body.is-inner .search-hero > p:last-child, body.is-inner .garden-log-hero > p:last-child { max-width: 720px; color: var(--os-soft); font-size: 14px; line-height: 1.85; }
body.is-inner .about-page-kicker, body.is-inner .search-kicker, body.is-inner .garden-log-kicker { margin-bottom: 20px; color: var(--os-moss-bright); font: 600 8px/1 var(--os-pixel); letter-spacing: .16em; text-transform: uppercase; }

/* Archive becomes a line-based temporal index. */
body.is-inner .archive-back { margin-bottom: 24px; color: var(--os-dim); font: 600 8px/1 var(--os-pixel); letter-spacing: .12em; }
body.is-inner .archive-taxonomy { gap: 26px; margin-bottom: 58px; padding: 32px 0; border-color: var(--os-line); }
body.is-inner .taxonomy-group { grid-template-columns: 130px 1fr; }
body.is-inner .taxonomy-label { color: var(--os-dim); font: 600 8px/1 var(--os-pixel); letter-spacing: .14em; }
body.is-inner .taxonomy-links { gap: 0; }
body.is-inner .taxonomy-links a { gap: 9px; padding: 8px 13px; color: var(--os-soft); background: transparent; border: 0; border-right: 1px solid var(--os-line); border-radius: 0; font: 11px/1.3 var(--os-mono); }
body.is-inner .taxonomy-links a:hover { color: var(--os-moss-bright); background: color-mix(in srgb, var(--os-moss) 7%, transparent); }
body.is-inner .taxonomy-links small { color: var(--os-dim); font-size: 8px; }
body.is-inner .archive-filter { margin-bottom: 64px; }
body.is-inner .archive-filter-field { max-width: 620px; }
body.is-inner .archive-filter-field input { height: 50px; color: var(--os-ink); background: color-mix(in srgb, var(--os-panel) 72%, transparent); border-color: var(--os-line); border-radius: 0; font: 12px/1 var(--os-mono); }
body.is-inner .archive-filter-field input:focus { border-color: var(--os-moss); box-shadow: inset 3px 0 0 var(--os-moss); }
body.is-inner .archive-filter-status { color: var(--os-dim); font: 8px/1 var(--os-pixel); }
body.is-inner .archive-list { max-width: none; }
body.is-inner .archive-year { grid-template-columns: 150px minmax(0, 1fr); margin-bottom: 68px; }
body.is-inner .archive-year h2 { color: var(--os-moss-bright); font: 500 clamp(34px, 4vw, 52px)/1 var(--os-tech); letter-spacing: -.04em; }
body.is-inner .archive-post { grid-template-columns: 80px minmax(180px, 1fr) auto; gap: 24px; min-height: 68px; padding: 18px 8px; border-color: var(--os-line); transition: padding 280ms var(--os-ease), background 180ms ease; }
body.is-inner .archive-post:first-of-type { border-top-color: var(--os-line-strong); }
body.is-inner .archive-post:hover { padding-inline: 20px; background: color-mix(in srgb, var(--os-moss) 6%, transparent); }
body.is-inner .archive-post time { color: var(--os-dim); font: 8px/1 var(--os-pixel); }
body.is-inner .archive-post-title { color: var(--os-ink); font: 400 21px/1.35 var(--os-serif); }
body.is-inner .archive-post:hover .archive-post-title { color: var(--os-moss-bright); }
body.is-inner .archive-post-terms a { color: var(--os-dim); font: 8px/1 var(--os-mono); }
body.is-inner .archive-empty, body.is-inner .archive-filter-empty, body.is-inner .search-empty, body.is-inner .garden-log-empty { color: var(--os-soft); background: color-mix(in srgb, var(--os-panel) 72%, transparent); border-color: var(--os-line-strong); border-radius: 0; }
body.is-inner .archive-empty p, body.is-inner .archive-filter-empty p, body.is-inner .search-empty strong { color: var(--os-ink); }

/* About: real content columns instead of dashboard cards. */
body.is-inner .about-maintained { color: var(--os-dim); font: 8px/1 var(--os-pixel); letter-spacing: .1em; }
body.is-inner .about-maintained-dot { background: var(--os-moss); box-shadow: 0 0 10px color-mix(in srgb, var(--os-moss) 55%, transparent); }
body.is-inner .about-field-window {
  position: relative;
  height: clamp(190px, 28vw, 330px);
  margin: calc(clamp(62px, 8vw, 102px) * -.42) 0 clamp(68px, 8vw, 108px);
  overflow: hidden;
  background-image:
    linear-gradient(180deg, color-mix(in srgb, var(--os-bg) 12%, transparent), color-mix(in srgb, var(--os-bg) 34%, transparent)),
    url("/images/garden-inner-field-v1.jpg");
  background-position: center, center 63%;
  background-size: cover;
  background-repeat: no-repeat;
  border-top: 1px solid var(--os-line-strong);
  border-bottom: 1px solid var(--os-line-strong);
  box-shadow: inset 0 0 72px color-mix(in srgb, var(--os-bg) 44%, transparent);
  filter: grayscale(.36) saturate(.58) contrast(.92);
}
body.is-inner .about-field-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--os-bg), transparent 20% 78%, var(--os-bg));
  opacity: .34;
}
body.is-inner .about-field-window span {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 1;
  color: color-mix(in srgb, var(--os-ink) 60%, transparent);
  font: 7px/1 var(--os-mono);
  letter-spacing: .14em;
}
:root[data-resolved-theme="dark"] body.is-inner .about-field-window {
  filter: grayscale(.55) sepia(.08) hue-rotate(68deg) saturate(.52) brightness(.48) contrast(1.12);
}
body.is-inner .about-chapter { display: block; margin-top: 0; padding: 58px 0 70px; border-top: 1px solid var(--os-line-strong); }
body.is-inner .about-chapter-heading { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; margin-bottom: 40px; }
body.is-inner .about-page .g-sec-label { color: var(--os-moss-bright); font: 600 8px/1 var(--os-pixel); letter-spacing: .14em; }
body.is-inner .about-chapter-heading p { color: var(--os-dim); font-size: 12px; }
body.is-inner .garden-paths { display: grid; grid-template-columns: repeat(3, 1fr); padding-left: 0; border: 0; border-top: 1px solid var(--os-line); border-bottom: 1px solid var(--os-line); }
body.is-inner .garden-path { min-height: 270px; padding: 28px; border-right: 1px solid var(--os-line); }
body.is-inner .garden-path:last-child { border-right: 0; }
body.is-inner .garden-path::before { top: auto; right: 28px; bottom: 28px; left: 28px; width: auto; height: 1px; background: var(--os-moss); border: 0; border-radius: 0; transform: scaleX(0); transform-origin: left; }
body.is-inner .garden-path:hover::before { transform: scaleX(1); }
body.is-inner .garden-path-meta { color: var(--os-dim); font: 7px/1 var(--os-pixel); letter-spacing: .15em; }
body.is-inner .garden-path h2 { margin-top: 28px; color: var(--os-ink); font: 400 29px/1.2 var(--os-serif); }
body.is-inner .garden-path p { color: var(--os-soft); font-size: 13px; }
body.is-inner .garden-path a { margin-top: 24px; color: var(--os-moss-bright); font: 8px/1 var(--os-mono); }
body.is-inner .about-now-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--os-line); }
body.is-inner .about-now-item { display: block; padding: 25px 22px; border-bottom: 1px solid var(--os-line); border-right: 1px solid var(--os-line); }
body.is-inner .about-now-item > span { color: var(--os-moss-bright); font: 7px/1 var(--os-pixel); }
body.is-inner .about-now-item p { margin-top: 13px; color: var(--os-soft); font-size: 14px; }
body.is-inner .about-principles { counter-reset: os-principle; border-top: 1px solid var(--os-line); }
body.is-inner .about-principles li { grid-template-columns: 38px minmax(0, 1fr); padding: 22px 20px; color: var(--os-ink); border-color: var(--os-line); font-family: var(--os-serif); font-size: 20px; }
body.is-inner .about-principles li::before { counter-increment: os-principle; content: "0" counter(os-principle); width: auto; height: auto; margin: .35em 0 0; color: var(--os-moss-bright); background: none; border-radius: 0; font: 7px/1 var(--os-pixel); }
body.is-inner .about-contact { margin-top: 0; padding: 68px 0 0; background: transparent; border: 0; border-top: 1px solid var(--os-line-strong); border-radius: 0; }
body.is-inner .about-contact h2 { color: var(--os-ink); font: 400 42px/1.1 var(--os-serif); }
body.is-inner .about-contact p { color: var(--os-soft); }
body.is-inner .about-contact-links { border-top: 1px solid var(--os-line); }
body.is-inner .about-contact-links a { color: var(--os-ink); border-color: var(--os-line); }
body.is-inner .about-contact-links a:hover { padding-inline: 12px; color: var(--os-moss-bright); background: color-mix(in srgb, var(--os-moss) 6%, transparent); }
body.is-inner .about-contact-links small { color: var(--os-dim); font-family: var(--os-pixel); }

/* Search and monthly log share the same field grammar. */
body.is-inner .garden-search { margin-bottom: 18px; border-top: 1px solid var(--os-line-strong); border-bottom: 1px solid var(--os-line-strong); }
body.is-inner .garden-search input { height: 68px; color: var(--os-ink); background: transparent; border: 0; border-radius: 0; box-shadow: none; font: 15px/1 var(--os-mono); }
body.is-inner .garden-search input:focus { background: color-mix(in srgb, var(--os-moss) 5%, transparent); border: 0; box-shadow: inset 3px 0 0 var(--os-moss); }
body.is-inner .garden-search svg { color: var(--os-moss-bright); }
body.is-inner .garden-search kbd { color: var(--os-dim); background: transparent; border-color: var(--os-line); border-radius: 0; font-family: var(--os-pixel); }
body.is-inner .search-hint { color: var(--os-dim); }
body.is-inner .search-hint button { color: var(--os-soft); background: transparent; border-color: var(--os-line); border-radius: 0; font: 8px/1 var(--os-mono); }
body.is-inner .search-hint button:hover { color: var(--os-moss-bright); background: color-mix(in srgb, var(--os-moss) 7%, transparent); }
body.is-inner .search-status { color: var(--os-dim); font: 8px/1 var(--os-pixel); }
body.is-inner .search-results li { border-color: var(--os-line); }
body.is-inner .search-results a { color: var(--os-ink); padding: 26px 18px; }
body.is-inner .search-results a:hover { background: color-mix(in srgb, var(--os-moss) 6%, transparent); }
body.is-inner .search-results h2 { color: var(--os-ink); font: 400 25px/1.3 var(--os-serif); }
body.is-inner .search-result-meta, body.is-inner .search-results p { color: var(--os-dim); }
body.is-inner .garden-log-entry { grid-template-columns: 170px minmax(0, 1fr); border-color: var(--os-line); }
body.is-inner .garden-log-date { color: var(--os-dim); font: 8px/1.4 var(--os-pixel); }
body.is-inner .garden-log-date::before { background: var(--os-moss); border-color: var(--os-bg); box-shadow: 0 0 0 1px var(--os-moss), 0 0 14px color-mix(in srgb, var(--os-moss) 35%, transparent); }
body.is-inner .garden-log-content h2 { color: var(--os-ink); font: 400 clamp(28px, 4vw, 42px)/1.18 var(--os-serif); }
body.is-inner .garden-log-summary, body.is-inner .garden-log-groups li { color: var(--os-soft); }
body.is-inner .garden-log-groups { gap: 0; border-top: 1px solid var(--os-line); }
body.is-inner .garden-log-groups section { padding: 25px; border-right: 1px solid var(--os-line); border-bottom: 1px solid var(--os-line); }
body.is-inner .garden-log-groups h3 { color: var(--os-ink); font: 600 8px/1 var(--os-pixel); }
body.is-inner .garden-log-groups a { color: var(--os-ink); }
body.is-inner .garden-log-groups a:hover { color: var(--os-moss-bright); }

/* 404 remains sparse: one broken coordinate in the same field. */
body.is-inner .error-page { min-height: calc(100svh - 120px); padding: 100px 0; text-align: left; }
body.is-inner .error-page-inner { position: relative; width: min(780px, 100%); padding: 68px 0; color: var(--os-ink); background: transparent; border: 0; border-top: 1px solid var(--os-line-strong); border-bottom: 1px solid var(--os-line-strong); border-radius: 0; box-shadow: none; }
body.is-inner .error-code { color: transparent; font: 600 clamp(120px, 21vw, 250px)/.7 var(--os-tech); letter-spacing: -.08em; -webkit-text-stroke: 1px var(--os-line-strong); }
body.is-inner .error-kicker { color: var(--os-moss-bright); font: 600 8px/1 var(--os-pixel); }
body.is-inner .error-page h1 { color: var(--os-ink); font: 400 clamp(38px, 6vw, 64px)/1.08 var(--os-serif); }
body.is-inner .error-page p { margin-left: 0; color: var(--os-soft); }
body.is-inner .error-home { min-height: 0; padding: 13px 0; color: var(--os-moss-bright); background: transparent; border-bottom: 1px solid var(--os-moss); border-radius: 0; font: 600 9px/1 var(--os-mono); }
body.is-inner .error-home:hover { color: var(--os-ink); background: transparent; padding-inline: 9px; }

/* Footer, controls and mode picker live in both themes. */
body.is-inner .g-footer { position: relative; z-index: 2; margin-top: 0; padding: 28px 0 42px; color: var(--os-dim); border-top: 1px solid var(--os-line); text-shadow: none; font: 8px/1 var(--os-mono); letter-spacing: .08em; text-transform: uppercase; }
body.is-inner .g-footer-inner { max-width: 1220px; padding-inline: 30px; }
body.is-inner .g-footer-author { color: var(--os-ink); font: 600 10px/1 var(--os-tech); }
body.is-inner .g-footer a { color: var(--os-dim); }
body.is-inner .g-footer a:hover { color: var(--os-moss-bright); }
body.is-inner .garden-control-button { color: var(--os-soft); background: color-mix(in srgb, var(--os-panel-solid) 86%, transparent); border-color: var(--os-line); border-radius: 0; box-shadow: 0 14px 42px var(--os-shadow); backdrop-filter: blur(13px); }
body.is-inner .garden-control-button:hover { color: var(--os-moss-bright); background: color-mix(in srgb, var(--os-moss) 9%, var(--os-panel-solid)); border-color: var(--os-line-strong); box-shadow: 0 14px 42px var(--os-shadow); }
body.is-inner .garden-settings { color: var(--os-ink); background: color-mix(in srgb, var(--os-panel-solid) 92%, transparent); border-color: var(--os-line); border-radius: 0; box-shadow: 0 24px 70px var(--os-shadow); }
body.is-inner .garden-settings-kicker { color: var(--os-moss-bright); font-family: var(--os-pixel); }
body.is-inner .garden-settings h2 { color: var(--os-ink); font-family: var(--os-serif); font-size: 22px; font-weight: 400; }
body.is-inner .garden-settings-copy, body.is-inner .garden-theme-status { color: var(--os-dim); }
body.is-inner .garden-theme-options button { color: var(--os-dim); background: transparent; border-color: var(--os-line); border-radius: 0; }
body.is-inner .garden-theme-options button:hover, body.is-inner .garden-theme-options button[aria-pressed="true"] { color: var(--os-moss-bright); background: color-mix(in srgb, var(--os-moss) 8%, transparent); border-color: var(--os-line-strong); }

@keyframes os-inner-breathe { from { transform: scale(1.018) translate3d(-.3%, 0, 0); } to { transform: scale(1.032) translate3d(.35%, -.25%, 0); } }
@keyframes os-fog-drift { from { opacity: .34; transform: translate3d(-2%, 0, 0); } to { opacity: .62; transform: translate3d(2.5%, -1%, 0); } }
@keyframes os-field-scan { 0%, 14% { opacity: 0; transform: translate3d(-4vw, 0, 0) skewX(-6deg); } 22% { opacity: .45; } 70% { opacity: .2; } 78%, 100% { opacity: 0; transform: translate3d(106vw, 0, 0) skewX(-6deg); } }
@keyframes os-status-pulse { 50% { opacity: .38; transform: scale(.72); } }

/* Desktop reading audit: readable utility text without changing the home or mobile layout. */
@media (min-width: 1024px) {
  body.is-inner { --os-dim: var(--os-soft); }
  body.is-inner .site-backdrop::before { opacity: .14; }
  body.is-inner .g-nav-links a { font-size: 11px; line-height: 1.5; letter-spacing: .08em; }
  body.is-inner .g-nav-links a:not(.g-nav-search) { padding-block: 12px; }
  body.is-inner .g-nav-links a::after { bottom: 4px; }
  body.is-inner .inner-content-kicker,
  body.is-inner .about-page-kicker,
  body.is-inner .search-kicker,
  body.is-inner .garden-log-kicker,
  body.is-inner .article-connections-heading p,
  body.is-inner .error-kicker { font-size: 11px; line-height: 1.5; }
  body.is-inner .article-garden-state,
  body.is-inner .article-meta,
  body.is-inner .note-status,
  body.is-inner .post-nav .dir,
  body.is-inner .article-toc .toc-title { font-size: 12px; line-height: 1.6; }
  body.is-inner .article-body :is(h1, h2, h3, h4, h5, h6)[id],
  body.is-inner .garden-log-entry[id] { scroll-margin-top: 88px; }
  body.is-inner .article-toc { overscroll-behavior: contain; overflow-anchor: none; }
  body.is-inner .article-toc a { overflow-wrap: anywhere; }
  body.is-inner .article-body { overflow-wrap: anywhere; }
  body.is-inner .article-body h1 { font: 500 32px/1.4 var(--os-serif); }
  body.is-inner .archive-back,
  body.is-inner .taxonomy-label,
  body.is-inner .archive-post time,
  body.is-inner .archive-post-terms a,
  body.is-inner .archive-filter-status,
  body.is-inner .search-status,
  body.is-inner .about-maintained,
  body.is-inner .about-page .g-sec-label,
  body.is-inner .garden-path-meta,
  body.is-inner .garden-path a,
  body.is-inner .about-now-item > span,
  body.is-inner .garden-log-date,
  body.is-inner .garden-log-groups h3,
  body.is-inner .g-footer,
  body.is-inner .error-home { font-size: 12px; line-height: 1.6; letter-spacing: .04em; }
  body.is-inner .taxonomy-links a,
  body.is-inner .archive-filter-field input,
  body.is-inner .search-hint button { font-size: 13px; line-height: 1.5; }
  body.is-inner .taxonomy-links small { font-size: 11px; }
  /* Display-font numerals can exceed 150px; size the year track from its content. */
  body.is-inner .archive-year { grid-template-columns: max-content minmax(0, 1fr); column-gap: clamp(28px, 3vw, 44px); }
  body.is-inner .archive-year h2 { white-space: nowrap; }
  body.is-inner .archive-post { grid-template-columns: 80px minmax(0, 1fr) minmax(140px, 26%); gap: 20px; transition: background 180ms ease; }
  body.is-inner .archive-post:hover { padding-inline: 8px; }
  body.is-inner .archive-post-title,
  body.is-inner .archive-post-terms { overflow-wrap: anywhere; }
  body.is-inner .related-notes-grid > a:hover { padding-inline: 4px; }
  body.is-inner .about-chapter-heading p,
  body.is-inner .garden-path p { font-size: 14px; }
  body.is-inner .garden-log-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.is-inner .garden-log-groups section:nth-child(2n) { border-right: 0; }
  body.is-inner .garden-log-groups section:last-child:nth-child(2n + 1) { grid-column: 1 / -1; border-right: 0; }
}

.archive-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; padding-block: 24px; border-top: 1px solid var(--os-line); color: var(--os-soft); font: 13px/1.6 var(--os-mono); }
.archive-pagination a { padding: 8px 12px; color: var(--os-moss-bright); border: 1px solid var(--os-line); }
.archive-pagination a:hover { background: color-mix(in srgb, var(--os-moss) 7%, transparent); }

@media (max-width: 1023px) {
  body.is-inner .g-nav-inner { padding-inline: 24px; }
  body.is-inner .g-wide { width: min(100% - 48px, 900px); }
  body.is-post .article-wrap, body.is-post .article-wrap.no-toc { grid-template-columns: minmax(0, 1fr); max-width: 900px; padding-inline: 24px; }
  body.is-inner .article::before, .inner-page-readout { display: none; }
  body.is-inner .garden-paths { grid-template-columns: 1fr; }
  body.is-inner .garden-path { min-height: 0; border-right: 0; border-bottom: 1px solid var(--os-line); }
  body.is-inner .about-now-list { grid-template-columns: 1fr; }
  body.is-inner .archive-year { grid-template-columns: 110px minmax(0, 1fr); }
  body.is-inner .archive-post { grid-template-columns: 72px minmax(0, 1fr); }
  body.is-inner .archive-post-terms { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 768px) {
  body.is-inner .site-backdrop::before { background-position: 50% center; transform: scale(1.025); }
  body.is-inner .site-backdrop::after { background: linear-gradient(180deg, color-mix(in srgb, var(--os-bg) 12%, transparent), transparent 30%, color-mix(in srgb, var(--os-bg) 54%, transparent)); }
  body.is-inner .g-nav-inner { min-height: 54px; padding-inline: 18px; }
  body.is-inner .g-nav-links { gap: 15px; }
  body.is-inner .g-nav-links li:nth-child(3), body.is-inner .g-nav-links li:nth-child(4) { display: none; }
  body.is-inner .g-wide { width: calc(100% - 36px); }
  body.is-inner .archive, body.is-inner .about-page, body.is-inner .search-page, body.is-inner .garden-log-page { padding: 68px 0 90px; }
  body.is-inner .archive::before, body.is-inner .about-page::before, body.is-inner .search-page::before, body.is-inner .garden-log-page::before { display: none; }
  body.is-inner .archive-header, body.is-inner .about-page-hero, body.is-inner .search-hero, body.is-inner .garden-log-hero { margin-bottom: 62px; }
  body.is-inner .archive h1, body.is-inner .about-page-hero h1, body.is-inner .search-hero h1, body.is-inner .garden-log-hero h1 { font-size: clamp(46px, 15vw, 68px); }
  body.is-post .article-wrap, body.is-post .article-wrap.no-toc { padding: 48px 18px 72px; }
  body.is-inner .article { padding: 38px 22px 54px; }
  body.is-inner .article-header { margin-bottom: 30px; padding-bottom: 22px; }
  body.is-inner .article-header h1 { font-size: clamp(33px, 9.6vw, 43px); line-height: 1.16; }
  body.is-inner .article-body { font-size: 15.5px; line-height: 1.76; }
  body.is-inner .article-body h2 { padding-left: 22px; font-size: 25px; }
  body.is-inner .post-nav { grid-template-columns: 1fr; }
  body.is-inner .post-nav .next, body.is-inner .post-nav .prev { grid-column: 1; text-align: left; }
  body.is-inner .post-nav a + a { border-left: 0; }
  body.is-inner .taxonomy-group, body.is-inner .about-chapter-heading { grid-template-columns: 1fr; gap: 16px; }
  body.is-inner .archive-filter { display: block; }
  body.is-inner .archive-filter-status { margin-top: 14px; }
  body.is-inner .archive-year { grid-template-columns: 1fr; }
  body.is-inner .archive-year h2 { margin-bottom: 20px; }
  body.is-inner .archive-post { grid-column: 1; grid-template-columns: 62px minmax(0, 1fr); padding-inline: 0; }
  body.is-inner .archive-post:hover { padding-inline: 10px; }
  body.is-inner .about-chapter { padding-block: 48px 58px; }
  body.is-inner .about-field-window { height: 190px; margin-top: -22px; margin-bottom: 64px; background-position: center, center 61%; }
  body.is-inner .garden-log-entry { grid-template-columns: 1fr; gap: 24px; }
  body.is-inner .garden-log-date { position: relative; top: auto; }
  body.is-inner .garden-log-groups { grid-template-columns: 1fr; }
  body.is-inner .garden-log-groups section { border-right: 0; }
  body.is-inner .error-page { padding-inline: 18px; }
  body.is-inner .error-page-inner { padding-block: 52px; }
  body.is-inner .g-footer-inner { padding-inline: 18px; text-align: left; align-items: flex-start; }
  body.is-inner .g-footer .links { gap: 12px; flex-wrap: wrap; }
  body.is-inner .garden-controls { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  body.is-inner .site-backdrop::before, .inner-atmosphere::before, .inner-atmosphere > i, body.is-inner .g-nav-logo::before { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  body.is-inner .site-backdrop::before { opacity: .14; }
  body.is-inner .g-nav, body.is-inner .article, body.is-inner .article-toc, body.is-inner .garden-settings, body.is-inner .garden-control-button { background: var(--os-panel-solid); backdrop-filter: none; }
}
