/* Orbit — an original, dependency-free theme for a small digital garden. */
:root {
  color-scheme: dark;
  --bg: #080e1a;
  --surface: #0d1625;
  --surface-hover: #121e30;
  --text: #edf2fa;
  --muted: #8e9db2;
  --subtle: #67788f;
  --line: #1e2b3e;
  --accent: #7ce7db;
  --accent-rgb: 124, 231, 219;
  --header: rgba(8, 14, 26, 0.87);
  --shadow: 0 24px 70px #0004;
  --font: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --poetry-ink: #ece5d7;
  --poetry-accent: #ce8679;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #fff;
  --surface-hover: #edf4f8;
  --text: #182638;
  --muted: #56667c;
  --subtle: #67778b;
  --line: #dbe4ec;
  --accent: #11766e;
  --accent-rgb: 17, 118, 110;
  --header: rgba(246, 248, 251, 0.92);
  --shadow: 0 24px 70px #1b385512;
  --poetry-ink: #344944;
  --poetry-accent: #a94e41;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button {
  border: 0;
}
button:disabled {
  cursor: wait;
}
img {
  max-width: 100%;
  display: block;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.35;
}
a,
button {
  transition:
    color 0.2s,
    background-color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
::selection {
  color: var(--bg);
  background: var(--accent);
}
.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.mono,
kbd,
.eyebrow {
  font-family: var(--mono);
}
.cyan {
  color: var(--accent);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 24px;
  z-index: 100;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--bg);
}
.skip-link:focus {
  top: 10px;
}
.content-shell {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}
.site-header {
  height: 84px;
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(18px);
}
.nav-wrap {
  height: 100%;
  max-width: 1344px;
  margin: auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.brand {
  font-size: 23px;
  letter-spacing: -0.8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 720;
}
.brand-avatar {
  height: 32px;
  width: 32px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.brand-dot {
  color: var(--accent);
}
#site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  height: 100%;
}
#site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  padding-block: 30px;
}
#site-nav a[aria-current="page"] {
  color: var(--text);
}
#site-nav a[aria-current="page"]:after {
  content: "";
  height: 3px;
  width: 17px;
  border-radius: 4px;
  background: var(--accent);
  position: absolute;
  bottom: 18px;
  left: calc(50% - 8.5px);
}
#site-nav a:hover {
  color: var(--accent);
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 19px;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
}
.search-trigger svg {
  width: 17px;
}
.search-trigger kbd {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 7px;
  font-size: 10px;
  color: var(--subtle);
}
.icon-button {
  display: grid;
  place-items: center;
  height: 36px;
  width: 36px;
  background: none;
  border-radius: 8px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--surface-hover);
  color: var(--accent);
}
.tool-divider {
  height: 19px;
  width: 1px;
  background: var(--line);
}
.menu-toggle {
  display: none;
}
.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 74% 48%, #13354036, transparent 55%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#769ca208 1px, transparent 1px),
    linear-gradient(90deg, #769ca208 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%, transparent);
}
.hero-inner {
  position: relative;
  width: min(1200px, calc(100% - 96px));
  margin: auto;
  z-index: 2;
  padding: 91px 0 109px;
  pointer-events: none;
}
.hero-copy {
  max-width: 670px;
  pointer-events: auto;
}
.eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.6px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 21px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px #7ce7db80;
}
.hero h1 {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 760;
  line-height: 1.28;
  letter-spacing: 2px;
  margin: 0 0 23px;
}
.hero-poetry .hero-grid {
  opacity: 0.45;
}
.hero-poetry .hero-art {
  filter: saturate(0.65);
}
.hero h1.hero-poem {
  color: var(--poetry-ink);
  font-family: var(--font);
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 760;
  line-height: 1.65;
  letter-spacing: 0.055em;
  margin-bottom: 15px;
}
.hero-poem > span {
  display: block;
}
.poem-attribution {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
  margin: 0 0 25px;
  color: var(--muted);
  font: 14px/1.8 var(--font);
  letter-spacing: 0.06em;
}
.poem-rule {
  width: 24px;
  height: 1px;
  background: var(--poetry-accent);
  align-self: center;
}
[data-poem-author] {
  white-space: nowrap;
}
.poem-attribution cite {
  font-style: normal;
}
.poem-attribution a:hover {
  color: var(--poetry-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero .poetry-signature {
  font: 12px/1.8 var(--font);
  letter-spacing: 2px;
}
.gradient-text {
  background: linear-gradient(110deg, #b4fae6, #67cbdc 80%);
  color: transparent;
  background-clip: text;
}
.hero-description {
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: 29px;
}
.hero-description strong {
  color: var(--text);
  font-weight: 500;
}
.hero-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.button svg {
  width: 17px;
}
.button-primary {
  background: var(--accent);
  color: #0b252b;
  box-shadow: 0 5px 22px #6cdbc814;
}
.button-primary:hover {
  background: #affbef;
  transform: translateY(-2px);
  color: #0b252b;
}
.button-quiet {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  gap: 11px;
}
.button-quiet > span {
  color: var(--muted);
  margin-left: 10px;
}
.button-quiet:hover {
  border-color: var(--accent);
}
.hero-signature {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 35px;
  color: var(--subtle);
  font: 9px var(--mono);
  letter-spacing: 2px;
}
.hero-signature .mono {
  font-size: 16px;
  letter-spacing: 0;
  color: var(--accent);
}
.signature-line {
  height: 1px;
  width: 47px;
  background: var(--line);
}
.hero-art {
  position: absolute;
  width: min(880px, 70vw);
  height: auto;
  top: -23px;
  left: calc(50% - 122px);
  opacity: 0.97;
  pointer-events: none;
  animation: orbit-arrive 1.2s ease-out both;
}
.orbit-caption {
  position: absolute;
  right: 7%;
  bottom: 114px;
  display: flex;
  align-items: center;
  gap: 17px;
  color: #a4c2cb;
  font: 10px/1.8 var(--mono);
  letter-spacing: 2px;
  z-index: 1;
}
.orbit-caption small {
  font-size: 7px;
  letter-spacing: 1.1px;
  color: #608898;
}
.crosshair {
  font-size: 25px;
  font-weight: 200;
  color: #65a69e;
}
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--subtle);
  display: flex;
  align-items: center;
  gap: 17px;
  font: 8px var(--mono);
  letter-spacing: 2.2px;
}
.scroll-cue > span:last-child {
  font-size: 20px;
  color: var(--accent);
}
.home-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 54px;
  padding-top: 61px;
  padding-bottom: 56px;
  scroll-margin-top: 30px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.section-heading .eyebrow {
  margin: 0 0 7px;
  font-size: 9px;
  letter-spacing: 2px;
}
.section-heading h2 {
  font-size: 26px;
  letter-spacing: 0.4px;
  margin: 0;
}
.tiny-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 8px;
}
.text-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
}
.text-link svg {
  width: 16px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-bottom: 24px;
  margin-bottom: 3px;
  border-bottom: 1px solid var(--line);
}
.filter-bar button {
  font-size: 11px;
  background: none;
  border: 1px solid transparent;
  padding: 6px 12px;
  border-radius: 5px;
  color: var(--muted);
}
.filter-bar button:hover {
  color: var(--accent);
}
.filter-bar button.active {
  background: rgba(var(--accent-rgb), 0.075);
  border-color: rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
}
.filter-bar button span {
  margin-left: 8px;
  font: 10px var(--mono);
}
.filter-meta {
  margin-left: auto;
  font-size: 10px;
  color: var(--subtle);
}
.post-card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 27px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.post-cover {
  position: relative;
  overflow: hidden;
  border: 1px solid #2b3d4b66;
  border-radius: 8px;
  aspect-ratio: 1.6;
  background: #0e1d2c;
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.post-cover:hover img {
  transform: scale(1.05);
}
.cover-arrow {
  width: 29px;
  height: 29px;
  position: absolute;
  bottom: 10px;
  right: 10px;
  border: 1px solid #b6e6ed33;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #d3e9ee;
  background: #07111a66;
  opacity: 0;
  transition: opacity 0.2s;
}
.post-cover:hover .cover-arrow {
  opacity: 1;
}
.cover-arrow svg {
  width: 15px;
}
.post-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 10px;
}
.category-label {
  color: var(--accent);
  font-size: 11px;
}
.post-date {
  font-family: var(--mono);
  color: var(--subtle);
  font-size: 9px;
}
.post-topline .category-label:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
}
.post-card h3 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}
.post-excerpt {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--subtle);
  font-size: 9px;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
}
.post-tags a:hover {
  color: var(--accent);
}
.sidebar {
  padding-top: 4px;
}
.profile-panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(140deg, var(--surface), var(--bg));
  padding: 23px;
  margin-bottom: 31px;
}
.profile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.profile-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
}
.profile-id {
  font-size: 7px;
  letter-spacing: 1.1px;
  color: var(--subtle);
}
.profile-panel h2 {
  font-size: 17px;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}
