:root {
  color-scheme: only light;
  --teal: #0a5c5c;
  --teal-deep: #063f3f;
  --teal-mud: #0d4a45;
  --silver: #c0c0c0;
  --dark: #000080;
  --shadow: #404040;
  --highlight: #ffffff;
  --text: #111111;
  --hot-pink: #c44a9a;
  --acid: #b8c840;
  --crt-green: #5cff4a;
  --crt-dim: #1a6b14;
  --crt-bg: #020a02;
  --phosphor: rgba(92, 255, 74, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: only light;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #111111;
  font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(184, 200, 64, 0.12), transparent 32rem),
    radial-gradient(ellipse at 88% 78%, rgba(196, 74, 154, 0.1), transparent 28rem),
    linear-gradient(160deg, var(--teal-deep) 0%, var(--teal) 42%, var(--teal-mud) 100%);
  forced-color-adjust: none;
}

a {
  color: #111111;
}

a:link,
a:visited {
  color: #111111;
}

a:focus-visible,
button:focus-visible {
  outline: 1px dotted #000;
  outline-offset: 2px;
}

.title-bar a:focus-visible,
.start-menu a:focus-visible {
  outline-color: #fff;
}

.desktop {
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-height: 100vh;
  padding: 32px 24px 72px;
  overflow: hidden;
}

/* Low-res framebuffer grid — behind windows only */
.desktop::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px, 16px 16px, 16px 16px;
}

/* Scanline + dither veil — desktop atmosphere, not over chrome */
.desktop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.28) 0,
      rgba(0, 0, 0, 0.28) 1px,
      transparent 1px,
      transparent 3px
    ),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1v1H0zm2 2h1v1H2z' fill='%23000' fill-opacity='.35'/%3E%3C/svg%3E");
  background-size: 100% 3px, 4px 4px;
  animation: scan-drift 8s linear infinite;
}

@keyframes scan-drift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 0 12px, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop::after,
  .cat-eyes {
    animation: none !important;
  }
}

.window {
  position: relative;
  z-index: 1;
  color: #111111 !important;
  background: #c0c0c0 !important;
  border: 2px solid;
  border-color: var(--highlight) var(--shadow) var(--shadow) var(--highlight);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  isolation: isolate;
  forced-color-adjust: none;
}

.toolbar,
.window-body,
.window-body h1,
.window-body h2,
.window-body h3,
.window-body h3 a,
.window-body h3 a:link,
.window-body h3 a:visited,
.window-body p,
.window-body li,
.window-body time,
.post-preview,
.post-preview h3,
.post-preview h3 a,
.post-preview h3 a:link,
.post-preview h3 a:visited,
.post-preview p,
.post-list-item,
.post-list-item h2,
.post-list-item h2 a,
.post-list-item h2 a:link,
.post-list-item h2 a:visited,
.post-list-item p {
  color: #111111 !important;
  -webkit-text-fill-color: #111111;
}

.hero-window {
  max-width: 1080px;
  margin: 0 auto 24px;
}

.title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 3px 4px 3px 8px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  font-weight: 700;
  background: linear-gradient(90deg, var(--dark), #0a6aaa);
}

.title-bar .title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

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

.window-controls span {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 18px;
  color: black;
  line-height: 1;
  background: var(--silver);
  border: 2px solid;
  border-color: var(--highlight) var(--shadow) var(--shadow) var(--highlight);
}

.window-controls span:hover {
  background: #dfdfdf;
}

.window-controls .minimize::before {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  left: 4px;
  height: 2px;
  background: black;
}

.window-controls .maximize::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid black;
  border-top-width: 3px;
}

.window-controls .close::before,
.window-controls .close::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 4px;
  width: 12px;
  height: 2px;
  background: black;
}

.window-controls .close::before {
  transform: rotate(45deg);
}

.window-controls .close::after {
  transform: rotate(-45deg);
}

.toolbar {
  display: flex;
  gap: 18px;
  padding: 6px 10px;
  border-bottom: 2px solid #808080;
  font-size: 14px;
}

.toolbar a,
.toolbar a:link,
.toolbar a:visited {
  color: #111111 !important;
  -webkit-text-fill-color: #111111;
  text-decoration: none;
}

.toolbar a:hover {
  text-decoration: underline;
}

.toolbar a:focus-visible {
  outline: 1px dotted #000;
  outline-offset: 1px;
}

.window-body {
  padding: 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 8px;
  font-weight: 700;
  font-family: "Courier New", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--acid);
  border: 2px solid black;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  letter-spacing: 0.02em;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.18);
}

h2 {
  margin-bottom: 8px;
  font-size: 2.2rem;
  line-height: 1;
}

.intro {
  max-width: 680px;
  font-size: 1.08rem;
  line-height: 1.55;
}

