/* ==========================================================================
   Timeless 路 homepage concept
   No webfonts, no framework. Everything below is intentionally hand-written.
   ========================================================================== */

:root {
  --bg: #080a09;
  --bg-elev: #0d100e;
  --surface: #121613;
  --surface-2: #171c18;
  --text: #ece8dd;
  --text-strong: #f8f4e9;
  --muted: #9aa39a;
  --faint: #7a847b;
  --line: #262d27;
  --line-strong: #3a433b;
  --accent: #62d6c5;
  --accent-bright: #8ce8db;
  --accent-ink: #05201c;
  --accent-soft: rgba(98, 214, 197, .1);
  --danger: #e08373;
  --sans: "Aptos", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Songti SC", "STSong", "SimSun", serif;
  --mono: "Cascadia Mono", "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --shell: 1240px;
  --pad: 32px;
  --head-h: 72px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f2eee3;
  --bg-elev: #ece7da;
  --surface: #faf7ef;
  --surface-2: #f5f0e4;
  --text: #22261f;
  --text-strong: #131610;
  --muted: #677062;
  --faint: #7d8578;
  --line: #d9d2c3;
  --line-strong: #bdb5a4;
  --accent: #0b7a6e;
  --accent-bright: #0f8f81;
  --accent-ink: #f5fffc;
  --accent-soft: rgba(11, 122, 110, .08);
  --danger: #a74535;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}

body.is-locked { overflow: hidden; }

#latest { scroll-margin-top: var(--head-h); }
#calendar,
#tags,
#about { scroll-margin-top: calc(var(--head-h) + 18px); }

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 500 12px var(--mono);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

kbd {
  font: 500 9px var(--mono);
  letter-spacing: .04em;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 4px;
  color: var(--muted);
  background: var(--surface);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-head {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--head-h);
  color: #f2eee3;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.site-head.is-stuck {
  color: var(--text);
  background: rgba(8, 10, 9, .86);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
}

:root[data-theme="light"] .site-head.is-stuck {
  background: rgba(242, 238, 227, .88);
}

.head-inner {
  width: 100%;
  max-width: var(--shell);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(242, 238, 227, .2);
  border-radius: 7px;
  flex: none;
}
.site-head.is-stuck .brand-mark { border-color: var(--line); }

.brand-type {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.brand-type em {
  font: italic 400 21px/1 var(--serif);
  letter-spacing: -.02em;
}

.brand-cn {
  padding-left: 10px;
  border-left: 1px solid rgba(242, 238, 227, .24);
  font: 500 10px/1 var(--sans);
  letter-spacing: .18em;
  opacity: .68;
}
.site-head.is-stuck .brand-cn { border-left-color: var(--line-strong); }

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 12.5px;
  letter-spacing: .04em;
}

.primary-nav a {
  position: relative;
  padding: 6px 0;
  opacity: .64;
  transition: opacity .2s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.primary-nav a:hover { opacity: 1; }
.primary-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-self: end;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(242, 238, 227, .2);
  border-radius: 1px;
  background: rgba(5, 8, 6, .12);
  color: inherit;
  font: 500 11px var(--mono);
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.search-trigger .icon { width: 15px; height: 15px; }
.search-trigger:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.site-head.is-stuck .search-trigger {
  border-color: var(--line);
  background: transparent;
}

.search-kbd {
  border-color: rgba(242, 238, 227, .22);
  background: transparent;
  color: inherit;
  opacity: .5;
}
.site-head.is-stuck .search-kbd {
  border-color: var(--line);
  color: var(--muted);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 238, 227, .2);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(-8deg);
}
.site-head.is-stuck .icon-btn { border-color: var(--line); }

.theme-toggle .icon { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.login-link {
  margin-left: 4px;
  font: 500 11px var(--mono);
  letter-spacing: .04em;
  opacity: .62;
  transition: opacity .2s ease, color .2s ease;
}
.login-link:hover { opacity: 1; color: var(--accent); }

/* Ledger is a tool, not an editorial nav item: one-click in the utility group. */
.ledger-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 7px;
  color: inherit;
  font: 500 11px var(--mono);
  letter-spacing: .03em;
  text-decoration: none;
  opacity: .72;
  border: 1px solid transparent;
  transition: color .2s ease, opacity .2s ease, border-color .2s ease;
}
.ledger-link .icon { width: 16px; height: 16px; }
.ledger-link:hover { opacity: 1; color: var(--accent); }
.site-head.is-stuck .ledger-link { opacity: .85; color: var(--muted); }
.site-head.is-stuck .ledger-link:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  height: clamp(620px, 84svh, 880px);
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: #060806;
}

.hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("/assets/background.jpg");
  background-size: cover;
  background-position: center 44%;
  filter: saturate(.94) contrast(1.03) brightness(.94);
  transform: scale(1.015);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 5, .68) 0%, rgba(4, 6, 5, .12) 28%, transparent 48%),
    linear-gradient(90deg, rgba(4, 6, 5, .9) 0%, rgba(4, 6, 5, .64) 34%, rgba(4, 6, 5, .12) 68%, rgba(4, 6, 5, .3) 100%),
    linear-gradient(0deg, #070908 0%, rgba(7, 9, 8, .82) 9%, rgba(7, 9, 8, .12) 42%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: .055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--shell);
  height: 100%;
  margin: 0 auto;
  padding: calc(var(--head-h) + 44px) var(--pad) 104px;
  display: flex;
  align-items: flex-end;
}

.hero-copy { max-width: 860px; }

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: rgba(242, 238, 227, .64);
  font: 500 10px var(--mono);
  letter-spacing: .24em;
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) .05s both;
}

.hero-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(98, 214, 197, .12);
  flex: none;
}

.hero-title {
  margin: 26px 0 0;
  color: #f5f1e6;
  font-weight: 400;
}

.hero-en {
  display: block;
  font: italic 400 clamp(76px, 11vw, 152px)/.82 var(--serif);
  letter-spacing: -.035em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .36);
  animation: rise .95s cubic-bezier(.2, .7, .2, 1) .1s both;
}

.hero-cn {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 21px;
  color: rgba(240, 235, 224, .9);
  font: 500 clamp(20px, 2.4vw, 30px)/1.2 var(--sans);
  letter-spacing: .4em;
  white-space: nowrap;
  animation: rise .95s cubic-bezier(.2, .7, .2, 1) .17s both;
}
.hero-cn::before {
  content: "";
  width: 52px;
  height: 1px;
  background: var(--accent);
  opacity: .85;
  flex: none;
}

.hero-lede {
  max-width: 510px;
  margin: 28px 0 0;
  color: rgba(236, 232, 221, .74);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .01em;
  animation: rise .95s cubic-bezier(.2, .7, .2, 1) .24s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
  animation: rise .95s cubic-bezier(.2, .7, .2, 1) .31s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 21px;
  border: 1px solid var(--accent);
  border-radius: 1px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 500 11px var(--mono);
  letter-spacing: .14em;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-primary span { transition: transform .2s ease; }
.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  transform: translateY(-1px);
}
.btn-primary:hover span { transform: translateX(3px); }

