@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-mono-latin-ext-400.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-mono-latin-400.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-mono-latin-ext-500.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-mono-latin-500.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-ext-variable.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-variable.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --ink: #edf3f5;
  --muted: #94a4ad;
  --base: #111820;
  --panel: #18232c;
  --line: #293944;
  --blue: #65b9f4;
  --lime: #c8f36b;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}
body {
  min-width: 320px;
  background: linear-gradient(125deg, #142532 0%, #111820 48%, #18241f 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
}
a {
  color: inherit;
}
a:hover {
  color: var(--lime);
}
.site-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 24, 32, 0.88);
}
.header-inner {
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(200, 243, 107, 0.55);
  border-radius: 9px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.82rem;
}
.brand-name {
  font-size: 1rem;
}
.header-link {
  color: #b8c6cc;
  font-size: 0.85rem;
  text-decoration: none;
}
.header-link:hover {
  color: var(--lime);
}
.page-wrap {
  max-width: 1180px;
}
.main-wrap {
  max-width: 1400px;
}
.admin-page .container {
  max-width: none;
}
.admin-page {
  overflow-x: clip;
}
.admin-page #page-content {
  padding-top: clamp(2rem, 5vw, 3.75rem);
}
.admin-list-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.admin-list-kicker {
  margin: 0 0 0.55rem;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}
.admin-list-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.15;
}
.admin-create-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--lime);
  border-radius: 5px;
  background: var(--lime);
  color: #172019;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}
