:root {
  color-scheme: dark;
  --ink: #0b0e10;
  --ink-deep: #040506;
  --surface: rgba(8, 11, 13, 0.86);
  --surface-soft: rgba(17, 21, 23, 0.76);
  --surface-solid: #101416;
  --surface-raised: #1a2023;
  --text: #f0f2f2;
  --muted: #adb4b6;
  --faint: #727d81;
  --accent: #9eb9c5;
  --accent-strong: #d5e3e8;
  --amber: #bc986b;
  --line: rgba(199, 218, 226, 0.13);
  --line-strong: rgba(207, 225, 232, 0.22);
  --shadow: rgba(0, 0, 0, 0.68);
  --display: "FZShuTi", "方正舒体", "STXingkai", "华文行楷", "KaiTi", cursive;
  --body-kai: "STKaiti", "华文楷体", "KaiTi", "Kaiti SC", serif;
  --ui: "Microsoft YaHei UI", "Segoe UI Variable Text", "PingFang SC", sans-serif;
  --serif: var(--display);
  --sans: var(--body-kai);
  --mono: "Cascadia Mono", "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --page: min(1400px, calc(100vw - 64px));
  --reading: 720px;
  --header: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --ink: #dce6e9;
  --ink-deep: #cbd9de;
  --surface: rgba(238, 244, 245, 0.88);
  --surface-soft: rgba(226, 236, 239, 0.8);
  --surface-solid: #e8f0f2;
  --surface-raised: #f3f7f8;
  --text: #1b2a33;
  --muted: #586b75;
  --faint: #82939b;
  --accent: #345d70;
  --accent-strong: #203f4e;
  --amber: #8d6844;
  --line: rgba(31, 65, 81, 0.14);
  --line-strong: rgba(31, 65, 81, 0.24);
  --shadow: rgba(23, 49, 61, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink-deep);
  color: var(--text);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "kern" 1, "liga" 1;
  font-size: 16px;
  line-height: 1.82;
  letter-spacing: 0.016em;
  text-rendering: optimizeLegibility;
  transition: color 240ms ease, background-color 240ms ease;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

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

svg {
  display: block;
}

::selection {
  background: var(--accent);
  color: var(--ink-deep);
}

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

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  background: var(--accent-strong);
  color: var(--ink-deep);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.reading-progress {
  position: fixed;
  z-index: 500;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--accent-strong);
  box-shadow: 0 0 14px var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

.reading-progress.active {
  opacity: 1;
}

/* The rain window is the one deliberately expressive element. */
.weather-scene {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background: #6d8ca1;
  pointer-events: none;
}

.weather-image,
.weather-wash,
.weather-glow,
.rain-canvas,
.rain-layer,
.film-grain {
  position: absolute;
  inset: 0;
}

.weather-image {
  inset: 0;
  background: url("./assets/rain-window-city-v1-web.jpg") center / cover no-repeat;
  filter: saturate(0.67) contrast(1.08) brightness(0.61);
  transform: none;
  transition: filter 260ms ease;
}

[data-theme="light"] .weather-image {
  filter: saturate(0.62) contrast(0.94) brightness(1.06);
}

.weather-wash {
  background:
    radial-gradient(circle at 14% 55%, rgba(0, 0, 0, 0.36), transparent 42%),
    linear-gradient(180deg, rgba(2, 4, 5, 0.14) 0%, rgba(8, 24, 32, 0.46) 48%, rgba(24, 61, 78, 0.9) 100%),
    radial-gradient(circle at 50% 13%, rgba(166, 198, 212, 0.09), transparent 42%);
}

[data-theme="light"] .weather-wash {
  background:
    linear-gradient(180deg, rgba(220, 235, 240, 0.08), rgba(202, 220, 227, 0.34) 45%, rgba(207, 221, 225, 0.9)),
    radial-gradient(circle at 50% 10%, rgba(244, 249, 250, 0.25), transparent 48%);
}

.weather-glow {
  left: 52%;
  top: 52%;
  width: 48vw;
  height: 42vh;
  background: radial-gradient(circle, rgba(191, 153, 108, 0.1), transparent 70%);
  filter: blur(40px);
  animation: lamp-breathe 9s ease-in-out infinite alternate;
}

.rain-canvas {
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  mix-blend-mode: screen;
  filter: blur(.12px);
}

.rain-disabled .rain-canvas,
.rain-disabled .rain-layer {
  display: none;
}

[data-theme="light"] .rain-canvas {
  opacity: 0.38;
  mix-blend-mode: multiply;
}

.rain-layer {
  z-index: 1;
  display: none;
  inset: -20% -10%;
  opacity: 0.045;
  transform: rotate(8deg);
  background-image: repeating-linear-gradient(90deg, transparent 0 33px, rgba(230, 244, 249, 0.62) 34px, transparent 35px 76px);
  background-size: 100% 190px;
  mask-image: linear-gradient(180deg, transparent, black 18%, black 72%, transparent);
  animation: rain-fall 14s linear infinite;
}

.rain-layer-near {
  opacity: 0.035;
  background-size: 100% 270px;
  animation-duration: 22s;
  animation-direction: reverse;
}

.gsap-ready .weather-glow {
  animation: none;
  will-change: transform, opacity;
}

.film-grain {
  opacity: 0.055;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

@keyframes rain-fall {
  from { transform: translate3d(0, -8%, 0) rotate(8deg); }
  to { transform: translate3d(0, 8%, 0) rotate(8deg); }
}

@keyframes lamp-breathe {
  from { opacity: 0.52; transform: scale(0.96); }
  to { opacity: 0.9; transform: scale(1.08); }
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  height: var(--header);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 max(24px, calc((100vw - 1400px) / 2));
  border-bottom: 1px solid transparent;
  background: rgba(9, 22, 30, 0);
  box-shadow: none;
  backdrop-filter: blur(0) saturate(100%);
  transition: width 320ms ease, height 320ms ease, margin 320ms ease, border-radius 320ms ease, background-color 320ms ease, border-color 320ms ease, box-shadow 320ms ease, backdrop-filter 320ms ease;
}

.site-header.is-scrolled .header-inner {
  width: calc(100% - 20px);
  height: calc(100% - 10px);
  margin: 5px auto;
  border: 1px solid rgba(226, 241, 247, .11);
  border-radius: 16px;
  background: rgba(5, 7, 8, .24);
  box-shadow: 0 14px 36px -30px rgba(2, 8, 12, .8), inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(22px) saturate(118%);
}

[data-theme="light"] .site-header.is-scrolled .header-inner {
  border-color: rgba(42, 70, 82, .11);
  background: rgba(232, 241, 244, .32);
  box-shadow: 0 14px 36px -30px rgba(28, 55, 68, .42), inset 0 1px 0 rgba(255,255,255,.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 11px;
}

.brand-mark {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid rgba(224, 239, 245, 0.42);
  border-radius: 50%;
  background: #101923 url("./assets/avatar-ze-logo-v1.png") center / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.54), 0 8px 20px -12px rgba(0,0,0,.8);
  transform: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.brand-mark:hover,
.brand-mark:focus-visible {
  border-color: rgba(224, 239, 245, .74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.64), 0 10px 24px -12px rgba(0,0,0,.9);
  transform: translateY(-1px);
}

.brand-mark:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 56%, transparent);
  outline-offset: 3px;
}

.brand-mark:active {
  transform: translateY(0) scale(.97);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  display: none;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  position: relative;
  color: var(--muted);
  font-size: 12px;
  transition: color 180ms ease;
}

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

.desktop-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: -20px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.header-actions {
  display: flex;
  justify-self: end;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  transition: background-color 320ms ease, border-color 320ms ease;
}

.site-header.is-scrolled .header-actions {
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--surface-soft) 28%, transparent);
}

