:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.97);
  --line: rgba(10, 28, 50, 0.08);
  --line-strong: rgba(10, 28, 50, 0.14);
  --text: #102238;
  --muted: #5f7286;
  --muted-strong: #2f4256;
  --accent: #4a76df;
  --accent-2: #77b3ff;
  --accent-3: #a6daf9;
  --radius: 24px;
  --shadow: 0 18px 46px rgba(53, 73, 102, 0.1);
  --font-display: "Iowan Old Style", "Baskerville", "Cormorant Garamond", Georgia, serif;
  --font-body: "Avenir Next", "Avenir", "Helvetica Neue", "Segoe UI", sans-serif;
}

html.theme-night,
html.theme-night body {
  color-scheme: dark;
}

html.theme-night {
  --bg: #07101a;
  --panel: rgba(11, 20, 31, 0.84);
  --panel-strong: rgba(15, 26, 40, 0.95);
  --line: rgba(145, 186, 223, 0.12);
  --line-strong: rgba(145, 186, 223, 0.2);
  --text: #edf5ff;
  --muted: #95a8bb;
  --muted-strong: #ccdae9;
  --accent: #60d7ff;
  --accent-2: #7bc0ff;
  --accent-3: #9ee7ff;
  --shadow: 0 24px 68px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(120deg, rgba(79, 121, 232, 0.08) 0%, transparent 34%),
    linear-gradient(240deg, rgba(120, 182, 255, 0.07) 0%, transparent 32%),
    linear-gradient(180deg, #fbf8f3 0%, #f7f4ee 52%, #efe9df 100%);
  color: var(--text);
  font-family: var(--font-body);
}

html.theme-night,
html.theme-night body {
  background:
    linear-gradient(120deg, rgba(96, 215, 255, 0.06) 0%, transparent 34%),
    linear-gradient(240deg, rgba(123, 192, 255, 0.045) 0%, transparent 32%),
    linear-gradient(180deg, #07101a 0%, #0a1320 52%, #050a12 100%);
}

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

.app-shell {
  width: min(1280px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 16px 0 32px;
}

.bg-noise,
.bg-orb,
.signal-backdrop {
  position: fixed;
  pointer-events: none;
}

.bg-noise {
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(10, 28, 50, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 28, 50, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
  mix-blend-mode: multiply;
}

.bg-orb {
  display: none;
}

.bg-orb-a {
  width: 42vw;
  height: 42vw;
  top: -16vw;
  left: -18vw;
  background: radial-gradient(circle, rgba(76, 219, 255, 0.24), rgba(76, 219, 255, 0));
}

.bg-orb-b {
  width: 32vw;
  height: 32vw;
  bottom: -14vw;
  right: -10vw;
  background: radial-gradient(circle, rgba(124, 207, 255, 0.18), rgba(124, 207, 255, 0));
}

.signal-backdrop {
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(76, 219, 255, 0.08) 42% 43%, transparent 43% 100%),
    linear-gradient(65deg, transparent 0 58%, rgba(124, 207, 255, 0.07) 58% 59%, transparent 59% 100%);
}

.signal-backdrop span {
  position: absolute;
  width: 36vw;
  max-width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(76, 219, 255, 0.12);
  border-radius: 999px;
  opacity: 0.28;
  transform: translate3d(0, 0, 0);
  animation: signalDrift 18s ease-in-out infinite alternate;
}

.signal-backdrop span:nth-child(1) {
  left: -10vw;
  top: 8vh;
}

.signal-backdrop span:nth-child(2) {
  right: 8vw;
  top: 36vh;
  width: 28vw;
  animation-duration: 24s;
  animation-delay: -6s;
}

.signal-backdrop span:nth-child(3) {
  left: 38vw;
  bottom: -18vh;
  width: 42vw;
  animation-duration: 28s;
  animation-delay: -10s;
}

@keyframes signalDrift {
  from {
    transform: translate3d(-10px, -8px, 0) scale(0.98);
  }

  to {
    transform: translate3d(18px, 16px, 0) scale(1.04);
  }
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 248, 253, 0.9)),
    linear-gradient(135deg, rgba(76, 219, 255, 0.04), rgba(255, 255, 255, 0));
  box-shadow:
    0 18px 48px rgba(83, 122, 160, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
}

html.theme-night .panel {
  background:
    linear-gradient(180deg, rgba(16, 26, 40, 0.94), rgba(10, 18, 29, 0.9)),
    linear-gradient(135deg, rgba(76, 219, 255, 0.05), rgba(255, 255, 255, 0));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (prefers-reduced-motion: reduce) {
  .signal-backdrop span {
    animation: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.writing-archive .reveal,
.article-shell .reveal {
  opacity: 1;
  transform: none;
}

.profile-shell {
  overflow: hidden;
  padding: 10px 0 0;
  opacity: 1;
  transform: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.profile-shell.reveal {
  opacity: 1;
  transform: none;
}

.signal-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.signal-topline .eyebrow {
  margin-bottom: 0;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: #168bff;
  box-shadow: 0 0 18px rgba(22, 139, 255, 0.9);
}

.signal-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 10px 12px 12px;
  min-height: 400px;
  align-items: start;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(251, 253, 255, 0.82) 18%, rgba(248, 252, 255, 0.2) 44%, rgba(248, 252, 255, 0.045) 68%, rgba(248, 252, 255, 0.015) 100%),
    linear-gradient(180deg, rgba(76, 219, 255, 0.04), rgba(255, 255, 255, 0.02));
}

html.theme-night .signal-stage {
  background:
    linear-gradient(90deg, rgba(8, 18, 29, 0.94) 0%, rgba(8, 18, 29, 0.8) 22%, rgba(8, 18, 29, 0.24) 52%, rgba(8, 18, 29, 0.08) 76%, rgba(8, 18, 29, 0.02) 100%),
    linear-gradient(180deg, rgba(76, 219, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.signal-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./io.png") center 20% / cover no-repeat;
  background-position: 84% 10%;
  filter: contrast(1.05) saturate(1.0) brightness(0.99);
  transform: scale(1);
  pointer-events: none;
}

html.theme-night .signal-stage::before {
  filter: contrast(1.08) saturate(0.85) brightness(0.58);
}

.signal-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62) 0%, rgba(252, 253, 255, 0.38) 18%, rgba(248, 252, 255, 0.12) 42%, rgba(248, 252, 255, 0.03) 68%, rgba(248, 252, 255, 0.015) 100%),
    radial-gradient(circle at 72% 28%, rgba(76, 219, 255, 0.06), transparent 24%),
    radial-gradient(circle at 84% 72%, rgba(0, 132, 255, 0.04), transparent 30%);
  pointer-events: none;
}

html.theme-night .signal-stage::after {
  background:
    linear-gradient(90deg, rgba(7, 17, 28, 0.86) 0%, rgba(7, 17, 28, 0.54) 20%, rgba(7, 17, 28, 0.14) 46%, rgba(7, 17, 28, 0.05) 72%, rgba(7, 17, 28, 0.01) 100%),
    radial-gradient(circle at 72% 28%, rgba(76, 219, 255, 0.08), transparent 24%),
    radial-gradient(circle at 84% 72%, rgba(0, 132, 255, 0.05), transparent 30%);
}

.signal-stage > * {
  position: relative;
  z-index: 1;
}

.hero-mobile-photo {
  display: none;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 11;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 246, 252, 0.92));
  box-shadow:
    0 12px 28px rgba(53, 94, 132, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-mobile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 18%;
  display: block;
}

.social-section {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 16px;
}

.social-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.social-section-head .eyebrow {
  margin-bottom: 4px;
}

.social-section-head p:last-child {
  margin: 0;
  max-width: 34ch;
  color: var(--muted-strong);
  line-height: 1.38;
  font-size: 0.82rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.news-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin-top: 8px;
}

.news-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.news-head h2 {
  max-width: 26ch;
  font-size: 1.32rem;
  line-height: 1.06;
}

.news-head p:last-child {
  margin: 0;
  max-width: 56ch;
  color: var(--muted-strong);
  line-height: 1.48;
  font-size: 0.9rem;
}

.news-grid {
  display: grid;
  gap: 12px;
}

.spotlight-shell {
  overflow: hidden;
}

.spotlight-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, calc((100% - 24px) / 4));
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.spotlight-track::-webkit-scrollbar {
  display: none;
}

.spotlight-card {
  display: grid;
  gap: 0;
  padding: 0;
  border-radius: 22px;
  border: 1px solid rgba(12, 31, 53, 0.08);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(53, 94, 132, 0.07);
  scroll-snap-align: start;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.spotlight-card-featured {
  min-width: 0;
}

html.theme-night .spotlight-card {
  background:
    linear-gradient(180deg, rgba(13, 22, 35, 0.94), rgba(8, 15, 25, 0.9));
}

.spotlight-card:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 219, 255, 0.16);
  box-shadow: 0 14px 28px rgba(53, 94, 132, 0.1);
}

