.highlight table td {
  padding: 5px;
}

.highlight table pre {
  margin: 0;
}

.highlight .cm {
  color: #999988;
  font-style: italic;
}

.highlight .cp {
  color: #999999;
  font-weight: bold;
}

.highlight .c1 {
  color: #999988;
  font-style: italic;
}

.highlight .cs {
  color: #999999;
  font-weight: bold;
  font-style: italic;
}

.highlight .c, .highlight .cd {
  color: #999988;
  font-style: italic;
}

.highlight .err {
  color: #a61717;
  background-color: #e3d2d2;
}

.highlight .gd {
  color: #000000;
  background-color: #ffdddd;
}

.highlight .ge {
  color: #000000;
  font-style: italic;
}

.highlight .gr {
  color: #aa0000;
}

.highlight .gh {
  color: #999999;
}

.highlight .gi {
  color: #000000;
  background-color: #ddffdd;
}

.highlight .go {
  color: #888888;
}

.highlight .gp {
  color: #555555;
}

.highlight .gs {
  font-weight: bold;
}

.highlight .gu {
  color: #aaaaaa;
}

.highlight .gt {
  color: #aa0000;
}

.highlight .kc {
  color: #000000;
  font-weight: bold;
}

.highlight .kd {
  color: #000000;
  font-weight: bold;
}

.highlight .kn {
  color: #000000;
  font-weight: bold;
}

.highlight .kp {
  color: #000000;
  font-weight: bold;
}

.highlight .kr {
  color: #000000;
  font-weight: bold;
}

.highlight .kt {
  color: #445588;
  font-weight: bold;
}

.highlight .k, .highlight .kv {
  color: #000000;
  font-weight: bold;
}

.highlight .mf {
  color: #009999;
}

.highlight .mh {
  color: #009999;
}

.highlight .il {
  color: #009999;
}

.highlight .mi {
  color: #009999;
}

.highlight .mo {
  color: #009999;
}

.highlight .m, .highlight .mb, .highlight .mx {
  color: #009999;
}

.highlight .sb {
  color: #d14;
}

.highlight .sc {
  color: #d14;
}

.highlight .sd {
  color: #d14;
}

.highlight .s2 {
  color: #d14;
}

.highlight .se {
  color: #d14;
}

.highlight .sh {
  color: #d14;
}

.highlight .si {
  color: #d14;
}

.highlight .sx {
  color: #d14;
}

.highlight .sr {
  color: #009926;
}

.highlight .s1 {
  color: #d14;
}

.highlight .ss {
  color: #990073;
}

.highlight .s {
  color: #d14;
}

.highlight .na {
  color: #008080;
}

.highlight .bp {
  color: #999999;
}

.highlight .nb {
  color: #0086B3;
}

.highlight .nc {
  color: #445588;
  font-weight: bold;
}

.highlight .no {
  color: #008080;
}

.highlight .nd {
  color: #3c5d5d;
  font-weight: bold;
}

.highlight .ni {
  color: #800080;
}

.highlight .ne {
  color: #990000;
  font-weight: bold;
}

.highlight .nf {
  color: #990000;
  font-weight: bold;
}

.highlight .nl {
  color: #990000;
  font-weight: bold;
}

.highlight .nn {
  color: #555555;
}

.highlight .nt {
  color: #000080;
}

.highlight .vc {
  color: #008080;
}

.highlight .vg {
  color: #008080;
}

.highlight .vi {
  color: #008080;
}

.highlight .nv {
  color: #008080;
}

.highlight .ow {
  color: #000000;
  font-weight: bold;
}

.highlight .o {
  color: #000000;
  font-weight: bold;
}

.highlight .w {
  color: #bbbbbb;
}

.highlight {
  background-color: #f8f8f8;
}

@font-face {
  font-family: Inconsolata;
  src: url("../fonts/inconsolata-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
:root {
  --bg:#0a0a0a;
  --surface:#0f0f0f;
  --accent:#ff1a1a;
  --text:#d4d4d4;
  --muted:#666;
  --line:rgba(255,255,255,.06);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.7 Inconsolata, monospace;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #c00 40%, transparent);
  z-index: 200;
}

button, input, code, pre {
  font-family: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #ff5555;
}

a:focus-visible, button:focus-visible, .table-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: rgba(255, 26, 26, 0.25);
  color: #fff;
}

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 300;
  top: 8px;
  left: 16px;
  background: var(--bg);
  padding: 10px;
}

