* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-bg: #edf4ee;
  --window-bg: #f8fbf8;
  --border: #c7d7c8;
  --accent: #9db59e;
  --text: #3b403c;
  --muted: #6d746d;
  --hover: #dfe9e0;
  --pearl: #ffffff;
}

body {
  min-height: 100vh;
  background: var(--main-bg);
  color: var(--text);
  font-family: "MS UI Gothic", "Tahoma", sans-serif;
  overflow-x: hidden;
}

.desktop {
  min-height: 100vh;
  position: relative;
  padding: 35px;
 
  background-size: 100% auto;
background-repeat: no-repeat;
background-color: #edf4ee;
  background-position: center;
  background-attachment: fixed;
}

/* HOMEPAGE */

.homepage-bg {
  background-image: url("../images/homepage-bg.jpg");
}

/* ABOUT PAGE */

.about-bg {
  background-image: url("../images/about-bg.jpg");
}

/* BLOG PAGE */

.blog-bg {
  background-image: url("../images/blog-bg.jpg");
}

/* PROCESS LOG */

.process-bg {
  background-image: url("../images/process-bg.jpg");
}

/* SHONEN & SHADOWS */

.shonen-bg {
  background-image: url("../images/shonen-bg.jpg");
}

/* LONG VIEW */

.longview-bg {
  background-image: url("../images/longview-bg.jpg");
}

/* LESSONS LOGGED */

.lessons-bg {
  background-image: url("../images/lessons-bg.jpg");
}

/* DESTINATIONS */

.destinations-bg {
  background-image: url("../images/destinations-bg.jpg");
}

/* OBSERVED & NOTED */

.observed-bg {
  background-image: url("../images/observed-bg.jpg");
}

/* READING ROOM */

.reading-bg {
  background-image: url("../images/reading-bg.jpg");
}

.desktop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(248, 251, 248, 0.35);
  backdrop-filter: blur(1px);
  z-index: 0;
  pointer-events: none;
}

.desktop-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.window {
  background: rgba(248, 251, 248, 0.92);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px var(--pearl) inset, 0 8px 22px rgba(80, 100, 80, 0.12);
  border-radius: 8px;
  overflow: hidden;
  transition:
  transform 0.25s ease,
  box-shadow 0.25s ease;
}

.window:hover {
  transform: translateY(-4px);

  box-shadow:
    0 0 0 1px var(--pearl) inset,
    0 12px 28px rgba(80, 100, 80, 0.18);
}