.btn-quiet {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(236, 232, 221, .28);
  color: rgba(236, 232, 221, .68);
  font: 500 11px var(--mono);
  letter-spacing: .1em;
  transition: color .2s ease, border-color .2s ease;
}
.btn-quiet:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero-aside {
  position: absolute;
  right: var(--pad);
  bottom: 112px;
  width: 232px;
  padding: 19px 20px 17px;
  border: 1px solid rgba(236, 232, 221, .16);
  background: rgba(5, 8, 6, .42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: rise .95s cubic-bezier(.2, .7, .2, 1) .4s both;
}

.aside-label {
  margin: 0 0 14px;
  color: rgba(236, 232, 221, .56);
  font: 500 9px var(--mono);
  letter-spacing: .22em;
}

.aside-count {
  margin: 0;
  color: rgba(236, 232, 221, .72);
  font: 400 10px var(--mono);
  letter-spacing: .08em;
}
.aside-count span {
  margin-right: 4px;
  color: #f5f1e6;
  font: italic 400 38px/.9 var(--serif);
  letter-spacing: -.03em;
}

.aside-stats {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid rgba(236, 232, 221, .12);
}
.aside-stats div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(236, 232, 221, .1);
}
.aside-stats dt {
  color: rgba(236, 232, 221, .5);
  font: 400 9.5px var(--mono);
  letter-spacing: .06em;
}
.aside-stats dd {
  margin: 0;
  color: rgba(236, 232, 221, .86);
  font: 500 10px var(--mono);
  letter-spacing: .04em;
  white-space: nowrap;
}

.barcode {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  margin-top: 16px;
  color: rgba(236, 232, 221, .46);
  opacity: .85;
}
.barcode span { flex: 1; height: 100%; background: currentColor; }
.barcode span:nth-child(2n) { height: 62%; }
.barcode span:nth-child(3n) { height: 82%; }
.barcode span:nth-child(5n) { height: 44%; }

.hero-foot {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
}
.hero-foot-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 15px var(--pad);
  border-top: 1px solid rgba(236, 232, 221, .15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(236, 232, 221, .44);
  font: 500 8.5px var(--mono);
  letter-spacing: .22em;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.scroll-cue span {
  color: var(--accent);
  font-size: 12px;
  animation: nudge 2.8s ease-in-out infinite;
}

.hero-clock {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.hero-clock::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .8;
}

/* --------------------------------------------------------------------------
   Archive
   -------------------------------------------------------------------------- */

.archive {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 86px var(--pad) 118px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--accent);
  font: 500 9.5px var(--mono);
  letter-spacing: .22em;
}
.eyebrow::before {
  content: "";
  width: 17px;
  height: 1px;
  background: var(--accent);
  opacity: .7;
}

.section-title h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 21px;
  padding-bottom: 4px;
}

.filter {
  position: relative;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 11px var(--mono);
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .2s ease;
  white-space: nowrap;
}
.filter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .22s ease;
}
.filter:hover { color: var(--text); }
.filter.is-active { color: var(--text); }
.filter.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.filter-count {
  margin-left: 2px;
  color: var(--faint);
  font-size: 8.5px;
  vertical-align: super;
}
.filter.is-active .filter-count { color: var(--accent); }

.noscript {
  margin: 22px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.noscript code {
  color: var(--accent);
  font: 11px var(--mono);
}

.archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  margin-top: 40px;
  align-items: start;
}

.archive-main { min-width: 0; }

/* Feature ------------------------------------------------------------------ */

.feature {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 32px;
  padding: 34px 36px 36px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.feature::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -1px;
  left: -1px;
  width: 74px;
  height: 2px;
  background: var(--accent);
}
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 260px at 100% 0%, var(--accent-soft), transparent 72%);
  pointer-events: none;
}
.feature > * { position: relative; z-index: 1; }

.feature-index {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 226px;
  padding-right: 28px;
  border-right: 1px solid var(--line);
}
.feature-index span {
  color: transparent;
  font: italic 400 94px/.8 var(--serif);
  letter-spacing: -.06em;
  -webkit-text-stroke: 1px var(--line-strong);
}
.feature-index small {
  margin-top: 20px;
  color: var(--faint);
  font: 500 8.5px var(--mono);
  letter-spacing: .22em;
}

.feature-body { min-width: 0; }

.post-kicker {
  margin: 0;
  color: var(--accent);
  font: 500 9.5px var(--mono);
  letter-spacing: .13em;
}
.post-kicker span { color: var(--text); }