.topbar {
  position: sticky;
  top: 2px;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.topbar-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.topbar-brand:hover {
  color: var(--accent);
  opacity: 0.8;
}

.topbar-avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid rgba(255, 26, 26, 0.3);
  background: #390b0b;
  color: #e8baba;
  font-size: 14px;
}

.topbar-links {
  display: flex;
  gap: 24px;
}

.topbar-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.topbar-links a:hover {
  color: #e0e0e0;
}

.page-layout {
  max-width: 1200px;
  margin: auto;
  padding: 24px 24px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
}

.content {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s;
}

.sidebar-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.bio-card {
  display: flex;
  gap: 14px;
  align-items: center;
}

.sidebar-avatar {
  height: 52px;
  width: 52px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  color: #e8baba;
  background: #4a0d0d;
  box-shadow: 0 0 20px rgba(255, 26, 26, 0.2), 0 0 0 1px rgba(255, 26, 26, 0.15);
}

.bio-text {
  min-width: 0;
}

.sidebar-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 4px;
}

.sidebar-bio {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #777;
  margin: 0;
}

.sidebar-bio a {
  color: #aaa;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-bio a:hover {
  color: var(--accent);
}

.sidebar-card-title {
  color: #555;
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.links-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 20px;
}

.links-card .sidebar-card-title {
  margin-bottom: 4px;
}

.links-card a {
  color: #888;
  font-size: 0.88rem;
}

.links-card a:hover {
  color: #e0e0e0;
}

.posts-list {
  display: flex;
  flex-direction: column;
}

.post-card {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.post-card:first-child {
  padding-top: 0;
}

.post-card:last-child {
  border-bottom: 0;
}

.post-date {
  color: #4a4a4a;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.post-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin: 6px 0 0;
  transition: color 0.2s;
}

.post-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #666;
  margin: 8px 0 0;
  transition: color 0.2s;
}

.post-card:hover .post-title {
  color: #fff;
}

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

.post-card:hover .post-desc {
  color: #888;
}

.post-title::before {
  content: ">";
  display: inline-block;
  vertical-align: baseline;
  width: 0;
  margin-right: 0;
  opacity: 0;
  white-space: nowrap;
  color: var(--accent);
  font-weight: 400;
  transform: translateX(-6px);
  transition: width 0.2s ease, margin-right 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.post-card:is(:hover, :focus-visible) .post-title::before {
  width: 1ch;
  margin-right: 8px;
  opacity: 0.7;
  transform: translateX(0);
}

.post-card:focus-visible .post-title {
  color: #fff;
}

.post-card:focus-visible .post-date {
  color: var(--accent);
}

.post-card:focus-visible .post-desc {
  color: #888;
}

.page-title, .about-page h1, .not-found h1 {
  color: #fff;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 8px;
}

.page-title::after, .about-page h1::after, .not-found h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  margin-top: 14px;
  margin-bottom: 24px;
}

.post-date-meta {
  color: #4a4a4a;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: -16px 0 24px;
}

.example-label {
  color: #666;
}