.spotlight-card-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(231, 239, 247, 0.9), rgba(216, 227, 239, 0.94));
}

html.theme-night .spotlight-card-media {
  border-color: rgba(132, 176, 214, 0.08);
}

.spotlight-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spotlight-card-copy {
  display: grid;
  gap: 10px;
  padding: 18px 18px 16px;
  background: #fff;
}

.spotlight-card-top {
  display: grid;
  gap: 8px;
}

.spotlight-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.spotlight-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(74, 101, 129, 0.12);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(236, 243, 251, 0.94));
  color: var(--muted-strong);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.spotlight-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.26;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.spotlight-link {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.spotlight-link:hover {
  text-decoration: underline;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 16px;
  align-items: start;
  margin-top: 10px;
}

.home-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.home-rail {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 16px;
  align-self: start;
}

.home-rail .social-grid {
  grid-template-columns: 1fr;
}

.home-rail .social-section {
  padding: 12px;
}

.home-rail .where-card {
  min-height: 48px;
}

.today-market-panel {
  gap: 10px;
}

.today-market-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(74, 101, 129, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.today-market-grid {
  display: grid;
  gap: 8px;
}

.today-market-disclaimer {
  margin: -2px 2px 0;
  color: var(--muted-strong);
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.today-market-item,
.today-market-skeleton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(74, 101, 129, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 251, 0.94));
  box-shadow:
    0 10px 24px rgba(53, 94, 132, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.today-market-item strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.today-market-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 600;
}

.today-market-change {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--muted-strong);
  white-space: nowrap;
}

.today-market-change.is-positive {
  color: #167f4a;
}

.today-market-change.is-negative {
  color: #c0392b;
}

.today-market-skeleton {
  justify-content: center;
  color: var(--muted-strong);
  font-size: 0.78rem;
}

.today-market-error {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.78);
}

.site-footer {
  margin-top: 18px;
  padding: 18px 20px;
}

.site-footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.site-footer-copyblock {
  display: grid;
  gap: 6px;
  max-width: 42rem;
}

.site-footer-copy {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 550;
}

.site-footer-legal {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.82rem;
  line-height: 1.55;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
  color: var(--muted-strong);
  font-size: 0.82rem;
}

.site-footer-links a {
  color: inherit;
  font-weight: 600;
}

html.theme-night .today-market-item,
html.theme-night .today-market-skeleton {
  background:
    linear-gradient(180deg, rgba(13, 24, 37, 0.92), rgba(8, 16, 26, 0.88));
  border-color: rgba(119, 176, 217, 0.1);
}

html.theme-night .today-market-skeleton {
  color: rgba(208, 223, 236, 0.72);
}

html.theme-night .today-market-disclaimer,
html.theme-night .site-footer-legal,
html.theme-night .site-footer-links {
  color: rgba(208, 223, 236, 0.72);
}

html.theme-night .site-footer {
  background:
    linear-gradient(180deg, rgba(13, 24, 37, 0.96), rgba(8, 16, 26, 0.92));
}

html.theme-night .site-footer-copy {
  color: rgba(240, 246, 252, 0.94);
}

html.theme-night .today-market-disclaimer {
  color: rgba(208, 223, 236, 0.68);
}

html.theme-night .today-market-date {
  border-color: rgba(119, 176, 217, 0.14);
  background: rgba(12, 22, 34, 0.88);
  color: rgba(224, 236, 247, 0.82);
}

.rail-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.rail-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.rail-panel-head h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.1;
  font-weight: 550;
}

.rail-panel-head p {
  margin: 0;
}

.rail-list {
  display: grid;
  gap: 6px;
}

.rail-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border-radius: 12px;
  border: 1px solid rgba(74, 101, 129, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 248, 252, 0.92));
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

html.theme-night .rail-item {
  background: linear-gradient(180deg, rgba(12, 20, 32, 0.92), rgba(8, 15, 25, 0.9));
}

.rail-item:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 215, 255, 0.2);
  box-shadow: 0 12px 22px rgba(53, 73, 102, 0.08);
}

.rail-rank {
  min-width: 2.1em;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.rail-copy {
  display: grid;
  gap: 3px;
}

.rail-copy strong {
  font-size: 0.82rem;
  line-height: 1.18;
}

.rail-copy span {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.3;
}

.rail-arrow {
  color: var(--accent);
  font-weight: 700;
}
}

.news-highlights {
  display: grid;
  gap: 18px;
}

.news-group {
  display: grid;
  gap: 12px;
  padding: 4px 0 0;
}

.news-group + .news-group {
  padding-top: 18px;
  border-top: 1px solid rgba(74, 101, 129, 0.14);
}

