:root {
  --desktop: #0f7f7b;
  --desktop-dark: #075c63;
  --xp-blue: #245edb;
  --xp-blue-dark: #1246b3;
  --xp-green: #39a845;
  --xp-orange: #f4a23a;
  --hot-pink: #ff4fd8;
  --cyan: #00e5ff;
  --window: #ece9d8;
  --window-light: #fffef6;
  --window-dark: #b8b39d;
  --ink: #111;
  --muted: #454545;
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 229, 255, 0.28), transparent 18rem),
    radial-gradient(circle at 78% 12%, rgba(255, 79, 216, 0.24), transparent 20rem),
    linear-gradient(135deg, var(--desktop), var(--desktop-dark));
  color: var(--ink);
  font-family: Tahoma, Verdana, "Trebuchet MS", sans-serif;
  line-height: 1.58;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.45;
}

a {
  color: #001a8f;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.skyline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.skyline span {
  position: absolute;
  width: 260px;
  height: 96px;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.36;
  animation: screenSaver 12s ease-in-out infinite;
}

.skyline span:nth-child(1) {
  left: 4%;
  top: 18%;
  background: var(--cyan);
}

.skyline span:nth-child(2) {
  right: 5%;
  top: 12%;
  background: var(--hot-pink);
  animation-delay: -4s;
}

.skyline span:nth-child(3) {
  left: 38%;
  bottom: 12%;
  background: #b6ff3b;
  animation-delay: -8s;
}

