* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fff;
  --text: #222;
  --muted: #666;
  --link: #06c;
  --tag-bg: #f0f0f0;
  --tag-text: #555;
  --border: #e0e0e0;
}

[data-theme="dark"] {
  --bg: #1a1a1a;
  --text: #e0e0e0;
  --muted: #999;
  --link: #66b3ff;
  --tag-bg: #2a2a2a;
  --tag-text: #ccc;
  --border: #333;
}

html {
  scrollbar-gutter: stable;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  font-size: 17.5px;
  line-height: 1.65;
  transition: background .2s, color .2s;
}

@media (width >= 800px) {
  html, body {
    font-size: 18.5px;
  }
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4px 4px 80px;
}

h1, h2, h3 {
  margin: 1.2em 0 .5em;
  line-height: 1.3;
}

p {
  margin: .8em 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.cover {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 1em 0;
  display: block;
}

.post-card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.post-card-link:hover {
  text-decoration: none;
}

.post-meta {
  color: var(--muted);
  margin-bottom: .5em;
  font-size: .9em;
}

.tags {
  flex-wrap: wrap;
  gap: 6px;
  margin: .5em 0;
  display: flex;
}

.tag {
  color: var(--text);
  font-size: inherit;
  background: none;
  border-radius: 6px;
  margin: 0 2px;
  padding: 4px 8px;
  transition: background-color .15s, color .15s;
  display: inline-block;
  text-decoration: none !important;
}

.content {
  margin-top: 1.5em;
}

.content img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
  display: block;
}

.content p {
  margin-bottom: 1.1em;
}

.content {
  font-size: 1.02em;
  line-height: 1.75;
}

.content h2 {
  margin: 1.4em 0 .5em;
  font-size: 1.5em;
}

.content h3 {
  margin: 1.3em 0 .4em;
  font-size: 1.22em;
}

.content ul, .content ol {
  padding-left: 1.6em;
}

.content li {
  margin-bottom: .4em;
}

.toolbar {
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  background: var(--bg);
  border-top: 1px solid var(--border);
  view-transition-name: toolbar;
  width: 100%;
  max-width: 800px;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100 !important;
}

::view-transition-old(toolbar), ::view-transition-new(toolbar) {
  mix-blend-mode: normal;
  animation: none;
}

.toolbar-inner {
  justify-content: space-between;
  align-items: center;
  padding: 4px;
  display: flex;
}

.brand {
  color: var(--text);
  align-items: center;
  gap: 8px;
  text-decoration: none;
  display: flex;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 28px;
  height: 28px;
  color: var(--text);
}

.brand-text {
  color: var(--text);
  font-size: 1.1em;
  font-weight: bold;
}

.toolbar-nav {
  gap: 16px;
  display: flex;
}

.toolbar-nav a {
  color: var(--text);
  padding: 4px 8px;
  font-weight: 500;
}

.admin-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  display: flex;
}

.admin-post-list {
  flex-direction: column;
  gap: 12px;
  display: flex;
}

.admin-post-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  transition: border-color .2s;
  display: flex;
}

.admin-post-item:hover {
  border-color: var(--link);
}

.admin-post-info strong {
  margin-bottom: 4px;
  font-size: 1.1em;
  display: block;
}

.admin-post-meta {
  color: var(--muted);
  font-size: .85em;
}

.admin-post-actions {
  gap: 8px;
  display: flex;
}

.btn-sm {
  padding: 6px 12px;
  font-size: .9em;
}

.btn-danger {
  color: #dc3545;
  background: none;
  border-color: #dc3545;
}

.btn-danger:hover {
  color: #fff;
  background: #dc3545;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 40px;
}

.btn {
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 1em;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  display: inline-flex;
}

.btn:hover {
  background: var(--tag-bg);
  text-decoration: none;
}

.btn-primary {
  background: var(--link);
  color: #fff;
  border-color: var(--link);
}