.news-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.news-group-copy {
  display: grid;
  gap: 4px;
}

.news-group-copy h3 {
  margin: 0;
  max-width: 26ch;
  font-size: 1.08rem;
  line-height: 1.08;
  font-weight: 600;
}

.news-group-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: start;
  gap: 12px;
}

.news-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(74, 101, 129, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(238, 245, 252, 0.96));
  box-shadow:
    0 14px 34px rgba(53, 94, 132, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.news-card-primary {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(231, 242, 251, 0.97)),
    linear-gradient(135deg, rgba(76, 219, 255, 0.04), rgba(255, 255, 255, 0));
}

.news-card-stack {
  display: grid;
  gap: 12px;
}

.news-card-compact {
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.news-group .news-card-compact {
  min-height: 100%;
}

.news-card-inline-media {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(74, 101, 129, 0.18);
  aspect-ratio: 4 / 3;
}

.news-card-inline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-copy {
  display: grid;
  gap: 8px;
}

.news-card-media {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(74, 101, 129, 0.18);
  aspect-ratio: 16 / 10;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html.theme-night .news-card,
html.theme-night .signal-card,
html.theme-night .post-card,
html.theme-night .about-card,
html.theme-night .follow-panel,
html.theme-night .nav-strip,
html.theme-night .writing-switcher-btn,
html.theme-night .post-meta span,
html.theme-night .news-card-meta span,
html.theme-night .proof-strip span,
html.theme-night .trust-metrics span {
  background:
    linear-gradient(180deg, rgba(12, 22, 34, 0.94), rgba(8, 16, 26, 0.9));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html.theme-night .news-card,
html.theme-night .signal-card,
html.theme-night .post-card,
html.theme-night .about-card,
html.theme-night .follow-panel,
html.theme-night .nav-strip,
html.theme-night .writing-switcher-btn,
html.theme-night .post-meta span,
html.theme-night .news-card-meta span,
html.theme-night .proof-strip span,
html.theme-night .trust-metrics span {
  border-color: rgba(119, 176, 217, 0.18);
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 219, 255, 0.22);
  box-shadow: 0 14px 28px rgba(53, 94, 132, 0.09);
}

html.theme-night .news-card:hover,
html.theme-night .signal-card:hover,
html.theme-night .post-card:hover {
  border-color: rgba(76, 219, 255, 0.3);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26);
}

.news-card-top {
  display: flex;
  justify-content: flex-start;
}

.news-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(76, 219, 255, 0.16);
  background: rgba(76, 219, 255, 0.09);
  color: #0f3f63;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.theme-night .news-chip,
html.theme-night .article-badge,
html.theme-night .writing-switcher-btn.is-active,
html.theme-night .nav-strip a.is-active {
  border-color: rgba(76, 219, 255, 0.28);
  background: rgba(76, 219, 255, 0.14);
  color: #8fdcff;
}

.news-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.28;
  font-weight: 600;
}

.news-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.45;
  font-size: 0.84rem;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.news-card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(10, 28, 50, 0.08);
  background: rgba(247, 251, 255, 0.92);
}

html.theme-night .news-card-meta span,
html.theme-night .post-meta span {
  background: rgba(10, 18, 30, 0.82);
  border-color: rgba(119, 176, 217, 0.14);
  color: var(--muted-strong);
}

