:root {
  --ink: #0b1620;
  --ink-soft: #243441;
  --paper: #e7eef3;
  --paper-2: #f4f8fb;
  --line: rgba(11, 22, 32, 0.12);
  --accent: #0f9f8a;
  --accent-2: #d4ff3d;
  --warn: #ff6b3d;
  --shadow: 0 24px 60px rgba(11, 22, 32, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 6px;
  --radius-soft: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(15, 159, 138, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(212, 255, 61, 0.16), transparent 50%),
    linear-gradient(180deg, var(--paper-2), var(--paper) 42%, #dfe8ee);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(14px);
  background: rgba(244, 248, 251, 0.78);
  border-bottom: 1px solid var(--line);
}

.top__brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-size: 1.15rem;
}

.top__nav {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  font-size: 0.92rem;
}

.top__nav a {
  text-decoration: none;
}

.top__link {
  color: var(--ink-soft);
}

.top__link.is-current {
  color: var(--ink);
  font-weight: 600;
}

.top__tg {
  padding: 0.45rem 0.9rem;
  background: var(--ink);
  color: var(--paper-2);
  border-radius: 999px;
  white-space: nowrap;
}

.lang {
  display: inline-flex;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.lang__btn {
  min-height: 1.9rem;
  padding: 0.2rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang__btn.is-active {
  background: var(--ink);
  color: var(--paper-2);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem) 1.1rem;
  border-bottom: 1px solid var(--line);
}

.hero__glow {
  position: absolute;
  top: -10%;
  right: 5%;
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  border-radius: 40% 60% 55% 45%;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-2), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(15, 159, 138, 0.55), transparent 65%);
  filter: blur(8px);
  animation: drift 12s ease-in-out infinite alternate;
  opacity: 0.7;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 22, 32, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 22, 32, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 40%, black 20%, transparent 75%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__channel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.hero__channel a {
  text-decoration: none;
}

.hero__channel a:hover {
  color: var(--ink);
}

.hero__channel-meta .sep {
  opacity: 0.45;
  margin: 0 0.15rem;
}

.hero__channel-meta b {
  color: var(--ink);
  font-weight: 600;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 159, 138, 0.2);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.hero__lead {
  max-width: 48ch;
  margin: 0.55rem 0 0.85rem;
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  font-weight: 500;
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.75rem;
  margin: 0;
}

.hero__stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero__stats dt {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper-2);
}

.btn--primary:hover {
  background: #143041;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.55);
}

.archive {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 1.5rem 2rem;
  align-items: start;
  padding: 1rem clamp(1rem, 4vw, 2.5rem) 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.archive__main {
  min-width: 0;
}

.toolbar {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.archive__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
}

.search__icon {
  position: absolute;
  left: 0.9rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 2.5rem 0.75rem 2.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  font: inherit;
  color: var(--ink);
  outline: none;
}

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 159, 138, 0.18);
}

.search__clear {
  position: absolute;
  right: 0.55rem;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.2rem;
  cursor: pointer;
}

.chips,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip,
.tag,
.post__tag {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip:hover,
.tag:hover,
.post__tag:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.tag.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-2);
}

.soft {
  padding: 1.15rem 1.25rem 1.2rem;
  border: 1px solid rgba(11, 22, 32, 0.06);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 36px rgba(11, 22, 32, 0.04);
}

.soft__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.soft__label::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 159, 138, 0.16);
}

.topics-panel {
  align-self: start;
  position: sticky;
  top: 4.5rem;
}

.topics {
  margin: 0;
  padding: 0;
  list-style: none;
}

.topics li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(11, 22, 32, 0.06);
}

.topics li:first-child {
  border-top: 0;
  padding-top: 0;
}

.topics li.is-active button {
  color: var(--accent);
}

.topics button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.topics button:hover {
  color: var(--accent);
}

.topics__icon {
  width: 1.35rem;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  opacity: 0.85;
  flex-shrink: 0;
}

.topics__count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.timescale {
  margin: 0 0 0.85rem;
  padding: 0.15rem 0 0.1rem;
}

