@font-face {
  font-family: "Zpix";
  src: url("../fonts/zpix.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #bdb49e;
  --paper-light: #e3dcc8;
  --ink: #292d2e;
  --forest: #4e7958;
  --forest-dark: #283f72;
  --brick: #397a83;
  --amber: #c49a42;
  --muted: #69685e;
  --line: #696457;
  --shadow: #8e8775;
  --grid: rgba(67, 72, 66, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 28px;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(132, 201, 138, 0.085), transparent 42%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  font-family: "Zpix", "Cascadia Mono", Consolas, "Microsoft YaHei", monospace;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: none;
  text-rendering: optimizeSpeed;
}

::selection {
  color: #171305;
  background: var(--forest);
}

a {
  color: var(--forest);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brick);
}

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

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 10;
  padding: 8px 12px;
  color: var(--paper-light);
  background: var(--forest-dark);
}

.skip-link:focus {
  top: 12px;
}

.site-frame {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  border: 3px solid var(--line);
  border-color: var(--line);
  background: rgba(53, 51, 45, 0.97);
  box-shadow:
    8px 8px 0 var(--shadow),
    0 0 0 1px rgba(114, 189, 114, 0.06);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 12px 20px;
  color: var(--ink);
  border-bottom: 3px solid var(--line);
  background:
    linear-gradient(90deg, rgba(114, 189, 114, 0.06), transparent 30%),
    var(--forest-dark);
  box-shadow: inset 0 -1px 0 rgba(114, 189, 114, 0.18);
}

.site-header::after {
  width: 44px;
  height: 5px;
  margin-left: 8px;
  content: "";
  background:
    linear-gradient(90deg, var(--forest) 0 14px, transparent 14px 18px, var(--brick) 18px 30px, transparent 30px 34px, var(--amber) 34px);
  image-rendering: pixelated;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.brand:hover {
  color: #e9fff0;
}

.brand-mark {
  color: var(--amber);
}

.brand-cursor,
.pixel-cursor {
  display: inline-block;
  width: 0.62em;
  height: 1em;
  margin-left: 0.15em;
  vertical-align: -0.12em;
  background: currentColor;
  animation: blink 1s steps(1, end) infinite;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--forest);
}

.site-main {
  min-height: 62vh;
}

.hero {
  position: relative;
  padding: clamp(44px, 7vw, 84px) clamp(22px, 6vw, 70px) 32px;
  border-bottom: 3px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(114, 189, 114, 0.05), transparent 42%),
    rgba(39, 37, 32, 0.8);
}

.hero::after {
  position: absolute;
  right: -40px;
  bottom: -52px;
  width: 180px;
  height: 180px;
  content: "";
  border: 18px double rgba(114, 189, 114, 0.08);
  transform: rotate(45deg);
}

.hero__eyebrow,
.article__path,
.page-title > p {
  margin: 0 0 18px;
  color: var(--brick);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--forest);
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: -0.05em;
  text-shadow: 0 0 18px rgba(114, 189, 114, 0.12);
}

.hero__subtitle {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero__badge {
  display: grid;
  min-width: 128px;
  padding: 12px;
  color: var(--ink);
  border: 3px solid var(--line);
  background: #10181a;
  box-shadow:
    5px 5px 0 var(--shadow);
  text-align: center;
  transform: rotate(2deg);
}

.hero__badge strong {
  color: var(--forest);
  font-size: 2rem;
  line-height: 1;
}

.hero__hint {
  margin: 42px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.hero__actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
}

.hero__actions .hero__hint {
  margin: 0;
}

.pixel-action {
  position: relative;
  padding: 9px 13px;
  color: var(--ink);
  border: 2px solid var(--brick);
  border-radius: 0;
  background: #0b1518;
  box-shadow: 4px 4px 0 #053b43;
  font: inherit;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.pixel-action::before,
.pixel-action::after {
  position: absolute;
  width: 4px;
  height: 4px;
  content: "";
  background: var(--amber);
}

.pixel-action::before {
  top: -2px;
  left: -2px;
}

.pixel-action::after {
  right: -2px;
  bottom: -2px;
}

.pixel-action:hover {
  color: #171305;
  background: var(--brick);
  box-shadow: 4px 4px 0 #234744;
}

.pixel-action:active {
  box-shadow: 1px 1px 0 #234744;
  transform: translate(3px, 3px);
}

.pixel-action:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  padding: 30px;
}

.content-grid--post {
  align-items: start;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px double var(--line);
}

.section-heading h2 {
  margin: 0;
  color: var(--forest);
  font-size: 1.1rem;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.75rem;
}

.post-card {
  position: relative;
  margin-bottom: 22px;
  padding: 24px;
  border: 2px solid var(--line);
  background:
    linear-gradient(90deg, rgba(114, 189, 114, 0.035), transparent 24%),
    #3b3831;
  box-shadow: 5px 5px 0 var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.post-card::before,
.terminal-box::before {
  position: absolute;
  top: -2px;
  left: 14px;
  width: 32px;
  height: 2px;
  content: "";
  background: var(--amber);
}

.post-card:hover {
  box-shadow:
    7px 7px 0 var(--shadow);
  transform: translate(-2px, -2px);
}

.post-card__meta,
.post-card__footer,
.article__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 0.78rem;
}

.post-card__title {
  margin: 12px 0;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.35;
}

.post-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.post-card__title a::before {
  color: var(--brick);
  content: ">";
  margin-right: 10px;
}

.post-card__title a:hover {
  color: var(--forest);
}

.post-card__excerpt {
  color: #9bada5;
}

.post-card__footer {
  align-items: center;
  margin-top: 20px;
}

.read-more {
  padding: 5px 9px;
  color: #171305;
  background: var(--forest);
  text-decoration: none;
}

.read-more:hover {
  color: #171305;
  background: var(--amber);
}

.post-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.post-tags a,
.tag-cloud a {
  font-size: 0.78rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.terminal-box {
  position: relative;
  border: 2px solid var(--line);
  background: #3b3831;
  box-shadow: 4px 4px 0 var(--shadow);
}

.terminal-box__title {
  margin: 0;
  padding: 8px 12px;
  color: var(--forest);
  background:
    repeating-linear-gradient(90deg, rgba(114, 189, 114, 0.04) 0 2px, transparent 2px 6px),
    var(--forest-dark);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.status-list {
  margin: 0;
  padding: 12px;
  font-size: 0.78rem;
}

.status-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--muted);
}

.status-list div:last-child {
  border-bottom: 0;
}

.status-list dt,
.status-list dd {
  margin: 0;
}

.status-list dd {
  color: var(--forest);
  font-weight: 800;
}

.status-list .online::before {
  content: "● ";
  color: var(--forest);
}

.recent-list {
  margin: 0;
  padding: 12px 12px 12px 34px;
  font-size: 0.84rem;
}

.recent-list li {
  margin: 7px 0;
}

.recent-list li::marker {
  color: var(--brick);
}

.tag-cloud {
  padding: 14px;
}

.pagination-wrap {
  margin-top: 26px;
}

.pagination {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination a,
.pagination span {
  display: inline-block;
  min-width: 34px;
  padding: 5px 9px;
  border: 2px solid var(--line);
  text-align: center;
  text-decoration: none;
}

.pagination .current {
  color: #171305;
  background: var(--forest);
}

.article,
.standalone-page,
.archive-page {
  padding: clamp(22px, 4vw, 42px);
}

.standalone-page,
.archive-page {
  margin: 30px;
}

.article__header,
.page-title {
  margin-bottom: 34px;
  padding-bottom: 20px;
  border-bottom: 3px double var(--line);
}

.article__header h1,
.page-title h1 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1.25;
}

.article__content {
  overflow-wrap: anywhere;
}

.article__content h2,
.article__content h3,
.article__content h4 {
  margin-top: 2em;
  color: var(--forest);
  line-height: 1.4;
}

.article__content h2::before {
  content: "## ";
  color: var(--brick);
}

.article__content h3::before {
  content: "### ";
  color: var(--amber);
}

.article__content blockquote {
  margin: 24px 0;
  padding: 10px 18px;
  border-left: 6px solid var(--brick);
  background: rgba(114, 189, 114, 0.05);
}

.article__content pre {
  padding: 18px;
  color: #e4ddcf;
  background: #24221e;
  border: 2px solid var(--line);
  overflow-x: auto;
}

.article__content code {
  padding: 0.12em 0.35em;
  color: var(--amber);
  background: rgba(114, 189, 114, 0.08);
}

.article__content pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.article__content table {
  display: block;
  max-width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
}

.article__content th,
.article__content td {
  padding: 8px 12px;
  border: 1px solid var(--line);
}

.article__content hr {
  border: 0;
  border-top: 3px double var(--line);
}

.article__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 2px dashed var(--line);
}