.prose {
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose p, .prose ul, .prose ol, .prose dl, .prose blockquote {
  margin: 0 0 18px;
}

.prose h2, .prose h3 {
  color: #e8e8e8;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 16px;
}

.prose h2 {
  font-size: 1.65rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.prose h3 {
  font-size: 1.45rem;
}

.prose h2::before, .prose h3::before {
  content: "> ";
  color: var(--accent);
  font-weight: 400;
  opacity: 0.6;
}

.prose strong {
  color: #fff;
}

.prose ul {
  padding-left: 0;
  list-style: none;
}

.prose ul > li::before {
  content: "> ";
  color: var(--accent);
  opacity: 0.6;
}

.prose ol {
  padding-left: 24px;
}

.prose li + li {
  margin-top: 4px;
}

.prose li a {
  color: #bbb;
}

.prose li a:hover {
  color: var(--accent);
}

.prose blockquote {
  border-left: 2px solid rgba(255, 26, 26, 0.4);
  padding-left: 20px;
  color: #888;
  font-style: italic;
}

.prose blockquote p {
  margin-bottom: 0;
}

.prose :not(pre) > code {
  font-size: 85%;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2em 0.5em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow-wrap: anywhere;
  box-decoration-break: clone;
}

.prose div.highlighter-rouge {
  position: relative;
  margin: 0 0 16px;
  font-size: 14px;
}

.highlight {
  background: transparent;
}

.prose pre {
  font-size: 90%;
  line-height: 1.6;
  padding: 20px 24px;
  margin: 0;
  overflow: auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

.prose pre code {
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
  white-space: pre;
}

.highlight .ne, .highlight .nf, .highlight .nl {
  color: var(--accent);
}

.highlight .k, .highlight .kc, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .nt, .highlight .o, .highlight .ow, .highlight .gp, .highlight .nn {
  color: var(--text);
}

.highlight .s, .highlight .s1, .highlight .s2 {
  color: #bd9b9b;
}

.highlight .c, .highlight .c1, .highlight .cm {
  color: #777;
  font-style: normal;
}

.highlight .nb, .highlight .nv {
  color: #aaa;
}

.highlight .err {
  color: #ff7777;
  background: transparent;
}

.copy-code {
  position: absolute;
  right: 8px;
  top: 7px;
  font: 12px Inconsolata, monospace;
  border: 1px solid #333;
  border-radius: 4px;
  background: #151515;
  color: #999;
  padding: 3px 7px;
  cursor: pointer;
}

.copy-code:hover {
  color: #fff;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 18px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.6;
}

.prose th, .prose td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
}

.prose th {
  color: #fff;
  font-weight: 700;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.prose img {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.article-footer a {
  color: #888;
}

.article-footer a:hover {
  color: var(--accent);
}

.next-post {
  display: block;
  margin: 20px 0;
  color: #aaa;
  font-size: 1rem;
}

.next-post > span {
  display: block;
  color: #555;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.about-lead {
  font-size: 1.05rem;
  color: #888;
  margin: 0 0 24px;
}

.about-page > .eyebrow {
  display: none;
}

.about-page > .text-link, .not-found > .text-link {
  display: inline-block;
  margin: 16px 0;
}

.green {
  color: var(--accent);
}

.eyebrow {
  font-size: 0.85rem;
  color: #666;
}

.not-found {
  padding-top: 4px;
}

[hidden] {
  display: none !important;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 24px 20px 40px;
  }
  .sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .bio-card {
    flex: 1 1 100%;
  }
  .sidebar-bio {
    max-width: 540px;
  }
}
@media (max-width: 600px) {
  .topbar-inner {
    padding: 0 16px;
    gap: 12px;
  }
  .topbar-links {
    gap: 10px;
  }
  .topbar-links a {
    font-size: 0.78rem;
  }
  .topbar-brand {
    font-size: 0.88rem;
  }
  .page-layout {
    padding: 20px 16px 32px;
  }
  .post-card {
    padding: 16px 0;
  }
  .page-title, .about-page h1, .not-found h1 {
    font-size: 1.5rem;
  }
  .prose h2 {
    font-size: 1.35rem;
  }
  .prose h3 {
    font-size: 1.15rem;
  }
  .prose pre {
    padding: 14px 16px;
    font-size: 85%;
  }
  .sidebar-card {
    padding: 16px;
  }
  .post-title {
    font-size: 1.2rem;
  }
}
@media (max-width: 360px) {
  .topbar-brand {
    gap: 7px;
  }
  .topbar-avatar {
    width: 26px;
    height: 26px;
  }
  .topbar-links {
    gap: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
  }
}
@media print {
  body {
    background: #fff;
    color: #111;
  }
  .topbar, .sidebar, .copy-code, .article-footer, .next-post {
    display: none !important;
  }
  .page-layout {
    display: block;
    padding: 0;
    max-width: none;
  }
  .page-title, .prose h2, .prose h3, .prose strong {
    color: #111;
  }
  .prose pre {
    white-space: pre-wrap;
    background: #f7f7f7;
    color: #111;
  }
}
/* Author socials and the public Bluesky feed. */
.bio-card {
  display: block;
}

.bio-summary {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
}

.social-links a, .social-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  color: #a3a3a3;
  font-size: 0.8125rem;
  line-height: 1.3;
}

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

.social-links svg {
  flex-shrink: 0;
}

.social-pending {
  color: #666;
}

.bluesky-card {
  min-width: 0;
  padding: 18px 20px 14px;
}

.bluesky-card .sidebar-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #aaa;
  margin-bottom: 12px;
  letter-spacing: 0.075em;
}

.bluesky-card .sidebar-card-title svg {
  color: var(--accent);
  flex-shrink: 0;
}

.bluesky-status {
  margin: 0 0 8px;
  color: #888;
  font-size: 0.875rem;
  line-height: 1.6;
}

.bluesky-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bluesky-posts li + li {
  border-top: 1px solid var(--line);
}

.bluesky-post {
  position: relative;
  display: block;
  padding: 14px 0;
  color: #bbb;
}

.bluesky-posts li:first-child .bluesky-post {
  padding-top: 0;
}

.bluesky-text {
  margin: 0 0 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bluesky-post time {
  display: block;
  color: #777;
  font-size: 0.75rem;
  line-height: 1.5;
  padding-right: 24px;
}

.bluesky-post-arrow {
  position: absolute;
  right: 0;
  bottom: 13px;
  color: #777;
}

.bluesky-post:hover {
  color: #eee;
}

.bluesky-post:hover .bluesky-post-arrow {
  color: var(--accent);
}

.bluesky-retry {
  display: block;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  border: 1px solid #403030;
  border-radius: 4px;
  background: #151010;
  color: #bbb;
  padding: 5px 9px;
  margin: 10px 0 14px;
}

.bluesky-retry:hover {
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 900px) {
  .bluesky-card {
    flex: 1 1 100%;
  }
  .social-links {
    gap: 8px 24px;
  }
}
/* About: one name, one animation, a public key, and links. */
.personal-home {
  background: #000;
  color: #bbb;
  font-size: 1rem;
}

.personal-home::before {
  display: none;
}

.personal-home .page-layout {
  display: block;
  max-width: none;
  padding: 0 24px 64px;
}

.profile-nav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  line-height: 1.2;
}

.profile-nav a {
  font-size: 1.25rem;
  font-weight: 700;
  color: #eee;
  letter-spacing: -0.02em;
}

.profile-nav a:hover {
  color: #ff3c3c;
}

.profile-page {
  width: 100%;
  max-width: 600px;
  margin: 20px auto 0;
  text-align: center;
}

.profile-animation {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: #000;
}

.profile-animation img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
  background: #000;
}