.actions,
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  color: black;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  background: var(--silver);
  border: 2px solid;
  border-color: var(--highlight) var(--shadow) var(--shadow) var(--highlight);
  cursor: pointer;
}

.button:hover,
.start-button:hover {
  background: #dfdfdf;
}

.button.primary:hover {
  background: #d45eab;
}

.button:active,
.start-button:active,
.start-button[aria-expanded="true"] {
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
  padding-top: 9px;
  padding-bottom: 7px;
}

.button.primary {
  background: var(--hot-pink);
}

.button:focus-visible,
.start-button:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -5px;
}

.monitor-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 12px;
  background: #bdbdbd;
  border: 2px solid;
  border-color: var(--highlight) var(--shadow) var(--shadow) var(--highlight);
  box-shadow: inset 1px 1px 0 #dfdfdf;
}

.monitor-card::before {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 5px;
  width: 7px;
  height: 7px;
  background: #2f6b2f;
  border: 1px solid;
  border-color: #1a3d1a #7ab87a #7ab87a #1a3d1a;
}

.crt-screen {
  position: relative;
  flex: 1;
  min-height: 220px;
  padding: 16px 14px;
  overflow: hidden;
  color: var(--crt-green) !important;
  -webkit-text-fill-color: var(--crt-green);
  background: #020802;
  border: 2px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
  box-shadow: inset 0 0 0 1px #000;
}

.crt-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.22) 0,
    rgba(0, 0, 0, 0.22) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.45;
}

.crt-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 62%, rgba(0, 0, 0, 0.35) 100%);
}

.crt-screen pre {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--crt-green) !important;
  -webkit-text-fill-color: var(--crt-green);
  white-space: pre-wrap;
  font: 700 15px/1.45 "Courier New", monospace;
  letter-spacing: 0.02em;
}

.crt-dim {
  color: var(--crt-dim) !important;
  -webkit-text-fill-color: var(--crt-dim);
}

.cat-eyes {
  animation: blink 4.5s infinite;
}

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

  94%,
  96% {
    opacity: 0;
  }
}

.desktop-icons {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 92px;
  margin: 0 0 20px max(24px, calc((100vw - 1080px) / 2 + 8px));
}

.icon,
.icon:link,
.icon:visited {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #e8f5e8 !important;
  -webkit-text-fill-color: #e8f5e8;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  text-shadow: 1px 1px 0 black;
}

.icon:hover span:last-child,
.icon:focus-visible span:last-child {
  background: var(--dark);
  outline: 1px dotted white;
}

.icon:focus-visible {
  outline: none;
}

.icon-art {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  image-rendering: pixelated;
}