.site-header,
.site-footer,
.site-main {
  width: min(1060px, calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 10px;
  border: 2px solid;
  border-color: #fff #777 #777 #fff;
  background: var(--window);
  box-shadow: 6px 8px 0 var(--shadow);
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid;
  border-color: #fff #6b6b6b #6b6b6b #fff;
  background: linear-gradient(135deg, var(--xp-blue), var(--cyan));
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 1px 1px 0 #00206b;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.site-header nav a,
.source-button,
.pagination a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 2px solid;
  border-color: #fff #555 #555 #fff;
  background: linear-gradient(#fffef6, #d6d1bd);
  color: var(--ink);
  padding: 6px 12px;
  box-shadow: 1px 1px 0 #fff inset;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.site-header nav a:hover,
.source-button:hover,
.pagination a:hover {
  background: linear-gradient(#f7fbff, #a7cffd);
}

.site-header nav a:active,
.source-button:active,
.pagination a:active {
  border-color: #555 #fff #fff #555;
  transform: translate(1px, 1px);
}

.site-main {
  padding: 42px 0;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -22px -22px 24px;
  padding: 7px 8px 7px 12px;
  background: linear-gradient(90deg, var(--xp-blue-dark), var(--xp-blue) 54%, #79b7ff);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 1px 1px 0 #00206b;
}

.window-controls {
  display: flex;
  gap: 4px;
}

.window-controls i {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid #fff;
  background: linear-gradient(#fff, #d4d0c8);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.42);
}

.window-controls i:nth-child(3) {
  background: linear-gradient(#ff8a72, #d74228);
}

.hero,
.post-card,
.empty-state,
.about-page,
.post {
  border: 2px solid;
  border-color: #fff #595959 #595959 #fff;
  background: var(--window);
  box-shadow: 8px 10px 0 var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.66fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: center;
  min-height: 500px;
  margin-bottom: 46px;
  padding: 22px;
  overflow: hidden;
}

.hero-copy {
  padding: clamp(12px, 4vw, 34px);
}

.eyebrow,
.post-date {
  margin: 0 0 10px;
  color: #0b428f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 16px;
  color: #05163f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6.8vw, 78px);
  line-height: 0.96;
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 #9ed2ff;
}

.hero p:not(.eyebrow) {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-orbit {
  width: 100%;
  max-height: 390px;
  filter: drop-shadow(9px 11px 0 rgba(0, 0, 0, 0.22));
  animation: xpFloat 5s ease-in-out infinite;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 2px solid;
  border-color: #fff #595959 #595959 #fff;
  background: linear-gradient(#fffef6, #d8d3c0);
  box-shadow: 5px 6px 0 var(--shadow);
}

.section-head h2 {
  margin: 0;
  color: #05163f;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1;
}

.post-card {
  position: relative;
  margin: 18px 0;
  padding: 22px;
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(var(--hot-pink), var(--cyan), #b6ff3b);
}

.post-card h2 {
  margin: 0 0 8px;
  padding-left: 8px;
  color: #05163f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.08;
}

.post-card p {
  margin: 0;
  padding-left: 8px;
  color: var(--muted);
}

.empty-state,
.about-page,
.post {
  padding: 22px;
}

.empty-state h2,
.about-page h1 {
  margin-top: 0;
  color: #05163f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
  text-shadow: 2px 2px 0 #fff;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  color: #fff;
  font-weight: 800;
}

.post-header {
  position: relative;
  margin-bottom: 38px;
  padding: 14px 150px 18px 0;
  border-bottom: 2px groove #fff;
}

.source-button {
  position: absolute;
  top: 12px;
  right: 0;
  border-color: #fff #543300 #543300 #fff;
  background: linear-gradient(#fff1a8, var(--xp-orange));
}

.post-header h1 {
  margin: 0 0 14px;
  color: #05163f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.98;
  text-shadow: 2px 2px 0 #fff;
}

.post-description {
  max-width: 780px;
  color: var(--muted);
  font-size: 19px;
}

.post-content {
  max-width: 790px;
}

.post-content h2 {
  margin-top: 40px;
  color: #0b428f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1.18;
}

.post-content code {
  border: 1px solid #777;
  background: #fff;
  padding: 2px 4px;
}

.post-content pre {
  overflow-x: auto;
  border: 2px inset #fff;
  background: #fff;
  padding: 16px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border: 2px solid;
  border-color: #fff #595959 #595959 #fff;
  box-shadow: 5px 6px 0 var(--shadow);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 12px;
  border: 2px solid;
  border-color: #fff #595959 #595959 #fff;
  background: linear-gradient(#fffef6, #d8d3c0);
  color: var(--muted);
  font-size: 13px;
  box-shadow: 5px 6px 0 var(--shadow);
}

.site-footer p {
  margin: 0;
}

@keyframes screenSaver {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(5vw, 4vh, 0);
  }
}

@keyframes xpFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .hero,
  .section-head {
    display: block;
  }

  .site-header nav {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .hero {
    min-height: 0;
  }

  .hero-orbit {
    margin-top: 28px;
  }

  .post-header {
    padding-right: 0;
  }

  .source-button {
    position: static;
    margin-bottom: 18px;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}

.desktop-shell {
  min-height: calc(100vh - 46px);
  padding-bottom: 24px;
}

.desktop-icons {
  position: fixed;
  top: 104px;
  left: max(14px, calc((100vw - 1220px) / 2));
  z-index: -1;
  display: grid;
  gap: 18px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
}

.desktop-icons span {
  display: grid;
  width: 72px;
  gap: 6px;
  justify-items: center;
}

.desktop-icons i,
.file-icon {
  display: block;
  width: 38px;
  height: 32px;
  border: 2px solid #0b428f;
  background:
    linear-gradient(#fff6a6 0 34%, #f0c94b 34%),
    #f0c94b;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.desktop-workspace {
  width: min(1180px, calc(100% - 28px));
}

.desktop-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.help-panel,
.explorer-window,
.article-window {
  border: 2px solid;
  border-color: #fff #595959 #595959 #fff;
  background: var(--window);
  box-shadow: 8px 10px 0 var(--shadow);
}

.help-panel {
  padding: 22px;
}

.help-panel img {
  display: block;
  width: min(100%, 280px);
  margin: 0 auto 18px;
  filter: drop-shadow(7px 8px 0 rgba(0, 0, 0, 0.22));
}

.help-panel h1 {
  margin: 0 0 14px;
  color: #05163f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.98;
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 #9ed2ff;
}

.explorer-window {
  min-height: 520px;
  padding: 22px;
}

.explorer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: -8px 0 14px;
  padding: 8px;
  border: 2px inset #fff;
  background: #f7f4e6;
}

.explorer-toolbar span,
.explorer-toolbar strong {
  border: 1px solid #aaa;
  background: #fff;
  padding: 5px 9px;
  font-size: 13px;
}

.explorer-toolbar strong {
  margin-left: auto;
  color: #0b428f;
}

.file-list {
  display: grid;
  border: 2px inset #fff;
  background: #fff;
}

.file-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 94px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #d6d1bd;
}

.file-row:nth-child(2n) {
  background: #f5f7ff;
}

.file-copy h2 {
  margin: 0 0 4px;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 18px;
  line-height: 1.2;
}

.file-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.file-row time {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.explorer-empty {
  margin: 16px;
}

.article-window {
  padding: 22px;
}

.article-app {
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
  gap: 18px;
}

.article-sidebar {
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 2px inset #fff;
  background: #f7f4e6;
}

.article-sidebar .source-button {
  position: static;
}

.article-document {
  min-width: 0;
  padding: clamp(18px, 4vw, 38px);
  border: 2px inset #fff;
  background: #fffef6;
}

.article-document .post-header {
  padding-right: 0;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
  height: 42px;
  padding: 5px 8px;
  border-top: 2px solid #7db7ff;
  background: linear-gradient(#245edb, #1246b3);
  color: #fff;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.start-button,
.task-button,
.tray-clock {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 2px solid;
  border-color: #94e18f #0b5a16 #0b5a16 #94e18f;
  background: linear-gradient(#53c75f, #1f7e2b);
  padding: 4px 12px;
  text-shadow: 1px 1px 0 #04370a;
}

.task-button {
  flex: 1;
  max-width: 260px;
  border-color: #7db7ff #092f8f #092f8f #7db7ff;
  background: linear-gradient(#5b95ff, #1c55c6);
}

.tray-clock {
  margin-left: auto;
  border-color: #7db7ff #092f8f #092f8f #7db7ff;
  background: #0d4fc4;
}

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

  .desktop-grid,
  .article-app {
    grid-template-columns: 1fr;
  }

  .explorer-toolbar strong {
    margin-left: 0;
  }

  .file-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .file-row time {
    grid-column: 2;
    text-align: left;
  }
}

/* Windows 95/Y2K redesign pass */
:root {
  --desktop: #008080;
  --desktop-dark: #008080;
  --title-blue: #000080;
  --title-blue-2: #1084d0;
  --window: #c0c0c0;
  --window-light: #ffffff;
  --window-dark: #808080;
  --ink: #000000;
  --muted: #222222;
  --shadow: rgba(0, 0, 0, 0.55);
}

body {
  background: #008080;
  font-family: Tahoma, "MS Sans Serif", Verdana, sans-serif;
  line-height: 1.45;
}

body::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.26;
}

.skyline span {
  display: none;
}

.site-header,
.site-footer,
.help-panel,
.explorer-window,
.article-window,
.empty-state,
.about-page,
.post,
.section-head,
.post-card {
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  border-radius: 0;
  background: #c0c0c0;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.42);
}

.site-header {
  display: block;
  padding: 2px;
}

.site-header > .window-bar {
  margin: 0;
}

.window-bar {
  min-height: 25px;
  margin: -22px -22px 14px;
  padding: 3px 4px 3px 8px;
  background: #000080;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  text-shadow: none;
}

.window-controls i {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  background: #c0c0c0;
  box-shadow: none;
}

.window-controls i:nth-child(1)::before,
.window-controls i:nth-child(2)::before,
.window-controls i:nth-child(3)::before {
  position: absolute;
  inset: 1px;
  display: grid;
  place-items: center;
  color: #000;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.window-controls i:nth-child(1)::before {
  content: "_";
}

.window-controls i:nth-child(2)::before {
  content: "□";
}

.window-controls i:nth-child(3)::before {
  content: "×";
}

.window-controls i:nth-child(3) {
  background: #c0c0c0;
}

.menu-strip,
.browser-row,
.address-bar,
.explorer-toolbar,
.status-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid #808080;
  background: #c0c0c0;
}

.menu-strip span {
  padding: 2px 8px;
  font-size: 12px;
}

.menu-strip span::first-letter {
  text-decoration: underline;
}

.browser-row {
  justify-content: space-between;
  gap: 14px;
}

.logo-mark {
  width: 31px;
  height: 31px;
  border-radius: 0;
  border-color: #ffffff #404040 #404040 #ffffff;
  background: #000080;
  color: #ffff00;
  font-size: 22px;
  text-shadow: 1px 1px #000;
}

.site-header nav a,
.source-button,
.pagination a,
.start-button,
.task-button,
.tray-clock {
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  border-radius: 0;
  background: #c0c0c0;
  color: #000000;
  min-height: 27px;
  padding: 4px 10px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}

.site-header nav a:hover,
.source-button:hover,
.pagination a:hover {
  background: #000080;
  color: #ffffff;
}

.address-bar span,
.file-address span {
  color: #333;
  font-size: 12px;
}

.address-bar code {
  flex: 1;
  min-width: 0;
  border: 2px inset #ffffff;
  background: #ffffff;
  padding: 3px 6px;
  color: #000;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.desktop-shell {
  min-height: calc(100vh - 40px);
}

.desktop-icons {
  top: 90px;
}

.desktop-icons i,
.file-icon {
  border: 1px solid #000;
  background: #ffff99;
  clip-path: polygon(0 18%, 42% 18%, 50% 0, 100% 0, 100% 100%, 0 100%);
}

.desktop-grid {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
}

.help-panel,
.explorer-window,
.article-window {
  padding: 22px;
}

.help-panel h1 {
  color: #000080;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  text-shadow: 2px 2px #ffffff;
}

.crt-graphic,
.help-panel img {
  width: min(100%, 250px);
  border: 2px inset #ffffff;
  background: #000;
  padding: 8px;
  filter: none;
  animation: tinyBounce 1.8s steps(2, end) infinite;
}

.pixel-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  background: #ffff00;
  padding: 7px;
  font-size: 12px;
}

.blink-light {
  width: 14px;
  height: 14px;
  background: #ff0000;
  box-shadow: 0 0 0 2px #000 inset;
  animation: blinkLamp 900ms steps(1, end) infinite;
}

.web-ring {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  border: 2px inset #ffffff;
  background: #ffffff;
  padding: 10px;
  font-size: 12px;
}

.web-ring strong {
  color: #800080;
  text-decoration: underline;
}

.explorer-toolbar {
  margin: -8px 0 0;
}

.explorer-toolbar span,
.explorer-toolbar strong {
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  background: #c0c0c0;
  padding: 4px 9px;
  color: #000;
}

.file-address {
  margin-bottom: 8px;
}

.file-list {
  border: 2px inset #ffffff;
  background: #ffffff;
}

.file-row {
  grid-template-columns: 44px minmax(0, 1fr) 102px;
  padding: 9px 10px;
  border-bottom: 1px dotted #808080;
  background: #ffffff;
}

.file-row:nth-child(2n) {
  background: #eeeeee;
}

.file-row:hover {
  background: #000080;
  color: #ffffff;
}

.file-row:hover a,
.file-row:hover p,
.file-row:hover time {
  color: #ffffff;
}

.file-copy h2 {
  font-size: 16px;
}

.status-strip {
  justify-content: space-between;
  margin-top: 8px;
  border: 2px inset #ffffff;
  font-size: 12px;
}

.taskbar {
  height: 38px;
  border-top: 2px solid #ffffff;
  background: #c0c0c0;
  color: #000;
}

.start-button {
  background: #c0c0c0;
  color: #000;
  text-shadow: none;
}

.start-button::before {
  content: "▣";
  margin-right: 6px;
  color: #008000;
}

.task-button {
  background: #e0e0e0;
  color: #000;
  text-shadow: none;
}

.tray-clock {
  background: #c0c0c0;
  color: #000;
  text-shadow: none;
  border-color: #404040 #ffffff #ffffff #404040;
}

.article-sidebar,
.article-document {
  border: 2px inset #ffffff;
  background: #ffffff;
}

.post-header h1,
.about-page h1,
.empty-state h2 {
  color: #000080;
  text-shadow: 2px 2px #ffffff;
}

@keyframes blinkLamp {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes tinyBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@media (max-width: 900px) {
  .browser-row,
  .desktop-grid,
  .article-app {
    display: block;
  }

  .site-header nav {
    justify-content: flex-start;
    margin-top: 8px;
  }

  .explorer-window {
    margin-top: 18px;
  }
}