.feature h3 {
  margin: 14px 0 0;
  font-size: clamp(27px, 3vw, 37px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.feature h3 a { transition: color .2s ease; }
.feature h3 a:hover { color: var(--accent); }

.feature-excerpt {
  max-width: 660px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 21px;
  color: var(--faint);
  font: 500 9.5px var(--mono);
  letter-spacing: .04em;
}
.post-meta time { color: var(--muted); }
.meta-tags { color: var(--accent); opacity: .8; }

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 23px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 500 10.5px var(--mono);
  letter-spacing: .1em;
  cursor: pointer;
}
.read-circle {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 14px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.read-link:hover { color: var(--accent); }
.read-link:hover .read-circle {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translate(2px, -2px);
}

/* List --------------------------------------------------------------------- */

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 27px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font: 500 9px var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.list-tools {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.list-count {
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: none;
}
.clear-filter {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: 500 9.5px var(--mono);
  letter-spacing: .04em;
  text-transform: none;
  cursor: pointer;
}
.clear-filter:hover { text-decoration: underline; }

.post-row {
  position: relative;
  border-bottom: 1px solid var(--line);
  animation: row-in .5s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.post-row::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 25px;
  bottom: 27px;
  width: 1px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .25s ease;
}
.post-row:hover::before { transform: scaleY(1); transform-origin: top; }

.post-row-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 108px;
  gap: 22px;
  align-items: start;
  padding: 23px 0 25px;
  transition: background-color .2s ease;
}
.post-row:hover { background: linear-gradient(90deg, transparent, var(--surface) 55%, transparent); }

.post-index {
  padding-top: 4px;
  color: var(--faint);
  font: 500 9.5px var(--mono);
  letter-spacing: .04em;
}
.post-index::after {
  content: "";
  display: block;
  width: 13px;
  height: 1px;
  margin-top: 8px;
  background: var(--line-strong);
}

.post-body { display: block; min-width: 0; }
.nowrap { white-space: nowrap; }

.post-cat {
  display: block;
  margin: 0 0 6px;
  color: var(--accent);
  font: 500 9px var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.post-title {
  display: block;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -.015em;
  transition: color .2s ease, transform .2s ease;
}
.post-row-link:hover .post-title {
  color: var(--accent);
  transform: translateX(3px);
}

.post-excerpt {
  display: block;
  max-width: 570px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13.4px;
  line-height: 1.8;
}

.post-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-top: 4px;
  text-align: right;
  color: var(--faint);
  font: 500 9.5px var(--mono);
  letter-spacing: .04em;
  white-space: nowrap;
}
.post-date { color: var(--muted); }
.post-arrow {
  margin-top: 1px;
  color: var(--accent);
  font-size: 15px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .2s ease, transform .2s ease;
}
.post-row-link:hover .post-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.list-more-wrap { margin-top: 24px; }
.list-more {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px;
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--muted);
  font: 500 9.5px var(--mono);
  letter-spacing: .14em;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.list-more:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.more-count { color: var(--faint); letter-spacing: .04em; }
.list-more:hover .more-count { color: var(--accent); }

.empty-state {
  margin: 0;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 500 12px var(--mono);
  text-align: center;
  letter-spacing: .04em;
}
.empty-mark {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font: italic 400 38px var(--serif);
  opacity: .55;
}
.empty-state button {
  display: block;
  margin: 14px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}
.empty-state button:hover { text-decoration: underline; }

/* Sidebar ------------------------------------------------------------------ */

.sidebar { min-width: 0; }

.side-block {
  padding: 0 0 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
}
.side-block-last { margin-bottom: 0; }

.side-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.side-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font: 500 8.5px var(--mono);
  letter-spacing: .2em;
}
.side-label::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  flex: none;
}

.side-caption {
  color: var(--faint);
  font: 500 8.5px var(--mono);
  letter-spacing: .06em;
  white-space: nowrap;
}