.header-button,
.menu-button {
  border: 0;
  background: transparent;
}

.header-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  gap: 7px;
  padding: 0 9px;
  border-radius: 6px;
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.header-button:hover,
.header-button.is-playing {
  background: rgba(215, 235, 242, .1);
  color: var(--text);
}

.header-button:active,
.menu-button:active {
  transform: translateY(1px);
}

.header-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.header-button-label {
  font-size: 10px;
}

.sound-bars {
  display: flex;
  height: 15px;
  align-items: center;
  gap: 2px;
}

.sound-bars i {
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
}

.is-playing .sound-bars i {
  animation: sound-bar .8s ease-in-out infinite alternate;
}

.is-playing .sound-bars i:nth-child(2) { animation-delay: -.5s; }
.is-playing .sound-bars i:nth-child(3) { animation-delay: -.25s; }

@keyframes sound-bar {
  from { height: 4px; }
  to { height: 14px; }
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px 8px;
  color: var(--text);
}

.menu-button span {
  display: block;
  width: 21px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.mobile-menu {
  position: fixed;
  z-index: 90;
  inset: var(--header) 0 0;
  padding: 36px 24px;
  background: rgba(5, 7, 8, 0.97);
  backdrop-filter: blur(20px);
}

[data-theme="light"] .mobile-menu {
  background: rgba(232, 241, 244, 0.97);
}

.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; }

.mobile-menu nav a {
  display: flex;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 25px;
}

.mobile-menu nav a.active::before {
  width: 18px;
  height: 1px;
  margin-right: 12px;
  background: var(--accent);
  content: "";
}

.mobile-menu-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 438px;
  color: #f0f6f8;
}

.hero-inner {
  display: flex;
  width: var(--page);
  min-height: inherit;
  margin: 0 auto;
  padding: 82px 0 92px;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-topline {
  display: flex;
  max-width: 760px;
  align-items: center;
  gap: 12px;
  margin: 0 0 17px;
  color: rgba(236, 246, 249, 0.72);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-topline::before {
  width: 38px;
  height: 1px;
  background: rgba(235, 246, 249, .65);
  content: "";
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 70px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.12;
  text-wrap: balance;
  text-shadow: 0 2px 34px rgba(4, 13, 19, .36);
}

.hero-summary {
  max-width: 650px;
  margin: 21px 0 0;
  color: rgba(235, 245, 248, .76);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.9;
}

.hero-weather {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  color: rgba(235, 245, 248, .66);
  font-family: var(--mono);
  font-size: 9px;
}

.hero-weather i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bfd7e1;
  box-shadow: 0 0 12px #bfd7e1;
}

.portal,
.subpage-grid {
  display: grid;
  width: var(--page);
  margin: -52px auto 28px;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(235px, 280px);
  gap: 18px;
  align-items: start;
}

.left-stack,
.right-stack,
.main-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.left-stack,
.right-stack {
  position: sticky;
  top: calc(var(--header) + 18px);
}

.panel,
.main-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 26px 70px -48px var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(24px) saturate(116%);
}

.panel {
  border-radius: 14px;
}

.main-panel {
  border-radius: 12px;
}

.profile-panel {
  padding: 24px 22px 23px;
}

.profile-head {
  display: grid;
  gap: 17px;
  margin-bottom: 21px;
}

.profile-avatar {
  display: grid;
  width: min(78%, 176px);
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  justify-self: center;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px 34px 12px 12px;
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 18px 34px -22px rgba(0,0,0,.9);
}

.profile-avatar img,
.about-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-avatar img {
  object-position: center 44%;
}

.profile-identity h2 {
  margin: 0 0 2px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.profile-identity p {
  margin: 0;
  color: var(--faint);
  font-size: 10px;
}

.status-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
}

.status-line i {
  width: 5px;
  height: 5px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(170, 200, 214, .09);
  flex: 0 0 auto;
}

.profile-bio {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.9;
}