.window-header {
  min-height: 28px;
  padding: 5px 9px;
  background: linear-gradient(to bottom, #f7fbf7, #dfe9e0);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 14px;
}

.window-controls {
  display: flex;
  gap: 7px;
  color: var(--muted);
}

.window-content {
  padding: 18px;
  font-size: 13px;
  line-height: 1.7;
}

.hero-window {
  margin-bottom: 14px;
}

.hero-content {
  text-align: center;
}

h1 {
  font-family: Baskerville, "Times New Roman", serif;
  font-size: 42px;
  font-weight: normal;
  margin-bottom: 4px;
}

h2 {
  font-family: Baskerville, "Times New Roman", serif;
  font-size: 24px;
  font-weight: normal;
  margin-bottom: 8px;
}

.subtitle {
  font-family: "Pixelify Sans", sans-serif;
  color: var(--muted);
  margin-bottom: 18px;
}

.welcome-text {
  max-width: 660px;
  margin: 0 auto;
}

.welcome-text p {
  margin-bottom: 10px;
}

.taskbar {
  margin-bottom: 18px;
}

.taskbar-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.taskbar-content a,
.pixel-button,
.floating-btn {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: var(--window-bg);
  color: var(--text);
  text-decoration: none;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.taskbar-content a:hover,
.pixel-button:hover,
.floating-btn:hover {
  background: var(--hover);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.window-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.featured-window {
  grid-column: 1 / -1;
}

.featured-window .window-content {
  min-height: 190px;
}

.scroll-panel {
  max-height: 210px;
  overflow-y: auto;
}

.status-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 13px;
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 60px;
}

.utility-window {
  font-size: 12px;
}

.small-text {
  font-size: 12px;
  color: var(--muted);
}

.floating-buttons {
  position: fixed;
  right: 24px;
  top: 45%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 160px;
}

.floating-btn {
  width: 100%;
  font-size: 12px;
  background: rgba(248, 251, 248, 0.92);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(59, 64, 60, 0.25);
  display: none;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 30px;
}

.modal.active {
  display: flex;
}

.modal-box {
  width: min(360px, 90vw);
}

.close-modal {
  border: none;
  background: transparent;
  font-family: "Pixelify Sans", sans-serif;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #eef5ef;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border: 2px solid #eef5ef;
}

@media (max-width: 800px) {
  .desktop {
    padding: 18px;
  }

  .content-grid,
  .utility-grid {
    grid-template-columns: 1fr;
  }

  .floating-buttons {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  h1 {
    font-size: 34px;
  }
}

.page-title-window,
.welcome-window {
  margin-bottom: 14px;
}

.blog-shell {
  max-width: 1080px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1.5fr 290px;
  gap: 16px;
  align-items: start;
}

.main-blog-window {
  min-height: 720px;
}

.blog-feed {
  max-height: 720px;
  overflow-y: auto;
}

.blog-post {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  padding: 18px;
  margin-bottom: 16px;
}

.post-meta {
  font-family: "Pixelify Sans", sans-serif;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.observer-preview-window {
  position: sticky;
  top: 25px;
}

.observer-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 12px;
}

.observer-table th,
.observer-table td {
  border: 1px solid var(--border);
  padding: 7px;
  text-align: left;
}

.observer-table th {
  background: var(--hover);
  font-family: "Pixelify Sans", sans-serif;
}

.return-home {
  margin-top: 16px;
}

.observer-modal-box {
  width: min(920px, 94vw);
  max-height: 86vh;
  overflow-y: auto;
}

.directory-header {
  text-align: center;
  margin-bottom: 14px;
}

.directory-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.fake-cbox {
  background: #f4faf5;
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow: 0 4px 12px rgba(80, 100, 80, 0.08);
}

.observer-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.observer-form input {
  padding: 7px;
  border: 1px solid var(--border);
  background: white;
  font-family: "MS UI Gothic", sans-serif;
}

.checkbox-line {
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .blog-layout,
  .directory-grid {
    grid-template-columns: 1fr;
  }

  .observer-preview-window {
    position: static;
  }
}

.main-blog-computer {
  position: relative;
  width: 760px;
  max-width: 100%;
  min-height: 700px;
  margin: 0 auto;
}

.monitor-frame {
  width: 100%;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.monitor-screen {
  position: absolute;
  top: 9.8%;
  left: 7.1%;
  width: 85.7%;
  height: 65.8%;
  z-index: 3;

  background: rgba(248, 251, 248, 0.97);
  border: 1px solid #d7e5d8;

  overflow-y: auto;
  overflow-x: hidden;

  box-shadow:
    inset 0 0 18px rgba(255,255,255,0.55),
    inset 0 0 35px rgba(170, 255, 240, 0.12);
    
    animation: crtGlow 4s ease-in-out infinite;
    background-image:
  repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 1px,
    rgba(0,0,0,0.01) 2px
  );
}

.monitor-topbar {
  height: 26px;
  padding: 5px 9px;
  background: linear-gradient(to bottom, #f7fbf7, #dfe9e0);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 12px;
}

.monitor-topbar span:last-child {
  color: #5fae88;
  animation: onlineBlink 1.8s infinite;
}

.monitor-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.monitor-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
}

.feed-count,
.feed-update {
  opacity: 0.75;
}

@keyframes onlineBlink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }

  100% {
    opacity: 1;
  }
}

.computer-feed {
  height: calc(100% - 90px);
  overflow-y: auto;
  padding: 10px;
}

.computer-feed .blog-post {
  margin-bottom: 12px;
  padding: 12px;
}

.computer-feed h2 {
  font-size: 21px;
}

.computer-feed p {
  font-size: 12px;
  line-height: 1.45;
}

.blog-decor-windows {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.decor-window {
  position: fixed;
  width: 150px;
  z-index: 1;
  pointer-events: none;
}

.decor-content {
  padding: 8px;
}

.decor-content img {
  width: 100%;
  display: block;
}

.decor-left-one {
  left: 28px;
  top: 260px;
}

.decor-left-two {
  left: 42px;
  bottom: 80px;
}

.decor-right-one {
  right: 34px;
  top: 250px;
}

.decor-right-two {
  right: 46px;
  bottom: 90px;
}

@media (max-width: 900px) {
  .main-blog-computer {
    min-height: auto;
  }

  .monitor-screen {
    position: static;
    width: 100%;
    height: 520px;
    margin-top: 10px;
  }

  .monitor-frame {
    display: none;
  }

  .decor-window {
    position: static;
    width: 130px;
    margin: 10px auto;
    animation: floatWindow 6s ease-in-out infinite;
  }

.decor-left-one {
  animation-delay: 0s;
}

.decor-left-two {
  animation-delay: 2s;
}

.decor-right-one {
  animation-delay: 1s;
}

.decor-right-two {
  animation-delay: 3s;
}

  .blog-decor-windows {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: auto;
  }
}

.blog-shell {
  position: relative;
  z-index: 3;
}

@keyframes crtGlow {
  0% {
    box-shadow:
      inset 0 0 18px rgba(255,255,255,0.55),
      inset 0 0 35px rgba(170,255,240,0.10);
  }

  50% {
    box-shadow:
      inset 0 0 22px rgba(255,255,255,0.62),
      inset 0 0 45px rgba(170,255,240,0.18);
  }

  100% {
    box-shadow:
      inset 0 0 18px rgba(255,255,255,0.55),
      inset 0 0 35px rgba(170,255,240,0.10);
  }
}

@keyframes floatWindow {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0px);
  }
}

button,
a,
.pixel-button {
  cursor: pointer;
}