.side-note {
  margin: 8px 0 0;
  color: var(--faint);
  font: 500 8px var(--mono);
  letter-spacing: .1em;
}

/* Compact ledger shortcut in the sidebar. */
.ledger-quick {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  background: rgba(18, 22, 19, .3);
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.ledger-quick:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.ledger-quick-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
}
.ledger-quick-icon .icon { width: 15px; height: 15px; }
.ledger-quick-copy { min-width: 0; }
.ledger-quick-copy strong {
  display: block;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
}
.ledger-quick-copy small {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font: 500 8.5px var(--mono);
  letter-spacing: .02em;
}
.ledger-quick-arrow {
  color: var(--accent);
  font-size: 14px;
  transition: transform .2s ease;
}
.ledger-quick:hover .ledger-quick-arrow { transform: translateX(3px); }
[data-theme="light"] .ledger-quick { background: rgba(250, 247, 239, .48); }

/* Calendar ----------------------------------------------------------------- */

.cal-nav {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  margin-top: 13px;
}
.cal-nav button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: 500 12px var(--mono);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.cal-nav button:hover { color: var(--accent); border-color: var(--line); }
.cal-nav strong {
  color: var(--text);
  font: 500 10.5px var(--mono);
  letter-spacing: .04em;
  text-align: center;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-top: 9px;
}
.cal-weekdays span {
  color: var(--faint);
  font: 500 8px var(--mono);
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-top: 3px;
}

.cal-day,
.cal-blank {
  aspect-ratio: 1;
  min-height: 32px;
}
.cal-day {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: 500 9.5px var(--mono);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.cal-day:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.cal-day.is-today {
  color: var(--text);
  border-color: var(--accent);
}
.cal-day.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.cal-day.has-post::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}
.cal-day.is-selected.has-post::after { background: var(--accent-ink); }

.cal-note {
  min-height: 36px;
  margin: 12px 0 0;
  color: var(--faint);
  font: 500 10px/1.7 var(--sans);
}
.cal-note strong {
  color: var(--text);
  font-weight: 500;
}
.cal-note button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cal-note button:hover { text-decoration: underline; }

/* Todo --------------------------------------------------------------------- */

.todo-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.todo-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
}
.todo-main {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  cursor: pointer;
}
.todo-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.todo-box {
  position: relative;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1px solid var(--faint);
  border-radius: 2px;
  transition: background-color .16s ease, border-color .16s ease;
}
.todo-check:checked + .todo-box {
  background: var(--accent);
  border-color: var(--accent);
}
.todo-check:checked + .todo-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border-right: 1.5px solid var(--accent-ink);
  border-bottom: 1.5px solid var(--accent-ink);
  transform: rotate(42deg);
}
.todo-check:focus-visible + .todo-box {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.todo-text {
  color: var(--text);
  font-size: 12.8px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  transition: color .16s ease;
}
.todo-check:checked ~ .todo-text {
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.todo-del {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--faint);
  font: 500 13px var(--mono);
  cursor: pointer;
  opacity: 0;
  transition: color .16s ease, opacity .16s ease;
}
.todo-item:hover .todo-del,
.todo-del:focus-visible { opacity: 1; }
.todo-del:hover { color: var(--danger); }

.todo-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 8px;
  margin-top: 8px;
  border-bottom: 1px solid var(--line);
  transition: border-color .2s ease;
}
.todo-add:focus-within { border-bottom-color: var(--accent); }
.todo-add input {
  width: 100%;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  outline: 0;
}
.todo-add input::placeholder { color: var(--faint); }
.todo-add button {
  width: 30px;
  height: 30px;
  align-self: center;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--accent);
  font: 500 16px var(--mono);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.todo-add button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* Tags --------------------------------------------------------------------- */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.tag {
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 500 10px var(--mono);
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.tag.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.tag b {
  margin-left: 3px;
  color: var(--faint);
  font-weight: 400;
}
.tag.is-active b { color: var(--accent); opacity: .65; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}

.about-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 88px var(--pad);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 0;
}