.profile-links {
  display: grid;
  justify-items: start;
  gap: 5px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.profile-links a {
  color: var(--accent);
  font-size: 11px;
  white-space: nowrap;
}

.profile-links a:hover { color: var(--accent-strong); }

.profile-email {
  display: flex;
  width: 100%;
  min-height: 30px;
  align-items: center;
  gap: 9px;
  padding: 3px 0;
  font-family: var(--ui);
  font-size: 12px !important;
  letter-spacing: -.015em;
  transition: color 180ms ease;
}

.profile-email svg {
  width: 15.5px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.profile-socials {
  display: flex;
  align-items: center;
  gap: 7px;
}

.social-handle {
  position: relative;
  display: inline-grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
  color: var(--text);
  cursor: help;
  outline: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.profile-links .social-handle { color: var(--text); }

.douyin-handle svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  filter: drop-shadow(-1px 0 #25f4ee) drop-shadow(1px 0 #fe2c55);
}

.social-handle::after {
  position: absolute;
  z-index: 10;
  bottom: calc(100% + 10px);
  left: 50%;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(5,7,8,.94);
  box-shadow: 0 14px 34px -18px rgba(0,0,0,.95);
  color: var(--text);
  content: attr(data-tooltip);
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: .01em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 5px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.social-handle:hover,
.social-handle:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

.social-handle:hover::after,
.social-handle:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.github-handle svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.wechat-handle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.qq-handle .qq-logo {
  display: block;
  width: 10px;
  height: 12px;
  fill: currentColor;
  transform: translateY(-.15px);
  transition: transform 180ms ease;
}

.wechat-handle:hover,
.wechat-handle:focus-visible {
  color: #71d36f;
}

.qq-handle:hover,
.qq-handle:focus-visible {
  border-color: rgba(255, 255, 255, .28);
}

.qq-handle:hover .qq-logo,
.qq-handle:focus-visible .qq-logo {
  transform: translateY(-1px) scale(1.04);
}

.side-nav {
  padding: 9px;
}

.side-nav a {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.side-nav a span:last-child {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.side-nav a:hover {
  background: rgba(207, 228, 237, .08);
  color: var(--text);
  transform: translateX(2px);
}

.quote-panel {
  padding: 21px 20px 20px;
}

.quote-panel > span,
.panel-label {
  display: block;
  margin-bottom: 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.quote-panel blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.9;
}

.quote-panel cite {
  display: block;
  margin-top: 12px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 9px;
  font-style: normal;
}

.welcome-panel {
  position: relative;
  min-height: 252px;
  padding: 34px 38px 38px;
  overflow: hidden;
}

.welcome-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 43%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent));
  content: "";
}

.welcome-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.welcome-eyebrow::before {
  width: 21px;
  height: 1px;
  background: currentColor;
  content: "";
}

.welcome-panel h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.42;
  text-wrap: balance;
}

.welcome-panel p:last-child {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
}

.editorial-section {
  padding: 30px 38px 35px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line-strong);
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.section-head span,
.section-head a {
  color: var(--faint);
  font-size: 9px;
}

.section-head a {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 180ms ease, color 180ms ease;
}

.section-head a:hover { border-color: var(--accent); color: var(--accent-strong); }

.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 24px;
  padding: 10px 0 27px;
  border-bottom: 1px solid var(--line);
}

.lead-story h3 {
  max-width: 620px;
  margin: 5px 0 10px;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.3;
  text-wrap: balance;
}

.lead-story p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.story-meta {
  display: flex;
  gap: 9px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.lead-date {
  padding-top: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
}

.lead-date strong {
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 39px;
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: 1;
}

.lead-story:hover h3 { color: var(--accent-strong); }

.story-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms var(--ease), color 180ms ease;
}

.story-row:last-child { border-bottom: 0; }
.story-row time { color: var(--faint); font-family: var(--mono); font-size: 8px; }
.story-row h3 { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.story-row span {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-size: 8px;
}
.story-row:hover { padding-right: 8px; padding-left: 8px; color: var(--accent-strong); }

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 0;
  background: transparent;
}

.note-card {
  min-height: 176px;
  padding: 20px;
  background: transparent;
  transition: background-color 180ms ease, transform 180ms var(--ease);
}

.note-card time {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.note-card p {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.85;
}

.note-card:hover {
  z-index: 1;
  background: var(--surface-raised);
  transform: translateY(-3px);
}

.player-panel {
  position: relative;
  padding: 18px 17px 17px;
  overflow: hidden;
  border-color: rgba(189, 211, 220, .15);
  background:
    linear-gradient(145deg, rgba(18, 26, 31, .95), rgba(4, 8, 11, .97) 52%, rgba(8, 15, 19, .96)),
    var(--surface);
  box-shadow:
    0 34px 72px -46px rgba(1, 8, 12, .98),
    inset 0 1px 0 rgba(237, 247, 250, .08),
    inset 1px 0 0 rgba(237, 247, 250, .025);
}

.player-panel::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(108deg, transparent 0 34%, rgba(190, 219, 230, .035) 43%, transparent 52%),
    radial-gradient(circle at 82% 8%, rgba(186, 143, 91, .055), transparent 28%);
  content: "";
  pointer-events: none;
}

.player-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-top .panel-label { margin: 0; }

.player-live {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: .14em;
}

.player-live i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.vinyl-stage {
  position: relative;
  width: 100%;
  height: 196px;
  margin: 15px auto 17px;
  overflow: hidden;
  border: 1px solid rgba(211, 229, 235, .11);
  border-radius: 10px 26px 10px 10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 24%),
    repeating-linear-gradient(0deg, rgba(224, 237, 241, .018) 0 1px, transparent 1px 3px),
    linear-gradient(145deg, #131b1f, #080d10 58%, #10171a);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .48),
    inset 0 16px 34px rgba(255,255,255,.015),
    0 18px 30px -22px rgba(0,0,0,.9);
}

.vinyl-stage::before {
  position: absolute;
  z-index: 4;
  inset: -50% 37% -50% -12%;
  background: linear-gradient(100deg, transparent 39%, rgba(213, 234, 241, .065) 48%, rgba(213, 234, 241, .015) 55%, transparent 64%);
  transform: rotate(-5deg);
  content: "";
  pointer-events: none;
}

.vinyl-stage::after {
  position: absolute;
  z-index: 5;
  right: 10px;
  bottom: 8px;
  color: rgba(205, 221, 226, .26);
  content: "33 ⅓  ·  STEREO";
  font-family: var(--mono);
  font-size: 5px;
  letter-spacing: .13em;
}

.platter {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 10px;
  display: grid;
  width: 172px;
  height: 172px;
  place-items: center;
  border: 1px solid rgba(207, 224, 229, .16);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 70%, rgba(212, 226, 231, .07) 70.5% 72%, transparent 72.5%),
    radial-gradient(circle, #11191d 0 67%, #263238 67.5% 69%, #080d10 69.5% 73%, #39464b 73.5% 74.5%, #101619 75%);
  box-shadow:
    0 17px 22px -12px rgba(0, 0, 0, .92),
    inset 0 0 0 1px rgba(255,255,255,.025);
}

.vinyl {
  position: relative;
  z-index: 1;
  display: grid;
  width: 158px;
  height: 158px;
  place-items: center;
  border: 1px solid rgba(222, 238, 243, .1);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 2px, rgba(196, 219, 226, .055) 2.4px 3px),
    conic-gradient(from 18deg, #030607, #152126 8%, #05090b 18%, #1e2f36 29%, #040809 42%, #17262c 56%, #020506 70%, #1b2b31 83%, #030607);
  box-shadow:
    inset 0 0 28px rgba(0,0,0,.82),
    inset 0 0 0 12px rgba(0,0,0,.13),
    0 8px 16px rgba(0,0,0,.65);
}

.player-panel.is-playing .vinyl {
  animation: vinyl-spin 4.8s linear infinite;
  will-change: transform;
}

.vinyl::before {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: conic-gradient(from 128deg, transparent 0 29%, rgba(209, 230, 237, .13) 34%, transparent 40% 71%, rgba(255,255,255,.04) 77%, transparent 83%);
  content: "";
}

.vinyl::after {
  position: absolute;
  z-index: 3;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d4dde0;
  box-shadow: 0 0 0 1px #4b5c62, 0 1px 5px rgba(0,0,0,.8);
  content: "";
}

.record-label {
  position: relative;
  z-index: 2;
  display: grid;
  width: 55px;
  height: 55px;
  place-content: center;
  border: 1px solid rgba(233, 244, 247, .15);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 27%, rgba(233, 245, 248, .18), transparent 25%),
    linear-gradient(145deg, #617d89, #263f4a 72%);
  box-shadow: inset 0 0 18px rgba(0,0,0,.26), 0 2px 7px rgba(0,0,0,.5);
  color: rgba(238, 246, 248, .82);
  text-align: center;
}

.record-label span {
  font-family: var(--mono);
  font-size: 4px;
  letter-spacing: .12em;
}

.record-label b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: .9;
}