.icon-mail {
  background:
    linear-gradient(135deg, transparent 45%, #000 46%, #000 53%, transparent 54%) 8px 15px / 28px 16px no-repeat,
    linear-gradient(45deg, transparent 45%, #000 46%, #000 53%, transparent 54%) 8px 15px / 28px 16px no-repeat,
    linear-gradient(#ffffff 0 0) 6px 12px / 32px 24px no-repeat;
}

.icon-mail::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  width: 32px;
  height: 24px;
  border: 2px solid black;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
}

.icon-github {
  background:
    radial-gradient(circle at 15px 20px, #c0c0c0 0 2px, transparent 3px),
    radial-gradient(circle at 29px 20px, #c0c0c0 0 2px, transparent 3px),
    linear-gradient(#c0c0c0 0 0) 17px 28px / 10px 8px no-repeat,
    radial-gradient(circle at 22px 22px, #1f1f1f 0 15px, transparent 16px);
}

.icon-github::before,
.icon-github::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 12px;
  height: 12px;
  background: #1f1f1f;
  border: 2px solid black;
  transform: rotate(45deg);
}

.icon-github::before {
  left: 8px;
}

.icon-github::after {
  right: 8px;
}

.icon-blog {
  background:
    linear-gradient(#ffffff 0 0) 10px 8px / 24px 30px no-repeat,
    linear-gradient(#0a6aaa 0 0) 14px 14px / 16px 3px no-repeat,
    linear-gradient(#0a6aaa 0 0) 14px 21px / 16px 3px no-repeat,
    linear-gradient(#0a6aaa 0 0) 14px 28px / 12px 3px no-repeat;
}

.icon-blog::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  width: 24px;
  height: 30px;
  border: 2px solid black;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
}

.icon-blog::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  border-top: 8px solid #c0c0c0;
  border-left: 8px solid transparent;
}

.icon-home {
  background:
    linear-gradient(135deg, transparent 45%, black 46%, black 55%, transparent 56%) 7px 8px / 30px 22px no-repeat,
    linear-gradient(45deg, transparent 45%, black 46%, black 55%, transparent 56%) 7px 8px / 30px 22px no-repeat,
    linear-gradient(var(--hot-pink) 0 0) 12px 21px / 20px 16px no-repeat,
    linear-gradient(var(--acid) 0 0) 18px 27px / 8px 10px no-repeat;
}

.icon-home::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 20px;
  width: 22px;
  height: 18px;
  border: 2px solid black;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.services span {
  padding: 8px 10px;
  background: white;
  border: 2px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
}

.cta-window {
  max-width: 1080px;
  margin: 0 auto;
}

.preview-window {
  max-width: 1080px;
  margin: 0 auto 24px;
}

.cta {
  justify-content: space-between;
}

.cta p {
  margin-bottom: 0;
  line-height: 1.5;
}

.blog-window {
  max-width: 920px;
  margin: 0 auto 24px;
}

.page-title {
  max-width: 820px;
  font-size: 3.6rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.post-preview {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 14px;
  color: var(--text);
  background: #f2f2e8;
  border: 2px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
}

.post-preview h3 {
  margin: 4px 0 8px;
  font-size: 1.3rem;
  line-height: 1.1;
}

.post-preview h3 a {
  text-decoration: none;
}

.post-preview h3 a:hover {
  text-decoration: underline;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 20px 0 0;
  padding: 10px;
  background: #dfdfdf;
  border: 2px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
}

.tag-filter span {
  font-weight: 700;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
}

.tag,
.tag:link,
.tag:visited {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  color: #111111 !important;
  -webkit-text-fill-color: #111111;
  font: 700 0.82rem/1 "Courier New", monospace;
  text-decoration: none;
  background: var(--acid);
  border: 2px solid;
  border-color: var(--highlight) var(--shadow) var(--shadow) var(--highlight);
}

.tag::before {
  content: "#";
}

.tag:hover {
  background: #cdd85a;
}

.tag:focus-visible {
  outline: 1px dotted #000;
  outline-offset: 1px;
}

.tag.is-active,
.tag.is-active:link,
.tag.is-active:visited {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  background: var(--dark);
}

.post-preview p {
  margin-bottom: 0;
  line-height: 1.45;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.post-list-item {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 16px;
  color: var(--text);
  background: #f2f2e8;
  border: 2px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
}

.post-list-item h2 {
  margin: 6px 0 8px;
  font-size: 2rem;
}

.post-list-item h2 a {
  text-decoration: none;
}

.post-list-item h2 a:hover {
  text-decoration: underline;
}

.post-list-item p {
  max-width: 680px;
  flex: 1;
  line-height: 1.55;
}

.post-meta {
  display: block;
  margin: 18px 0 8px;
  color: #2b2b2b;
  font: 700 0.9rem/1.4 "Courier New", monospace;
  letter-spacing: 0.03em;
}

.post-list-item .post-meta {
  margin-top: 0;
}

.post-body {
  max-width: 760px;
}

.post-body .tag-list {
  margin-bottom: 20px;
}

.post-body p {
  font-size: 1.08rem;
  line-height: 1.7;
}

.taskbar {
  position: fixed;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 4px;
  background: var(--silver);
  border-top: 2px solid var(--highlight);
  box-shadow: inset 0 1px 0 #dfdfdf;
}

.start-menu {
  position: absolute;
  bottom: 42px;
  left: 4px;
  width: 190px;
  padding: 4px;
  background: var(--silver);
  border: 2px solid;
  border-color: var(--highlight) var(--shadow) var(--shadow) var(--highlight);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.start-menu a,
.start-menu span {
  display: block;
  padding: 9px 10px;
  color: black;
  text-decoration: none;
}

.start-menu a:hover,
.start-menu span:hover,
.start-menu a:focus-visible {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  background: var(--dark);
  outline: none;
}

.start-button {
  min-height: 32px;
  padding-inline: 14px;
  font-weight: 700;
}

.task-item,
.clock {
  min-height: 30px;
  padding: 6px 12px;
  border: 2px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
}

.task-item {
  flex: 1;
  max-width: 260px;
}

.clock {
  margin-left: auto;
  min-width: 5.5rem;
  text-align: center;
}

@media (max-width: 780px) {
  .desktop {
    padding: 14px 12px 64px;
  }

  .desktop::after {
    opacity: 0.12;
  }

  .hero-grid,
  .content-row,
  .blog-list,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .desktop-icons {
    flex-direction: row;
    width: auto;
    margin: 0 0 18px;
    justify-content: center;
  }

  .toolbar {
    overflow-x: auto;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2,
  .post-list-item h2 {
    font-size: 1.7rem;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .window-body {
    padding: 14px;
  }

  .cta {
    align-items: flex-start;
  }
}