.timescale__track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.15rem;
  align-items: end;
}

.timescale__track::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 2.2rem;
  height: 1px;
  background: var(--line);
  pointer-events: none;
}

.timescale__year {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.3rem 0.1rem 0.1rem;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  cursor: pointer;
}

.timescale__bar {
  display: block;
  width: 100%;
  max-width: 1.55rem;
  height: calc(6px + var(--h, 0) * 34px);
  border-radius: 3px 3px 0 0;
  background: rgba(15, 159, 138, 0.22);
  transform-origin: bottom center;
  transition: background 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.timescale__year:hover .timescale__bar,
.timescale__year.is-current .timescale__bar {
  background: rgba(15, 159, 138, 0.5);
}

.timescale__year.is-active .timescale__bar {
  background: var(--accent);
}

.timescale__year:hover .timescale__bar,
.timescale__year.is-active .timescale__bar {
  transform: scaleY(1.06);
}

.timescale__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.timescale__count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0.72;
}

.timescale__year.is-active,
.timescale__year.is-current {
  color: var(--ink);
}

.timescale__year.is-active .timescale__label {
  color: var(--accent);
  font-weight: 500;
}

.feed {
  display: grid;
  gap: 0;
  scroll-margin-top: 4.5rem;
}

.post {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 0.9rem 1.25rem;
  margin: 0 -0.9rem;
  border-radius: var(--radius);
  border-top: 1px solid rgba(11, 22, 32, 0.08);
  animation: rise 0.55s ease backwards;
  transition:
    background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
}

.post::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(0.35);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.post:first-child {
  border-top: 0;
  padding-top: 0.35rem;
}

@media (hover: hover) and (pointer: fine) {
  .post:hover {
    z-index: 1;
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.82);
    border-top-color: transparent;
    box-shadow: 0 10px 28px rgba(11, 22, 32, 0.07);
  }

  .post:hover::before {
    opacity: 1;
    transform: scaleY(1);
  }

  .post:hover .post__heading a {
    color: var(--accent);
  }

  .post:hover .post__thumb img,
  .post:hover .post__media img {
    transform: scale(1.05);
  }
}