.tonearm-base {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 13px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(228, 238, 241, .25);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #d4dcde, #738086 33%, #252e32 37% 59%, #919ca0 62%, #20282b 68%);
  box-shadow: 0 5px 12px rgba(0,0,0,.56);
}

.tonearm {
  position: absolute;
  z-index: 4;
  top: 32px;
  right: 27px;
  width: 63px;
  height: 111px;
  border-top: 3px solid #b8c0c2;
  border-right: 3px solid #808b8f;
  border-radius: 0 31px 0 0;
  filter: drop-shadow(2px 4px 3px rgba(0,0,0,.6));
  transform: rotate(-13deg);
  transform-origin: calc(100% - 2px) 1px;
  transition: transform 650ms cubic-bezier(.2,.8,.2,1);
}

.tonearm::before {
  position: absolute;
  right: -8px;
  bottom: -4px;
  width: 17px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, #222a2d, #869095 72%, #262e31);
  box-shadow: inset 0 1px rgba(255,255,255,.18);
  content: "";
  transform: rotate(18deg);
}

.tonearm i {
  position: absolute;
  right: -4px;
  bottom: -8px;
  width: 2px;
  height: 7px;
  background: #b47749;
  box-shadow: 0 0 5px rgba(190, 121, 69, .45);
  transform: rotate(18deg);
}

.player-panel.is-playing .tonearm { transform: rotate(7deg); }

.deck-led {
  position: absolute;
  right: 19px;
  bottom: 21px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6d4b34;
  box-shadow: 0 0 0 1px rgba(0,0,0,.48);
  transition: background-color 240ms ease, box-shadow 240ms ease;
}

.player-panel.is-playing .deck-led {
  background: #d29a64;
  box-shadow: 0 0 9px rgba(210, 154, 100, .72);
}

.track-copy {
  position: relative;
  z-index: 2;
  text-align: left;
}

.track-copy small {
  display: block;
  margin-bottom: 5px;
  color: rgba(177, 198, 206, .42);
  font-family: var(--mono);
  font-size: 5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.track-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.track-copy span {
  color: var(--faint);
  font-size: 8px;
}

.player-progress {
  position: relative;
  height: 10px;
  margin: 14px 0 4px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.player-progress::before {
  position: absolute;
  inset: 4px 0;
  border-radius: 2px;
  background: rgba(174, 198, 207, .16);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.6);
  content: "";
}

.player-progress i {
  position: absolute;
  z-index: 1;
  inset: 4px auto 4px 0;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #738f9b, #c0d0d5);
  box-shadow: 0 0 7px rgba(157, 190, 202, .24);
}

.player-progress:focus-visible::before {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent);
}