.btn-primary:hover {
  opacity: .9;
  background: var(--link);
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.logo {
  color: var(--text);
  align-items: center;
  gap: 10px;
  text-decoration: none;
  display: inline-flex;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  letter-spacing: .05em;
  font-size: 1.2em;
  font-weight: 900;
}

.toolbar-nav .icon-link, .toolbar-nav a.icon-link, .toolbar-nav button.icon-link {
  width: 40px;
  height: 40px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  background: none;
  border: none;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  padding: 0;
  text-decoration: none;
  transition: all .15s;
  display: flex;
}

.toolbar-nav .icon-link:hover, .toolbar-nav a.icon-link:hover, .toolbar-nav button.icon-link:hover {
  background: var(--tag-bg);
  color: var(--text);
  text-decoration: none;
}

.toolbar-nav .icon-link.active {
  color: var(--link);
}

.toolbar-nav .icon-link svg {
  width: 22px;
  height: 22px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes growProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: .3s ease-out both fadeOut;
}

::view-transition-new(root) {
  animation: .55s cubic-bezier(.22, 1, .36, 1) both fadeInUp;
}

.post-hero, .post-header, .tag-header {
  animation: .65s cubic-bezier(.22, 1, .36, 1) both fadeInUp;
}

.post-hero-content .hero-plate, .post-hero-content .home-logo {
  animation: .6s cubic-bezier(.22, 1, .36, 1) .25s both fadeInUp;
}

.post-hero-content .hero-date, .post-hero-content .home-tagline {
  text-align: center;
  white-space: nowrap;
  width: max-content;
  max-width: 90%;
  margin: 0 auto;
  padding: 6px 16px;
  font-size: 1.1em;
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
}

.post-hero-content .hero-modified, .post-hero-content .hero-views {
  animation-delay: .4s;
}

.post-hero-content .hero-tags, .post-hero-content .home-hero-tags {
  animation: .65s cubic-bezier(.22, 1, .36, 1) .45s both fadeInUp;
}

.post-list .post-card-link {
  animation: .6s cubic-bezier(.22, 1, .36, 1) both fadeInUp;
}

.post-list .post-card-link:first-child {
  animation-delay: .2s;
}

.post-list .post-card-link:nth-child(2) {
  animation-delay: .26s;
}

.post-list .post-card-link:nth-child(3) {
  animation-delay: .32s;
}

.post-list .post-card-link:nth-child(4) {
  animation-delay: .38s;
}

.post-list .post-card-link:nth-child(5) {
  animation-delay: .44s;
}

.post-list .post-card-link:nth-child(6) {
  animation-delay: .5s;
}

.post-list .post-card-link:nth-child(7) {
  animation-delay: .56s;
}

.post-list .post-card-link:nth-child(8) {
  animation-delay: .62s;
}

.post-list .post-card-link:nth-child(n+9) {
  animation-delay: .65s;
}

.post .content {
  animation: .65s cubic-bezier(.22, 1, .36, 1) .3s both fadeInUp;
}

.reading-progress {
  background: var(--link);
  transform-origin: 0;
  z-index: 9999;
  pointer-events: none;
  width: 100%;
  height: 3px;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
}

@supports (animation-timeline: scroll()) {
  .reading-progress {
    animation: linear growProgress scroll(root);
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  ::view-transition-old(root), ::view-transition-new(root) {
    animation: none !important;
  }
}

.not-found {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 40px 16px;
  animation: .65s cubic-bezier(.22, 1, .36, 1) both fadeInUp;
  display: flex;
}

.nf-code {
  color: var(--link);
  letter-spacing: -.04em;
  opacity: .15;
  user-select: none;
  margin-bottom: 12px;
  font-size: 6em;
  font-weight: 900;
  line-height: 1;
}

.not-found h1 {
  color: var(--text);
  margin: 0 0 12px;
  font-size: 1.6em;
  animation: .65s cubic-bezier(.22, 1, .36, 1) .15s both fadeInUp;
}

.nf-message {
  color: var(--muted);
  max-width: 420px;
  margin: 0 0 20px;
  font-size: 1em;
  animation: .65s cubic-bezier(.22, 1, .36, 1) .25s both fadeInUp;
}

.nf-path {
  background: var(--tag-bg);
  color: var(--muted);
  word-break: break-all;
  border-radius: 6px;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 4px 10px;
  font-family: Consolas, Monaco, monospace;
  font-size: .85em;
  animation: .65s cubic-bezier(.22, 1, .36, 1) .3s both fadeInUp;
  display: inline-block;
}

.nf-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  animation: .65s cubic-bezier(.22, 1, .36, 1) .4s both fadeInUp;
  display: flex;
}

@media (width <= 640px) {
  .nf-code {
    font-size: 4.5em;
  }

  .not-found h1 {
    font-size: 1.35em;
  }

  .nf-message {
    font-size: .95em;
  }
}

.toolbar-inner {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 4px;
  display: grid;
}

.toolbar-inner > .logo {
  justify-self: start;
}

.toolbar-inner > .toolbar-nav {
  justify-self: end;
}

.toolbar-center {
  justify-content: center;
  justify-self: center;
  align-items: center;
  min-width: 0;
  display: flex;
}

.hero-tag {
  color: #fffffff2;
  text-decoration: none;
  transition: background .15s, transform .15s;
}

.hero-tag:hover {
  background-color: var(--tag-bg);
  color: var(--text);
  text-decoration: none !important;
}

.tag {
  text-decoration: none;
  transition: background .15s, color .15s;
}

.tag:hover {
  background: var(--link);
  color: #fff;
  text-decoration: none;
}

.tag-hero {
  border-radius: 0;
  margin-bottom: 24px;
}

.tag-hero .post-hero-content {
  gap: 10px;
}

.tag-hero h1.hero-plate {
  font-size: 2.2em;
}

@media (width <= 640px) {
  .tag-hero {
    border-radius: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .tag-hero h1.hero-plate {
    font-size: 1.7em;
  }
}

.tag-header {
  display: none;
}

@media (width >= 800px) {
  .post > .content, .post > .post-header {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.toolbar-nav button.icon-link {
  cursor: pointer;
  font: inherit;
  width: 40px;
  height: 40px;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: all .15s;
  display: flex;
}

.toolbar-nav button.icon-link:hover {
  background: var(--tag-bg);
  color: var(--text);
}

.toolbar-nav button.icon-link svg {
  width: 22px;
  height: 22px;
}

.toolbar-nav {
  align-items: center;
  gap: 4px;
  display: flex;
}

.burger-menu {
  position: relative;
}

.burger-menu > summary {
  cursor: pointer;
  list-style: none;
}

.burger-menu > summary::-webkit-details-marker {
  display: none;
}

.burger-menu[open] > summary {
  background: var(--tag-bg);
  color: var(--text);
}

.burger-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  z-index: 200;
  transform-origin: 100% 100%;
  border-radius: 14px;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
  padding: 6px;
  animation: .18s ease-out both burgerIn;
  display: flex;
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  box-shadow: 0 20px 60px #0006;
}

.burger-panel a {
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .95em;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s;
  display: block;
}

.burger-panel a:hover {
  background: var(--tag-bg);
  color: var(--text);
  text-decoration: none;
}

@keyframes burgerIn {
  from {
    opacity: 0;
    transform: scale(.92) translateY(4px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .burger-panel {
    animation: none;
  }
}

.toolbar-nav button.icon-link:hover, .toolbar-nav a.icon-link:hover {
  background: var(--tag-bg);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .burger-panel {
    animation: none;
  }
}

[data-theme="dark"] body, [data-theme="dark"] .content {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: .005em;
  font-weight: 350;
}

@supports not (font-variation-settings: normal) {
  [data-theme="dark"] body {
    font-weight: 300;
  }
}

.settings-modal {
  z-index: 10000;
  -webkit-backdrop-filter: blur(8px);
  background: #0000008c;
  justify-content: center;
  align-items: center;
  padding: 16px;
  animation: .2s ease-out both settingsFadeIn;
  display: flex;
  position: fixed;
  inset: 0 0 49px;
}

.settings-modal[hidden] {
  display: none;
}

@keyframes settingsFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.settings-panel {
  background: var(--bg);
  color: var(--text);
  border-radius: 16px;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  animation: .28s cubic-bezier(.22, 1, .36, 1) both settingsSlideUp;
  display: flex;
  overflow: hidden;
  box-shadow: 0 20px 60px #0006;
}

@keyframes settingsSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.98);
  }

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

.settings-header {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  display: flex;
}

.settings-header h2 {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
}

.settings-close {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 6px;
  transition: background .15s, color .15s;
  display: flex;
}

.settings-close:hover {
  background: var(--tag-bg);
  color: var(--text);
}

.settings-close svg {
  width: 20px;
  height: 20px;
}

.settings-body {
  flex: 1;
  padding: 24px 20px;
  font-size: 1.02em;
  line-height: 1.75;
  overflow-y: auto;
}

.settings-body p {
  margin: 0 0 1em;
}

.settings-body p:last-child {
  margin-bottom: 0;
}

.settings-footer {
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px;
  display: flex;
}

.settings-theme {
  justify-content: center;
  gap: 8px;
  display: flex;
}

.theme-btn {
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--muted);
  background: none;
  border-radius: 10px;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 10px;
  transition: all .15s;
  display: flex;
}

.theme-btn:hover {
  background: var(--tag-bg);
  color: var(--text);
}

.theme-btn.active {
  background: var(--link);
  color: #fff;
  border-color: var(--link);
  box-shadow: 0 0 12px #66b3ff66;
}

.theme-btn svg {
  width: 20px;
  height: 20px;
}

.settings-slider {
  align-items: center;
  gap: 12px;
  display: flex;
}

.slider-icon {
  color: var(--muted);
  flex-shrink: 0;
  font-size: .85em;
  font-weight: 700;
}

.slider-icon-lg {
  font-size: 1.1em;
}

#font-size-slider {
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  cursor: pointer;
  border-radius: 2px;
  outline: none;
  flex: 1;
  height: 4px;
}

#font-size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: var(--link);
  cursor: pointer;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  transition: transform .15s;
  box-shadow: 0 2px 8px #66b3ff80;
}