.profile-panel > p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
.profile-stats {
  display: flex;
  justify-content: space-around;
  margin: 21px 0;
  border-block: 1px solid var(--line);
  padding: 15px 0;
}
.profile-stats a {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 2px;
}
.profile-stats strong {
  font: 21px var(--mono);
  color: var(--text);
}
.profile-stats span {
  font-size: 9px;
  color: var(--subtle);
}
.profile-link {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.profile-link svg {
  width: 15px;
}
.mini-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.mini-heading h2 {
  font-size: 13px;
  margin: 0;
  font-weight: 600;
}
.mini-heading > span {
  color: var(--subtle);
  font-size: 8px;
  letter-spacing: 1.5px;
}
.topic-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.topic-number {
  font: 9px var(--mono);
  color: var(--subtle);
}
.topic-count {
  margin-left: auto;
  color: var(--subtle);
  font: 9px var(--mono);
}
.topic-count > span {
  margin-left: 13px;
}
.quote-panel {
  position: relative;
  overflow: hidden;
  border-left: 2px solid rgba(var(--accent-rgb), 0.4);
  background: linear-gradient(
    90deg,
    rgba(var(--accent-rgb), 0.045),
    transparent
  );
  padding: 16px 18px;
  margin-top: 28px;
}
.quote-symbol {
  font-family: Georgia, serif;
  font-size: 39px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.65;
}
.quote-panel p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin: 1px 0 13px;
}
.quote-panel > .mono {
  font-size: 7px;
  letter-spacing: 1.3px;
  color: var(--subtle);
}
.quote-orbit {
  position: absolute;
  right: -30px;
  top: 25px;
  width: 105px;
  height: 105px;
  border: 1px solid rgba(var(--accent-rgb), 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 13px rgba(var(--accent-rgb), 0.025),
    0 0 0 26px rgba(var(--accent-rgb), 0.018);
}
.rss-link {
  display: flex;
  gap: 13px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 21px;
  margin-top: 23px;
  font-size: 11px;
}
.rss-link > svg {
  width: 17px;
  color: var(--accent);
}
.rss-link small {
  display: block;
  color: var(--subtle);
  font-size: 9px;
}
.rss-link > span:last-child {
  margin-left: auto;
  color: var(--subtle);
}
.feed-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  color: var(--subtle);
}
.feed-end span {
  width: 24px;
  height: 1px;
  background: var(--line);
}
.feed-end p {
  margin: 0;
  font-size: 10px;
  letter-spacing: 1px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 31px 0;
}
.footer-inner {
  max-width: 1200px;
  width: calc(100% - 96px);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.footer-brand span {
  color: var(--accent);
}
.footer-inner p {
  font-size: 10px;
  color: var(--subtle);
  margin: 6px 0 0;
}
.footer-meta {
  text-align: right;
}
.footer-meta p {
  font-size: 9px;
  letter-spacing: 0.2px;
}
.footer-meta p > span {
  margin-inline: 7px;
}
.footer-meta a {
  color: var(--muted);
}
.back-top {
  position: fixed;
  bottom: 26px;
  right: 24px;
  z-index: 15;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.back-top svg {
  transform: rotate(-90deg);
  width: 17px;
}
.page-banner {
  padding-top: 74px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
}
.page-banner h1 {
  font-size: 48px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.page-banner > p:last-child {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.archive-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 65px;
  padding-top: 44px;
  padding-bottom: 70px;
}
.archive-year {
  font: 34px var(--mono);
  color: var(--accent);
  margin: 0 0 24px;
}
.archive-year > span {
  font-size: 9px;
  color: var(--subtle);
  letter-spacing: 1px;
}
.archive-entry {
  display: flex;
  gap: 29px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 27px 0;
}
.archive-entry time {
  font: 11px var(--mono);
  color: var(--subtle);
  flex-shrink: 0;
}
.archive-entry h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.archive-entry p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.archive-arrow {
  margin-left: auto;
  color: var(--accent);
  font-size: 22px;
}
.pagination {
  display: flex;
  gap: 12px;
  padding: 25px 0;
}
.pagination > * {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 13px;
}
.pagination .current {
  background: var(--accent);
  color: var(--bg);
}
.topics-shell {
  padding: 45px 0 90px;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}
.topic-tile {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 32px;
  background:
    radial-gradient(
      ellipse at right top,
      rgba(var(--accent-rgb), 0.05),
      transparent 65%
    ),
    var(--surface);
}
.topic-tile:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.topic-tile-number {
  display: block;
  font: 9px var(--mono);
  letter-spacing: 2px;
  color: var(--subtle);
  margin-bottom: 25px;
}
.topic-tile > svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 16px;
}
.topic-tile h2 {
  font-size: 24px;
}
.topic-tile > div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.tag-section {
  margin-top: 63px;
}
.tag-section h2 {
  font-size: 26px;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tag-cloud a {
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  background: var(--surface);
}
.tag-cloud a span {
  margin-left: 18px;
  font: 10px var(--mono);
  color: var(--subtle);
}
.tag-cloud a:hover {
  border-color: var(--accent);
}
.page-shell {
  padding: 45px 0 90px;
}
.friends-shell {
  padding-block: 45px 90px;
  min-height: 320px;
}
.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 176px);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.friends-grid > li {
  min-width: 0;
}
.friend-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  aspect-ratio: 1;
  padding: 20px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
}
.friend-card:hover,
.friend-card:focus-visible {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateY(-3px);
}
.friend-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.09);
}
.friend-initial {
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  font: 24px var(--mono);
}
.friend-info {
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.friend-name {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
}
.friend-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.friend-card:hover .friend-name,
.friend-card:focus-visible .friend-name {
  color: var(--accent);
}
.friends-empty {
  padding: 40px 24px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 620px) {
  .friends-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
  }
  .friend-card {
    padding: 16px 10px;
    gap: 10px;
  }
  .friend-avatar {
    width: 56px;
    height: 56px;
  }
}
.page-prose {
  max-width: 790px;
}
.post-banner {
  padding-top: 43px;
  padding-bottom: 41px;
  border-bottom: 1px solid var(--line);
}
.back-link {
  font-size: 11px;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 40px;
}
.post-banner .post-topline {
  margin-bottom: 20px;
  gap: 20px;
}
.post-banner .post-topline > .mono {
  font-size: 9px;
  color: var(--subtle);
  letter-spacing: 1.7px;
}
.post-banner h1 {
  font-size: clamp(28px, 4vw, 45px);
  max-width: 930px;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.post-description {
  font-size: 15px;
  color: var(--muted);
  max-width: 850px;
  line-height: 1.9;
  margin-bottom: 26px;
}
.post-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.small-avatar {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.reading-shell {
  display: grid;
  grid-template-columns: minmax(0, 800px) minmax(180px, 1fr);
  gap: 65px;
  padding-top: 43px;
  padding-bottom: 75px;
}
.reading-shell > article {
  min-width: 0;
}
.reading-controls {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 4px 18px #0000000a;
  color: var(--muted);
  font-size: 12px;
}
.reading-controls-label {
  white-space: nowrap;
}
.reading-controls-actions,
.reading-size-stepper {
  display: flex;
  align-items: center;
}
.reading-controls-actions {
  gap: 8px;
}
.reading-size-stepper {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
}
.reading-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  line-height: 1;
}
.reading-size-stepper button {
  font: 16px var(--font);
}
.reading-controls output {
  min-width: 48px;
  text-align: center;
  color: var(--accent);
  font: 12px var(--mono);
}
.reading-controls button:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--accent);
}
.reading-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}
.reading-controls button:focus-visible {
  outline-offset: 2px;
}
.reading-shell .post-content {
  font-size: var(--article-font-size, 15px);
}
.reading-shell .post-content [id] {
  scroll-margin-top: 80px;
}
.post-content {
  font-size: 15px;
  color: var(--muted);
  line-height: 2;
  overflow-wrap: break-word;
  min-width: 0;
}
.post-content h2 {
  font-size: 1.6667em;
  color: var(--text);
  margin: 42px 0 19px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.post-content h3 {
  font-size: 1.3333em;
  color: var(--text);
  margin: 29px 0 15px;
}
.post-content h4 {
  color: var(--text);
}
.post-content > h2:first-child {
  margin-top: 0;
}
.post-content p {
  margin-bottom: 22px;
}
.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.post-content strong {
  color: var(--text);
  font-weight: 600;
}
.post-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 26px 0;
  padding: 16px 23px;
  background: rgba(var(--accent-rgb), 0.045);
}
.post-content blockquote p:last-child {
  margin-bottom: 0;
}
.post-content code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-hover);
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.post-content pre {
  overflow-x: auto;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 25px 22px;
  margin: 26px 0;
  line-height: 1.8;
  tab-size: 2;
}
.post-content pre code {
  padding: 0;
  background: transparent;
  color: var(--text);
}
.post-content figure.highlight {
  margin: 26px 0;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.post-content .highlight table {
  display: table;
  margin: 0;
  border: none;
  width: 100%;
}
.post-content .highlight td {
  border: 0;
  padding: 0;
}
.post-content .highlight pre {
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 42px 18px 22px;
}
.post-content .highlight .gutter {
  width: 35px;
  color: var(--subtle);
  user-select: none;
}
.post-content .highlight .gutter pre {
  padding-right: 0;
  font-size: 0.9231em;
}
.post-content .highlight .code {
  width: 100%;
}
.post-content .highlight .hljs-string,
.post-content .highlight .hljs-attr {
  color: #8cdbc3;
}
.post-content .highlight .hljs-keyword,
.post-content .highlight .hljs-meta {
  color: #a6a6ed;
}
.post-content .highlight .hljs-comment {
  color: #778ca3;
}
.post-content .highlight .hljs-number {
  color: #e4bb82;
}
.post-content table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow: auto;
  margin: 25px 0;
  font-size: 0.8667em;
}
.post-content th,
.post-content td {
  border: 1px solid var(--line);
  padding: 10px 15px;
}
.post-content th {
  color: var(--text);
  background: var(--surface);
}
.reading-shell .post-content th {
  min-width: 7em;
}
.post-content img {
  border-radius: 8px;
  margin: 26px auto;
}
.post-content li {
  margin: 6px 0;
}
.post-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 35px 0;
}
.toc-panel {
  position: sticky;
  top: 35px;
  align-self: start;
  border-left: 1px solid var(--line);
  padding: 0 0 0 24px;
}
.toc-panel > .eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.toc-panel h2 {
  font-size: 13px;
  margin-bottom: 20px;
}
.toc-panel ol {
  padding-left: 0;
  list-style: none;
  font-size: 11px;
  line-height: 1.8;
}
.toc-panel ol ol {
  padding-left: 13px;
  margin-top: 7px;
}
.toc-panel li {
  margin: 10px 0;
}
.toc-panel a {
  color: var(--muted);
}
.toc-panel a:hover {
  color: var(--accent);
}
.toc-top {
  display: inline-block;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  font-size: 10px;
  margin-top: 18px;
}
.article-end {
  border-top: 1px solid var(--line);
  margin-top: 38px;
  padding-top: 25px;
}
.article-end > .eyebrow {
  font-size: 9px;
}
.article-end > a {
  display: inline-block;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.post-pagination {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 30px;
}
.post-pagination a {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 19px;
  background: var(--surface);
  max-width: 50%;
}
.post-pagination span {
  display: block;
  color: var(--subtle);
  font-size: 10px;
  margin-bottom: 7px;
}
.post-pagination strong {
  font-size: 13px;
  font-weight: 500;
}
.copy-code {
  position: absolute;
  top: 7px;
  right: 8px;
  font-size: 10px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-hover);
  color: var(--muted);
}
.copy-code[data-state="success"] {
  color: var(--accent);
}
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  z-index: 50;
  box-shadow: 0 0 12px #7ce7db55;
}
dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 27px;
  width: min(640px, calc(100vw - 32px));
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 40px 120px #0008;
  margin-top: 13vh;
}
dialog::backdrop {
  background: #030810b3;
  backdrop-filter: blur(6px);
}
.search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 19px;
}
.search-heading h2 {
  font-size: 19px;
  margin: 0;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 14px;
  background: var(--bg);
  color: var(--accent);
}
.search-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  padding: 5px 0;
  font-size: 14px;
}
.search-field:focus-within {
  border-color: var(--accent);
}
.search-field input::placeholder {
  color: var(--subtle);
}
#search-status {
  font-size: 12px;
  color: var(--muted);
  margin: 19px 0 9px;
}
.search-result {
  display: block;
  border-top: 1px solid var(--line);
  padding: 17px 7px;
}
.search-result:hover {
  background: var(--surface-hover);
}
.search-result h3,
.search-result-title {
  font-size: 16px;
  margin: 0 0 7px;
}
.search-result p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0;
}
.search-result-meta {
  font-size: 10px;
  color: var(--subtle);
}
.search-result-excerpt {
  font-size: 12px;
  color: var(--muted);
}
.search-help {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  color: var(--subtle);
  font-size: 10px;
}
.search-help kbd {
  font-size: 9px;
  border: 1px solid var(--line);
  padding: 2px 4px;
  border-radius: 3px;
}
.empty-state {
  padding: 35px 10px;
  color: var(--muted);
  font-size: 13px;
}
.empty-state a {
  display: block;
  color: var(--accent);
}
:root[data-theme="light"] .hero {
  background: radial-gradient(ellipse at 73% 50%, #87c4d130, transparent 60%);
}
:root[data-theme="light"] .hero-art {
  opacity: 0.82;
  filter: saturate(0.8);
}
:root[data-theme="light"] .gradient-text {
  background-image: linear-gradient(120deg, #167e74, #245e86);
}
:root[data-theme="light"] .button-primary {
  color: #fff;
}
:root[data-theme="light"] .button-primary:hover {
  background: #0e6862;
}
:root[data-theme="light"] .orbit-caption {
  color: #476a79;
}
:root[data-theme="light"] .post-content .highlight .hljs-string,
:root[data-theme="light"] .post-content .highlight .hljs-attr {
  color: #177d60;
}
:root[data-theme="light"] .post-content .highlight .hljs-keyword,
:root[data-theme="light"] .post-content .highlight .hljs-meta {
  color: #7756af;
}
:root[data-theme="light"] .post-content .highlight .hljs-number {
  color: #99602c;
}
@keyframes orbit-arrive {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 0.97;
    transform: translateY(0);
  }
}
@media (min-width: 1600px) {
  .hero-art {
    left: calc(50% - 60px);
  }
  .hero {
    min-height: 685px;
  }
  .hero-inner {
    padding-top: 108px;
  }
}
@media (max-width: 1150px) {
  .nav-wrap {
    gap: 30px;
  }
  .content-shell,
  .hero-inner {
    width: calc(100% - 64px);
  }
  .home-content,
  .archive-shell {
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) 245px;
  }
  .post-card {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px;
  }
  .post-card h3 {
    font-size: 17px;
  }
  .post-bottom {
    flex-wrap: wrap;
    gap: 6px;
  }
  .hero-art {
    left: 44%;
    width: 760px;
    opacity: 0.8;
  }
  .hero h1 {
    font-size: 62px;
  }
  .hero-copy {
    max-width: 580px;
  }
  .reading-shell {
    gap: 40px;
  }
  .footer-inner {
    width: calc(100% - 64px);
  }
}
@media (max-width: 900px) {
  .nav-wrap {
    padding-inline: 28px;
    gap: 25px;
  }
  #site-nav {
    gap: 23px;
  }
  .nav-tools {
    gap: 10px;
  }
  .search-trigger kbd,
  .search-trigger > span {
    display: none;
  }
  .hero-art {
    left: 34%;
    opacity: 0.45 !important;
    top: 8px;
    width: 740px;
  }
  .hero-inner {
    padding-top: 83px;
  }
  .hero-copy {
    max-width: 580px;
  }
  .hero-copy:before {
    content: "";
    position: absolute;
    inset: 30px 15% 50px -30px;
    background: radial-gradient(ellipse, var(--bg) 35%, transparent 75%);
    z-index: -1;
    opacity: 0.5;
  }
  .orbit-caption {
    right: 5%;
    bottom: 80px;
  }
  .home-content {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
  }
  .post-card {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 23px 0;
  }
  .post-cover {
    aspect-ratio: 1.9;
  }
  .post-card h3 {
    font-size: 20px;
  }
  .post-bottom {
    flex-wrap: nowrap;
  }
  .profile-panel {
    padding: 18px;
  }
  .profile-id {
    display: none;
  }
  .sidebar {
    padding-top: 4px;
  }
  .reading-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc-panel {
    display: none;
  }
  .archive-shell {
    grid-template-columns: 1fr;
  }
  .archive-shell .sidebar {
    display: none;
  }
  .post-pagination a {
    max-width: none;
  }
  .footer-meta p {
    font-size: 8px;
  }
}
@media (max-width: 620px) {
  html {
    scroll-padding-top: 25px;
  }
  .site-header {
    height: 70px;
  }
  .nav-wrap {
    padding-inline: 21px;
    gap: 10px;
  }
  .brand {
    font-size: 21px;
    gap: 10px;
  }
  .brand-avatar {
    height: 28px;
    width: 28px;
  }
  .nav-tools {
    margin-left: auto;
    gap: 4px;
  }
  .tool-divider {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
  .search-trigger {
    padding: 8px;
  }
  .icon-button {
    width: 34px;
    height: 34px;
  }
  #site-nav {
    display: none;
    position: absolute;
    top: 69px;
    left: 0;
    right: 0;
    height: auto;
    margin: 0;
    padding: 10px 23px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 15px 20px #0002;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  #site-nav.is-open,
  #site-nav[data-open="true"],
  #site-nav.open {
    display: flex;
  }
  #site-nav a {
    padding: 13px 10px;
    font-size: 14px;
  }
  #site-nav a[aria-current="page"]:after {
    left: 0;
    top: 24px;
    bottom: auto;
    width: 3px;
    height: 3px;
  }
  .hero {
    min-height: 704px;
  }
  .content-shell,
  .hero-inner {
    width: calc(100% - 42px);
  }
  .hero-inner {
    padding: 57px 0 170px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.55px;
    gap: 8px;
  }
  .hero h1 {
    font-size: 50px;
    line-height: 1.3;
    letter-spacing: 1px;
    margin-bottom: 21px;
  }
  .hero h1.hero-poem {
    font-size: clamp(25px, 7.5vw, 42px);
    line-height: 1.8;
    letter-spacing: 0.035em;
    margin-bottom: 16px;
  }
  .poem-attribution {
    font-size: 12px;
    gap: 4px 7px;
    margin-bottom: 22px;
  }
  .poem-rule {
    width: 18px;
  }
  .hero .poetry-signature {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .hero-description {
    font-size: 12px;
    line-height: 1.95;
    margin-bottom: 25px;
  }
  .hero-art {
    width: 650px;
    max-width: none;
    left: calc(50% - 220px);
    top: 220px;
    opacity: 0.58 !important;
    z-index: 0;
  }
  .hero-copy {
    position: relative;
  }
  .hero-copy:before {
    inset: -10px -25px -25px;
    background: linear-gradient(var(--bg) 60%, transparent);
    opacity: 0.4;
  }
  .hero-actions {
    gap: 11px;
  }
  .button {
    font-size: 12px;
    padding: 11px 17px;
    gap: 15px;
  }
  .button-quiet {
    gap: 8px;
  }
  .button-quiet > span {
    margin-left: 3px;
  }
  .hero-signature {
    margin-top: 25px;
    font-size: 7px;
    letter-spacing: 1.7px;
  }
  .hero-signature .mono {
    font-size: 13px;
  }
  .orbit-caption {
    right: 22px;
    bottom: 80px;
    font-size: 8px;
    gap: 12px;
  }
  .orbit-caption small {
    font-size: 5px;
  }
  .scroll-cue {
    bottom: 24px;
    font-size: 7px;
    white-space: nowrap;
    letter-spacing: 2px;
  }
  .home-content {
    display: block;
    padding-top: 38px;
    padding-bottom: 35px;
  }
  .section-heading {
    margin-bottom: 21px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
  }
  .text-link {
    font-size: 10px;
    gap: 5px;
  }
  .filter-bar {
    gap: 5px;
    padding-bottom: 18px;
  }
  .filter-bar button {
    font-size: 10px;
    padding: 6px 9px;
  }
  .filter-meta {
    display: none;
  }
  .post-card {
    padding: 23px 0;
    gap: 17px;
  }
  .post-cover {
    aspect-ratio: 1.85;
  }
  .post-card h3 {
    font-size: 21px;
  }
  .post-topline {
    margin-bottom: 10px;
  }
  .post-excerpt {
    font-size: 12px;
    margin-bottom: 15px;
  }
  .post-bottom {
    font-size: 9px;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 40px;
  }
  .profile-panel {
    padding: 24px;
  }
  .profile-top {
    margin-bottom: 16px;
  }
  .profile-id {
    display: block;
    font-size: 9px;
  }
  .profile-panel h2 {
    font-size: 20px;
  }
  .profile-panel > p {
    font-size: 12px;
  }
  .profile-stats {
    justify-content: space-around;
  }
  .profile-stats strong {
    font-size: 24px;
  }
  .profile-stats span {
    font-size: 10px;
  }
  .sidebar-section {
    margin-top: 0;
  }
  .mini-heading h2 {
    font-size: 15px;
  }
  .topic-links a {
    font-size: 12px;
    padding: 15px 0;
  }
  .quote-panel {
    margin-top: 27px;
  }
  .rss-link {
    font-size: 12px;
    margin-bottom: 15px;
  }
  .footer-inner {
    width: calc(100% - 42px);
    display: block;
  }
  .footer-meta {
    text-align: left;
    margin-top: 18px;
  }
  .footer-meta p {
    font-size: 9px;
  }
  .footer-inner p {
    font-size: 10px;
  }
  .site-footer {
    padding-block: 25px;
  }
  .back-top {
    right: 14px;
    bottom: 16px;
  }
  .page-banner {
    padding-top: 47px;
    padding-bottom: 30px;
  }
  .page-banner h1 {
    font-size: 34px;
    margin-bottom: 15px;
  }
  .page-banner > p:last-child {
    font-size: 12px;
  }
  .archive-shell {
    padding-top: 30px;
    padding-bottom: 45px;
  }
  .archive-year {
    font-size: 28px;
    margin-bottom: 10px;
  }
  .archive-entry {
    gap: 16px;
    padding: 24px 0;
  }
  .archive-entry time {
    font-size: 10px;
  }
  .archive-entry h3 {
    font-size: 18px;
  }
  .archive-entry p {
    font-size: 11px;
  }
  .archive-arrow {
    font-size: 18px;
  }
  .topic-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .topics-shell {
    padding-top: 28px;
    padding-bottom: 50px;
  }
  .topic-tile {
    padding: 27px;
  }
  .tag-section {
    margin-top: 40px;
  }
  .tag-cloud {
    gap: 9px;
  }
  .tag-cloud a {
    font-size: 11px;
    padding: 8px 12px;
  }
  .tag-cloud a span {
    margin-left: 12px;
  }
  .page-shell {
    padding-top: 30px;
    padding-bottom: 45px;
  }
  .post-banner {
    padding-top: 26px;
    padding-bottom: 28px;
  }
  .back-link {
    margin-bottom: 25px;
  }
  .post-banner h1 {
    font-size: 30px;
    line-height: 1.5;
  }
  .post-description {
    font-size: 13px;
  }
  .post-byline {
    gap: 8px;
    font-size: 9px;
  }
  .post-banner .post-topline {
    margin-bottom: 15px;
  }
  .reading-shell {
    padding-top: 29px;
    padding-bottom: 45px;
  }
  .post-content {
    font-size: 14px;
    line-height: 1.95;
  }
  .post-content h2 {
    font-size: 1.5714em;
  }
  .post-content h3 {
    font-size: 1.2857em;
  }
  .post-content ul,
  .post-content ol {
    padding-left: 22px;
  }
  .post-content pre {
    padding: 24px 14px;
    font-size: 0.8571em;
  }
  .post-content .highlight pre {
    font-size: 1em;
  }
  .post-content blockquote {
    padding: 15px 17px;
  }
  .post-pagination {
    flex-direction: column;
  }
  .post-pagination a {
    padding: 17px;
  }
  dialog {
    padding: 19px;
    margin-top: 9vh;
  }
  .search-heading h2 {
    font-size: 17px;
  }
  .search-field input {
    font-size: 12px;
  }
  .search-heading {
    margin-bottom: 14px;
  }
  .search-field {
    padding: 8px 10px;
  }
  .search-result h3 {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
#search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-result > a {
  display: block;
}
.search-result strong {
  display: block;
  font-size: 16px;
  margin-bottom: 7px;
}
#reading-progress {
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
}
.back-top:not(.is-visible) {
  display: none;
}