.player-time {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

.player-controls {
  display: grid;
  grid-template-columns: 1fr 42px 1fr;
  align-items: center;
  margin-top: 10px;
}

.player-controls button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  justify-self: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.player-controls button:hover { background: rgba(211, 231, 238, .09); color: var(--text); }
.player-controls button:active { transform: scale(.94); }
.player-controls button:disabled { visibility: hidden; }

.player-controls .player-main {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(235, 245, 248, .34);
  background:
    radial-gradient(circle at 36% 29%, rgba(255,255,255,.36), transparent 22%),
    linear-gradient(145deg, #d9e2e5, #8e9da2 64%, #e0e7e9);
  box-shadow:
    0 7px 15px -7px rgba(0,0,0,.92),
    inset 0 0 0 1px rgba(255,255,255,.24),
    inset 0 -3px 6px rgba(50, 66, 72, .25);
  color: #142027;
}

.player-controls .player-main:hover {
  background:
    radial-gradient(circle at 36% 29%, rgba(255,255,255,.45), transparent 22%),
    linear-gradient(145deg, #e4ecee, #9baab0 64%, #e7edef);
  box-shadow: 0 9px 18px -8px rgba(0,0,0,.95), inset 0 0 0 1px rgba(255,255,255,.3);
}

.player-controls .player-main:focus-visible {
  outline: 2px solid rgba(182, 209, 219, .68);
  outline-offset: 3px;
}

.player-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
}

.player-icon::before {
  position: absolute;
  top: 2px;
  left: 4px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  content: "";
}

.player-main.is-playing .player-icon::before,
.player-main.is-playing .player-icon::after {
  position: absolute;
  top: 2px;
  width: 3px;
  height: 10px;
  border: 0;
  border-radius: 1px;
  background: currentColor;
  content: "";
}

.player-main.is-playing .player-icon::before { left: 3px; }
.player-main.is-playing .player-icon::after { right: 3px; }

@keyframes vinyl-spin { to { transform: rotate(360deg); } }

.today-panel { padding: 21px 20px 18px; }

.today-time {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.today-time strong {
  font-family: var(--serif);
  font-size: 37px;
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.today-time span {
  color: var(--faint);
  font-size: 9px;
  text-align: right;
}

.site-stat-list {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.site-stat-list div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.site-stat-list strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
}

.tag-panel { padding: 20px; }

.tag-cloud {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.tag-cloud a,
.tag-cloud button {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(212, 231, 238, .04);
  color: var(--muted);
  font-size: 9px;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.tag-cloud a:hover,
.tag-cloud button:hover { border-color: var(--line-strong); background: rgba(212,231,238,.08); color: var(--text); }

.subpage-grid {
  margin-top: -36px;
}

.page-panel {
  min-height: 540px;
  padding: 42px 44px 54px;
}

.page-title {
  margin-bottom: 34px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line-strong);
}

.page-title .eyebrow {
  margin: 0 0 11px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.page-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -.045em;
}

.page-title > p:last-child {
  max-width: 600px;
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
}

.archive-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.tag-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-button {
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--faint);
  font-size: 9px;
}

.tag-button:hover,
.tag-button.active {
  border-color: var(--line);
  background: rgba(208,229,237,.07);
  color: var(--text);
}

.archive-search input {
  width: 170px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  outline: 0;
  background: transparent;
  font-size: 10px;
}

.archive-post {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 27px 0;
  border-top: 1px solid var(--line);
}

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

.archive-meta {
  display: grid;
  gap: 5px;
  padding-top: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.archive-post h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.35;
}

.archive-post p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.archive-cta {
  align-self: center;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--faint);
  font-size: 9px;
  transition: border-color 180ms ease, color 180ms ease;
}

.archive-post:hover h3,
.archive-post:hover .archive-cta { color: var(--accent-strong); }
.archive-post:hover .archive-cta { border-color: var(--accent); }

.notes-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }

.note-item {
  position: relative;
  padding: 25px 28px 27px;
  background: color-mix(in srgb, var(--surface-solid) 91%, transparent);
}

.note-item.selected { box-shadow: inset 3px 0 0 var(--accent); }
.note-meta { display: flex; gap: 12px; color: var(--faint); font-family: var(--mono); font-size: 8px; }
.note-item p { max-width: 650px; margin: 15px 0 0; font-family: var(--serif); font-size: 15px; line-height: 1.95; }
.note-item > a { position: absolute; top: 23px; right: 23px; color: var(--faint); font-family: var(--mono); font-size: 9px; }

.article-wrap {
  width: min(1180px, calc(100vw - 64px));
  margin: -48px auto 48px;
}

.article-paper {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  box-shadow: 0 34px 90px -58px var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(28px) saturate(112%);
}

.article-header {
  padding: 61px 9% 50px;
  border-bottom: 1px solid var(--line-strong);
}

.back-link {
  display: inline-block;
  margin-bottom: 34px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--faint);
  font-size: 10px;
  transition: border-color 180ms ease, color 180ms ease;
}

.back-link:hover { border-color: var(--accent); color: var(--accent-strong); }

.article-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 17px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 8px;
}

.article-header h1 {
  max-width: 860px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.2;
  text-wrap: balance;
}

.article-deck {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
}

.article-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, var(--reading)) 120px;
  gap: 48px;
  justify-content: center;
  padding: 56px 5% 70px;
}

.article-aside {
  position: sticky;
  top: calc(var(--header) + 30px);
  align-self: start;
}

.article-aside > p {
  margin: 0 0 13px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
}

.article-aside button {
  display: block;
  width: 100%;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  text-align: left;
}

.article-aside button:hover { color: var(--accent); }

.article-content {
  min-width: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2.06;
}

.article-content > *:first-child { margin-top: 0; }
.article-content p { margin: 0 0 1.55em; }
.article-content h2 { scroll-margin-top: calc(var(--header) + 32px); margin: 2.5em 0 .8em; font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.35; }
.article-content ul { margin: 0 0 1.6em; padding-left: 1.2em; }
.article-content li { margin: .35em 0; }
.article-content blockquote { margin: 2em -5%; padding: 22px 5%; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); color: var(--accent-strong); font-size: 20px; line-height: 1.8; }
.article-content blockquote p { margin: 0; }

.article-actions {
  position: sticky;
  top: calc(var(--header) + 30px);
  display: grid;
  gap: 8px;
  align-self: start;
}

.article-actions button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(209, 230, 238, .05);
  color: var(--muted);
  font-size: 9px;
}

.article-actions button:hover { border-color: var(--line-strong); color: var(--text); }

.next-post {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 25px;
  align-items: center;
  padding: 31px 9%;
  border-top: 1px solid var(--line-strong);
}

.next-post span { color: var(--faint); font-size: 9px; }
.next-post strong { font-family: var(--serif); font-size: 19px; }
.next-post .next-post-cta { padding-bottom: 2px; border-bottom: 1px solid var(--line-strong); }
.next-post:hover strong { color: var(--accent-strong); }
.next-post:hover .next-post-cta { border-color: var(--accent); color: var(--accent-strong); }