.archive-list article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed var(--muted);
}

.archive-list article:last-child {
  border-bottom: 0;
}

.archive-list time,
.archive-list > article > span {
  color: var(--muted);
  font-size: 0.8rem;
}

.archive-list h2 {
  margin: 0;
  font-size: 1.1rem;
}

.archive-list h2 a {
  color: var(--ink);
  text-decoration: none;
}

.archive-list h2 a:hover {
  color: var(--brick);
}

.site-footer {
  padding: 18px 22px;
  color: var(--ink);
  border-top: 3px solid var(--line);
  background:
    linear-gradient(90deg, rgba(114, 189, 114, 0.05), transparent 35%),
    var(--forest-dark);
  font-size: 0.78rem;
}

.site-footer p:first-child {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.site-footer p {
  margin: 0;
}

.footer-line {
  margin-top: 6px !important;
  color: var(--forest);
  text-align: center;
  letter-spacing: 0.06em;
}

#leaf-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  pointer-events: none;
  image-rendering: pixelated;
}

.page-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  height: 6px;
  background: #25231f;
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      var(--forest) 0 12px,
      #3f3a2b 12px 15px,
      var(--brick) 15px 20px,
      #3f3a2b 20px 23px,
      var(--amber) 23px 27px,
      #3f3a2b 27px 30px
    );
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.pixel-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  padding: 8px 11px;
  color: var(--ink);
  border: 3px solid var(--brick);
  border-radius: 0;
  background: #35332d;
  box-shadow: 4px 4px 0 #173a38;
  font: inherit;
  font-size: 0.75rem;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 120ms steps(2, end), transform 120ms steps(2, end);
}

.pixel-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pixel-top:hover,
.pixel-top:focus-visible {
  color: #171305;
  outline: 0;
  background: var(--brick);
}

.pixel-top:active {
  box-shadow: 1px 1px 0 #173a38;
  transform: translate(3px, 3px);
}