.news-link {
  justify-self: start;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.signal-aside {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  align-content: stretch;
  justify-self: start;
  width: min(100%, 420px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.where-head {
  grid-column: 1 / -1;
}

.where-head .eyebrow {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.86rem;
  text-transform: none;
  font-weight: 600;
}

.where-head .eyebrow::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 8px;
  background: var(--accent);
  border-radius: 999px;
}

.signal-card {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(74, 101, 129, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 251, 0.94));
  box-shadow:
    0 12px 28px rgba(53, 94, 132, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  color: inherit;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

html.theme-night .signal-card {
  background:
    linear-gradient(180deg, rgba(13, 24, 37, 0.92), rgba(8, 16, 26, 0.88));
}

.signal-card span {
  color: inherit;
  letter-spacing: 0;
  font-size: inherit;
  font-weight: 700;
}

.signal-card strong {
  display: block;
  margin-top: 0;
  font-size: 0.96rem;
}

.signal-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted-strong);
  line-height: 1.35;
  font-size: 0.75rem;
}

.signal-card-accent {
  border-color: rgba(76, 219, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(235, 245, 252, 0.93));
}

html.theme-night .signal-card-accent {
  background:
    linear-gradient(180deg, rgba(14, 26, 40, 0.96), rgba(9, 18, 28, 0.9));
}

.signal-card-accent strong {
  color: var(--text);
}

.signal-card:hover {
  transform: translateY(-1px);
  border-color: rgba(76, 219, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(235, 244, 251, 0.96));
  box-shadow:
    0 14px 30px rgba(53, 94, 132, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.signal-card .eyebrow {
  margin-bottom: 0;
}

.where-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px;
  border-radius: 16px;
}

.where-card strong {
  line-height: 1.2;
  font-size: 0.82rem;
}

.where-card small {
  max-width: none;
  font-size: 0.67rem;
  line-height: 1.35;
}

.platform-orb {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(76, 219, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.platform-orb img {
  width: 14px;
  height: 14px;
  display: block;
}

.action-primary .button-logo {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

.action-secondary .button-logo {
  opacity: 0.98;
}

.action-ghost .button-logo {
  opacity: 0.96;
  filter: brightness(1.02) saturate(1.05);
}

.button-logo {
  display: block;
  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;
  max-width: 15px;
  max-height: 15px;
  flex: 0 0 15px;
  object-fit: contain;
}

.platform-orb-x {
  color: #ffffff;
  background: linear-gradient(180deg, #10192a, #0a1220);
}

.platform-orb-medium {
  color: #102238;
  background: linear-gradient(180deg, #f8fafc, #e9eef5);
}

.platform-orb-linkedin {
  color: #ffffff;
  background: linear-gradient(180deg, #1f6fb2, #0d4f8b);
}

.external-mark,
.button-arrow {
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
}

.where-copy {
  min-width: 0;
}

.avatar-wrap {
  position: relative;
  width: 72px;
  aspect-ratio: 1;
  flex: 0 0 auto;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(76, 219, 255, 0.52), transparent 45%),
    linear-gradient(135deg, rgba(76, 219, 255, 0.95), rgba(138, 125, 255, 0.85));
  box-shadow: 0 18px 50px rgba(53, 94, 132, 0.18);
}

.avatar-core {
  position: absolute;
  inset: 7px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 62% 28%, rgba(76, 219, 255, 0.16), transparent 20%),
    linear-gradient(180deg, #f8fbff 0%, #eaf3fa 100%);
  border: 5px solid #9ac9ff;
  display: grid;
  place-items: center;
}

.avatar-core span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #102238;
  letter-spacing: 0;
}

.avatar-core i {
  position: absolute;
  width: 8px;
  height: 8px;
  right: 12px;
  top: 14px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(76, 219, 255, 0.65);
}

.profile-meta {
  min-width: 0;
  max-width: 520px;
  padding: 10px 12px 12px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(248, 252, 255, 0.56));
  backdrop-filter: blur(12px);
}

.profile-intro {
  display: flex;
  align-items: center;
  gap: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 600;
}

.identity-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 520px;
  font-size: clamp(1.82rem, 2.9vw, 2.86rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.name-line {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tagline-line {
  margin-top: 7px;
  color: #2d78db;
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.08vw, 0.98rem);
  font-weight: 600;
  line-height: 1.18;
}

.hero-support {
  margin: 5px 0 0;
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.78rem;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 11px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(10, 28, 50, 0.12);
  font-weight: 620;
  letter-spacing: -0.01em;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.action-button:hover {
  transform: translateY(-1px);
}

.action-primary {
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(78, 141, 242, 1) 0%, rgba(47, 110, 230, 0.98) 100%);
  border-color: rgba(71, 126, 235, 0.58);
  box-shadow:
    0 14px 28px rgba(35, 88, 198, 0.22),
    0 5px 12px rgba(35, 88, 198, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.action-secondary {
  color: var(--text);
  border-color: rgba(10, 28, 50, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 249, 253, 0.72));
  box-shadow:
    0 10px 20px rgba(53, 94, 132, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html.theme-night .action-secondary,
html.theme-night .action-ghost {
  color: var(--text);
  border-color: rgba(119, 176, 217, 0.18);
  background: linear-gradient(180deg, rgba(13, 22, 33, 0.96), rgba(8, 16, 26, 0.94));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

html.theme-night .action-secondary:hover,
html.theme-night .action-ghost:hover {
  border-color: rgba(76, 219, 255, 0.38);
}

.action-ghost {
  color: var(--text);
  border-color: rgba(10, 28, 50, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 249, 253, 0.88));
  box-shadow: 0 8px 20px rgba(53, 94, 132, 0.06);
}

.action-primary:hover,
.action-secondary:hover,
.action-ghost:hover {
  border-color: rgba(76, 219, 255, 0.48);
}

.action-primary:hover {
  box-shadow:
    0 16px 32px rgba(35, 88, 198, 0.24),
    0 8px 18px rgba(35, 88, 198, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.action-secondary:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 253, 0.82));
  box-shadow:
    0 12px 22px rgba(53, 94, 132, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.action-primary .button-arrow {
  color: rgba(255, 255, 255, 0.9);
}

.action-secondary .button-arrow {
  color: rgba(16, 34, 56, 0.62);
}

.button-arrow {
  margin-left: auto;
  color: rgba(16, 34, 56, 0.72);
  font-size: 0.98rem;
}

.bio {
  margin: 12px 0 0;
  max-width: 54ch;
  color: var(--muted-strong);
  line-height: 1.48;
  font-size: 0.9rem;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.proof-strip span {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(76, 219, 255, 0.2);
  background: linear-gradient(180deg, rgba(244, 251, 255, 0.98), rgba(232, 244, 252, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(53, 94, 132, 0.04);
  color: var(--muted-strong);
  font-size: 0.8rem;
}

html.theme-night .proof-strip span,
html.theme-night .trust-metrics span {
  background: linear-gradient(180deg, rgba(14, 24, 36, 0.95), rgba(8, 16, 26, 0.88));
  border-color: rgba(119, 176, 217, 0.16);
}

.proof-strip span:nth-child(1) {
  border-color: rgba(76, 219, 255, 0.36);
  background: rgba(76, 219, 255, 0.13);
}

.proof-strip span:nth-child(2) {
  border-color: rgba(124, 207, 255, 0.4);
  background: rgba(124, 207, 255, 0.12);
}

.proof-strip span:nth-child(3) {
  border-color: rgba(156, 241, 255, 0.34);
  background: rgba(156, 241, 255, 0.1);
}

.proof-strip strong {
  color: var(--text);
}

.social-row {
  display: none;
}

.social-row a {
  color: var(--muted-strong);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.social-row a:hover {
  color: var(--text);
  border-color: rgba(76, 219, 255, 0.28);
}

.nav-strip {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  margin-top: 6px;
  overflow-x: auto;
  position: sticky;
  top: 12px;
  z-index: 12;
  backdrop-filter: blur(22px);
  box-shadow:
    0 14px 38px rgba(53, 94, 132, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-header {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  overflow-x: visible;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-cta {
  flex: 0 0 auto;
  min-height: 36px;
}

.site-menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(10, 28, 50, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 252, 0.94));
  color: var(--text);
  font: inherit;
  font-weight: 650;
  box-shadow: 0 8px 18px rgba(53, 94, 132, 0.06);
}

.site-menu-toggle-icon {
  position: relative;
  width: 16px;
  height: 12px;
  flex: 0 0 16px;
}

.site-menu-toggle-icon::before,
.site-menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    top 180ms ease,
    box-shadow 180ms ease;
}

.site-menu-toggle-icon::before {
  top: 1px;
  box-shadow: 0 4px 0 currentColor;
}

.site-menu-toggle-icon::after {
  top: 9px;
}

.site-header.is-menu-open .site-menu-toggle-icon::before {
  top: 5px;
  box-shadow: none;
  transform: rotate(45deg);
}

.site-header.is-menu-open .site-menu-toggle-icon::after {
  top: 5px;
  transform: rotate(-45deg);
}

.site-header .site-brand:hover,
.site-header .site-brand:focus-visible {
  border: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.site-header .site-nav a {
  white-space: nowrap;
  font-weight: 500;
}

.nav-strip a {
  white-space: nowrap;
  color: var(--muted-strong);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.84rem;
}

html.theme-night .nav-strip {
  background:
    linear-gradient(180deg, rgba(14, 24, 37, 0.92), rgba(9, 17, 27, 0.9));
}

html.theme-night .site-brand {
  color: var(--text);
}

html.theme-night .nav-strip a {
  color: var(--muted-strong);
}

html.theme-night .nav-strip a:hover {
  background: rgba(76, 219, 255, 0.08);
}

.nav-strip a:hover {
  color: var(--text);
  border-color: rgba(76, 219, 255, 0.18);
  background: rgba(76, 219, 255, 0.05);
}

.nav-strip a.is-active {
  color: #0f3f63;
  border-color: rgba(76, 219, 255, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(232, 245, 252, 0.96));
  box-shadow:
    0 8px 18px rgba(53, 94, 132, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.site-header .site-brand,
.site-header .site-brand:hover,
.site-header .site-brand:focus-visible,
.site-header .site-brand.is-active {
  padding: 0;
  border-radius: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--text);
}

.site-header .action-button {
  white-space: nowrap;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 8px;
  margin-top: 6px;
}

.about-page {
  display: grid;
  gap: 16px;
  padding-bottom: 28px;
}

.about-page .about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 16px;
  align-items: stretch;
  padding: 18px;
}

.about-page .about-hero-copy {
  display: grid;
  gap: 12px;
  align-content: start;
  max-width: 62ch;
  padding: 6px 2px 6px 4px;
}

.about-page .about-hero h1 {
  margin: 0;
  max-width: 10ch;
  font-family: var(--font-body);
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.about-page .about-hero-media {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(10, 28, 50, 0.08);
  box-shadow:
    0 18px 42px rgba(53, 94, 132, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.about-page .about-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-page .about-social-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-page .about-social-grid .where-card {
  min-height: 58px;
}

.about-page .about-social-grid .where-card small {
  font-size: 0.72rem;
}

.about-page .archive-section {
  gap: 16px;
}

.about-card {
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(236, 244, 251, 0.95)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  border-color: rgba(74, 101, 129, 0.16);
  box-shadow:
    0 14px 30px rgba(53, 94, 132, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.about-card h2 {
  font-size: 1.24rem;
  line-height: 1.08;
}

.about-card p {
  margin: 8px 0 0;
  color: var(--muted-strong);
  line-height: 1.5;
  font-size: 0.94rem;
}

.about-card-side ul {
  margin: 8px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted-strong);
  line-height: 1.5;
  font-size: 0.95rem;
}

.trust-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}

.trust-metrics span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(76, 219, 255, 0.14);
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.9), rgba(236, 243, 249, 0.86));
  color: var(--muted-strong);
  font-size: 0.76rem;
  box-shadow: 0 6px 14px rgba(53, 94, 132, 0.04);
}

.trust-metrics-tight {
  margin-top: 8px;
}

.trust-metrics-tight span {
  padding: 6px 9px;
  font-size: 0.73rem;
}

.trust-metrics span:nth-child(1) {
  border-color: rgba(76, 219, 255, 0.34);
  background: rgba(76, 219, 255, 0.12);
}

.trust-metrics span:nth-child(2) {
  border-color: rgba(124, 207, 255, 0.28);
  background: rgba(124, 207, 255, 0.1);
}

.trust-metrics span:nth-child(3) {
  border-color: rgba(156, 241, 255, 0.28);
  background: rgba(156, 241, 255, 0.08);
}

.posts-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 10px;
  padding: 0 2px;
}

.posts-header h2 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1.05;
  font-weight: 700;
  color: var(--text);
}

.posts-header p {
  margin: 8px 0 0;
  max-width: 58ch;
  color: var(--muted-strong);
  line-height: 1.48;
  font-size: 0.92rem;
}

.content-columns {
  display: grid;
  gap: 12px;
  align-items: start;
  grid-template-columns: 1fr;
}

.writing-section {
  display: grid;
  gap: 10px;
  padding: 8px;
}

html.theme-night .writing-section {
  background:
    linear-gradient(180deg, rgba(16, 26, 40, 0.92), rgba(10, 18, 29, 0.88));
}

.writing-switcher {
  display: none;
}

.writing-switcher-btn {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(76, 219, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 245, 251, 0.92));
  color: var(--muted-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(53, 94, 132, 0.05);
}

.writing-switcher-btn.is-active {
  color: #0f3f63;
  border-color: rgba(76, 219, 255, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(226, 244, 252, 0.96));
  box-shadow:
    0 10px 22px rgba(53, 94, 132, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.writing-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.writing-section-copy-wrap {
  display: grid;
  gap: 4px;
}

.writing-section-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.28;
  font-weight: 600;
}

.writing-section-copy {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.section-link {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.action-button:focus-visible,
.section-link:focus-visible,
.where-card:focus-visible,
.news-link:focus-visible,
.post-link:focus-visible {
  outline: 2px solid rgba(76, 219, 255, 0.72);
  outline-offset: 2px;
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.post-card {
  display: grid;
  gap: 0;
  padding: 0;
  border-radius: 22px;
  border: 1px solid rgba(12, 31, 53, 0.08);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(53, 94, 132, 0.07);
  scroll-snap-align: start;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 219, 255, 0.16);
  box-shadow: 0 14px 28px rgba(53, 94, 132, 0.1);
}

.post-card-featured,
.post-card-compact {
  grid-column: auto;
}

.post-media-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, rgba(231, 239, 247, 0.9), rgba(216, 227, 239, 0.94));
}

.post-media {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-body {
  display: grid;
  gap: 11px;
  padding: 18px 18px 16px;
  background: #fff;
}

.post-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
}

.post-card h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.26;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.post-card-compact h4 {
  font-size: 1rem;
  line-height: 1.28;
}

.post-title-link {
  color: var(--text);
  font-weight: 500;
  transition: color 160ms ease;
}

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

.post-card:hover .post-title-link {
  color: var(--accent);
}

.post-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(10, 28, 50, 0.06);
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.article-badge,
.post-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-badge {
  border: 1px solid rgba(76, 219, 255, 0.16);
  background: rgba(76, 219, 255, 0.1);
  color: #0f3f63;
}

.post-meta-pill {
  border: 1px solid rgba(10, 28, 50, 0.08);
  background: rgba(247, 251, 255, 0.92);
  color: var(--muted-strong);
}

.post-card p {
  margin: 4px 0 0;
  color: var(--muted-strong);
  line-height: 1.42;
  font-size: 0.81rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.77rem;
}

.post-meta span {
  padding: 4px 7px;
  border: 1px solid rgba(10, 28, 50, 0.08);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.94), rgba(239, 245, 251, 0.9));
}

.post-card .post-cta {
  justify-self: start;
  margin-top: 0;
}

.post-link {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.post-action-button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(10, 28, 50, 0.08);
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(241, 247, 252, 0.92));
  color: var(--muted-strong);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.post-action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(76, 219, 255, 0.22);
  color: var(--text);
}

.post-action-button.is-liked {
  border-color: rgba(76, 219, 255, 0.42);
  background: rgba(76, 219, 255, 0.12);
  color: #0f3f63;
}

.post-action-button.is-flashed {
  border-color: rgba(76, 219, 255, 0.42);
  color: var(--accent);
}

.post-link:hover {
  text-decoration: underline;
}

.writing-archive {
  display: grid;
  gap: 16px;
  padding-bottom: 14px;
}

.archive-topbar,
.article-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
}

.article-topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  backdrop-filter: blur(18px) saturate(1.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 249, 253, 0.74));
}

.article-topbar .site-brand {
  font-size: 0.95rem;
}

.archive-topbar-nav,
.article-topbar-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.archive-hero,
.article-hero,
.article-prose,
.archive-section {
  padding: 18px;
}

.archive-hero {
  display: grid;
  gap: 16px;
}

.archive-hero .eyebrow {
  margin-bottom: 0;
}

.archive-hero h1 {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-body);
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.archive-hero p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted-strong);
  font-size: 0.95rem;
  line-height: 1.55;
}

.archive-actions,
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.archive-section {
  display: grid;
  gap: 14px;
}

.archive-controls {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.archive-search {
  display: grid;
  gap: 6px;
}

.archive-search span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.archive-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(74, 101, 129, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.94));
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.archive-search input::placeholder {
  color: rgba(95, 114, 134, 0.74);
}

.archive-search input:focus {
  border-color: rgba(74, 118, 223, 0.32);
  box-shadow:
    0 0 0 4px rgba(74, 118, 223, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-filter-btn {
  appearance: none;
  border: 1px solid rgba(74, 101, 129, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 253, 0.94));
  color: var(--muted-strong);
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.archive-filter-btn:hover,
.archive-filter-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(74, 118, 223, 0.2);
  box-shadow: 0 10px 22px rgba(53, 94, 132, 0.08);
}

.archive-filter-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, rgba(74, 118, 223, 0.98), rgba(88, 160, 255, 0.98));
  box-shadow: 0 12px 28px rgba(74, 118, 223, 0.22);
}

.archive-section h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.12;
}

.archive-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.archive-section-head p {
  margin: 4px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.archive-list {
  display: grid;
  gap: 10px;
}

.writing-archive .archive-list:not(.archive-list-grid) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.archive-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-loading {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.archive-loading h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.15;
}

.archive-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(74, 101, 129, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 252, 0.92));
  box-shadow: 0 12px 26px rgba(53, 94, 132, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.writing-archive .archive-list:not(.archive-list-grid) > .archive-item {
  gap: 10px;
  padding: 10px;
  align-content: start;
}

.writing-archive .archive-list:not(.archive-list-grid) > .archive-item .archive-item-media {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
}

.writing-archive .archive-list:not(.archive-list-grid) > .archive-item .archive-item-copy {
  gap: 8px;
}

.writing-archive .archive-list:not(.archive-list-grid) > .archive-item .archive-item-copy h3 {
  font-size: 0.98rem;
  line-height: 1.18;
}

.writing-archive .archive-list:not(.archive-list-grid) > .archive-item .archive-item-copy p {
  font-size: 0.8rem;
  line-height: 1.52;
}

.writing-archive .archive-list:not(.archive-list-grid) > .archive-item .archive-item-actions {
  justify-content: flex-start;
  align-self: start;
}

.writing-archive .archive-list:not(.archive-list-grid) > .archive-item:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 219, 255, 0.18);
  box-shadow: 0 16px 30px rgba(53, 94, 132, 0.1);
}

html.theme-night .archive-item {
  background: linear-gradient(180deg, rgba(14, 24, 37, 0.95), rgba(9, 17, 27, 0.92));
}

.archive-item-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.archive-item-compact .archive-item-copy {
  gap: 6px;
}

.archive-item-compact .archive-item-actions {
  align-self: center;
}

.archive-item-media {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(10, 28, 50, 0.06);
}

html.theme-night .archive-item-media {
  border-color: rgba(119, 176, 217, 0.1);
}

.archive-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease, filter 220ms ease;
}

.archive-item-copy {
  display: grid;
  gap: 8px;
}

.archive-item-copy h3,
.article-hero h1 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.archive-item-copy h3 {
  font-size: 1rem;
  line-height: 1.18;
}

.archive-item-copy h3 a {
  color: var(--text);
  transition: color 180ms ease;
}

.archive-item:hover .archive-item-copy h3 a,
.archive-item-copy h3 a:hover {
  color: var(--accent);
}

.archive-item-copy p,
.article-lede,
.article-prose p,
.article-prose li {
  color: var(--muted-strong);
  line-height: 1.68;
}

.archive-item-copy p {
  margin: 0;
  font-size: 0.88rem;
}

.archive-item-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.archive-item-meta span,
.article-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(10, 28, 50, 0.08);
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.94), rgba(239, 245, 251, 0.9));
  color: var(--muted-strong);
  font-size: 0.7rem;
  font-weight: 600;
}