.about-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 50px; }
.about-profile { position: sticky; top: calc(var(--header) + 24px); align-self: start; }
.about-avatar { display: grid; width: 160px; aspect-ratio: 1 / 1; overflow: hidden; place-items: center; border: 1px solid var(--line-strong); border-radius: 14px 38px 14px 14px; background: var(--surface-raised); box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 22px 42px -26px rgba(0,0,0,.9); }
.about-profile h3 { margin: 20px 0 3px; font-family: var(--serif); font-size: 21px; }
.about-profile p { margin: 0 0 16px; color: var(--muted); font-size: 10px; }
.about-profile a { color: var(--accent); font-size: 10px; }
.about-copy { max-width: 680px; }
.about-copy section { padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.about-copy h3 { margin: 0 0 15px; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.about-copy p,.about-copy li { color: var(--muted); font-family: var(--serif); font-size: 14px; line-height: 1.95; }

.guest-intro {
  padding: 25px 27px;
  border-left: 2px solid var(--accent);
  background: rgba(205, 228, 237, .05);
  font-family: var(--serif);
  font-size: 14px;
}

.guest-form { display: grid; gap: 14px; margin: 32px 0 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guest-form label { display: grid; gap: 6px; color: var(--faint); font-size: 9px; }
.guest-form input,.guest-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; outline: 0; background: rgba(207,228,236,.05); color: var(--text); transition: border-color 180ms ease, background-color 180ms ease; }
.guest-form input { height: 42px; padding: 0 12px; }
.guest-form textarea { min-height: 120px; padding: 11px 12px; resize: vertical; }
.guest-form input:focus,.guest-form textarea:focus { border-color: var(--accent); background: rgba(207,228,236,.08); }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.form-bottom small { color: var(--faint); font-size: 8px; }
.submit-button { padding: 9px 17px; border: 0; border-radius: 5px; background: var(--accent-strong); color: var(--ink-deep); font-size: 10px; font-weight: 600; }
.submit-button:active { transform: translateY(1px); }

.guest-list-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--line-strong); }
.guest-list-head h3 { margin: 0; font-family: var(--serif); font-size: 22px; }
.guest-list-head span { color: var(--faint); font-family: var(--mono); font-size: 8px; }
.guest-message { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.guest-avatar { display: grid; width: 38px; height: 42px; place-items: center; border-radius: 7px 13px 7px 7px; background: var(--surface-raised); color: var(--accent); font-family: var(--serif); }
.guest-message-head { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.guest-message-head strong { font-family: var(--serif); font-size: 14px; }
.guest-message-head time { color: var(--faint); font-family: var(--mono); font-size: 7px; }
.guest-message p { margin: 8px 0 0; color: var(--muted); font-family: var(--serif); font-size: 13px; }

/* Keep the more decorative face in display roles; long reading stays calmer. */
.hero-summary,
.profile-bio,
.welcome-panel p:last-child,
.note-card p,
.page-title > p:last-child,
.note-item p,
.article-deck,
.article-content,
.about-copy p,
.about-copy li,
.guest-intro,
.guest-message p {
  font-family: var(--body-kai);
  font-weight: 500;
}

.brand-copy strong,
.hero h1,
.section-head h2,
.track-copy strong,
.page-title h2,
.archive-post h3,
.article-header h1,
.article-content h2,
.next-post strong,
.about-profile h3,
.about-copy h3,
.guest-list-head h3,
.not-found h1,
.site-footer strong,
.search-result strong {
  font-family: var(--display);
  font-weight: 500;
}

.lead-story h3,
.story-row h3 {
  font-family: var(--body-kai);
  font-weight: 400;
  letter-spacing: .012em;
}

.welcome-panel h2 {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .01em;
}

.desktop-nav a,
.mobile-menu nav a,
button,
input,
textarea,
select {
  font-family: var(--ui);
}

.empty-state { padding: 50px 0; text-align: center; }
.empty-state h3 { margin: 0 0 8px; font-family: var(--serif); }
.empty-state p { margin: 0; color: var(--muted); font-size: 11px; }

.not-found { display: grid; width: min(680px, calc(100vw - 48px)); min-height: 70vh; margin: 0 auto; place-content: center; text-align: center; }
.not-found span { color: var(--faint); font-family: var(--mono); font-size: 10px; }
.not-found h1 { margin: 10px 0; font-family: var(--serif); font-size: 50px; font-weight: 500; }
.not-found p { margin: 0 0 22px; color: var(--muted); }
.not-found a { color: var(--accent); }

.site-footer {
  display: grid;
  width: var(--page);
  grid-template-columns: 1fr auto auto;
  gap: 36px;
  align-items: end;
  margin: 0 auto;
  padding: 17px 0 19px;
  border-top: 1px solid rgba(220, 237, 244, .14);
  color: rgba(223, 237, 242, .66);
}

[data-theme="light"] .site-footer { color: var(--muted); border-color: var(--line); }
.site-footer > div { display: grid; }
.site-footer strong { font-family: var(--serif); font-size: 15px; }
.site-footer span,.site-footer p,.site-footer a { font-size: 9px; }
.site-footer p { margin: 0; font-family: var(--mono); }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a:hover { color: var(--text); }

.admin-shell {
  position: relative;
  width: var(--page);
  margin: calc(var(--header) + 46px) auto 28px;
  color: var(--text);
  font-family: var(--ui);
}

.admin-gate {
  width: min(680px, calc(100vw - 40px));
  min-height: calc(100dvh - var(--header) - 140px);
  padding: 54px 58px 62px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  box-shadow: 0 30px 80px -48px var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(28px) saturate(110%);
}

.admin-kicker,
.admin-editor-heading span,
.admin-preview > span {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .13em;
}

.admin-gate h1,
.admin-topbar h1 {
  margin: 13px 0 16px;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.admin-gate > p {
  max-width: 520px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.admin-gate code {
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(158,185,197,.1);
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: .82em;
}

.admin-gate ol {
  margin: 0 0 32px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 13px;
}

.admin-back {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--accent-strong);
  font-size: 12px;
}

.admin-login {
  display: grid;
  max-width: 440px;
  gap: 18px;
  margin: 36px 0 28px;
}

.admin-login label,
.admin-fields label,
.admin-compose > label {
  display: grid;
  gap: 7px;
}

.admin-login label > span,
.admin-fields label > span,
.admin-compose label > span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
}

.admin-login input,
.admin-fields input,
.admin-fields textarea,
.admin-fields select,
.admin-compose textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: none;
  background: rgba(3,6,8,.28);
  color: var(--text);
  font-family: var(--ui);
  font-size: 13px;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.admin-login input,
.admin-fields input,
.admin-fields select {
  min-height: 43px;
  padding: 0 12px;
}

.admin-fields textarea { padding: 11px 12px; resize: vertical; }

.admin-login input:focus,
.admin-fields input:focus,
.admin-fields textarea:focus,
.admin-fields select:focus,
.admin-compose textarea:focus {
  border-color: var(--accent);
  background: rgba(9,15,18,.54);
  box-shadow: 0 0 0 3px rgba(158,185,197,.08);
}

.admin-login button,
.admin-editor-actions button,
.admin-topbar button,
.admin-index-head button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(158,185,197,.06);
  color: var(--muted);
  font-family: var(--ui);
  font-size: 11px;
  transition: transform 160ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.admin-login button {
  min-height: 45px;
  border-color: rgba(158,185,197,.32);
  background: var(--accent);
  color: #101719;
  font-weight: 600;
}

.admin-login button:hover,
.admin-editor-actions button:hover,
.admin-topbar button:hover,
.admin-index-head button:hover {
  border-color: var(--line-strong);
  background: rgba(158,185,197,.13);
  color: var(--text);
}

.admin-login button:active,
.admin-editor-actions button:active,
.admin-topbar button:active,
.admin-index-head button:active { transform: translateY(1px); }

.admin-form-status {
  min-height: 20px;
  margin: 0;
  color: var(--accent-strong);
  font-size: 11px;
}

.admin-form-status.error { color: #d49a91; }

.admin-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
}

.admin-topbar h1 { margin-bottom: 0; font-size: 48px; }
.admin-topbar > div:last-child { display: flex; align-items: center; gap: 10px; }
.admin-topbar a { margin-right: 8px; padding-bottom: 2px; border-bottom: 1px solid var(--line-strong); color: var(--accent-strong); font-size: 11px; }

.admin-tabs {
  display: flex;
  gap: 30px;
  margin: 24px 0 18px;
}

.admin-tabs button {
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--faint);
  font-size: 13px;
}

.admin-tabs button span { margin-left: 5px; color: var(--faint); font-family: var(--mono); font-size: 9px; }
.admin-tabs button.active { border-color: var(--accent); color: var(--text); }

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

.admin-index,
.admin-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 24px 62px -48px var(--shadow), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(22px);
}

