:root {
  --tpb-bg: #090b11;
  --tpb-bg-alt: #0d1018;
  --tpb-panel: rgba(16, 19, 28, 0.9);
  --tpb-panel-strong: rgba(20, 23, 33, 0.96);
  --tpb-panel-soft: rgba(12, 15, 22, 0.76);
  --tpb-line: rgba(255, 255, 255, 0.08);
  --tpb-line-strong: rgba(136, 147, 255, 0.22);
  --tpb-text: #f4f5f8;
  --tpb-muted: #a6adbc;
  --tpb-muted-2: #788092;
  --tpb-accent: #98a1ff;
  --tpb-accent-soft: rgba(152, 161, 255, 0.12);
  --tpb-accent-strong: #cad0ff;
  --tpb-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --site-width: 1180px;
  --reading-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--tpb-text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(950px 560px at 12% -8%, rgba(105, 117, 255, 0.16), transparent 55%),
    radial-gradient(760px 520px at 92% 0%, rgba(53, 114, 255, 0.1), transparent 50%),
    linear-gradient(180deg, #07090f, #090b11 32%, #0b0d14 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 92%);
}

body::after {
  inset: auto 6vw 7vh auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(152, 161, 255, 0.16), transparent 68%);
  filter: blur(14px);
}

::selection {
  background: rgba(152, 161, 255, 0.24);
  color: var(--tpb-text);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(152, 161, 255, 0.58);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 10, 16, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(calc(100% - 2rem), var(--site-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.14rem;
  text-decoration: none;
  white-space: nowrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.brand-text-main {
  color: #f6f7fb;
}

.brand-text-dot {
  color: var(--tpb-accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}

.site-nav a,
.menu-toggle {
  color: var(--tpb-muted);
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0.2rem 0;
  transition: color 160ms ease, transform 160ms ease;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.42rem;
  height: 1px;
  background: rgba(152, 161, 255, 0.7);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  color: var(--tpb-text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  margin-left: 0.35rem;
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

.site-main,
.site-footer {
  width: min(calc(100% - 2rem), var(--site-width));
  margin: 0 auto;
}

.site-main {
  padding: 3rem 0 4.5rem;
}

.site-footer {
  padding: 0 0 2rem;
}

.site-footer p {
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--tpb-muted-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-main {
  padding-top: 3.6rem;
}

.home-main .hero {
  max-width: 48rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero,
.page-intro {
  padding: 1rem 0 1.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: end;
}

.hero-copy-block {
  max-width: 46rem;
}

.hero-aside {
  display: grid;
  gap: 1rem;
}

.hero-panel,
.card,
.blog-rail,
.blog-main,
.admin-panel {
  border: 1px solid var(--tpb-line);
  background:
    linear-gradient(180deg, rgba(19, 23, 33, 0.96), rgba(11, 14, 21, 0.94)),
    rgba(14, 17, 24, 0.92);
  box-shadow: var(--tpb-shadow);
}

.hero-panel,
.card {
  border-radius: 22px;
}

.hero-panel {
  min-height: 162px;
  padding: 1.3rem 1.35rem;
}

.panel-label,
.eyebrow,
.card-kicker,
.rail-title,
.toolbar-chip {
  margin: 0;
  color: var(--tpb-accent-strong);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  font-weight: 700;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 8vw, 5.5rem);
  letter-spacing: -0.065em;
}

.hero-copy,
.page-intro p:not(.eyebrow),
.card p,
.hero-panel p:not(.panel-label),
.mini-stat p {
  margin: 0;
  color: var(--tpb-muted);
  line-height: 1.78;
  font-size: 1rem;
}

.panel-label {
  display: block;
  margin-bottom: 0.95rem;
}

.hero-copy {
  max-width: 43rem;
  margin-top: 1.45rem;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: rgba(152, 161, 255, 0.14);
  border-color: rgba(152, 161, 255, 0.28);
  color: var(--tpb-text);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: rgba(152, 161, 255, 0.22);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--tpb-muted);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--tpb-text);
}

.signal-strip,
.feature-grid,
.content-grid,
.narrative-grid {
  display: grid;
  gap: 1rem;
}

.signal-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.mini-stat {
  min-height: 126px;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
}

.mini-stat-value {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.mini-stat-label {
  display: block;
  color: var(--tpb-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 3.4rem 0 1.1rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  letter-spacing: -0.05em;
}

.section-head p {
  margin: 0;
  max-width: 36rem;
  color: var(--tpb-muted);
  line-height: 1.7;
}

.feature-grid,
.content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.narrative-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.card {
  padding: 1.45rem;
}

.card-kicker {
  display: block;
  margin-bottom: 0.9rem;
}

.card h2 {
  margin-bottom: 0.8rem;
  font-size: 1.42rem;
  letter-spacing: -0.04em;
}

.card p + p {
  margin-top: 0.85rem;
}

.page-shell {
  padding-top: 1.4rem;
}

.page-intro {
  max-width: 48rem;
}

.page-intro h1 {
  max-width: 12.5ch;
}

.page-intro p:not(.eyebrow) {
  margin-top: 1.35rem;
}

.about-links {
  margin-top: 1.4rem;
  padding-top: 0.6rem;
}

.about-links-head {
  display: grid;
  gap: 0.8rem;
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.about-links-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.link-stack {
  position: relative;
  display: grid;
  gap: 0.65rem;
  padding-left: 0;
}

.profile-link {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.profile-link:last-child {
  border-bottom: 0;
}

.profile-link:hover,
.profile-link:focus-visible {
  transform: translateX(6px);
  border-color: rgba(152, 161, 255, 0.22);
  background: linear-gradient(90deg, rgba(152, 161, 255, 0.07), transparent 48%);
}

.profile-link-icon-wrap,
.profile-link-url {
  flex-shrink: 0;
}

.profile-link-icon-wrap {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(152, 161, 255, 0.18);
  background: rgba(152, 161, 255, 0.08);
  color: var(--tpb-accent-strong);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.profile-link:hover .profile-link-icon-wrap,
.profile-link:focus-visible .profile-link-icon-wrap {
  border-color: rgba(152, 161, 255, 0.3);
  background: rgba(152, 161, 255, 0.14);
  color: #f4f5f8;
}

.profile-link-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.profile-link-image {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(100%);
}

.profile-link-icon rect,
.profile-link-icon path,
.profile-link-icon circle,
.profile-link-icon ellipse {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-link-name {
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--tpb-text);
}

.profile-link-meta {
  display: block;
  margin-top: 0.15rem;
  color: var(--tpb-muted);
  line-height: 1.55;
}

.profile-link-url {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tpb-muted-2);
  white-space: nowrap;
}

.blog-shell {
  width: min(calc(100% - 2rem), 1300px);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.4rem;
}

.blog-rail,
.blog-main,
.admin-panel {
  border-radius: 24px;
}

.blog-rail {
  position: sticky;
  top: 5.4rem;
  height: fit-content;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(16, 19, 28, 0.98), rgba(10, 12, 18, 0.96)),
    rgba(14, 17, 24, 0.92);
}

.rail-title {
  margin-bottom: 1rem;
  color: var(--tpb-muted-2);
}

.rail-btn,
.month-btn,
.month-post-item,
.post-like-btn,
.post-comment-jump-btn,
.post-share-btn {
  font: inherit;
}

.rail-btn,
.month-btn {
  width: 100%;
  padding: 0.7rem 0.8rem;
  text-align: left;
  color: var(--tpb-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.rail-btn:hover,
.month-btn:hover,
.month-post-item:hover {
  color: var(--tpb-text);
  background: rgba(255, 255, 255, 0.04);
}

.rail-btn.active,
.month-btn.active {
  color: var(--tpb-text);
  background: rgba(152, 161, 255, 0.08);
  border-color: rgba(152, 161, 255, 0.22);
}

details.archive-year {
  margin-top: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

details.archive-year > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.8rem 0.85rem;
  color: var(--tpb-text);
  font-weight: 700;
  border-bottom: 1px solid transparent;
}

details[open].archive-year > summary {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

details.archive-year > summary::-webkit-details-marker {
  display: none;
}

.year-months {
  display: grid;
  gap: 0.3rem;
  padding: 0.45rem;
}

.month-post-list {
  display: grid;
  gap: 0.22rem;
  margin: 0.18rem 0 0.48rem;
  padding-left: 0.35rem;
}

.month-post-item {
  width: 100%;
  padding: 0.52rem 0.62rem;
  text-align: left;
  color: var(--tpb-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.84rem;
  line-height: 1.35;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.month-post-item.active {
  color: var(--tpb-text);
  background: rgba(152, 161, 255, 0.11);
  border-color: rgba(152, 161, 255, 0.22);
}

.blog-main {
  min-height: 74vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17, 20, 30, 0.97), rgba(10, 12, 18, 0.98)),
    rgba(14, 17, 24, 0.94);
}

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-toolbar-left {
  color: var(--tpb-muted);
  font-size: 0.95rem;
}

.blog-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.toolbar-chip {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(152, 161, 255, 0.18);
  background: rgba(152, 161, 255, 0.08);
}

.toolbar-link {
  color: var(--tpb-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.toolbar-link:hover,
.toolbar-link:focus-visible {
  color: var(--tpb-text);
  border-color: rgba(152, 161, 255, 0.35);
}

.toolbar-button {
  min-height: 38px;
  padding: 0.58rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--tpb-text);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.toolbar-button:hover,
.toolbar-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(152, 161, 255, 0.24);
  background: rgba(152, 161, 255, 0.08);
}

.toolbar-button[disabled] {
  opacity: 0.48;
  cursor: default;
  transform: none;
}

.toolbar-button.secondary {
  color: var(--tpb-muted);
}

.toolbar-button.microsoft {
  border-color: rgba(100, 181, 246, 0.26);
  background: rgba(22, 43, 70, 0.72);
  color: #f4f8ff;
}

.toolbar-button.microsoft:hover,
.toolbar-button.microsoft:focus-visible {
  border-color: rgba(100, 181, 246, 0.4);
  background: rgba(30, 58, 92, 0.86);
}

.toolbar-button.danger {
  border-color: rgba(255, 109, 132, 0.22);
  background: rgba(88, 24, 37, 0.42);
  color: #ffd7df;
}

.toolbar-button.danger:hover,
.toolbar-button.danger:focus-visible {
  border-color: rgba(255, 109, 132, 0.36);
  background: rgba(110, 30, 47, 0.54);
}

.toolbar-chip.is-admin {
  color: var(--tpb-text);
  border-color: rgba(152, 161, 255, 0.24);
  background: rgba(152, 161, 255, 0.14);
}

.blog-editor[hidden] {
  display: none;
}

.blog-editor {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(16, 19, 28, 0.82), rgba(11, 14, 21, 0.72));
}

.blog-editor-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 1.15rem 1.2rem;
}

.blog-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.blog-editor-field {
  display: grid;
  gap: 0.38rem;
}

.blog-editor-field span {
  color: var(--tpb-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.blog-editor-field-full {
  grid-column: 1 / -1;
}

.blog-editor-featured {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    rgba(6, 10, 16, 0.42);
}

.blog-editor-featured-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.blog-editor-featured-title {
  margin: 0;
  color: var(--tpb-text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.blog-editor-featured-sub {
  margin-top: 0.22rem;
  color: var(--tpb-muted);
  font-size: 0.88rem;
}

.blog-editor-featured-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.blog-editor-featured-preview {
  display: grid;
  gap: 0.55rem;
}

.blog-editor-featured-preview[hidden] {
  display: none;
}

.blog-editor-featured-preview img {
  width: min(100%, 560px);
  max-height: 260px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.blog-editor-featured-meta {
  color: var(--tpb-muted);
  font-size: 0.86rem;
}

.blog-editor-input,
.blog-editor-textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--tpb-text);
  padding: 0.72rem 0.82rem;
}

.blog-editor-input::placeholder,
.blog-editor-textarea::placeholder {
  color: #757d8f;
}

.blog-editor-textarea {
  min-height: 340px;
  resize: vertical;
  line-height: 1.7;
}

.blog-editor-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
}

.blog-editor-tools-label {
  color: var(--tpb-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.blog-editor-tools-input {
  width: 5.5rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--tpb-text);
  padding: 0.6rem 0.78rem;
}

.blog-editor-tools-input:focus-visible {
  outline: 2px solid rgba(152, 161, 255, 0.34);
  outline-offset: 2px;
}

.blog-editor-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.blog-editor-status {
  margin: 0;
  color: var(--tpb-muted);
  font-size: 0.88rem;
}

.post-wrap {
  width: min(var(--reading-width), 100%);
  margin: 0 auto;
  padding: 2.3rem 1.5rem 3rem;
}

.post-title {
  max-width: none;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.post-meta {
  margin-top: 1rem;
  color: var(--tpb-muted);
}

.post-excerpt {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: color-mix(in srgb, var(--tpb-text) 72%, var(--tpb-muted) 28%);
  font-size: 1.08rem;
  line-height: 1.65;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.post-excerpt[hidden] {
  display: none;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.author-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(152, 161, 255, 0.08);
  color: var(--tpb-text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

.author-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-copy {
  display: grid;
  gap: 0.18rem;
}

.author-name {
  color: var(--tpb-text);
  font-weight: 600;
}

.author-sub {
  color: var(--tpb-muted);
  font-size: 0.9rem;
}

.post-engagement-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.post-like-btn,
.post-comment-jump-btn,
.post-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.56rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--tpb-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.post-like-btn:hover,
.post-comment-jump-btn:hover,
.post-share-btn:hover {
  color: var(--tpb-text);
  border-color: rgba(152, 161, 255, 0.22);
  background: rgba(152, 161, 255, 0.08);
}

.post-like-btn.is-active {
  color: var(--tpb-text);
  border-color: rgba(152, 161, 255, 0.28);
  background: rgba(152, 161, 255, 0.12);
  cursor: default;
}

.post-like-btn[disabled] {
  opacity: 0.92;
  cursor: default;
}

.post-featured {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.75rem;
}

.post-featured[hidden] {
  display: none;
}

.post-featured-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: zoom-in;
}

.post-featured-caption {
  color: var(--tpb-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.post-content {
  margin-top: 1.5rem;
  color: var(--tpb-muted);
  font-size: 1.06rem;
  line-height: 1.9;
}

.post-content p {
  margin: 0 0 1.15rem;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin: 1.75rem 0 0.9rem;
  color: var(--tpb-text);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.post-content h1 {
  font-size: 2rem;
}

.post-content h2 {
  font-size: 1.62rem;
}

.post-content h3 {
  font-size: 1.24rem;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.2rem 1.35rem;
  padding: 0;
}

.post-content li + li {
  margin-top: 0.38rem;
}

.post-content a {
  color: var(--tpb-accent-strong);
  text-decoration-color: rgba(152, 161, 255, 0.34);
  text-underline-offset: 0.18em;
}

.body-figure {
  margin: 1.4rem 0 1.55rem;
  text-align: center;
}

.body-image {
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: zoom-in;
}

.body-image-caption {
  margin-top: 0.55rem;
  color: var(--tpb-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: center;
}

.blog-image-overlay[hidden] {
  display: none;
}

.blog-image-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.blog-image-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 14, 0.82);
  backdrop-filter: blur(4px);
}

.blog-image-overlay-panel {
  position: relative;
  width: min(1100px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  display: grid;
  gap: 0.6rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(11, 14, 21, 0.94);
  box-shadow: var(--tpb-shadow);
}

.blog-image-overlay-close {
  justify-self: end;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--tpb-text);
  cursor: pointer;
}

.blog-image-overlay-img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  object-fit: contain;
  border-radius: 12px;
}

.blog-image-overlay-caption {
  color: var(--tpb-muted);
  font-size: 0.88rem;
  text-align: center;
}

.blog-admin-dock[hidden] {
  display: none;
}

.blog-admin-dock {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 95;
  display: grid;
  gap: 0.7rem;
  justify-items: end;
}

.blog-admin-toggle {
  min-height: 42px;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(152, 161, 255, 0.18);
  border-radius: 999px;
  background: rgba(11, 14, 21, 0.92);
  color: var(--tpb-text);
  box-shadow: var(--tpb-shadow);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.blog-admin-toggle:hover,
.blog-admin-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(152, 161, 255, 0.28);
  background: rgba(17, 20, 30, 0.96);
}

.blog-admin-panel {
  width: min(340px, calc(100vw - 2rem));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 20, 30, 0.97), rgba(10, 12, 18, 0.98));
  box-shadow: var(--tpb-shadow);
  padding: 1rem;
}

.blog-admin-panel[hidden] {
  display: none;
}

.blog-admin-panel h2,
.blog-admin-panel h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.blog-admin-panel p {
  margin: 0;
  color: var(--tpb-muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.blog-admin-panel code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9em;
  color: var(--tpb-text);
}

.blog-admin-form,
.blog-admin-user {
  display: grid;
  gap: 0.7rem;
}

.blog-admin-divider {
  height: 1px;
  margin: 0.2rem 0 0.85rem;
  background: rgba(255, 255, 255, 0.07);
}

.blog-admin-field {
  display: grid;
  gap: 0.35rem;
}

.blog-admin-field span {
  color: var(--tpb-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-admin-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--tpb-text);
  padding: 0.72rem 0.82rem;
}

.blog-admin-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.blog-admin-status {
  min-height: 1.2rem;
  color: var(--tpb-muted);
  font-size: 0.86rem;
}

.account-shell {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.3rem;
  padding: 2rem 0 0.5rem;
}

.account-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
}

.account-avatar {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(152, 161, 255, 0.12), rgba(255, 255, 255, 0.03));
  color: var(--tpb-text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.45rem;
  font-weight: 600;
  overflow: hidden;
}

.account-avatar.has-image {
  background: rgba(255, 255, 255, 0.02);
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-hero-copy {
  display: grid;
  gap: 0.45rem;
}

.account-hero-copy h1 {
  margin: 0;
  letter-spacing: -0.05em;
}

.account-hero-copy p:last-child {
  margin: 0;
  color: var(--tpb-muted);
}

.account-form {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 19, 28, 0.78), rgba(10, 12, 18, 0.9));
  box-shadow: var(--tpb-shadow);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.account-grid-secondary {
  align-items: end;
}

.account-field {
  display: grid;
  gap: 0.35rem;
}

.account-field span {
  color: var(--tpb-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-file-input {
  padding-block: 0.64rem;
}

.account-note {
  margin: 0;
  color: var(--tpb-muted);
  line-height: 1.7;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.post-comments {
  display: grid;
  gap: 0.95rem;
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.post-comments h2 {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.comment-list {
  display: grid;
  gap: 0.7rem;
}

.comment-item,
.comment-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.comment-item {
  padding: 0.82rem;
  display: grid;
  gap: 0.55rem;
}

.comment-head,
.comment-user,
.comment-box-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.comment-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(152, 161, 255, 0.08);
  color: var(--tpb-text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

.comment-user-meta {
  display: grid;
  gap: 0.1rem;
}

.comment-display {
  color: var(--tpb-text);
  font-size: 0.93rem;
  font-weight: 600;
}

.comment-time,
.comment-help,
.comment-empty {
  color: var(--tpb-muted);
  font-size: 0.82rem;
}

.comment-body {
  color: var(--tpb-muted);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-box {
  display: grid;
  gap: 0.6rem;
  padding: 0.8rem;
}

.comment-input,
.comment-box textarea,
.admin-textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
  color: var(--tpb-text);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
}

.comment-input::placeholder,
.comment-box textarea::placeholder,
.admin-textarea::placeholder {
  color: #757d8f;
}

.comment-box textarea {
  min-height: 92px;
  resize: vertical;
}

.comment-box-actions {
  justify-content: space-between;
}

.comment-submit {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(152, 161, 255, 0.22);
  border-radius: 999px;
  background: rgba(152, 161, 255, 0.12);
  color: var(--tpb-text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.comment-submit:hover,
.comment-submit:focus-visible {
  transform: translateY(-1px);
  background: rgba(152, 161, 255, 0.18);
}

.small {
  font-size: 0.86rem;
}

.post-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--tpb-muted);
}

.admin-shell {
  padding-bottom: 3rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.35rem;
}

.admin-panel {
  padding: 1rem;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.admin-panel-head h2 {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.admin-token-wrap,
.admin-form,
.admin-post-list {
  display: grid;
  gap: 0.75rem;
}

.admin-token-wrap {
  margin-bottom: 1rem;
}

.admin-label {
  display: inline-block;
  margin-bottom: 0.38rem;
  color: var(--tpb-muted);
  font-size: 0.86rem;
}

.admin-post-item {
  width: 100%;
  padding: 0.8rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--tpb-text);
  cursor: pointer;
  display: grid;
  gap: 0.22rem;
}

.admin-post-item small {
  color: var(--tpb-muted);
}

.admin-post-item.active {
  border-color: rgba(152, 161, 255, 0.22);
  background: rgba(152, 161, 255, 0.1);
}

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.admin-textarea {
  min-height: 420px;
  resize: vertical;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.admin-secondary-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--tpb-muted);
  border-color: rgba(255, 255, 255, 0.08);
}

.admin-secondary-btn:hover,
.admin-secondary-btn:focus-visible {
  color: var(--tpb-text);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy-block,
  .hero-panel,
  .mini-stat,
  .card,
  .blog-rail,
  .blog-main,
  .admin-panel {
    animation: rise-in 620ms ease both;
  }

  .hero-panel:nth-child(2),
  .mini-stat:nth-child(2),
  .card:nth-child(2) {
    animation-delay: 70ms;
  }

  .mini-stat:nth-child(3),
  .card:nth-child(3) {
    animation-delay: 120ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .feature-grid,
  .content-grid,
  .narrative-grid,
  .blog-shell,
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

  .blog-rail {
    position: static;
  }
}

@media (max-width: 780px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 0.8rem 0;
  }

  .nav-right {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
    padding: 0.2rem 0;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    margin-left: 0;
    padding-top: 0.8rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.78rem 0;
  }

  .site-nav a::after {
    bottom: 0.15rem;
  }

  .site-main {
    padding: 2.6rem 0 4rem;
  }

  h1,
  .page-intro h1,
  .post-title {
    max-width: none;
  }

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

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

  .blog-editor-grid,
  .profile-link {
    grid-template-columns: 1fr;
  }

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

  .account-hero {
    justify-items: start;
  }

  .blog-admin-dock {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .profile-link-url {
    white-space: normal;
  }

  .blog-toolbar,
  .blog-editor-featured-head,
  .post-meta-bar,
  .comment-box-actions,
  .admin-actions {
    align-items: flex-start;
  }

  .admin-form-row {
    grid-template-columns: 1fr;
  }

  .post-wrap {
    padding-inline: 1rem;
  }
}