#font-size-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

#font-size-slider::-moz-range-thumb {
  background: var(--link);
  cursor: pointer;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  box-shadow: 0 2px 8px #66b3ff80;
}

.slider-value {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 44px;
  font-size: .85em;
}

.settings-order {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.settings-order-label {
  color: var(--muted);
  font-size: .85em;
  font-weight: 500;
}

.settings-order-btns {
  gap: 8px;
  display: flex;
}

.order-btn {
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  background: none;
  border-radius: 10px;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: .9em;
  font-weight: 500;
  transition: all .15s;
  display: inline-flex;
}

.order-btn:hover {
  background: var(--tag-bg);
  color: var(--text);
}

.order-btn.active {
  background: var(--link);
  color: #fff;
  border-color: var(--link);
  box-shadow: 0 0 12px #66b3ff66;
}

.order-btn svg {
  flex-shrink: 0;
}

@media (width <= 640px) {
  .settings-modal {
    align-items: stretch;
    padding: 0;
  }

  .settings-panel {
    border-radius: 0;
    max-width: 100%;
    max-height: 100vh;
  }

  .settings-body {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .settings-modal, .settings-panel {
    animation: none;
  }
}

.settings-close {
  color: #fff;
  background: #e5484d;
}

.settings-close:hover {
  color: #fff;
  background: #c93a3f;
  box-shadow: 0 0 10px #e5484d80;
}

.search-modal {
  z-index: 10001;
  -webkit-backdrop-filter: blur(8px);
  background: #0000008c;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 16px 16px;
  animation: .2s ease-out both settingsFadeIn;
  display: flex;
  position: fixed;
  inset: 0 0 49px;
}

.search-modal[hidden] {
  display: none;
}

.search-panel {
  background: var(--bg);
  color: var(--text);
  border-radius: 14px;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  animation: .25s cubic-bezier(.22, 1, .36, 1) both settingsSlideUp;
  display: flex;
  overflow: hidden;
  box-shadow: 0 20px 60px #0006;
}

.search-header {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  display: flex;
}

.search-header svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

#search-input {
  color: var(--text);
  background: none;
  border: none;
  outline: none;
  flex: 1;
  padding: 4px 0;
  font-family: inherit;
  font-size: 1.05em;
}

#search-input::placeholder {
  color: var(--muted);
}