.admin-create-button:hover,
.admin-create-button:focus-visible {
  border-color: #dcff9a;
  background: #dcff9a;
  color: #172019;
}
.admin-table-frame {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(17, 24, 32, 0.68);
}
.admin-article-table {
  min-width: 720px;
  margin: 0;
  color: var(--ink);
  --bs-table-bg: transparent;
  --bs-table-color: var(--ink);
  --bs-table-border-color: rgba(148, 164, 173, 0.14);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.025);
  --bs-table-hover-bg: rgba(101, 185, 244, 0.055);
}
.admin-article-table thead th {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #354650;
  background: #1a2730;
  color: #aebdc3;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}
.admin-article-table thead th + th,
.admin-article-table tbody td:not([colspan]) {
  border-left: 1px solid var(--bs-table-border-color);
}
.admin-article-table thead th a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
}
.admin-article-table thead th a:hover,
.admin-article-table thead th a:focus-visible {
  color: var(--lime);
}
.admin-article-table thead th a i {
  color: var(--lime);
}
.admin-article-table tbody th,
.admin-article-table tbody td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
}
.admin-article-table tbody th {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
}
.admin-article-table tbody th a,
.admin-article-table tbody td > a {
  color: #dce7eb;
  text-decoration: none;
}
.admin-article-table tbody td > a {
  font-weight: 700;
}
.admin-article-table tbody th a:hover,
.admin-article-table tbody td > a:hover {
  color: var(--blue);
}
.admin-article-table .form-check.form-switch {
  display: flex;
  min-height: 1.5rem;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding-left: 0;
}
.admin-article-table .form-check-input {
  float: none;
  flex: 0 0 auto;
  margin: 0;
  border-color: #62747c;
  background-color: #25343d;
  cursor: pointer;
}
.admin-article-table .form-check-input:checked {
  border-color: var(--lime);
  background-color: #759b32;
}
.admin-article-table .form-check-input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 0.2rem rgba(200, 243, 107, 0.18);
}
.admin-article-table .form-check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.76rem;
  cursor: pointer;
}
.admin-article-table .form-check-label::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #82919a;
  content: "";
}
.admin-article-table .form-check-input:checked + .form-check-label {
  color: #d5e4c1;
}
.admin-article-table .form-check-input:checked + .form-check-label::before {
  background: var(--lime);
  box-shadow: 0 0 8px rgba(200, 243, 107, 0.35);
}
.admin-article-table [data-published-at-trigger] {
  min-height: 2rem;
  padding: 0.35rem 0.55rem !important;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #b9d8e5 !important;
  font-family: var(--mono);
  font-size: 0.74rem;
  white-space: nowrap;
}
.admin-article-table [data-published-at-trigger]:hover,
.admin-article-table [data-published-at-trigger]:focus-visible {
  border-color: #3d5966;
  background: rgba(101, 185, 244, 0.08);
  color: var(--blue) !important;
  outline: none;
}
.admin-article-table tbody td:last-child {
  color: #b9c8ce;
  font-family: var(--mono);
  font-size: 0.76rem;
  text-align: right;
}
.admin-article-table tbody tr:last-child > * {
  border-bottom: 0;
}
.admin-page nav[aria-label="Article pages"] {
  margin-top: 1rem;
}
@media (max-width: 575.98px) {
  .admin-list-header {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }
  .admin-create-button {
    width: 100%;
  }
  .admin-table-frame {
    margin-right: -0.25rem;
  }
}
.intro {
  padding: 4.2rem 0 3.1rem;
}
.eyebrow,
.section-kicker,
.post-date,
.sidebar-label,
.archive-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--lime);
}
.eyebrow::before {
  width: 20px;
  height: 1px;
  background: var(--lime);
  content: "";
}
h1 {
  max-width: 760px;
  margin: 0.9rem 0 1rem;
  font-size: clamp(2.55rem, 5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.06;
}
h1 span {
  color: var(--blue);
}
.code-block-container {
  margin: 1.5rem 0;
  overflow: hidden;
  border: 1px solid #263449;
  border-radius: 8px;
  background: #111827;
}
.code-block-header {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.75rem 0.45rem 1rem;
  border-bottom: 1px solid #263449;
  background: #1a2433;
  color: #94a3b8;
  font: 500 0.75rem/1.4 var(--mono);
}
.code-block-wrapper {
  margin: 0;
}
pre.code-block {
  margin: 0;
  padding: 1.25rem;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}
pre.code-block code[class*="language-"] {
  padding: 0;
  background: transparent;
  color: #e5e7eb;
  font: 400 0.9rem/1.7 var(--mono);
  text-shadow: none;
}
.code-copy-button {
  display: grid;
  width: 2rem;
  height: 2rem;
  margin-left: auto;
  place-items: center;
  border: 1px solid #37465c;
  border-radius: 5px;
  background: #1f2937;
  color: #cbd5e1;
  cursor: pointer;
}
.code-copy-button:hover {
  border-color: #60a5fa;
  color: #fff;
}
.code-copy-button:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  color: #b8c6cc;
  font-size: 0.78rem;
  text-decoration: none;
}
.article-back i {
  color: var(--lime);
  transition: transform 0.18s ease;
}
.article-back:hover i {
  transform: translateX(-3px);
}
.article-kicker,
.article-category,
.article-date,
.sidebar-label,
.archive-count {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
.article-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--lime);
}
.article-kicker::before {
  width: 20px;
  height: 1px;
  background: var(--lime);
  content: "";
}
.article-category {
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(101, 185, 244, 0.3);
  border-radius: 999px;
  color: var(--blue);
}
.category-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.category-options .article-category {
  cursor: pointer;
}
.category-options .article-category[aria-pressed="true"] {
  border-color: var(--blue);
  background: rgba(101, 185, 244, 0.12);
}
.category-options .article-category:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.article-header h1 {
  max-width: 940px;
  margin: 0.95rem 0 1rem;
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
}
.article-deck {
  max-width: 850px;
  margin: 0;
  color: #aebdc3;
  font-size: 1.05rem;
  line-height: 1.8;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.2rem;
  margin-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  color: #a3b3ba;
  font-family: var(--mono);
  font-size: 0.72rem;
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.article-meta i {
  color: var(--blue);
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.article-tags-label {
  margin-right: 0.25rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}
.post-tag {
  display: inline-flex;
  padding: 0.2rem 0.52rem;
  border-radius: 999px;
  background: #23343d;
  color: #bfccd1;
  font-family: var(--mono);
  font-size: 0.66rem;
  text-decoration: none;
}
.post-tag:hover {
  color: var(--lime);
}
.article-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 35, 44, 0.72);
}
.article-end p {
  margin: 0;
  color: #aab8be;
  font-size: 0.82rem;
}
.article-end strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 0.9rem;
}
.article-end-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.article-body {
  padding-top: 1.35rem;
  color: #c0cbd0;
  font-size: 0.96rem;
  line-height: 1.9;
}
.article-body img {
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(101, 185, 244, 0.28);
}