.post-popup {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(59, 64, 60, 0.22);
  padding: 24px;
}

.post-popup.active {
  display: flex;
}

.post-file-window {
  width: min(620px, 92vw);
  max-height: 80vh;
}

.post-file-content {
  max-height: 68vh;
  overflow-y: auto;
  background:
    linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.75)),
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 26px,
      rgba(157, 181, 158, 0.18) 27px
    );
}

.post-signoff {
  margin-top: 18px;
  font-family: Baskerville, "Times New Roman", serif;
  font-style: italic;
}

.close-post {
  border: none;
  background: transparent;
  font-family: "Pixelify Sans", sans-serif;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
}

.observer-request-panel {
  border: 1px solid var(--border);
  padding: 12px;
  background: rgba(255, 255, 255, 0.45);
}

.observer-confirmation {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--accent);
  background: #f4faf5;
  font-family: "Pixelify Sans", sans-serif;
}

.observer-form.submitted {
  display: none;
}

.system-ticker {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-bottom: 1px solid var(--border);
  background: rgba(237, 244, 238, 0.88);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.system-ticker span {
  white-space: nowrap;
  color: var(--accent);
}

.system-ticker marquee {
  flex: 1;
}

.system-status {
  font-family: "Pixelify Sans", sans-serif;
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease,
    opacity 0.3s ease;
}

/* ONLINE */

.online-status {
  color: #5fae88;
  text-shadow: 0 0 6px rgba(95,174,136,0.45);
  animation: onlineBlink 1.8s infinite;
}

/* AFTER HOURS */

.afterhours-status {
  color: #8ea4b5;
  text-shadow: 0 0 8px rgba(142,164,181,0.35);
  animation: none;
}

/* ARCHIVE MODE */

.archive-status {
  color: #8f948f;
  opacity: 0.78;
  text-shadow: none;
  animation: none;
}

.status-controls {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.45);
}

.system-panel {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.35);
}

.system-panel-toggle {
  width: 100%;
  padding: 6px 8px;
  border: none;
  background: rgba(237, 244, 238, 0.75);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.system-panel-toggle:hover {
  background: var(--hover);
}

.status-controls {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.45);
}

.status-button {
  font-size: 11px;
  padding: 5px 7px;
}

.status-controls[hidden] {
  display: none;
}

.status-controls {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.45);
}

.desktop-notifications {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;

  display: flex;
  flex-direction: column;
  gap: 10px;

  pointer-events: none;
}

.desktop-notification {
  width: 260px;

  background: rgba(248, 251, 248, 0.96);

  border: 1px solid var(--border);

  box-shadow:
    0 10px 25px rgba(80,100,80,0.16),
    0 0 0 1px rgba(255,255,255,0.5) inset;

  padding: 12px;

  font-size: 12px;
  line-height: 1.5;

  transform: translateY(18px);
  opacity: 0;

  animation:
    notificationIn 0.45s ease forwards,
    notificationOut 0.45s ease forwards 5.2s;
}

.desktop-notification-title {
  font-family: "Pixelify Sans", sans-serif;
  margin-bottom: 4px;
  color: var(--text);
}

.desktop-notification-body {
  color: var(--muted);
}

@keyframes notificationIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes notificationOut {
  to {
    transform: translateY(10px);
    opacity: 0;
  }
}

.blog-file {
  position: relative;
}

.file-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 11px;
}

.file-label {
  color: var(--muted);
}

.file-status {
  padding: 2px 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}

.file-status.published {
  color: #5fae88;
}

.file-status.review {
  color: #8ea4b5;
}

.file-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 8px 0 10px;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 11px;
  color: var(--muted);
  border-left: 2px solid var(--border);
  padding-left: 8px;
}

.blog-tabs {
  display: flex;
  gap: 5px;
  padding: 7px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.4);
}

.blog-tab {
  border: 1px solid var(--border);
  background: rgba(248, 251, 248, 0.85);
  padding: 4px 7px;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 11px;
  cursor: pointer;
}

.blog-tab.active,
.blog-tab:hover {
  background: var(--hover);
}

.empty-category-message {
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.45);
  padding: 18px;
  text-align: center;
  font-family: "Pixelify Sans", sans-serif;
  color: var(--muted);
}

.blog-search {
  padding: 7px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.35);
}

.blog-search input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  background: rgba(248, 251, 248, 0.9);
  font-family: "MS UI Gothic", sans-serif;
  font-size: 12px;
  color: var(--text);
}

.blog-search input::placeholder {
  color: var(--muted);
}

.new-file-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 7px;
  border: 1px solid var(--accent);
  background: rgba(244, 250, 245, 0.85);
  color: var(--accent);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.5px;
  animation: softPulse 2.4s ease-in-out infinite;
}

@keyframes softPulse {
  0%, 100% {
    opacity: 0.75;
  }

  50% {
    opacity: 1;
  }
}

.file-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 10px;
  color: var(--muted);
}

.desktop-clock {
  opacity: 0.82;
  letter-spacing: 0.5px;
}

.post-opened {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}