.search-close {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 6px;
  transition: background .15s, color .15s;
  display: flex;
}

.search-close:hover {
  background: var(--tag-bg);
  color: var(--text);
}

.search-close svg {
  width: 18px;
  height: 18px;
}

.search-results {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
}

.search-hint {
  text-align: center;
  color: var(--muted);
  margin: 0;
  padding: 24px 16px;
  font-size: .9em;
}

.search-empty {
  text-align: center;
  color: var(--muted);
  margin: 0;
  padding: 32px 16px;
  font-size: .95em;
}

.search-item {
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  padding: 12px 14px;
  text-decoration: none;
  transition: background .12s;
  display: block;
}

.search-item:hover {
  background: var(--tag-bg);
  text-decoration: none;
}

.search-item-title {
  color: var(--text);
  margin-bottom: 4px;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.3;
}

.search-item-excerpt {
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: .9em;
  line-height: 1.4;
  display: -webkit-box;
  overflow: hidden;
}

@media (width <= 640px) {
  .search-modal {
    align-items: flex-start;
    padding: 12px;
  }

  .search-panel {
    max-height: 90vh;
  }

  .search-header {
    padding: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-modal, .search-panel {
    animation: none;
  }
}

.cover {
  aspect-ratio: 2;
  object-fit: cover;
  background: var(--tag-bg);
  border-radius: 8px;
  width: 100%;
  margin-bottom: 16px;
  display: block;
}

.cover {
  aspect-ratio: 2;
  object-fit: cover;
  background: #1a1a1a;
  border-radius: 8px;
  width: 100%;
  margin-bottom: 16px;
  transition: transform .3s, box-shadow .3s;
  display: block;
}

.post-card:hover .cover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #00000026;
}