.archive-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-self: end;
}

.archive-item .section-link,
.archive-item .post-link {
  white-space: nowrap;
}

.archive-item:hover .archive-item-media img {
  transform: scale(1.03);
}

.article-shell {
  display: grid;
  gap: 16px;
  padding-bottom: 28px;
}

.article-hero {
  display: grid;
  gap: 14px;
  align-items: start;
}

.article-hero-copy {
  display: grid;
  gap: 12px;
  align-content: start;
  max-width: 62ch;
  padding: 2px 2px 6px;
}

.article-hero-copy .eyebrow {
  margin-bottom: 0;
}

.article-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.1rem, 4.3vw, 4rem);
  line-height: 0.95;
}

.article-lede {
  margin: 0;
  max-width: 54ch;
  font-size: 1rem;
  line-height: 1.72;
}

.article-hero-media {
  order: -1;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 21 / 9;
  border: 1px solid rgba(10, 28, 50, 0.08);
  box-shadow:
    0 18px 42px rgba(53, 94, 132, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

html.theme-night .article-hero-media {
  border-color: rgba(119, 176, 217, 0.12);
}

.article-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.article-prose {
  display: grid;
  gap: 18px;
  padding: 24px 22px 26px;
}

.article-prose h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.18;
  scroll-margin-top: 112px;
}

.article-prose p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.78;
}