.about-lead {
  padding-right: 72px;
  border-right: 1px solid var(--line);
}

.about-lead h2 {
  margin: 0;
  color: var(--text-strong);
  font: 400 clamp(34px, 4.4vw, 54px)/1.28 var(--serif);
  letter-spacing: -.02em;
}

.about-sign {
  margin: 24px 0 0;
  color: var(--accent);
  font: italic 400 17px var(--serif);
}

.about-copy { padding-left: 72px; }
.about-copy > p {
  max-width: 540px;
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}
.about-copy > p:last-of-type { margin-bottom: 0; }

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  max-width: 540px;
  margin: 34px 0 0;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}
.about-facts div { display: grid; gap: 4px; }
.about-facts dt {
  color: var(--faint);
  font: 500 8px var(--mono);
  letter-spacing: .18em;
}
.about-facts dd {
  margin: 0;
  color: var(--text);
  font: 500 10.5px var(--mono);
  letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-foot {
  background: #060806;
  color: #ece8dc;
}

.foot-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 54px var(--pad) 20px;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ece8dc;
  font-size: 14px;
  letter-spacing: .02em;
}
.foot-logo img {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(236, 232, 220, .18);
  border-radius: 7px;
}
.foot-logo em {
  font: italic 400 20px var(--serif);
  letter-spacing: -.02em;
}
.foot-brand p {
  margin: 14px 0 0;
  color: #899288;
  font-size: 12px;
  line-height: 1.8;
}

.foot-col h3 {
  margin: 2px 0 14px;
  color: #6d766d;
  font: 500 8.5px var(--mono);
  letter-spacing: .2em;
  font-weight: 500;
}
.foot-col a {
  display: block;
  margin-top: 9px;
  color: #b4bcb2;
  font-size: 12px;
  letter-spacing: .02em;
  transition: color .2s ease;
}
.foot-col a:hover { color: #72ddcc; }

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(236, 232, 220, .1);
  color: #626b62;
  font: 500 8px var(--mono);
  letter-spacing: .12em;
}

/* --------------------------------------------------------------------------
   Search dialog
   -------------------------------------------------------------------------- */

.search-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}
.search-dialog::backdrop {
  background: rgba(2, 4, 3, .62);
  -webkit-backdrop-filter: blur(10px) saturate(.9);
  backdrop-filter: blur(10px) saturate(.9);
}

.search-layer {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 24px 40px;
}

.search-panel {
  width: min(680px, 100%);
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--accent);
  background: var(--bg-elev);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
  animation: search-in .24s cubic-bezier(.2, .7, .2, 1) both;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.search-icon {
  width: 19px;
  height: 19px;
  color: var(--accent);
}
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: .01em;
  outline: 0;
  appearance: none;
}
.search-field input::placeholder { color: var(--faint); }
.search-field input::-webkit-search-cancel-button { display: none; }