.intro-copy {
  max-width: 590px;
  margin: 0;
  color: #a9b7bd;
  font-size: 1rem;
  line-height: 1.8;
}
.intro-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: #c8d2d6;
  font-family: var(--mono);
  font-size: 0.74rem;
}
.intro-note i {
  color: var(--lime);
}
.content-layout {
  padding-bottom: 5rem;
}
.content-sidebar {
  padding-top: 4.2rem;
}
@media (min-width: 1200px) {
  .content-layout > .content-primary {
    flex: 1 1 0;
    min-width: 0;
  }
  .content-layout > .content-sidebar {
    flex: 0 0 393px;
    width: 393px;
    max-width: 393px;
  }
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-kicker {
  margin-bottom: 0.35rem;
  color: var(--blue);
}
h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0;
}
.result-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.73rem;
  white-space: nowrap;
}
.post-list {
  display: grid;
  gap: 0.8rem;
}
.post-card {
  position: relative;
  padding: 1.35rem 1.45rem 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 35, 44, 0.88);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
  animation: rise-in 0.4s both;
}
.post-card::after {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(101, 185, 244, 0.65);
  transform: rotate(45deg);
  content: "";
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: #496778;
}
.post-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  margin-bottom: 0.65rem;
}
.post-date {
  color: #a3b3ba;
}
.post-category {
  padding: 0.22rem 0.6rem;
  border: 1px solid rgba(101, 185, 244, 0.3);
  border-radius: 999px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
}
.post-title {
  margin: 0 0 0.5rem;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.45;
}
.post-title a {
  text-decoration: none;
}
.post-excerpt {
  max-width: 700px;
  margin: 0;
  color: #aab8be;
  font-size: 0.87rem;
  line-height: 1.75;
}
.post-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1rem;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.post-tag {
  display: inline-flex;
  padding: 0.2rem 0.52rem;
  border-radius: 999px;
  background: #23343d;
  color: #bfccd1;
  font-family: var(--mono);
  font-size: 0.66rem;
  text-decoration: none;
}
.post-tag:hover {
  color: var(--lime);
}
.admin-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}
.admin-tag-entry {
  position: relative;
}
.admin-tag-suggestions {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.25rem);
  right: 0;
  left: 0;
  display: grid;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: #111820;
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 25%);
}
.admin-tag-suggestions[hidden] {
  display: none;
}
.admin-tag-option {
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 0.2rem;
  background: transparent;
  color: #bfccd1;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
}
.admin-tag-option:hover,
.admin-tag-option.is-active {
  background: #23343d;
  color: var(--lime);
}
.admin-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.35rem 0.2rem 0.52rem;
  border-radius: 999px;
  background: #23343d;
  color: #bfccd1;
  font-family: var(--mono);
  font-size: 0.72rem;
}
.admin-tag-remove {
  display: inline-grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.admin-tag-remove:hover,
.admin-tag-remove:focus-visible {
  background: #344b56;
  color: var(--lime);
}
.continue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.continue-link i {
  transition: transform 0.2s ease;
}
.continue-link:hover {
  color: #dcff9a;
}
.continue-link:hover i {
  transform: translateX(3px);
}
.continue-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 2px;
}
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}
.pagination {
  gap: 0.35rem;
  margin: 0;
}
.pagination .page-link {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px !important;
  background: var(--panel);
  color: #b8c6cc;
  font-family: var(--mono);
  font-size: 0.76rem;
}
.pagination .page-link:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.pagination .page-item.active .page-link {
  border-color: var(--lime);
  background: var(--lime);
  color: #172019;
}
.pagination .page-item.disabled .page-link {
  border-color: #25343d;
  background: #141d24;
  color: #64747c;
}
.pagination-note {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}
.sidebar {
  display: grid;
  align-content: start;
  gap: 2rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}