.pgp-demo {
  color: #888;
  font-size: 0.8125rem;
  margin: 0 0 10px;
}

.profile-pgp {
  margin: 36px auto 0;
  max-width: 100%;
  font-size: 0.875rem;
  line-height: 1.6;
}

.profile-pgp h1 {
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #aaa;
  margin: 0 0 10px;
}

.pgp-unavailable {
  margin: 0;
  color: #777;
}

.pgp-fingerprint {
  margin: 0 0 10px;
  color: #bbb;
  overflow-wrap: anywhere;
}

.profile-pgp details {
  max-width: 100%;
  text-align: center;
}

.profile-pgp summary {
  cursor: pointer;
  display: list-item;
  list-style-position: inside;
  color: #bbb;
}

.profile-pgp pre {
  margin: 18px 0 0;
  max-width: 100%;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.75rem;
  color: #aaa;
  line-height: 1.7;
}

.profile-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 28px auto 0;
}

.profile-links a {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #ddd;
  text-decoration: underline;
  text-decoration-color: #444;
  text-underline-offset: 5px;
}

.profile-links a:hover {
  color: #ff3c3c;
  text-decoration-color: currentColor;
}

@media (max-width: 600px) {
  .profile-nav {
    padding: 22px 20px;
  }
  .personal-home .page-layout {
    padding: 0 20px 48px;
  }
  .profile-page {
    margin-top: 24px;
  }
  .profile-pgp {
    margin-top: 30px;
  }
  .profile-links {
    gap: 12px 24px;
  }
}
/* Post and tag search. */
.topbar-avatar, .sidebar-avatar {
  object-fit: cover;
}

.post-search {
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid #242020;
}

.post-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