.admin-index {
  position: sticky;
  top: calc(var(--header) + 18px);
  max-height: calc(100dvh - var(--header) - 48px);
  overflow: auto;
}

.admin-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.admin-index-head button { min-height: 30px; padding: 0 9px; }

.admin-entry {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition: background-color 180ms ease, color 180ms ease;
}

.admin-entry:hover,
.admin-entry.active { background: rgba(158,185,197,.08); color: var(--text); }
.admin-entry.active { box-shadow: inset 2px 0 0 var(--accent); }
.admin-entry span { display: grid; min-width: 0; gap: 3px; }
.admin-entry b { overflow: hidden; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.admin-entry small,.admin-entry time { color: var(--faint); font-family: var(--mono); font-size: 8px; }
.admin-entry time { flex: none; }
.admin-empty { padding: 34px 18px; color: var(--faint); font-size: 11px; text-align: center; }

.admin-editor { padding: 24px; }

.admin-editor-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.admin-editor-heading h2 { margin: 3px 0 0; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.admin-editor-actions { display: flex; gap: 8px; }
.admin-editor-actions .primary { border-color: rgba(158,185,197,.34); background: var(--accent); color: #101719; font-weight: 600; }
.admin-editor-actions .danger { color: #c78980; }

.admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-fields .wide { grid-column: 1 / -1; }

.admin-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.admin-compose textarea {
  min-height: 610px;
  padding: 16px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
}

.admin-preview {
  min-width: 0;
  min-height: 610px;
  padding: 16px 22px 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(3,6,8,.18);
}

.admin-preview > span { display: block; margin-bottom: 24px; }
.admin-preview .article-content { font-size: 15px; }
.admin-preview-empty { color: var(--faint); }
.admin-note-editor { max-width: 900px; }
.admin-loading { min-height: 420px; padding: 80px 0; color: var(--faint); font-family: var(--mono); font-size: 10px; text-align: center; }

/* Readability pass: keep hierarchy, but avoid sub-10px text on desktop. */
.brand-copy small,
.mobile-menu-foot,
.hero-topline,
.hero-weather,
.quote-panel cite,
.track-copy span,
.today-time span,
.site-stat-list strong,
.tag-cloud a,
.tag-cloud button,
.section-head span,
.section-head a,
.archive-cta,
.note-item > a,
.next-post span,
.guest-form label,
.site-footer span,
.site-footer p,
.site-footer a,
.admin-form-status,
.admin-entry b,
.search-result small {
  font-size: 10px;
}

.side-nav a span:last-child,
.quote-panel > span,
.panel-label,
.welcome-eyebrow,
.story-row time,
.story-row span,
.note-card time,
.player-live,
.player-time,
.page-title .eyebrow,
.archive-meta,
.note-meta,
.article-meta,
.form-bottom small,
.guest-list-head span,
.guest-message-head time,
.admin-kicker,
.admin-editor-heading span,
.admin-preview > span,
.admin-tabs button span,
.admin-index-head,
.admin-entry small,
.admin-entry time,
.dialog-close,
.search-result > span {
  font-size: 9px;
}

.search-result b { font-size: 10px; }

.search-dialog {
  width: min(660px, calc(100vw - 32px));
  max-height: min(700px, calc(100vh - 40px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(7, 10, 12, .96);
  color: var(--text);
  box-shadow: 0 34px 100px rgba(0,0,0,.55);
  backdrop-filter: blur(30px);
}

[data-theme="light"] .search-dialog { background: rgba(236,244,246,.96); }
.search-dialog::backdrop { background: rgba(4, 12, 18, .62); backdrop-filter: blur(7px); }
.search-shell { max-height: inherit; overflow: auto; }
.search-header { display: flex; align-items: center; gap: 12px; padding: 15px; border-bottom: 1px solid var(--line); }
.search-field { display: flex; flex: 1; align-items: center; gap: 10px; }
.search-field svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 14px; }
.dialog-close { padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--faint); font-family: var(--mono); font-size: 8px; }
.search-results { padding: 8px; }
.search-result { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 13px 12px; border-radius: 7px; }
.search-result:hover { background: rgba(207,228,236,.07); }
.search-result > span { color: var(--amber); font-size: 8px; }
.search-result div { display: grid; }
.search-result strong { overflow: hidden; font-family: var(--serif); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.search-result small { color: var(--faint); font-size: 8px; }
.search-result b { color: var(--faint); font-weight: 400; }
.search-empty { padding: 45px; color: var(--muted); text-align: center; }

.toast {
  position: fixed;
  z-index: 600;
  right: 24px;
  bottom: 24px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-raised);
  box-shadow: 0 14px 36px var(--shadow);
  color: var(--text);
  font-size: 10px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms var(--ease);
}

.toast.visible { opacity: 1; transform: translateY(0); }
.noscript { position: fixed; z-index: 1000; right: 0; bottom: 0; left: 0; padding: 10px; background: #7c3d2e; color: white; text-align: center; }

@media (max-width: 1180px) {
  :root { --page: min(1080px, calc(100vw - 40px)); }
  .portal,.subpage-grid { grid-template-columns: 220px minmax(0, 1fr) 240px; gap: 14px; }
  .profile-panel,.quote-panel,.today-panel,.tag-panel,.player-panel { padding-right: 17px; padding-left: 17px; }
  .welcome-panel,.editorial-section { padding-right: 30px; padding-left: 30px; }
  .article-layout { grid-template-columns: 130px minmax(0, var(--reading)); }
  .article-actions { display: none; }
}

@media (max-width: 940px) {
  :root { --page: min(760px, calc(100vw - 32px)); --header: 64px; }
  .header-inner { grid-template-columns: 1fr auto; padding: 0 16px; }
  .desktop-nav { display: none; }
  .header-button-label { display: none; }
  .menu-button { display: block; }
  .hero { min-height: 390px; }
  .hero-inner { padding-bottom: 74px; }
  .portal,.subpage-grid { grid-template-columns: minmax(0,1fr); margin-top: -36px; }
  .left-stack,.right-stack { position: static; }
  .left-stack { grid-template-columns: 1fr 1fr; }
  .left-stack .quote-panel { display: none; }
  .right-stack { grid-template-columns: 1.1fr .9fr; }
  .right-stack .tag-panel { display: none; }
  .article-wrap { width: min(760px, calc(100vw - 32px)); }
  .article-layout { grid-template-columns: 1fr; padding-right: 9%; padding-left: 9%; }
  .article-aside { position: static; display: none; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer nav { grid-column: 1 / -1; }
  .admin-topbar { align-items: flex-start; flex-direction: column; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-index { position: static; max-height: 300px; }
  .admin-compose { grid-template-columns: 1fr; }
  .admin-compose textarea,.admin-preview { min-height: 460px; }
}

@media (max-width: 640px) {
  :root { --page: calc(100vw - 24px); }
  body { font-size: 14px; }
  .brand-copy small { display: none; }
  .header-button { padding: 0 8px; }
  .hero { min-height: 350px; }
  .hero-inner { padding: 64px 4px 62px; }
  .hero h1 { font-size: 41px; }
  .hero-summary { font-size: 13px; }
  .portal,.subpage-grid { margin-bottom: 28px; }
  .left-stack,.right-stack { grid-template-columns: 1fr; }
  .side-nav,.today-panel { display: none; }
  .welcome-panel { min-height: 0; padding: 28px 23px 31px; }
  .welcome-panel h2 { font-size: 27px; }
  .editorial-section,.page-panel { padding: 27px 22px 34px; }
  .lead-story { grid-template-columns: 1fr; }
  .lead-date { display: none; }
  .story-row { grid-template-columns: 50px minmax(0,1fr); }
  .story-row span { display: none; }
  .notes-grid { grid-template-columns: 1fr; }
  .note-card { min-height: 0; }
  .right-stack { display: block; }
  .archive-tools { align-items: stretch; flex-direction: column; }
  .archive-search input { width: 100%; }
  .archive-post { grid-template-columns: 1fr 20px; }
  .archive-meta { grid-column: 1 / -1; grid-template-columns: auto 1fr; }
  .article-wrap { width: calc(100vw - 24px); }
  .article-header { padding: 40px 7% 38px; }
  .article-header h1 { font-size: 39px; }
  .article-layout { padding: 38px 7% 50px; }
  .article-content { font-size: 16px; }
  .article-content blockquote { margin-right: 0; margin-left: 0; }
  .next-post { grid-template-columns: 1fr auto; padding: 25px 7%; }
  .next-post span:first-child { display: none; }
  .about-layout { grid-template-columns: 1fr; gap: 36px; }
  .about-profile { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .form-bottom { align-items: stretch; flex-direction: column; }
  .submit-button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; gap: 16px; }
  .site-footer nav { grid-column: auto; flex-wrap: wrap; }
  .admin-shell { margin-top: calc(var(--header) + 24px); }
  .admin-gate { width: calc(100vw - 24px); min-height: 0; padding: 38px 24px 44px; }
  .admin-topbar > div:last-child { align-items: flex-start; flex-wrap: wrap; }
  .admin-topbar h1 { font-size: 38px; }
  .admin-editor { padding: 18px; }
  .admin-editor-heading { align-items: flex-start; flex-direction: column; }
  .admin-editor-actions { width: 100%; flex-wrap: wrap; }
  .admin-fields { grid-template-columns: 1fr; }
  .admin-fields .wide { grid-column: auto; }
  .admin-compose textarea,.admin-preview { min-height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rain-layer,.rain-canvas { display: none; }
}