.sidebar-section {
  padding-bottom: 1.45rem;
  border-bottom: 1px solid var(--line);
}
.sidebar-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.94rem;
  font-weight: 700;
}
.sidebar-title i {
  color: var(--blue);
}
.sidebar-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.67rem;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-button {
  display: inline-flex;
  padding: 0.42rem 0.66rem;
  border: 1px solid #344954;
  border-radius: 999px;
  background: transparent;
  color: #b9c7cd;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}
.tag-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.tag-button.active {
  border-color: var(--lime);
  background: rgba(200, 243, 107, 0.12);
  color: var(--lime);
}
.form-control {
  min-height: 43px;
  border-color: #344954;
  border-radius: 6px;
  background-color: #18232c;
  color: var(--ink);
  font-size: 0.82rem;
}
.image-upload-dialog {
  width: min(64rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.48);
}
.image-upload-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}
.image-upload-dialog form {
  padding: 1.4rem;
}
.image-upload-header,
.image-upload-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.image-upload-header {
  margin-bottom: 1.25rem;
}
.image-upload-header h2 {
  margin: 0;
  font-size: 1.35rem;
}
.image-upload-preview {
  display: grid;
  min-height: 12rem;
  max-height: 20rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #42545e;
  border-radius: 6px;
  background: #111820;
}
.image-upload-preview img {
  max-width: 100%;
  max-height: 18rem;
  object-fit: contain;
}
.image-upload-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.image-upload-status {
  min-height: 1.4rem;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.image-upload-status.is-error {
  color: #ff9b91;
}
.image-upload-status.is-success {
  color: var(--lime);
}
.image-upload-actions {
  justify-content: flex-end;
}
.image-gallery {
  margin-top: 0;
  padding: 1.4rem;
  border-top: 1px solid var(--line);
}
.image-gallery-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.image-gallery-header h2 {
  margin: 0;
  font-size: 1.35rem;
}
.image-gallery-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}
.image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}
@media (max-width: 900px) {
  .image-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .image-gallery-grid {
    grid-template-columns: 1fr;
  }
}
.image-gallery-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #141d24;
}
.image-gallery-label[data-edit-gallery-field],
.image-gallery-details [data-gallery-field] {
  cursor: pointer;
}
.image-gallery-label[data-edit-gallery-field]:focus-visible,
.image-gallery-details [data-gallery-field]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.image-gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #111820;
}
.image-gallery-details {
  padding: 0.7rem;
}
.image-gallery-label {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}
.image-gallery-label:first-child {
  margin-top: 0;
}
.image-gallery-details p {
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}
.image-gallery-edit-field {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.3rem;
}
.image-gallery-editor {
  min-height: 2.4rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.76rem;
}
textarea.image-gallery-editor {
  min-height: 4rem;
  resize: vertical;
}
.image-gallery-edit-status {
  display: block;
  min-height: 1rem;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.68rem;
}
.image-gallery-edit-status.is-success {
  color: var(--lime);
}
.image-gallery-edit-status.is-error {
  color: #ff9b91;
}
.image-gallery-markdown {
  padding: 0.65rem 0.7rem;
  border-top: 1px solid var(--line);
}
.image-gallery-markdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.image-gallery-markdown-header .image-gallery-label {
  margin: 0;
}
.image-gallery-copy {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
}
.image-gallery-copy:hover,
.image-gallery-copy:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}
.image-gallery-markdown-code {
  display: block;
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.66rem;
  white-space: pre-wrap;
  user-select: text;
}
.image-gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}
.image-gallery-pagination span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-align: center;
}
.admin-page #markdownInput {
  font-family: var(--mono);
}
.article-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1.35rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(24, 35, 44, 0.92);
}
.article-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.article-toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.4rem 0.95rem;
  border: 1px solid #3c5160;
  border-radius: 8px;
  background: #121b22;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.article-toolbar-button i {
  font-size: 0.95rem;
}
.article-toolbar-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.article-toolbar-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.article-toolbar-button.is-primary {
  border-color: transparent;
  background: var(--lime);
  color: #172019;
}
.article-toolbar-button.is-primary:hover {
  border-color: transparent;
  background: #dcff9a;
  color: #172019;
}
.article-toolbar-button:disabled {
  cursor: progress;
  opacity: 0.62;
}
.article-toolbar-button.is-primary:disabled:hover {
  background: var(--lime);
  color: #172019;
}
.article-save-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-left: auto;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: #23343d;
  color: #c5d2d8;
  font-family: var(--mono);
  font-size: 0.7rem;
}
.article-save-status:empty {
  display: none;
}
.article-save-status.is-pending {
  background: rgba(101, 185, 244, 0.14);
  color: var(--blue);
}
.article-save-status.is-success {
  background: rgba(200, 243, 107, 0.16);
  color: var(--lime);
}
.article-save-status.is-error {
  background: rgba(255, 140, 128, 0.14);
  color: #ffb4ab;
}
.article-editor {
  align-self: start;
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(24, 35, 44, 0.72);
}
.article-editor-field {
  margin-bottom: 1.05rem;
}
.article-editor-label,
.article-editor .form-label {
  display: block;
  margin-bottom: 0.42rem;
  color: #9aadb6;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
}
.article-editor .category-options {
  gap: 0.35rem;
  margin: 0;
  padding: 0.35rem;
  border: 1px solid #344954;
  border-radius: 10px;
  background: #121b22;
}
.article-editor .category-options .article-category {
  border-color: transparent;
  background: transparent;
  color: #c5d0d6;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.article-editor .category-options .article-category:hover {
  border-color: rgba(101, 185, 244, 0.45);
  color: var(--ink);
}
.article-editor .category-options .article-category[aria-pressed="true"] {
  border-color: rgba(200, 243, 107, 0.7);
  background: rgba(200, 243, 107, 0.14);
  color: var(--lime);
}
.article-editor .form-control {
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border-color: #344954;
  border-radius: 8px;
  background-color: #121b22;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}
.article-editor .form-control:hover {
  border-color: #4d6572;
}
.article-editor .form-control:focus {
  border-color: var(--blue);
  background-color: #152028;
  box-shadow: 0 0 0 3px rgba(101, 185, 244, 0.18);
}
.article-editor textarea.form-control {
  line-height: 1.65;
  resize: vertical;
}
.article-editor #articleTitle {
  font-size: 1.05rem;
  font-weight: 650;
}
.article-editor .admin-tag-field {
  border: 1px solid #344954;
  border-radius: 8px;
  background: #121b22;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.article-editor .admin-tag-field:hover {
  border-color: #4d6572;
}
.article-editor .admin-tag-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(101, 185, 244, 0.18);
}
.article-editor .admin-tag-list {
  margin: 0;
  padding: 0.45rem 0.45rem 0;
}
.article-editor .admin-tag-list:empty {
  display: none;
  padding: 0;
}
.article-editor .admin-tag-field .form-control,
.article-editor .admin-tag-field .form-control:hover,
.article-editor .admin-tag-field .form-control:focus {
  min-height: 42px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.article-editor .admin-tag-suggestions {
  border-radius: 8px;
  background: #152028;
}
.article-editor-content {
  overflow: hidden;
  border: 1px solid #344954;
  border-radius: 10px;
  background: #10181f;
}
.article-editor-content-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.7rem;
  padding: 0.4rem 0.85rem;
  border-bottom: 1px solid #263449;
  background: #1a2433;
}
.article-editor-content-bar .form-label {
  margin: 0;
  color: #9aadb6;
}
.article-editor-hint {
  color: #7f919b;
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
}
.article-editor #markdownInput {
  min-height: 28rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.8rem;
  line-height: 1.7;
}
.article-editor #markdownInput:hover,
.article-editor #markdownInput:focus {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.article-editor-content:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(101, 185, 244, 0.18);
}
@media (max-width: 767.98px) {
  .article-editor {
    padding: 0.95rem 0.85rem 1rem;
  }
  .article-toolbar-group,
  .article-toolbar-button {
    flex: 1 1 auto;
  }
  .article-save-status {
    margin-left: 0;
  }
}
.form-control::placeholder {
  color: #83939b;
}
.form-control:focus {
  border-color: var(--blue);
  background-color: #18232c;
  color: var(--ink);
  box-shadow: 0 0 0 0.2rem rgba(101, 185, 244, 0.15);
}
.search-button {
  min-width: 44px;
  border-color: var(--blue);
  background: var(--blue);
  color: #10202b;
}
.search-button:hover {
  border-color: #8bceff;
  background: #8bceff;
  color: #10202b;
}
.filter-reset {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.74rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.filter-reset:hover {
  color: var(--lime);
}
.archive-list {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.archive-link {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.52rem 0;
  color: #c1ccd1;
  font-size: 0.8rem;
  text-decoration: none;
}
.archive-link:hover,
.archive-link.active {
  color: var(--lime);
}
.archive-count {
  color: #82949d;
  font-size: 0.66rem;
}
.sidebar-footnote {
  margin: 0.85rem 0 0;
  color: #81929b;
  font-size: 0.72rem;
  line-height: 1.6;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(13, 19, 25, 0.72);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
}
.copyright {
  margin: 0;
  color: #95a4ab;
  font-size: 0.76rem;
}
.copyright strong {
  color: #d3dce0;
  font-weight: 600;
}
.footer-links {
  display: flex;
  gap: 1.2rem;
}
.footer-links a {
  color: #a7b4ba;
  font-size: 0.76rem;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--lime);
}
.legal-note {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  color: #71828b;
  font-size: 0.68rem;
}
.legal-note span {
  scroll-margin-top: 1rem;
}
.alert > p:last-of-type {
  margin-bottom: 0;
}
.alert > ul:last-child {
  margin-bottom: 0;
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 767.98px) {
  .intro {
    padding: 3.1rem 0 2.5rem;
  }
  .content-sidebar {
    padding-top: 3.1rem;
  }
  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .sidebar-section:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 479.98px) {
  .content-sidebar {
    padding-top: 0;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar-section:last-child {
    grid-column: auto;
  }
  .post-card {
    padding: 1.15rem;
  }
  .post-bottom {
    align-items: flex-start;
  }
  .pagination-wrap {
    align-items: flex-start;
    flex-direction: column;
  }
  .pagination .page-link {
    min-width: 35px;
    min-height: 35px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