#post-query {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  background: #101010;
  border: 1px solid #343030;
  border-radius: 5px;
  color: #eee;
  font-size: 1rem;
  line-height: 1.4;
}

#post-query::placeholder {
  color: #888;
}

#post-query:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
  outline-offset: 1px;
}

.search-clear {
  background: transparent;
  border: 1px solid #393030;
  border-radius: 4px;
  padding: 10px;
  color: #ccc;
  font-size: 0.875rem;
  cursor: pointer;
}

.search-clear:hover {
  color: #fff;
  border-color: #795151;
}

.search-help {
  font-size: 0.8125rem;
  color: #888;
  line-height: 1.5;
  margin: 9px 0 12px;
}

.search-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.search-tags {
  flex: 1;
  min-width: 0;
}

.search-tags summary {
  color: #aaa;
  font-size: 0.875rem;
  cursor: pointer;
  width: fit-content;
}

.search-tags summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-options button {
  font: inherit;
  font-size: 0.875rem;
  padding: 5px 9px;
  border: 1px solid #322828;
  border-radius: 4px;
  color: #bba5a5;
  background: #100d0d;
  cursor: pointer;
  overflow-wrap: anywhere;
  max-width: 100%;
  text-align: left;
}

.tag-options button span {
  color: #888;
  margin-left: 5px;
}

.tag-options button:hover, .tag-options button[aria-pressed=true] {
  border-color: #a63333;
  color: #fff;
  background: #2a1010;
}

#search-count {
  margin: 0;
  color: #888;
  font-size: 0.8125rem;
  white-space: nowrap;
  line-height: 1.7;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  color: #a87f7f;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.search-empty {
  font-size: 1rem;
  line-height: 1.6;
  color: #aaa;
  padding: 24px 0;
}

.article-tag-dropdown {
  margin: -6px 0 24px;
  font-size: 0.875rem;
}

.article-tag-dropdown summary {
  width: fit-content;
  cursor: pointer;
  color: #aaa;
}

.article-tag-dropdown summary:hover {
  color: #fff;
}

.article-tag-dropdown summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.article-tags {
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin: 12px 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.article-tags a {
  color: #af8686;
}

.article-tags a:hover {
  color: var(--accent);
}

@media print {
  .post-search {
    display: none;
  }
}
/* Global search modal. */
.topbar-links {
  align-items: center;
  gap: 20px;
}

.profile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.search-trigger, .search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: #aaa;
  cursor: pointer;
}

.search-trigger:hover, .search-close:hover {
  color: #fff;
}

.search-dialog {
  width: calc(100% - 32px);
  max-width: 720px;
  max-height: 80vh;
  max-height: 80dvh;
  margin: 8vh auto 0;
  padding: 0;
  background: #0d0d0d;
  color: var(--text);
  border: 1px solid #403030;
  border-radius: 9px;
  box-shadow: 0 24px 100px #000;
  overflow: auto;
  overscroll-behavior: contain;
}

.search-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
}

.search-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px 7px;
}

.search-dialog-header h2 {
  font-size: 1.125rem;
  color: #eee;
  margin: 0;
  font-weight: 600;
  line-height: 1.5;
}

.search-dialog-body {
  padding: 8px 24px 24px;
}

.search-dialog .post-search {
  margin-bottom: 6px;
}

.search-dialog .post-card {
  padding: 17px 0;
}

.search-dialog .post-title {
  font-size: 1.125rem;
}

.search-dialog .search-empty {
  margin-bottom: 0;
}

.search-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .brand-label {
    display: none;
  }
  .topbar-links {
    gap: 12px;
  }
  .search-dialog {
    margin-top: 5vh;
    max-height: 90vh;
    max-height: 90dvh;
  }
  .search-dialog-header {
    padding: 13px 14px 5px;
  }
  .search-dialog-body {
    padding: 8px 16px 20px;
  }
  .search-dialog .search-help {
    font-size: 0.8125rem;
  }
}
@media print {
  .search-trigger, .search-dialog {
    display: none !important;
  }
}
.bluesky-author {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: #ddd;
  font-size: 14px;
  line-height: 1.3;
}

.bluesky-author img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  object-fit: cover;
}

.bluesky-author span {
  overflow-wrap: anywhere;
}