.pixel-leaf {
  --leaf-color: var(--forest);
  position: fixed;
  top: -24px;
  left: var(--leaf-x);
  z-index: 0;
  width: 8px;
  height: 8px;
  background: var(--leaf-color);
  box-shadow:
    4px 0 0 color-mix(in srgb, var(--leaf-color), #000 28%),
    0 4px 0 color-mix(in srgb, var(--leaf-color), #000 15%),
    8px 4px 0 color-mix(in srgb, var(--leaf-color), #000 42%);
  opacity: 0.62;
  pointer-events: none;
  image-rendering: pixelated;
  animation: leaf-fall var(--leaf-duration) linear var(--leaf-delay) infinite;
}

.pixel-leaf:nth-child(3n + 1) {
  --leaf-color: var(--brick);
}

.pixel-leaf:nth-child(3n + 2) {
  --leaf-color: var(--amber);
}

.web-slinger {
  position: fixed;
  top: -100px;
  left: -100px;
  z-index: 8;
  width: 54px;
  height: 76px;
  opacity: 0;
  pointer-events: none;
  image-rendering: pixelated;
}

.web-slinger.is-swinging {
  opacity: 1;
  animation: web-swing 2.8s cubic-bezier(0.34, 0.08, 0.65, 0.96) both;
}

.web-line {
  position: absolute;
  left: 27px;
  bottom: 58px;
  width: 2px;
  height: 150px;
  background: repeating-linear-gradient(
    0deg,
    #d8f7ef 0 5px,
    transparent 5px 8px
  );
  transform: rotate(22deg);
  transform-origin: bottom;
}

.hero-sprite {
  position: absolute;
  inset: 20px 0 0;
  transform: rotate(-16deg);
}

.hero-sprite i {
  position: absolute;
  display: block;
}

.hero-head {
  top: 0;
  left: 18px;
  width: 20px;
  height: 22px;
  background: #dd3048;
  box-shadow:
    inset 3px 0 0 #8b1729,
    2px 2px 0 #050607;
  clip-path: polygon(20% 0, 80% 0, 100% 25%, 88% 85%, 50% 100%, 12% 85%, 0 25%);
}

.hero-eye {
  z-index: 2;
  top: 7px;
  width: 4px;
  height: 7px;
  background: #eafcff;
}

.hero-eye--left {
  left: 22px;
  transform: skewY(18deg);
}

.hero-eye--right {
  left: 31px;
  transform: skewY(-18deg);
}

.hero-body {
  top: 20px;
  left: 14px;
  width: 26px;
  height: 28px;
  background:
    linear-gradient(90deg, #174b9b 0 6px, #dd3048 6px 20px, #174b9b 20px);
  box-shadow: 2px 2px 0 #050607;
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
}

.hero-arm {
  top: 23px;
  width: 8px;
  height: 30px;
  background: #dd3048;
  box-shadow: 2px 1px 0 #050607;
  transform-origin: top;
}

.hero-arm--left {
  left: 11px;
  transform: rotate(54deg);
}

.hero-arm--right {
  left: 37px;
  transform: rotate(-52deg);
}

.hero-leg {
  top: 44px;
  width: 9px;
  height: 30px;
  background:
    linear-gradient(#174b9b 0 19px, #dd3048 19px);
  box-shadow: 2px 2px 0 #050607;
  transform-origin: top;
}

.hero-leg--left {
  left: 18px;
  transform: rotate(35deg);
}

.hero-leg--right {
  left: 30px;
  transform: rotate(-42deg);
}

@keyframes leaf-fall {
  0% {
    transform: translate3d(0, -30px, 0) rotate(0deg);
  }
  24% {
    transform: translate3d(36px, 25vh, 0) rotate(90deg);
  }
  52% {
    transform: translate3d(-28px, 54vh, 0) rotate(180deg);
  }
  78% {
    transform: translate3d(24px, 80vh, 0) rotate(270deg);
  }
  100% {
    transform: translate3d(-12px, 112vh, 0) rotate(360deg);
  }
}

@keyframes web-swing {
  0% {
    transform: translate3d(-8vw, 8vh, 0) rotate(-32deg) scale(0.82);
  }
  24% {
    transform: translate3d(24vw, 30vh, 0) rotate(9deg) scale(1);
  }
  50% {
    transform: translate3d(52vw, 17vh, 0) rotate(-10deg) scale(1.08);
  }
  76% {
    transform: translate3d(79vw, 34vh, 0) rotate(14deg) scale(0.96);
  }
  100% {
    transform: translate3d(112vw, 5vh, 0) rotate(34deg) scale(0.78);
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand-cursor,
  .pixel-cursor {
    animation: none;
  }

  .post-card {
    transition: none;
  }

  #leaf-canvas,
  .page-progress,
  .pixel-leaf,
  .web-slinger {
    display: none;
  }
}

@media (max-width: 820px) {
  body {
    padding: 12px;
  }

  .site-frame {
    box-shadow: 6px 6px 0 var(--shadow);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero__grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero__badge {
    display: none;
  }

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

  .content-grid {
    padding: 18px;
  }

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

  .standalone-page,
  .archive-page {
    margin: 18px;
  }
}

@media (max-width: 560px) {
  body {
    padding: 0;
    background-image: none;
  }

  #leaf-canvas {
    opacity: 0.52;
  }

  .pixel-top {
    right: 14px;
    bottom: 14px;
  }

  .site-frame {
    border-width: 0;
    box-shadow: none;
  }

  .site-nav {
    gap: 8px 12px;
  }

  .site-header::after {
    display: none;
  }

  .hero {
    padding: 38px 20px 24px;
  }

  .hero h1 {
    letter-spacing: -0.03em;
  }

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

  .post-card {
    padding: 18px;
    box-shadow: 3px 3px 0 var(--shadow);
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .archive-list article {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .site-footer p:first-child {
    flex-direction: column;
    gap: 2px;
  }
}

/* Unified pixel interface */
html {
  scrollbar-color: var(--line) var(--forest-dark);
  scrollbar-width: thin;
}

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

::-webkit-scrollbar-track {
  background: var(--forest-dark);
  border-left: 2px solid #433f2e;
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border: 3px solid var(--forest-dark);
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-frame,
.post-card,
.terminal-box,
.standalone-page,
.archive-page,
.article__content pre,
.article__content img,
.article__content table,
.pagination a,
.pagination span {
  border-radius: 0 !important;
}

.site-frame {
  outline: 2px solid #3e3a2e;
  outline-offset: 5px;
}

.site-frame::before,
.site-frame::after {
  position: absolute;
  z-index: 3;
  width: 12px;
  height: 12px;
  content: "";
  pointer-events: none;
}

.site-frame::before {
  top: -3px;
  left: -3px;
  border-top: 6px solid var(--amber);
  border-left: 6px solid var(--amber);
}

.site-frame::after {
  right: -3px;
  bottom: -3px;
  border-right: 6px solid var(--brick);
  border-bottom: 6px solid var(--brick);
}

.site-header {
  min-height: 72px;
  border-bottom-width: 4px;
}

.brand {
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #3c3a24;
}

.brand-mark {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #171305;
  background: var(--amber);
  box-shadow: 3px 3px 0 #5c4d1c;
}

.brand-cursor,
.pixel-cursor {
  width: 0.7em;
  box-shadow: 2px 0 0 #48582d;
}

.site-nav a {
  padding: 4px 7px;
  border: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #171305;
  border-color: var(--forest);
  outline: 0;
  background: var(--forest);
  box-shadow: 3px 3px 0 #48582d;
}

.hero {
  border-bottom-width: 4px;
}

.hero__eyebrow,
.article__path,
.page-title > p,
.hero__hint,
.post-card__meta,
.article__meta,
.section-heading span,
.status-list,
.recent-list,
.site-footer {
  letter-spacing: 0.05em;
}

.hero h1,
.article__header h1,
.page-title h1 {
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero__badge {
  border-width: 4px;
  box-shadow: 6px 6px 0 var(--shadow);
}

.hero__badge strong {
  text-shadow: 3px 3px 0 #504a25;
}

.section-heading {
  border-bottom: 4px solid var(--line);
}

.section-heading h2::before {
  margin-right: 8px;
  color: var(--amber);
  content: "▓";
}

.post-card {
  border-width: 3px;
  box-shadow: 6px 6px 0 var(--shadow);
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% 100%,
    10px 100%,
    0 calc(100% - 10px)
  );
}

.post-card:hover {
  border-color: var(--brick);
  box-shadow: 7px 7px 0 #173a38;
}

.post-card__title a::before {
  display: inline-block;
  width: 24px;
  color: #171305;
  background: var(--amber);
  text-align: center;
  text-shadow: none;
}

.read-more {
  border: 2px solid var(--forest);
  box-shadow: 3px 3px 0 #48582d;
}

.post-tags a,
.tag-cloud a {
  padding: 2px 5px;
  border-bottom: 2px solid var(--brick);
  text-decoration: none;
}

.post-tags a:hover,
.tag-cloud a:hover {
  color: #171305;
  background: var(--brick);
}

.terminal-box {
  border-width: 3px;
  box-shadow: 5px 5px 0 var(--shadow);
}

.terminal-box__title {
  border-bottom: 3px solid var(--line);
}

.status-list div {
  border-bottom-style: dotted;
  border-bottom-width: 2px;
}

.pagination a,
.pagination span {
  border-width: 3px;
  box-shadow: 3px 3px 0 var(--shadow);
}

.pagination a:hover {
  color: #171305;
  background: var(--brick);
}

.article__content {
  font-size: 18px;
}

.article__content p,
.article__content li {
  line-height: 1.9;
}

.article__content h2,
.article__content h3,
.article__content h4 {
  font-weight: 400;
  letter-spacing: 0.04em;
}

.article__content blockquote {
  border-left-width: 8px;
  box-shadow: inset 3px 0 0 #48582d;
}

.article__content pre {
  border-width: 3px;
  box-shadow: 5px 5px 0 var(--shadow);
}

.article__content img {
  border: 4px solid var(--line);
  box-shadow: 6px 6px 0 var(--shadow);
  image-rendering: pixelated;
}

.article__content th {
  color: #171305;
  background: var(--forest);
}

.archive-list article {
  border-bottom-width: 2px;
}

.archive-list h2 a::before {
  margin-right: 8px;
  color: var(--brick);
  content: "◆";
}

.site-footer {
  border-top-width: 4px;
}

.footer-line {
  font-size: 0.72rem;
}

@media (max-width: 560px) {
  body,
  .article__content {
    font-size: 16px;
  }

  .site-frame {
    outline: 0;
  }

  .site-nav a {
    padding: 3px 5px;
  }
}

/* 1989—1998 personal computer skin */
body {
  background-color: var(--paper);
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(75, 80, 72, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(75, 80, 72, 0.08) 75%);
  background-position: 0 0, 0 3px, 3px -3px, -3px 0;
  background-size: 6px 6px;
}

::selection {
  color: #f7f1df;
  background: var(--brick);
}

a {
  color: #283f72;
}

.site-frame {
  border-width: 4px;
  border-color: #f5f2e8 #535650 #535650 #f5f2e8;
  outline: 2px solid #777970;
  background: #d5d3ca;
  box-shadow: 8px 8px 0 #73746e;
}

.site-header {
  color: #f6f1df;
  border-color: #1f4f51;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 5px),
    var(--forest-dark);
  box-shadow:
    inset 2px 2px 0 #4c65a0,
    inset -2px -2px 0 #17264b;
}

.brand {
  color: #f8f2dc;
  text-shadow: 2px 2px 0 #17264b;
}

.brand:hover {
  color: #fff2ae;
}

.brand-mark {
  color: #332913;
  background: var(--amber);
  box-shadow:
    inset 2px 2px 0 #efd27a,
    inset -2px -2px 0 #806321;
}

.site-nav {
  gap: 7px;
}

.site-nav a {
  padding: 4px 8px;
  color: #292b28;
  border-width: 2px;
  border-style: solid;
  border-color: #faf8ef #686b64 #686b64 #faf8ef;
  background: #d7d5cc;
  box-shadow: 2px 2px 0 #17264b;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #f6f1df;
  border-color: #17264b;
  background: #334f86;
  box-shadow: 2px 2px 0 #17264b;
}

.site-nav a:active {
  border-color: #686b64 #faf8ef #faf8ef #686b64;
  box-shadow: none;
  transform: translate(2px, 2px);
}

.hero {
  border-color: #74766f;
  background:
    linear-gradient(90deg, rgba(71, 123, 84, 0.1), transparent 42%),
    #cfcdc3;
}

.hero h1,
.article__header h1,
.page-title h1 {
  color: #3f6749;
  text-shadow: 2px 2px 0 #a9b7a7;
}

.hero__eyebrow,
.article__path,
.page-title > p {
  color: #315f78;
}

.hero__subtitle,
.hero__hint {
  color: #60645d;
}

.hero__badge {
  color: #292b28;
  border-color: #f7f4e9 #676a63 #676a63 #f7f4e9;
  background: #d9d7cd;
  box-shadow: 5px 5px 0 #8e8775;
}

.hero__badge strong {
  color: #283f72;
  text-shadow: 2px 2px 0 #aab4ad;
}

.section-heading {
  padding: 7px 9px;
  color: #f7f1df;
  border: 3px solid #17264b;
  background: #334f86;
}

.section-heading h2,
.section-heading span {
  color: #f7f1df;
}

.section-heading h2::before {
  color: #f0cb6d;
}

.post-card,
.terminal-box,
.standalone-page,
.archive-page {
  color: var(--ink);
  border-width: 3px;
  border-color: #f8f1dd #696457 #696457 #f8f1dd;
  background: var(--paper-light);
  box-shadow: 5px 5px 0 #92938b;
}

.post-card:hover {
  border-color: #c7a24b #557f78 #557f78 #e8d38c;
  box-shadow: 6px 6px 0 #7e8179;
}

.post-card__title a,
.archive-list h2 a {
  color: #30332e;
}

.post-card__title a:hover,
.archive-list h2 a:hover {
  color: #315f78;
}

.post-card__excerpt {
  color: #5f635c;
}

.post-card__title a::before {
  color: #332913;
  background: var(--amber);
}

.read-more {
  color: #f8f4e7;
  border-color: #283f72;
  background: #334f86;
  box-shadow: 3px 3px 0 #7c7f77;
}

.read-more:hover {
  color: #2c291c;
  background: #d2ad4d;
}

.terminal-box__title {
  color: #f7f1df;
  border-color: #17264b;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 5px),
    #334f86;
}

.status-list,
.recent-list,
.tag-cloud,
.article__meta,
.post-card__meta {
  color: #5f635c;
}

.status-list dd,
.status-list .online::before {
  color: #3f6749;
}

.pagination a,
.pagination span {
  color: #292b28;
  border-color: #f8f1dd #696457 #696457 #f8f1dd;
  background: #d7d5cc;
  box-shadow: 3px 3px 0 #8c8e87;
}

.pagination .current,
.pagination a:hover {
  color: #f8f4e7;
  background: #334f86;
}

.article__content {
  color: #343630;
}

.article__content h2,
.article__content h3,
.article__content h4 {
  color: #3f6749;
}

.article__content blockquote {
  border-color: #c49a42;
  background: #ddd8c7;
  box-shadow: inset 3px 0 0 #8b712f;
}

.article__content code {
  color: #315f78;
  background: #d0d1c4;
}

.article__content pre {
  color: #a8d9a2;
  border-color: #6f756a #252a24 #252a24 #6f756a;
  background: #20251f;
  box-shadow: 5px 5px 0 #898b83;
}

.article__content pre code {
  color: inherit;
  background: transparent;
}

.archive-list time,
.archive-list > article > span {
  color: #666a62;
}

.site-footer {
  color: #f7f1df;
  border-color: #17264b;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 5px),
    #283f72;
}

.footer-line {
  color: #f0cb6d;
}

.page-progress {
  background: #42453f;
}

.pixel-top {
  color: #292b28;
  border-color: #f8f6ed #62655e #62655e #f8f6ed;
  background: #d7d5cc;
  box-shadow: 4px 4px 0 #777972;
}

.pixel-top:hover,
.pixel-top:focus-visible {
  color: #f8f4e7;
  background: #334f86;
}

::-webkit-scrollbar-track {
  background: #a9aaa3;
  border-color: #6c6e68;
}

::-webkit-scrollbar-thumb {
  border-color: #f3f1e8 #686a64 #686a64 #f3f1e8;
  background: #cdcbc2;
}

@media (max-width: 560px) {
  .site-frame {
    border-width: 0;
    outline: 0;
  }

  .site-nav a {
    padding: 4px 6px;
  }
}

/* IBM PC / CGA desktop — high-contrast 1980s pass */
:root {
  --paper: #aeb19f;
  --paper-light: #e8e1c8;
  --ink: #252a29;
  --forest: #5f8f68;
  --forest-dark: #243664;
  --brick: #2e8189;
  --amber: #d3a83e;
  --muted: #62675f;
  --line: #555b56;
  --shadow: #72786f;
}

body {
  padding-top: 42px;
  background-color: #aeb19f;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 46, 52, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #b9baa7 0 25%, #aeb19f 25% 50%, #b9baa7 50% 75%, #aeb19f 75%);
  background-size: 8px 8px, 8px 8px, 6px 6px;
}

.site-frame {
  width: min(1180px, 100%);
  border: 4px solid;
  border-color: #f9f2d9 #4a504e #4a504e #f9f2d9;
  outline: 2px solid #313a3d;
  outline-offset: 0;
  background: #d8d2ba;
  box-shadow:
    12px 12px 0 #69706a,
    14px 14px 0 #3b4546;
}

.site-frame::before,
.site-frame::after {
  display: none;
}

.pc-titlebar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  min-height: 34px;
  color: #fff7d9;
  border-bottom: 3px solid #18264a;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 2px, transparent 2px 5px),
    #243664;
  box-shadow:
    inset 2px 2px 0 #6275a5,
    inset -2px -2px 0 #111c38;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.pc-titlebar__icon {
  align-self: stretch;
  display: grid;
  min-width: 48px;
  padding: 0 7px;
  place-items: center;
  color: #243664;
  background: #d3a83e;
  box-shadow: inset -3px 0 0 #806323;
}

.pc-titlebar__name {
  padding-left: 12px;
}

.pc-titlebar__memory {
  margin-right: 14px;
  color: #82d5d6;
}

.pc-titlebar__controls {
  display: flex;
  height: 26px;
  margin-right: 4px;
}

.pc-titlebar__controls i {
  display: grid;
  width: 27px;
  border: 2px solid;
  border-color: #fff8df #121d39 #121d39 #fff8df;
  place-items: center;
  color: #202942;
  background: #d9d4bd;
  font-style: normal;
  line-height: 1;
}

.site-header {
  min-height: 58px;
  padding: 8px 14px;
  color: #282d2d;
  border-bottom: 4px solid;
  border-color: #7a7f78;
  background:
    linear-gradient(90deg, rgba(211, 168, 62, 0.1), transparent 35%),
    #d8d2ba;
  box-shadow:
    inset 2px 2px 0 #f8f1da,
    inset -2px -2px 0 #777b72;
}

.site-header::after {
  display: none;
}

.brand {
  color: #243664;
  text-shadow: 2px 2px 0 #a8a995;
}

.brand:hover {
  color: #2e8189;
}

.brand-mark {
  width: auto;
  min-width: 34px;
  height: 28px;
  padding: 0 5px;
  color: #fff8dd;
  background: #2e8189;
  box-shadow:
    inset 2px 2px 0 #75c2c5,
    inset -2px -2px 0 #195058;
}

.brand-cursor {
  color: #5f8f68;
  box-shadow: none;
}

.site-nav a {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px 8px;
  color: #29302f;
  border: 2px solid;
  border-color: #fff8df #626861 #626861 #fff8df;
  background: #e0dac2;
  box-shadow: 2px 2px 0 #85877b;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff8df;
  border-color: #56a8ae #152447 #152447 #56a8ae;
  background: #243664;
  box-shadow: 2px 2px 0 #16213e;
}

.nav-key {
  color: #8a641c;
  font-size: 0.63rem;
}

.site-nav a:hover .nav-key {
  color: #e6bd53;
}

.hero {
  padding-top: 26px;
  color: #c8e5d0;
  border-color: #101b38;
  background:
    linear-gradient(rgba(93, 124, 166, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 121, 160, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 24% 40%, #2d4777 0, #1c2e58 48%, #152346 100%);
  background-size: 5px 5px, 5px 5px, auto;
  box-shadow:
    inset 0 5px 0 #344f82,
    inset 0 -5px 0 #0d1730;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.18;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #09152f 3px 4px);
}

.hero::after {
  right: 8%;
  bottom: 48px;
  width: 110px;
  height: 110px;
  border: 8px solid rgba(76, 203, 204, 0.08);
  box-shadow: 18px 18px 0 rgba(211, 168, 62, 0.06);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__system-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: -4px 0 24px;
  padding: 4px 8px;
  color: #172347;
  background: #82c6c5;
  box-shadow: 4px 4px 0 #0d1832;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.hero__eyebrow {
  color: #e0b94f;
}

.hero__eyebrow span {
  color: #78cfd0;
}

.hero h1 {
  color: #89d094;
  text-shadow:
    3px 3px 0 #10223a,
    0 0 12px rgba(137, 208, 148, 0.28);
}

.hero__subtitle,
.hero__hint {
  color: #c2d6c7;
}

.hero__subtitle::before {
  color: #e0b94f;
  content: "// ";
}

.crt-panel {
  width: 250px;
  padding: 11px 11px 8px;
  border: 4px solid;
  border-color: #f2e8c9 #777762 #777762 #f2e8c9;
  background: #c8c1a5;
  box-shadow: 8px 8px 0 #101a34;
  transform: rotate(1deg);
}

.crt-panel__screen {
  min-height: 128px;
  padding: 13px;
  color: #7ccc86;
  border: 5px solid #373b34;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.28) 3px 4px),
    #142218;
  box-shadow:
    inset 0 0 18px rgba(104, 206, 119, 0.18),
    inset 3px 3px 0 #080e0a;
  font-size: 0.7rem;
  line-height: 1.45;
}

.crt-panel__screen p {
  margin: 0 0 5px;
}

.crt-panel__ready {
  color: #e0b94f;
}

.crt-panel__label {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 6px;
  padding-top: 7px;
  color: #4a4b42;
  font-size: 0.54rem;
}

.crt-panel__label i {
  width: 8px;
  height: 8px;
  background: #5c9164;
  box-shadow: inset 2px 2px 0 #92c897;
}

.crt-panel__label i:last-child {
  background: #d3a83e;
  box-shadow: inset 2px 2px 0 #efd272;
}

.hero__function-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 34px 0 0;
  border: 2px solid #0e1934;
  background: #111d3b;
  font-size: 0.62rem;
}

.hero__function-row span {
  padding: 6px 7px;
  color: #b8d8c0;
  border-right: 1px solid #425986;
  text-align: center;
}

.hero__function-row span:last-child {
  border-right: 0;
}

.hero__function-row b {
  color: #172347;
  background: #d3a83e;
}

.content-grid {
  background:
    linear-gradient(rgba(72, 77, 70, 0.04) 1px, transparent 1px),
    #d8d2ba;
  background-size: 10px 10px;
}

.section-heading {
  border-color: #152447;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 5px),
    #243664;
  box-shadow: 4px 4px 0 #72776e;
}

.post-card,
.terminal-box,
.standalone-page,
.archive-page {
  border-color: #fff5d7 #585e59 #585e59 #fff5d7;
  background:
    linear-gradient(90deg, rgba(46, 129, 137, 0.045), transparent 35%),
    #e8e1c8;
  box-shadow: 6px 6px 0 #747970;
}

.post-card::after {
  position: absolute;
  top: 0;
  right: 0;
  padding: 2px 7px;
  color: #fff3d2;
  content: "DOC";
  background: #2e8189;
  font-size: 0.58rem;
}

.post-card:hover {
  border-color: #7fc5c4 #2e8189 #2e8189 #caedf0;
  box-shadow: 7px 7px 0 #536c68;
}

.terminal-box__title {
  color: #fff5d8;
  border-color: #18264a;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 5px),
    #2b4779;
}

.terminal-box__title::before {
  margin-right: 7px;
  color: #e4bd55;
  content: "■";
}

.read-more {
  border-color: #152447;
  background: #243664;
  box-shadow: 3px 3px 0 #72776e;
}

.site-footer {
  color: #fff4d5;
  border-color: #101a34;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 5px),
    #1b2c55;
}

.footer-line {
  color: #7fc9c8;
}

.desktop-decor {
  position: fixed;
  z-index: 0;
  top: 76px;
  display: grid;
  width: 74px;
  justify-items: center;
  gap: 7px;
  color: #283437;
  filter: drop-shadow(2px 2px 0 rgba(255,255,255,.28));
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.desktop-decor--left {
  left: max(14px, calc((100vw - 1420px) / 2));
}

.desktop-decor--right {
  right: max(14px, calc((100vw - 1420px) / 2));
  top: 190px;
}

.desktop-icon {
  position: relative;
  display: block;
  width: 42px;
  height: 38px;
  image-rendering: pixelated;
}

.desktop-icon--computer {
  border: 4px solid #283437;
  background: #d8d2ba;
  box-shadow:
    inset 4px 4px 0 #f7eed1,
    inset -4px -4px 0 #6c746e,
    0 8px 0 -2px #283437;
}

.desktop-icon--computer::after {
  position: absolute;
  inset: 7px 7px 10px;
  content: "";
  background: #2e8189;
  box-shadow: inset 3px 3px 0 #183f48;
}

.desktop-icon--disk {
  border: 4px solid #283437;
  background: #243664;
  box-shadow:
    inset -6px -6px 0 #14203e,
    0 4px 0 #6d736d;
}

.desktop-icon--disk::before {
  position: absolute;
  top: 0;
  left: 8px;
  width: 18px;
  height: 14px;
  content: "";
  background: #d8d2ba;
}

.desktop-icon--disk::after {
  position: absolute;
  right: 5px;
  bottom: 4px;
  left: 5px;
  height: 11px;
  content: "";
  border: 2px solid #283437;
  background: #e5b94a;
}

@media (max-width: 1380px) {
  .desktop-decor {
    display: none;
  }
}

@media (max-width: 820px) {
  body {
    padding-top: 18px;
  }

  .pc-titlebar__memory {
    display: none;
  }

  .hero__system-line,
  .hero__function-row {
    overflow: hidden;
  }

  .hero__function-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__function-row span:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    padding-top: 0;
  }

  .pc-titlebar {
    grid-template-columns: auto 1fr auto;
  }

  .pc-titlebar__controls {
    display: none;
  }

  .site-frame {
    border: 0;
    box-shadow: none;
  }

  .hero__system-line span:last-child {
    display: none;
  }

  .crt-panel {
    width: 100%;
    max-width: 280px;
  }
}

/* Windows 3.x / early 90s GUI — authentic system palette */
:root {
  --win-desktop: #5c7085;
  --win-face: #c0c0c0;
  --win-light: #ffffff;
  --win-shadow: #808080;
  --win-dark: #000000;
  --win-title: #000080;
  --win-blue: #0000aa;
  --win-window: #ffffff;
  --win-yellow: #ffff00;
  --win-green: #008000;
  --paper: var(--win-desktop);
  --paper-light: var(--win-window);
  --ink: #000000;
  --forest: #008000;
  --forest-dark: var(--win-title);
  --brick: #008080;
  --amber: #b06f00;
  --muted: #555555;
  --line: #000000;
  --shadow: #404040;
}

body {
  padding: 32px;
  color: #000;
  background-color: var(--win-desktop);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px);
  background-size: 4px 4px;
}

.site-frame {
  width: min(1180px, 100%);
  border: 3px solid;
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  outline: 1px solid var(--win-face);
  background: var(--win-face);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.38);
}

.pc-titlebar {
  min-height: 31px;
  margin: 3px 3px 0;
  color: #fff;
  border: 0;
  background: var(--win-title);
  box-shadow: none;
  font-size: 0.72rem;
}

.pc-titlebar__icon {
  align-self: center;
  min-width: 23px;
  height: 23px;
  margin-left: 3px;
  padding: 0 2px;
  color: #000;
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  background: var(--win-face);
  box-shadow: none;
  font-size: 0.55rem;
}

.pc-titlebar__name {
  padding-left: 8px;
  font-weight: 700;
}

.pc-titlebar__memory {
  color: #fff;
}

.pc-titlebar__controls {
  gap: 3px;
  height: 23px;
}

.pc-titlebar__controls i {
  width: 23px;
  color: #000;
  border-color: #fff #000 #000 #fff;
  background: var(--win-face);
}

.site-header {
  min-height: 65px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid var(--win-shadow);
  background: var(--win-face);
  box-shadow:
    inset 0 -1px 0 var(--win-light);
}

.brand {
  color: #000;
  text-shadow: none;
}

.brand:hover {
  color: var(--win-title);
}

.brand-mark {
  min-width: 36px;
  color: #fff;
  border: 2px solid;
  border-color: #61d2d2 #003737 #003737 #61d2d2;
  background: var(--win-desktop);
  box-shadow: none;
}

.brand-cursor {
  color: var(--win-title);
}

.site-nav {
  gap: 5px;
}

.site-nav a {
  gap: 4px;
  padding: 5px 9px;
  color: #000;
  border: 2px solid;
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  background: var(--win-face);
  box-shadow: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  border-color: var(--win-dark) var(--win-light) var(--win-light) var(--win-dark);
  background: var(--win-title);
  box-shadow: none;
}

.site-nav a:active {
  padding: 6px 8px 4px 10px;
  border-color: var(--win-dark) var(--win-light) var(--win-light) var(--win-dark);
  transform: none;
}

.nav-key,
.site-nav a:hover .nav-key {
  color: inherit;
  text-decoration: underline;
}

.hero {
  margin: 0 8px 8px;
  padding: 0 16px 24px;
  color: #000;
  border: 2px solid;
  border-color: var(--win-shadow) var(--win-light) var(--win-light) var(--win-shadow);
  background:
    linear-gradient(rgba(0, 128, 128, 0.035) 1px, transparent 1px),
    #f2f2e8;
  background-size: 4px 4px;
  box-shadow: none;
}

.hero::before,
.hero::after {
  display: none;
}

.hero__system-line {
  margin: 0 -16px 28px;
  padding: 6px 9px;
  color: #000;
  border-bottom: 2px solid;
  border-color: var(--win-shadow);
  background: var(--win-face);
  box-shadow: 0 1px 0 var(--win-light);
}

.hero__system-line span:first-child::before {
  margin-right: 20px;
  content: "File   View   Options   Help   |";
  word-spacing: 6px;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 8px;
  color: #fff;
  background: var(--win-title);
}

.hero__eyebrow span {
  color: var(--win-yellow);
}

.hero h1 {
  color: var(--win-title);
  text-shadow: 3px 3px 0 #b6b6aa;
}

.hero__subtitle,
.hero__hint {
  color: #222;
}

.hero__subtitle::before {
  color: var(--win-title);
}

.crt-panel {
  width: 250px;
  padding: 7px;
  border: 3px solid;
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  background: var(--win-face);
  box-shadow: 5px 5px 0 #7b7b72;
  transform: none;
}

.crt-panel::before {
  display: block;
  margin: -3px -3px 7px;
  padding: 3px 6px;
  color: #fff;
  content: "MS-DOS Prompt";
  background: var(--win-title);
  font-size: 0.62rem;
}

.crt-panel__screen {
  min-height: 125px;
  color: #c0c0c0;
  border: 2px solid;
  border-color: #000 #fff #fff #000;
  background: #000;
  box-shadow: none;
}

.crt-panel__ready {
  color: var(--win-yellow);
}

.crt-panel__label {
  color: #000;
}

.crt-panel__label i {
  background: #00a000;
  box-shadow: none;
}

.crt-panel__label i:last-child {
  background: #d48b00;
  box-shadow: none;
}

.hero__function-row {
  margin-top: 32px;
  border: 2px solid;
  border-color: var(--win-shadow) var(--win-light) var(--win-light) var(--win-shadow);
  background: var(--win-face);
}

.hero__function-row span {
  color: #000;
  border-right: 1px solid var(--win-shadow);
}

.hero__function-row b {
  color: #fff;
  background: var(--win-title);
}

.content-grid {
  gap: 20px;
  padding: 8px;
  background: var(--win-face);
  background-image: none;
}

.section-heading {
  margin: 0 0 8px;
  padding: 5px 8px;
  color: #fff;
  border: 0;
  background: var(--win-title);
  box-shadow: none;
}

.section-heading h2,
.section-heading span {
  color: #fff;
}

.section-heading h2::before {
  color: var(--win-yellow);
}

.post-card,
.terminal-box,
.standalone-page,
.archive-page {
  border: 3px solid;
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  background: var(--win-face);
  box-shadow: 4px 4px 0 #7d7d76;
}

.post-card {
  clip-path: none;
}

.post-card::before {
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--win-title);
}

.post-card::after {
  top: 6px;
  color: #fff;
  background: var(--win-title);
}

.post-card:hover {
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  box-shadow: 6px 6px 0 #666;
}

.post-card__title a,
.archive-list h2 a {
  color: var(--win-title);
}

.post-card__title a::before {
  color: #fff;
  background: var(--win-title);
}

.post-card__excerpt,
.post-card__meta,
.article__meta,
.status-list,
.recent-list,
.tag-cloud {
  color: #333;
}

.read-more,
.pixel-action {
  color: #000;
  border: 2px solid;
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  background: var(--win-face);
  box-shadow: none;
}

.read-more:hover,
.pixel-action:hover {
  color: #fff;
  background: var(--win-title);
  box-shadow: none;
}

.terminal-box__title {
  margin: 3px 3px 0;
  color: #fff;
  border: 0;
  background: var(--win-title);
}

.terminal-box__title::before {
  color: var(--win-yellow);
}

.terminal-box > :not(.terminal-box__title) {
  margin-right: 3px;
  margin-left: 3px;
  background: #fff;
}

.status-list dd,
.status-list .online::before {
  color: var(--win-green);
}

.pagination a,
.pagination span {
  color: #000;
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  background: var(--win-face);
  box-shadow: none;
}

.pagination .current,
.pagination a:hover {
  color: #fff;
  background: var(--win-title);
}

.standalone-page,
.archive-page {
  background: #fff;
}

.article__header h1,
.page-title h1,
.article__content h2,
.article__content h3,
.article__content h4 {
  color: var(--win-title);
  text-shadow: none;
}

.article__content blockquote {
  border-color: var(--win-title);
  background: #eeeeee;
  box-shadow: none;
}

.article__content code {
  color: var(--win-title);
  background: #e4e4e4;
}

.article__content pre {
  color: #c0c0c0;
  border-color: #000 #fff #fff #000;
  background: #000;
  box-shadow: 4px 4px 0 #777;
}

.site-footer {
  margin: 8px 3px 3px;
  color: #000;
  border: 2px solid;
  border-color: var(--win-shadow) var(--win-light) var(--win-light) var(--win-shadow);
  background: var(--win-face);
}

.footer-line {
  color: var(--win-title);
}

.page-progress {
  height: 4px;
  background: #000;
}

.page-progress span {
  background: var(--win-yellow);
}

.pixel-top {
  color: #000;
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  background: var(--win-face);
  box-shadow: 3px 3px 0 #333;
}

.pixel-top:hover,
.pixel-top:focus-visible {
  color: #fff;
  background: var(--win-title);
}

.desktop-decor {
  color: #fff;
  filter: drop-shadow(2px 2px 0 #000);
}

.desktop-icon--computer {
  border-color: #fff;
  background: var(--win-face);
  box-shadow:
    inset 4px 4px 0 #fff,
    inset -4px -4px 0 #555,
    0 8px 0 -2px #fff;
}

.desktop-icon--computer::after {
  background: var(--win-title);
}

.desktop-icon--disk {
  border-color: #fff;
  background: var(--win-title);
}

::-webkit-scrollbar-track {
  background: var(--win-face);
  border-color: var(--win-shadow);
}

::-webkit-scrollbar-thumb {
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  background: var(--win-face);
}

@media (max-width: 820px) {
  body {
    padding: 12px;
  }
}

@media (max-width: 560px) {
  body {
    padding: 0;
  }

  .hero {
    margin-right: 0;
    margin-left: 0;
  }
}

/* Interactive desktop shortcuts, taskbar and system dialogs */
.desktop-shortcuts {
  position: fixed;
  z-index: 4;
  top: 64px;
  display: grid;
  width: 88px;
  gap: 20px;
}

.desktop-shortcuts--left {
  left: max(10px, calc((100vw - 1400px) / 2));
}

.desktop-shortcuts--right {
  right: max(10px, calc((100vw - 1400px) / 2));
  top: 86px;
}

.desktop-shortcut {
  display: grid;
  width: 88px;
  padding: 4px 2px;
  justify-items: center;
  gap: 6px;
  color: #fff;
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 0.56rem;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-shadow: 2px 2px 0 #000;
  cursor: pointer;
}

.desktop-shortcut:hover,
.desktop-shortcut:focus-visible {
  color: #fff;
  border: 1px dotted #fff;
  outline: 0;
  background: rgba(0, 0, 128, 0.42);
}

.desktop-shortcut:active {
  transform: translate(1px, 1px);
}

.desktop-icon--notepad {
  width: 36px;
  height: 42px;
  border: 3px solid #fff;
  background:
    repeating-linear-gradient(0deg, #fff 0 5px, #5c7085 5px 6px);
  box-shadow:
    -5px 4px 0 #000080,
    2px 2px 0 #000;
}

.desktop-icon--notepad::before {
  position: absolute;
  top: -6px;
  left: 4px;
  width: 4px;
  height: 8px;
  content: "";
  background: #ffff00;
  box-shadow: 8px 0 0 #ffff00, 16px 0 0 #ffff00, 24px 0 0 #ffff00;
}

.desktop-icon--network {
  width: 44px;
  height: 36px;
}

.desktop-icon--network::before,
.desktop-icon--network::after {
  position: absolute;
  top: 0;
  width: 20px;
  height: 18px;
  content: "";
  border: 3px solid #fff;
  background: #000080;
  box-shadow: 2px 2px 0 #000;
}

.desktop-icon--network::before {
  left: 0;
}

.desktop-icon--network::after {
  right: 0;
}

.desktop-icon--network {
  border-bottom: 4px solid #fff;
}

.desktop-icon--terminal {
  width: 44px;
  height: 35px;
  border: 3px solid #fff;
  background: #000;
  box-shadow: 3px 3px 0 #000;
}

.desktop-icon--terminal::before {
  position: absolute;
  top: 7px;
  left: 6px;
  color: #ffff00;
  content: "C:\\>";
  font-size: 9px;
  text-shadow: none;
}

.desktop-icon--help {
  display: grid;
  width: 39px;
  height: 39px;
  border: 3px solid #fff;
  background: #000080;
  box-shadow: 3px 3px 0 #000;
  place-items: center;
  color: #ffff00;
  font-size: 24px;
  text-shadow: none;
}

.pc-taskbar {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-height: 42px;
  padding: 4px;
  border-top: 2px solid #fff;
  background: var(--win-face);
}

.pc-start,
.pc-taskbar__app,
.pc-clock,
.pc-start-menu a,
.pc-dialog button {
  color: #000;
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  background: var(--win-face);
}

.pc-start {
  padding: 5px 9px;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.pc-start[aria-expanded="true"],
.pc-start:active {
  border-color: #000 #fff #fff #000;
  background: #b5b5b5;
}

.pc-taskbar__app {
  max-width: 310px;
  padding: 5px 10px;
  color: #fff;
  border-color: #000 #fff #fff #000;
  background: #000080;
  font-size: 0.65rem;
}

.pc-clock {
  min-width: 76px;
  padding: 5px 8px;
  border-color: #808080 #fff #fff #808080;
  font-size: 0.65rem;
  text-align: center;
}

.pc-start-menu {
  position: absolute;
  z-index: 18;
  bottom: 39px;
  left: 3px;
  width: 230px;
  padding: 4px;
  border: 3px solid;
  border-color: #fff #000 #000 #fff;
  background: var(--win-face);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.34);
}

.pc-start-menu strong {
  display: block;
  padding: 7px 8px;
  color: #fff;
  background: #000080;
  font-size: 0.68rem;
}

.pc-start-menu a {
  display: block;
  margin-top: 3px;
  padding: 7px 9px;
  border-color: transparent;
  text-decoration: none;
  font-size: 0.68rem;
}

.pc-start-menu a:hover,
.pc-start-menu a:focus-visible {
  color: #fff;
  outline: 0;
  background: #000080;
}

.pc-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 40;
  width: min(430px, calc(100vw - 24px));
  color: #000;
  border: 3px solid;
  border-color: #fff #000 #000 #fff;
  background: var(--win-face);
  box-shadow:
    8px 8px 0 rgba(0, 0, 0, 0.45),
    0 0 0 9999px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, -50%);
}

.pc-dialog[hidden] {
  display: none;
}

.pc-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3px;
  padding: 4px 5px 4px 8px;
  color: #fff;
  background: #000080;
  font-size: 0.7rem;
}

.pc-dialog > header button {
  width: 25px;
  height: 23px;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.pc-dialog__body {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 15px;
  align-items: start;
  margin: 14px;
  padding: 14px;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  background: #fff;
}

.pc-dialog__body dl,
.pc-dialog__body dt,
.pc-dialog__body dd {
  margin: 0;
}

.pc-dialog__body dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 0.66rem;
}

.pc-dialog__body dd {
  color: #000080;
}

.pc-dialog__help {
  margin: 14px;
  padding: 12px;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  background: #fff;
  font-size: 0.68rem;
}

.pc-dialog kbd {
  padding: 2px 5px;
  color: #fff;
  background: #000080;
}

.pc-dialog > footer {
  padding: 0 14px 14px;
  text-align: center;
}

.pc-dialog > footer button {
  min-width: 86px;
  padding: 5px 12px;
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
}

.pc-toast {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 50;
  max-width: 320px;
  padding: 8px 12px;
  color: #fff;
  border: 2px solid #fff;
  background: #000080;
  box-shadow: 4px 4px 0 #000;
  font-size: 0.65rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.pc-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__function-row a,
.hero__function-row button {
  padding: 6px 7px;
  color: #000;
  border: 0;
  border-right: 1px solid #808080;
  background: transparent;
  font: inherit;
  font-size: 0.62rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.hero__function-row a:hover,
.hero__function-row a:focus-visible,
.hero__function-row button:hover,
.hero__function-row button:focus-visible {
  color: #fff;
  outline: 0;
  background: #000080;
}

.hero__function-row a:hover b,
.hero__function-row a:focus-visible b,
.hero__function-row button:hover b,
.hero__function-row button:focus-visible b {
  color: #000080;
  background: #ffff00;
}

@media (max-width: 1480px) {
  .desktop-shortcuts {
    display: none;
  }
}

@media (max-width: 820px) {
  .pc-taskbar__app {
    max-width: none;
  }

  .hero__function-row a:nth-child(n + 4),
  .hero__function-row button {
    display: none;
  }
}

@media (max-width: 560px) {
  .pc-taskbar__app {
    display: none;
  }

  .pc-taskbar {
    grid-template-columns: auto 1fr;
  }

  .pc-clock {
    justify-self: end;
  }
}

/* Article reading space --------------------------------------------------- */
/* Keep the Win3.x panels, but stop headings and body copy touching them. */
.article.terminal-box > .article__header {
  box-sizing: border-box;
  padding: 18px clamp(24px, 3vw, 36px) 20px;
}

.article.terminal-box > .article__content {
  box-sizing: border-box;
  padding: 20px clamp(24px, 3vw, 36px) 32px;
}

@media (max-width: 560px) {
  .article.terminal-box > .article__header {
    padding: 14px 16px 18px;
  }

  .article.terminal-box > .article__content {
    padding: 16px 16px 24px;
  }
}