.post__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.post__main {
  min-width: 0;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

.post__badge {
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.post__badge--tg {
  color: var(--accent);
  background: rgba(15, 159, 138, 0.12);
  border-color: transparent;
}

.post__badge--gh {
  color: var(--ink-soft);
}

.post__id {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.post__heading {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.post__heading a {
  text-decoration: none;
  color: var(--ink);
}

.post__heading a:hover {
  color: var(--accent);
}

.post__summary {
  margin: 0 0 0.65rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post__more {
  display: inline-block;
  margin: 0.15rem 0 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
}

.post__more:hover {
  text-decoration: underline;
}

.post__extras {
  margin-top: 0.35rem;
}

.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.post__thumb {
  width: 120px;
  height: 90px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(11, 22, 32, 0.04);
  cursor: zoom-in;
  flex-shrink: 0;
  align-self: start;
}

.post__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.post__details {
  margin-top: 0.35rem;
}

.post__details summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  list-style: none;
}

.post__details summary::-webkit-details-marker {
  display: none;
}

.post__details[open] summary {
  margin-bottom: 0.65rem;
}

.post__body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post__body:has(table),
.post__body:has(p),
.post__body:has(ul),
.post__body:has(h1),
.post__body:has(h2),
.post__body:has(h3) {
  white-space: normal;
}

.post__body a {
  color: var(--accent);
}

.post__body b,
.post__body strong {
  font-weight: 600;
}

.post__body p {
  margin: 0 0 0.75rem;
}

.post__body p:last-child {
  margin-bottom: 0;
}

.post__body h1,
.post__body h2,
.post__body h3,
.post__body h4 {
  margin: 1.1rem 0 0.5rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.post__body h1 { font-size: 1.35rem; }
.post__body h2 { font-size: 1.2rem; }
.post__body h3,
.post__body h4 { font-size: 1.05rem; }

.post__body ul,
.post__body ol {
  margin: 0.4rem 0 0.85rem;
  padding-left: 1.25rem;
}

.post__body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: rgba(11, 22, 32, 0.06);
  border-radius: 3px;
}

.post__body pre {
  overflow-x: auto;
  padding: 0.85rem 1rem;
  margin: 0.6rem 0 1rem;
  background: rgba(11, 22, 32, 0.06);
  border-radius: var(--radius);
  font-size: 0.88rem;
}

.post__body pre code {
  padding: 0;
  background: none;
}

.post__title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.post__excerpt {
  color: var(--ink-soft);
}

.post__inline-img {
  display: block;
  max-width: min(100%, 280px);
  width: auto;
  height: auto;
  margin: 0.6rem 0;
  border-radius: var(--radius);
  object-fit: contain;
}

.post__media {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.post__media button {
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius);
  max-width: 220px;
}

.post__media img {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 160px;
  height: auto;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.post__reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.post__reactions span {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.md-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 0.85rem 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  -webkit-overflow-scrolling: touch;
}

.md-table table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.4;
}

.md-table th,
.md-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.md-table th:last-child,
.md-table td:last-child {
  border-right: 0;
}

.md-table tr:last-child td {
  border-bottom: 0;
}

.md-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(11, 22, 32, 0.04);
  position: sticky;
  top: 0;
}

.md-table td:last-child,
.md-table th:last-child {
  white-space: normal;
  min-width: 12rem;
  max-width: 22rem;
}

.about {
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.about--page {
  border-bottom: 0;
  padding-top: clamp(2rem, 5vw, 3.5rem);
  min-height: 60vh;
}

.about--page h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

.about__layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}

.about__photo {
  margin: 0;
}

.about__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  background: rgba(11, 22, 32, 0.06);
}

.about__inner {
  max-width: none;
  margin: 0;
}

.about__inner h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.04em;
}

.about__lead {
  margin: 0 0 0.85rem;
  font-size: 1.08rem;
  color: var(--ink);
}

.about__body {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.about__quote {
  margin: 0 0 1.4rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.45);
}

.about__quote p {
  margin: 0 0 0.65rem;
}

.about__quote cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.about__quote cite a {
  text-decoration: none;
}

.about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.about__links a {
  text-decoration: none;
  color: var(--accent);
}

.about__links a:hover {
  color: var(--ink);
}

.load-more {
  display: block;
  margin: 2rem auto 0;
}

.footer {
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer a {
  color: var(--ink);
}

.lightbox {
  border: 0;
  padding: 0;
  max-width: min(96vw, 1100px);
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(11, 22, 32, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox img {
  max-height: 88vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius);
}

.lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 1.6rem;
  cursor: pointer;
}

.empty {
  padding: 2rem 0;
  color: var(--ink-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate(-8%, 4%) rotate(-4deg);
  }
  to {
    transform: translate(6%, -3%) rotate(5deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.75;
  }
}

@media (max-width: 700px) {
  .top__nav {
    gap: 0.5rem;
  }

  .top__brand {
    font-size: 1rem;
  }

  .top__link {
    display: none;
  }

  .top__tg {
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
  }

  .archive {
    grid-template-columns: 1fr;
  }

  .topics-panel {
    position: static;
    order: -1;
  }

  .timescale {
    margin-left: -0.35rem;
    margin-right: -0.35rem;
  }

  .timescale__track {
    display: flex;
    overflow-x: auto;
    padding: 0 0.35rem 0.15rem;
    scrollbar-width: thin;
  }

  .timescale__year {
    flex: 0 0 3.35rem;
  }

  .post {
    margin: 0;
    padding-left: 0.7rem;
    padding-right: 0;
  }

  .post__top {
    grid-template-columns: 1fr;
  }

  .post__thumb {
    width: 100%;
    max-width: 200px;
    height: 140px;
  }

  .post__media img,
  .post__media button {
    max-width: 160px;
  }

  .about__layout {
    grid-template-columns: 1fr;
  }

  .about__photo {
    max-width: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