.search-esc {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.search-esc kbd {
  font-size: 8px;
  background: transparent;
  color: var(--faint);
}
.search-esc:hover kbd { color: var(--accent); border-color: var(--accent); }

.search-hint {
  margin: 0;
  padding: 11px 22px 6px;
  color: var(--faint);
  font: 500 9px var(--mono);
  letter-spacing: .06em;
  min-height: 22px;
}

.search-results {
  flex: 1;
  min-height: 70px;
  margin: 0;
  padding: 3px 10px 10px;
  overflow-y: auto;
  list-style: none;
}

.search-result {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 18px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.search-result .result-cat {
  grid-column: 1;
  color: var(--accent);
  font: 500 8px var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.result-tags {
  margin-left: 5px;
  color: var(--faint);
  letter-spacing: .02em;
  text-transform: none;
}
.search-result .result-title {
  grid-column: 1;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}
.search-result .result-excerpt {
  grid-column: 1;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result .result-date {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  color: var(--faint);
  font: 500 8.5px var(--mono);
  white-space: nowrap;
}
.search-results li.is-active .search-result {
  border-color: var(--line);
  background: var(--surface);
}
.search-results li.is-active .result-title { color: var(--accent); }

.search-result mark {
  padding: 0;
  background: transparent;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

.search-empty {
  padding: 34px 22px 38px;
  color: var(--muted);
  font: 500 11px var(--mono);
  text-align: center;
  letter-spacing: .03em;
}
.search-empty .empty-mark { font-size: 32px; margin-bottom: 8px; }

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-top: 14px;
}
.search-suggestions button {
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 500 9.5px var(--mono);
  cursor: pointer;
}
.search-suggestions button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.search-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 10px 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font: 500 8px var(--mono);
  letter-spacing: .05em;
}
.search-foot span { display: inline-flex; align-items: center; gap: 4px; }

/* --------------------------------------------------------------------------
   Toast + back to top
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 26px;
  max-width: calc(100vw - 32px);
  padding: 11px 17px;
  border: 1px solid rgba(98, 214, 197, .28);
  background: #0b0e0c;
  color: #ece8dc;
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: .02em;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .22s ease, transform .22s ease;
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.to-top {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--muted);
  font: 500 14px var(--mono);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, color .2s ease, border-color .2s ease;
}
.to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   Flash / motion
   -------------------------------------------------------------------------- */

.is-flash { animation: flash 1.5s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes search-in {
  from { opacity: 0; transform: translateY(-10px) scale(.99); }
  to { opacity: 1; transform: none; }
}

@keyframes flash {
  0%, 100% { background-color: transparent; }
  18% { background-color: var(--accent-soft); }
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: .7; }
  50% { transform: translateY(3px); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  :root { --pad: 28px; }
  .archive-grid { grid-template-columns: minmax(0, 1fr) 276px; gap: 44px; }
  .feature { grid-template-columns: 100px minmax(0, 1fr); gap: 26px; padding: 30px 30px 32px; }
  .feature-index span { font-size: 80px; }
  .feature-index { min-height: 210px; padding-right: 22px; }
  .hero-aside { width: 218px; }
}

@media (max-width: 1020px) {
  .archive-grid { grid-template-columns: 1fr; gap: 0; }
  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
    margin-top: 50px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
  }
  .side-block { margin-bottom: 0; }
  .side-block-last { border-bottom: 0; }
  .hero-aside { display: none; }
  .hero-copy { max-width: 760px; }
  .about-inner { gap: 0; }
  .about-lead { padding-right: 48px; }
  .about-copy { padding-left: 48px; }
}

@media (max-width: 860px) {
  .primary-nav { display: none; }
  .head-inner { grid-template-columns: 1fr auto; }
  .login-link { display: none; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 20px; }
  .filters { gap: 18px; }
  .feature { grid-template-columns: 84px minmax(0, 1fr); gap: 24px; }
  .feature-index { min-height: 200px; padding-right: 18px; }
  .feature-index span { font-size: 68px; }
  .foot-top { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; }
}

@media (max-width: 700px) {
  :root { --pad: 20px; --head-h: 64px; }

  .brand-type em { font-size: 19px; }
  .brand-cn { font-size: 9px; letter-spacing: .14em; }
  .brand-mark { width: 28px; height: 28px; }
  .head-actions { gap: 7px; }
  .search-trigger { width: 40px; height: 40px; justify-content: center; padding: 0; }
  .search-trigger-label, .search-kbd { display: none; }
  .icon-btn { width: 40px; height: 40px; }
  .ledger-link {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-color: rgba(242, 238, 227, .2);
    border-radius: 50%;
    opacity: 1;
  }
  .ledger-link .icon { width: 17px; height: 17px; }
  .ledger-link-label { display: none; }
  .site-head.is-stuck .ledger-link { border-color: var(--line); }

  .hero {
    height: 88svh;
    min-height: 600px;
    max-height: 780px;
  }
  .hero-media { background-position: 58% center; }
  .hero-inner {
    padding: calc(var(--head-h) + 30px) var(--pad) 92px;
  }
  .hero-en { font-size: clamp(62px, 18.2vw, 104px); }
  .hero-cn {
    gap: 12px;
    margin-top: 16px;
    font-size: clamp(17px, 4.6vw, 22px);
    letter-spacing: .3em;
  }
  .hero-cn::before { width: 32px; }
  .hero-lede {
    max-width: 380px;
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.82;
  }
  .hero-kicker { font-size: 8.5px; letter-spacing: .17em; }
  .hero-actions { gap: 20px; margin-top: 27px; }
  .btn-primary { height: 44px; padding: 0 17px; }
  .hero-foot-inner { padding: 13px var(--pad); font-size: 7.5px; letter-spacing: .16em; }
  .hero-clock { display: none; }

  .archive { padding-top: 64px; padding-bottom: 84px; }
  .section-title h2 { font-size: 33px; }
  .filters {
    width: calc(100% + 40px);
    margin: 0 -20px;
    padding: 0 20px 2px;
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .archive-grid { margin-top: 30px; }

  .feature {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 25px 21px 27px;
  }
  .feature-index {
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 13px;
    min-height: 0;
    padding: 0 0 13px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .feature-index span { font-size: 56px; }
  .feature-index small { margin: 0 0 6px; }
  .feature h3 { font-size: 25px; line-height: 1.38; }
  .feature-excerpt { font-size: 13.5px; line-height: 1.82; }
  .post-meta { gap: 13px; font-size: 8.5px; }
  .meta-tags { display: none; }
  .read-link { margin-top: 18px; }

  .list-head { margin-top: 22px; }
  .post-row-link {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 13px;
    padding: 20px 0 21px;
  }
  .post-index { font-size: 8.5px; }
  .post-index::after { width: 9px; }
  .post-title { font-size: 18.5px; line-height: 1.45; }
  .post-excerpt { font-size: 12px; line-height: 1.7; }
  .post-aside {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin-top: 2px;
    text-align: left;
    font-size: 8.5px;
  }
  .post-arrow { display: none; }
  .list-more { min-height: 44px; }

  .sidebar {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 44px;
    padding-top: 22px;
  }
  .side-block { padding-bottom: 21px; margin-bottom: 21px; border-bottom: 1px solid var(--line); }
  .side-block-last { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
  .cal-day, .cal-blank { min-height: 36px; }

  .about-inner {
    grid-template-columns: 1fr;
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .about-lead { padding: 0 0 34px; border-right: 0; border-bottom: 1px solid var(--line); }
  .about-lead h2 { font-size: clamp(31px, 9vw, 44px); }
  .about-copy { padding: 34px 0 0; }
  .about-facts { margin-top: 28px; }

  .foot-inner { padding-top: 42px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .search-layer { height: 100%; padding: 0; }
  .search-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: none;
  }
  .search-field { padding: 17px 16px; }
  .search-field input { font-size: 16px; }
  .search-results { max-height: none; }
  .search-foot { justify-content: space-between; gap: 8px; padding: 10px 16px; }
  .search-hint { padding-left: 18px; }

  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
  .toast { bottom: 18px; font-size: 11px; }

  .todo-del { opacity: .6; }
}

@media (max-width: 480px) {
  .head-inner { gap: 20px; }
  .head-actions { gap: 7px; }
}

@media (max-width: 400px) {
  .brand-cn { display: none; }
}

@media (max-width: 390px) {
  .head-inner { gap: 18px; }
  .head-actions { gap: 6px; }
  .hero-cn { letter-spacing: .24em; }
  .feature h3 { font-size: 23px; }
  .post-title { font-size: 17.5px; }
  .list-count { display: none; }
}

@media (max-width: 340px) {
  .ledger-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