.article-prose blockquote {
  margin: 0;
  padding: 16px 18px;
  border-left: 3px solid rgba(76, 219, 255, 0.5);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

html.theme-night .article-prose blockquote {
  background: rgba(8, 16, 26, 0.44);
}

.article-list,
.article-sidenotes {
  display: grid;
  gap: 10px;
}

.article-sidenotes {
  position: sticky;
  top: 88px;
}

.article-note {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.article-toc-list {
  display: grid;
  gap: 8px;
}

.article-toc-list a {
  display: block;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(74, 101, 129, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 248, 253, 0.84));
  color: var(--muted-strong);
  font-size: 0.8rem;
  line-height: 1.35;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.article-toc-list a:hover,
.article-toc-list a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(74, 118, 223, 0.2);
  color: var(--accent);
  box-shadow: 0 10px 22px rgba(53, 94, 132, 0.08);
}

html.theme-night .archive-search input,
html.theme-night .archive-filter-btn,
html.theme-night .article-toc-list a {
  background: linear-gradient(180deg, rgba(14, 24, 37, 0.96), rgba(9, 17, 27, 0.9));
}

.article-toc h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.12;
  font-weight: 600;
}

.article-note h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.18;
  font-weight: 600;
}

.article-note p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.88rem;
  line-height: 1.55;
}