.post .cover {
  aspect-ratio: 2.5;
  margin-bottom: 24px;
}

.post-hero {
  aspect-ratio: 2;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 0 32px;
  padding: 24px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.post-hero-content {
  z-index: 2;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  display: flex;
  position: absolute;
  inset: 0;
}

.hero-plate {
  color: #fff;
  z-index: 0;
  isolation: isolate;
  margin: 0;
  display: inline-block;
  position: relative;
}

.hero-plate:before {
  content: "";
  filter: blur(16px);
  z-index: -1;
  pointer-events: none;
  background: #0f0f0f99;
  border-radius: 24px;
  position: absolute;
  inset: -8px -24px;
}

h1.hero-plate {
  word-wrap: break-word;
  max-width: 100%;
  font-size: 2.1em;
  font-weight: 700;
  line-height: 1.2;
}

.hero-date {
  color: #fff;
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 1em;
  display: flex;
}

.hero-date-line {
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  align-items: center;
  gap: 14px;
  display: inline-flex;
}

.hero-date:before {
  filter: blur(12px);
  border-radius: 20px;
  inset: -6px -18px;
}

.hero-modified-old {
  color: #ffffffd9;
  font-size: .82em;
}

.hero-views {
  color: #ffffffd9;
  align-items: center;
  gap: 4px;
  font-size: .82em;
  display: inline-flex;
}

.hero-tags {
  z-index: 2;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  display: flex;
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
}

.hero-related-tags {
  z-index: 2;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(5px, .8vw, 6px);
  padding: 0 clamp(8px, 1.5vw, 16px);
  display: flex;
  position: absolute;
  bottom: clamp(12px, 3.5vw, 28px);
  left: 0;
  right: 0;
  overflow: hidden;
}

.hero-tag {
  color: var(--text);
  font-size: inherit;
  background: none;
  border-radius: 6px;
  padding: 4px 8px;
  transition: background-color .15s, color .15s;
  display: inline-block;
  text-decoration: none !important;
}

.post-header {
  text-align: center;
  margin: 24px 0 32px;
}

.post-header h1 {
  margin: 0 0 12px;
  font-size: 2.3em;
  line-height: 1.15;
}

@media (width <= 640px) {
  .post-hero {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    margin-bottom: 24px;
    padding: 16px;
  }

  .post-hero-content {
    padding: 16px;
  }

  h1.hero-plate {
    font-size: 1.4em;
  }

  .hero-plate:before {
    filter: blur(12px);
    inset: -6px -16px;
  }

  .hero-date {
    margin-top: 10px;
    font-size: .85em;
  }

  .hero-tags {
    bottom: 12px;
  }

  .hero-tag {
    padding: 4px 10px;
    font-size: .78em;
  }

  .post-hero-content h1, .post-header h1 {
    font-size: 1.6em;
  }
}

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

.post-card .views {
  color: var(--muted);
  align-items: center;
  gap: 4px;
  font-size: .9em;
  display: inline-flex;
}

.post-card .modified, .post .post-modified {
  color: var(--muted);
  align-items: center;
  gap: 4px;
  font-size: .85em;
  display: inline-flex;
}

.post-card .modified svg {
  opacity: .7;
}

@media (width <= 640px) {
  .container {
    padding-top: 0;
  }

  .post-hero, .home-hero {
    border-radius: 0;
  }

  .container {
    padding-left: 0;
    padding-right: 0;
  }

  .container > .post-list, .container > .content, .container > .post-header, .container > .tag-header, .container > .not-found, .container > .post, .post > .post-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .post > .post-hero .post-hero-content {
    padding-left: 0;
    padding-right: 0;
  }

  .post-hero, .home-hero {
    border-radius: 0;
    width: 100vw;
    margin-left: 0;
    margin-right: 0;
  }

  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  .container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 0 80px !important;
  }

  .post-hero, .home-hero {
    border-radius: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 16px !important;
  }

  .container > .post-list, .container > .content, .container > .post-header, .container > .tag-header, .container > .not-found, .post > .content {
    padding-left: 16px;
    padding-right: 16px;
  }

  html, body {
    overflow-x: hidden;
  }

  .container > .post, .container > article.post {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .post > .post-hero, .post-hero, .home-hero {
    border-radius: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .post > .content, .post > .post-header {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

.related-posts {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 32px;
  animation: .65s cubic-bezier(.22, 1, .36, 1) both fadeInUp;
}

.related-title {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 16px;
  font-size: 1.15em;
  font-weight: 600;
}

.related-posts .post-card h3 {
  color: var(--text);
  margin: 0 0 8px;
  font-size: 1.05em;
  font-weight: 600;
  line-height: 1.3;
}

.related-posts .post-card:last-child {
  border-bottom: none;
}

@media (width <= 640px) {
  .related-posts {
    margin-top: 32px;
    padding-top: 24px;
  }

  .related-posts .post-card {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.related-title {
  padding-left: 16px;
  padding-right: 16px;
}

@media (width <= 640px) {
  .related-title {
    padding-left: 16px;
    padding-right: 16px;
  }

  .container > :not(.post-hero):not(.home-hero):not(.tag-hero):not(.post):not(article.post):not(.not-found) {
    box-sizing: border-box;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

.post-tags-scroll {
  text-align: center;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-top: 16px;
  margin-bottom: 24px;
  padding: 0 16px;
  display: block;
  overflow-x: auto;
  -webkit-mask-image: linear-gradient(to right, #0000 0, #000 10px calc(100% - 10px), #0000 100%);
  mask-image: linear-gradient(to right, #0000 0, #000 10px calc(100% - 10px), #0000 100%);
}

.post-tags-scroll::-webkit-scrollbar {
  display: none;
}

.post-tags-scroll .hero-tag {
  color: var(--text);
  font-size: inherit;
  background: none;
  border-radius: 6px;
  margin: 0 2px;
  padding: 4px 8px;
  transition: background-color .15s, color .15s;
  display: inline-block;
  text-decoration: none !important;
}

.post-tags-scroll .hero-tag:hover {
  background-color: var(--tag-bg);
  color: var(--text);
  text-decoration: none !important;
}

.post-tags-scroll .hero-tag, .post-tags-scroll .hero-tag:hover, .post-tags-scroll .hero-tag:focus, .post-tags-scroll .hero-tag:active, .hero-tag, .hero-tag:hover, .hero-tag:focus, .hero-tag:active, .tag, .tag:hover, .tag:focus, .tag:active {
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
}

.hero-bottom-right {
  z-index: 3;
  color: #ffffffe6;
  text-shadow: 0 1px 3px #000c;
  align-items: center;
  gap: 12px;
  font-size: .9em;
  display: flex;
  position: absolute;
  bottom: 16px;
  right: 16px;
}

.hero-bottom-right .hero-views {
  align-items: center;
  gap: 4px;
  display: inline-flex;
}

.hero-modified-badge {
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  text-shadow: 0 1px 3px #000000e6;
  background: #0f0f0fa6;
  border: 1px solid #ffffff26;
  border-radius: 6px;
  outline: none;
  padding: 4px 10px;
  font-size: .85em;
  transition: background .15s;
  position: relative;
}

.hero-modified-badge:hover {
  background: #0f0f0fd9;
}

.hero-tooltip {
  background: var(--bg);
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  border: 1px solid var(--border);
  pointer-events: none;
  text-shadow: none;
  z-index: 10;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .85em;
  font-weight: 500;
  transition: opacity .2s, transform .2s, visibility .2s;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  transform: translateY(-4px);
  box-shadow: 0 4px 16px #0000004d;
}

.hero-modified-badge:hover .hero-tooltip, .hero-modified-badge:focus .hero-tooltip, .hero-modified-badge:active .hero-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (width <= 640px) {
  .hero-bottom-right {
    font-size: .85em;
    bottom: 12px;
    right: 12px;
  }
}

.hero-tooltip {
  text-shadow: none;
}

.hero-top-right {
  z-index: 3;
  position: absolute;
  top: 16px;
  right: 16px;
}

.post-card-modified {
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  z-index: 2;
  font-size: .85em;
  transition: color .15s;
  position: absolute;
  top: 18px;
  right: 16px;
}

.post-card-modified:hover {
  color: var(--text);
}

.post-card-modified .pc-mod-date, .post-card-modified:hover .pc-mod-text, .post-card-modified:focus .pc-mod-text {
  display: none;
}

.post-card-modified:hover .pc-mod-date, .post-card-modified:focus .pc-mod-date {
  display: inline;
}

.post-card h2 {
  margin-top: 0;
  padding-right: 85px;
}

.about-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 48px 0 32px;
}

.about-logo {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  display: inline-flex;
}

.about-logo .logo-mark {
  width: 72px;
  height: 72px;
}

.about-logo .logo-mark svg {
  width: 100%;
  height: 100%;
}

.about-logo .logo-text {
  letter-spacing: .06em;
  font-size: 1.6em;
  font-weight: 900;
}

.about-header h1 {
  letter-spacing: -.02em;
  margin-bottom: 8px;
  font-size: 2em;
  font-weight: 800;
}

.about-tagline {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 1.1em;
}

.live-stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-size: .9em;
  display: flex;
}

.live-stats strong {
  color: var(--text);
  font-weight: 700;
}

.live-stats .divider {
  color: var(--border);
}

.tech-specs {
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 2em 0;
  display: grid;
  overflow: hidden;
}

.spec-item {
  background: var(--bg);
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  display: flex;
}

.spec-item:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.spec-name {
  font-family: var(--font-mono);
  color: var(--link);
  font-size: .9em;
  font-weight: 700;
}

.spec-desc {
  color: var(--muted);
  font-size: .85em;
  line-height: 1.5;
}

.infographic-flow {
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  margin: 2.5em 0;
  padding: 24px 16px;
  display: flex;
}

.flow-step {
  text-align: center;
  flex-direction: column;
  flex: 1;
  align-items: center;
  gap: 8px;
  display: flex;
}

.flow-icon {
  width: 32px;
  height: 32px;
  color: var(--text);
}

.flow-step span {
  color: var(--text);
  font-size: .85em;
  font-weight: 600;
}

.flow-arrow {
  color: var(--muted);
  opacity: .5;
  margin: 0 12px;
  font-family: monospace;
  font-size: 1.2em;
}

.metric-col {
  border-right: 1px solid var(--border);
  flex-direction: column;
  justify-content: center;
  padding-right: 24px;
  display: flex;
}

.metric-col:last-child {
  border-right: none;
  padding-right: 0;
}

.metric-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
  font-size: .85em;
}

.metric-value {
  color: var(--text);
  margin-bottom: 4px;
  font-size: 1.8em;
  font-weight: 800;
  line-height: 1.1;
}

.metric-sub {
  color: var(--muted);
  font-size: .85em;
}

.bar-container {
  background: var(--border);
  border-radius: 3px;
  width: 100%;
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
}

.bar-fill {
  background: var(--link);
  border-radius: 3px;
  width: 4%;
  height: 100%;
}

.bar-fill-ram {
  background: var(--link);
  border-radius: 3px;
  width: 12%;
  height: 100%;
}

.infographic-roadmap {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 2em 0;
  display: grid;
}

.roadmap-card {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 16px;
}

.roadmap-card h4 {
  color: var(--text);
  margin-bottom: 4px;
  font-size: .95em;
}

.roadmap-card p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: .85em;
  line-height: 1.5;
}

@media (width <= 640px) {
  .live-stats {
    flex-direction: column;
    gap: 8px;
  }

  .live-stats .divider {
    display: none;
  }

  .tech-specs {
    grid-template-columns: 1fr;
  }

  .spec-item:nth-child(odd) {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .infographic-flow {
    flex-direction: column;
    gap: 16px;
    padding: 32px 16px;
  }

  .flow-arrow {
    margin: 4px 0;
    transform: rotate(90deg);
  }

  .metric-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    padding-right: 0;
  }

  .metric-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .infographic-roadmap {
    grid-template-columns: 1fr;
  }
}

.hero-bottom-right .hero-date-line {
  color: #fff;
  text-shadow: 0 1px 3px #000000e6;
  isolation: isolate;
  align-items: center;
  gap: 12px;
  display: flex;
  position: relative;
}

.hero-bottom-right .hero-date-line:before {
  content: "";
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
  background: #0f0f0f99;
  border-radius: 999px;
  position: absolute;
  inset: -6px -14px;
}

.hero-bottom-right .hero-date-line time, .hero-bottom-right .hero-views {
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
}

.hero-bottom-right .hero-views svg {
  display: block;
}

.post-hero {
  background-image: var(--cover, none);
}

[hidden] {
  display: none !important;
}

.burger-panel .burger-item {
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  background: none;
  border: none;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: .95em;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s;
  display: flex;
}

.burger-panel .burger-item:hover {
  background: var(--tag-bg);
  color: var(--text);
  text-decoration: none;
}

.burger-panel .burger-item svg {
  opacity: .7;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