.article-related {
  display: grid;
  gap: 10px;
}

.article-related a {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(74, 101, 129, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 252, 0.88));
}

html.theme-night .article-related a {
  background: linear-gradient(180deg, rgba(14, 24, 37, 0.92), rgba(9, 17, 27, 0.88));
}

.article-related a strong {
  font-size: 0.88rem;
  line-height: 1.22;
  font-weight: 600;
}

.article-related a span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.article-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: 3px;
  background: rgba(255, 255, 255, 0.36);
  pointer-events: none;
}

.article-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(76, 219, 255, 0.95), rgba(47, 110, 230, 0.98));
  box-shadow: 0 0 18px rgba(76, 219, 255, 0.38);
}

.writing-section.is-hidden-mobile {
  display: none;
}

.follow-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin: 10px 0 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(236, 244, 251, 0.95)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  box-shadow:
    0 16px 38px rgba(53, 94, 132, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html.theme-night .follow-panel {
  background:
    linear-gradient(180deg, rgba(14, 24, 37, 0.96), rgba(9, 17, 27, 0.92)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.follow-panel h2 {
  font-size: 1.35rem;
  line-height: 1.02;
}

.follow-panel .eyebrow {
  margin-bottom: 4px;
}

.follow-links .action-button {
  box-shadow: 0 8px 18px rgba(53, 94, 132, 0.08);
}

.follow-links .action-button:hover {
  box-shadow: 0 12px 24px rgba(53, 94, 132, 0.12);
}

.follow-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

#about,
#proof,
#social,
#news,
#posts,
#medium,
#x,
#linkedin,
#follow {
  scroll-margin-top: 112px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .about-grid,
  .follow-panel {
    grid-template-columns: 1fr;
  }

  .identity-row,
  .follow-panel {
    flex-direction: column;
  }

  .profile-actions,
  .follow-links {
    justify-content: flex-start;
  }

  .profile-actions {
    width: 100%;
  }

  .profile-actions .action-button {
    flex: 1 1 210px;
  }

  .signal-stage,
  .platform-section {
    grid-template-columns: 1fr;
  }

  .signal-stage {
    align-items: start;
  }

  .signal-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .signal-tags {
    justify-content: flex-start;
  }

  .signal-aside {
    grid-template-columns: 1fr;
  }

  .signal-aside .where-card {
    min-height: 100%;
  }

  .social-section-head,
  .follow-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .today-market-grid {
    gap: 6px;
  }

  .today-market-disclaimer {
    margin-top: 0;
    font-size: 0.64rem;
  }

  .today-market-date {
    min-height: 26px;
    padding-inline: 8px;
    font-size: 0.68rem;
  }

  .today-market-item,
  .today-market-skeleton {
    min-height: 44px;
    padding: 9px 10px;
  }

  .site-footer {
    padding: 16px 14px;
  }

  .site-footer-grid {
    flex-direction: column;
  }

  .site-footer-links {
    justify-content: flex-start;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    justify-content: flex-start;
    order: 3;
    width: 100%;
  }

  .site-cta {
    order: 2;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .news-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-head h2 {
    max-width: 100%;
  }

  .news-grid {
    gap: 12px;
  }

  .news-group-grid {
    grid-template-columns: 1fr;
  }

  .news-card-compact {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidenotes {
    position: static;
  }

  .posts-header,
  .writing-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .posts-header h2,
  .posts-header p {
    max-width: 100%;
  }

  .writing-section-copy {
    max-width: 100%;
  }

  .writing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .writing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .writing-archive .archive-list:not(.archive-list-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .content-columns {
    grid-template-columns: 1fr;
  }

  .archive-list-grid {
    grid-template-columns: 1fr;
  }

  .writing-archive .archive-list:not(.archive-list-grid) {
    grid-template-columns: 1fr;
  }

  .archive-item {
    grid-template-columns: 1fr;
  }

  .archive-item-actions {
    justify-content: flex-start;
  }

  .archive-topbar,
  .article-topbar,
  .archive-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .posts-header,
  .writing-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .posts-header h2,
  .posts-header p {
    max-width: 100%;
  }

  .writing-section-copy {
    max-width: 100%;
  }

  .writing-grid {
    grid-template-columns: 1fr;
  }

  .news-group-grid {
    grid-template-columns: 1fr;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .home-rail {
    position: static;
  }

  .writing-switcher {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 2px;
    margin: -2px 0 4px;
    scrollbar-width: none;
  }

  .writing-switcher::-webkit-scrollbar {
    display: none;
  }

  .writing-section {
    padding: 12px;
    display: none;
  }

  .writing-section.is-active {
    display: grid;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100vw - 16px, 1200px);
    padding-top: 10px;
  }

  .archive-hero,
  .archive-section,
  .article-hero,
  .article-prose,
  .article-note {
    padding: 14px;
  }

  .archive-controls {
    gap: 8px;
  }

  .archive-search input {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .archive-filter-btn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .article-hero,
  .archive-hero {
    gap: 12px;
  }

  .article-hero h1,
  .archive-hero h1 {
    max-width: 100%;
    font-size: clamp(1.8rem, 8vw, 2.7rem);
  }

  .site-header {
    align-items: center;
    gap: 8px;
    padding: 10px;
  }

  .site-brand {
    font-size: 0.88rem;
  }

  .site-menu-toggle {
    display: inline-flex;
    margin-left: auto;
    min-height: 34px;
    padding: 0 10px;
    gap: 8px;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    justify-content: flex-start;
    flex-direction: column;
    gap: 6px;
    padding-top: 6px;
  }

  .site-cta {
    display: none;
    width: 100%;
    justify-content: center;
    order: 4;
  }

  .site-header.is-menu-open {
    align-items: flex-start;
  }

  .site-header.is-menu-open .site-nav,
  .site-header.is-menu-open .site-cta {
    display: flex;
  }

  .signal-stage {
    padding-top: 7px;
    gap: 7px;
  }

  .social-section {
    padding: 14px;
  }

  .news-section {
    padding: 14px;
  }

  .spotlight-track {
    grid-auto-columns: minmax(240px, 84vw);
  }

  .avatar-wrap {
    width: 66px;
  }

  .tagline-line {
    font-size: 1rem;
    color: #1c67bf;
  }

  .identity-row {
    gap: 12px;
  }

  h1 {
    max-width: 100%;
    font-size: 1.38rem;
    line-height: 1.12;
  }

  .profile-meta {
    padding: 9px 9px 10px;
    border: 1px solid rgba(74, 101, 129, 0.14);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(249, 252, 255, 0.42));
    box-shadow: 0 10px 22px rgba(53, 94, 132, 0.07);
  }

  .about-card,
  .follow-panel {
    padding: 16px;
  }

  .post-card {
    padding: 12px;
  }

  .platform-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .signal-topline {
    padding-bottom: 8px;
  }

  .signal-stage {
    padding: 8px;
    border-radius: 20px;
    min-height: 0;
  }

  .signal-stage::before {
    background-position: 84% 14%;
    filter: contrast(1.02) saturate(0.92) brightness(0.84);
  }

  .signal-stage::after {
    background:
      linear-gradient(180deg, rgba(248, 252, 255, 0.5) 0%, rgba(248, 252, 255, 0.34) 32%, rgba(248, 252, 255, 0.18) 54%, rgba(248, 252, 255, 0.08) 80%, rgba(248, 252, 255, 0.02) 100%),
      radial-gradient(circle at 72% 28%, rgba(76, 219, 255, 0.08), transparent 24%),
      radial-gradient(circle at 84% 72%, rgba(0, 132, 255, 0.05), transparent 30%);
  }

  .signal-card {
    padding: 11px;
  }

  .where-card strong {
    font-size: 0.92rem;
  }

  .signal-aside {
    grid-template-columns: 1fr;
  }

  .profile-intro {
    align-items: flex-start;
  }

  .hero-mobile-photo {
    display: block;
    aspect-ratio: 16 / 10.8;
    border-radius: 18px;
  }

  .signal-stage::before,
  .signal-stage::after {
    content: none;
  }

  .name-line {
    line-height: 1.02;
  }

  .tagline-line {
    margin-top: 4px;
    font-size: 0.88rem;
    line-height: 1.14;
  }

  .hero-support {
    margin-top: 3px;
    max-width: 100%;
    font-size: 0.7rem;
    line-height: 1.28;
  }

  .profile-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
  }

  .profile-actions .action-button {
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.69rem;
  }

  .button-logo {
    width: 16px;
    height: 16px;
  }

  .platform-orb {
    width: 42px;
    height: 42px;
    padding: 8px;
  }

  .follow-links {
    width: 100%;
  }

  .follow-links .action-button {
    flex: 1 1 0;
  }

  .site-menu-toggle {
    width: auto;
  }

  .social-grid {
    gap: 8px;
  }

  .where-card {
    grid-template-columns: 28px minmax(0, 1fr) 12px;
    gap: 8px;
    min-height: 48px;
    padding: 10px 11px;
  }

  .platform-orb {
    width: 28px;
    height: 28px;
    padding: 0;
  }

  .where-card strong {
    font-size: 0.82rem;
  }

  .where-card small {
    font-size: 0.68rem;
  }

  .news-section {
    gap: 6px;
    padding: 10px;
  }

  .news-head {
    gap: 8px;
  }

  .news-head h2 {
    font-size: 0.96rem;
  }

  .news-head p:last-child {
    font-size: 0.74rem;
  }

  .news-card {
    padding: 10px;
    border-radius: 16px;
    gap: 8px;
  }

  .news-card-compact {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .news-card-inline-media {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }

  .news-card-media {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }

  .news-card h3 {
    font-size: 0.92rem;
    line-height: 1.22;
  }

  .news-card p {
    font-size: 0.78rem;
  }

  .news-card-meta {
    gap: 6px;
  }

  .news-card-meta span {
    padding: 4px 7px;
    font-size: 0.7rem;
  }

  .news-link {
    font-size: 0.76rem;
  }

  .archive-item {
    padding: 10px;
    gap: 10px;
  }

  .archive-item-media {
    aspect-ratio: 16 / 9;
  }

  .archive-item-copy h3 {
    font-size: 0.96rem;
  }

  .archive-item-copy p {
    font-size: 0.82rem;
  }

  .article-hero {
    grid-template-columns: 1fr;
  }

  .article-hero-media {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }

  .about-page .about-hero {
    grid-template-columns: 1fr;
  }

  .about-page .about-hero-media {
    aspect-ratio: 16 / 11;
    border-radius: 20px;
  }

  .about-page .about-social-grid {
    grid-template-columns: 1fr;
  }

  .article-actions,
  .archive-actions,
  .article-topbar-links,
  .archive-topbar-nav {
    width: 100%;
  }

  .article-actions .action-button,
  .archive-actions .action-button,
  .article-topbar-links .action-button,
  .archive-topbar-nav .action-button {
    flex: 1 1 180px;
    justify-content: center;
  }

  .archive-list-grid {
    gap: 10px;
  }

  .writing-section-head h3 {
    font-size: 0.86rem;
  }

  .post-card {
    padding: 0;
  }

  .post-card-compact {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .post-card-compact .post-media {
    aspect-ratio: 16 / 9;
    grid-row: auto;
  }

  .post-body {
    padding: 10px 10px 9px;
    gap: 6px;
  }

  .post-card h4 {
    font-size: 0.86rem;
    line-height: 1.22;
  }

  .post-card p {
    font-size: 0.76rem;
  }

  .post-footer {
    gap: 5px;
    padding-top: 5px;
    margin-top: 4px;
  }

  .post-actions {
    gap: 6px;
  }

  .post-action-button {
    min-height: 24px;
    padding: 0 7px;
    font-size: 0.6rem;
  }

  .post-card-compact p {
    display: none;
  }

  .post-card-compact .post-media {
    aspect-ratio: 16 / 8.3;
  }

  .news-grid {
    gap: 10px;
  }

  .spotlight-track {
    grid-auto-columns: minmax(180px, 76vw);
  }
}

@media (max-width: 620px) {
  .spotlight-card-copy {
    gap: 8px;
    padding: 14px 14px 13px;
  }

  .spotlight-card-top {
    gap: 6px;
  }

  .spotlight-meta-row {
    gap: 5px;
  }

  .spotlight-meta-pill {
    min-height: 20px;
    padding: 0 7px;
    font-size: 0.62rem;
  }

  .spotlight-card h3 {
    font-size: 0.92rem;
    line-height: 1.22;
  }

  .spotlight-link {
    font-size: 0.74rem;
  }
}

@media (max-width: 480px) {
  .profile-meta {
    padding: 8px 8px 9px;
  }

  .hero-mobile-photo {
    aspect-ratio: 16 / 10.6;
    border-radius: 16px;
  }

  .hero-support {
    display: none;
  }

  .proof-strip {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 6px;
  }

  .proof-strip span {
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  .proof-strip span:nth-child(3) {
    grid-column: auto;
  }

  .news-card,
  .archive-item {
    padding: 9px;
  }

  .post-body {
    padding: 9px 9px 8px;
  }

  .post-card h4 {
    font-size: 0.84rem;
  }

  .post-card p {
    font-size: 0.74rem;
  }
}
