/* ===========================
   PRIVATE CLUB — Win95 Theme
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
  --win-bg: #008080;          /* teal desktop */
  --win-gray: #c0c0c0;        /* classic gray */
  --win-dark: #808080;        /* shadow gray */
  --win-darker: #404040;
  --win-black: #000000;
  --win-white: #ffffff;
  --win-blue: #000080;        /* title bar */
  --win-title-text: #ffffff;
  --win-highlight: #000080;
  --win-highlight-text: #ffffff;
  --win-btn-face: #c0c0c0;
  --win-inset: #808080;
  --accent: #ff00ff;          /* neon magenta — the signature */
}

/* ===== FOCUS VISIBILITY ===== */
a:focus-visible,
.btn:focus-visible,
.start-btn:focus-visible,
.taskbar-item:focus-visible,
.tag:focus-visible,
.tag-more-label:focus-visible,
.sidebar-links a:focus-visible {
  outline: 2px dashed var(--win-blue);
  outline-offset: 2px;
}

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

html, body {
  min-height: 100vh;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 16px;
  background-color: var(--win-bg);
  color: var(--win-black);
}

/* ---- DESKTOP WALLPAPER PATTERN ---- */
body {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
}

/* ===== TASKBAR ===== */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  z-index: 9999;
  box-shadow: 0 -1px 0 var(--win-dark);
}

.start-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--win-gray);
  border: none;
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-darker);
  border-bottom: 2px solid var(--win-darker);
  padding: 2px 10px;
  font-family: 'VT323', monospace;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  color: var(--win-black);
  line-height: 1;
}

.start-btn:hover {
  background: var(--win-highlight);
  color: var(--win-white);
}

.start-btn:active {
  border-top: 2px solid var(--win-darker);
  border-left: 2px solid var(--win-darker);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
}

.start-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--accent) 0%, #0000ff 50%, #00ff00 100%);
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.taskbar-clock {
  margin-left: auto;
  padding: 2px 8px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  background: var(--win-gray);
}

.taskbar-nav {
  display: flex;
  gap: 2px;
}

.taskbar-item {
  padding: 2px 10px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-darker);
  border-bottom: 2px solid var(--win-darker);
  text-decoration: none;
  color: var(--win-black);
  cursor: pointer;
}

.taskbar-current {
  padding: 2px 10px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  background: var(--win-gray);
  border-top: 2px solid var(--win-darker);
  border-left: 2px solid var(--win-darker);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  color: var(--win-black);
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.taskbar-item:hover, .taskbar-item.active {
  background: var(--win-highlight);
  color: var(--win-white);
}

/* ===== WINDOWS / PANELS ===== */
.window {
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-darker);
  border-bottom: 2px solid var(--win-darker);
  box-shadow: 2px 2px 0 var(--win-black);
}

.window-titlebar {
  background: var(--win-blue);
  color: var(--win-title-text);
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'VT323', monospace;
  font-size: 18px;
  font-weight: bold;
  user-select: none;
}

.titlebar-controls {
  display: flex;
  gap: 2px;
}

.titlebar-btn {
  width: 18px;
  height: 16px;
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-darker);
  border-bottom: 2px solid var(--win-darker);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--win-black);
  font-family: monospace;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.window-toggle:focus-visible + .titlebar-btn {
  outline: 2px dashed var(--win-blue);
  outline-offset: 2px;
}

.window:has(.window-minimize:checked) .window-content {
  display: none;
}

.window:has(.window-maximize:checked) {
  position: fixed;
  inset: 16px;
  z-index: 2000;
  overflow: auto;
}

.window-content {
  padding: 12px;
}

/* ===== INSET / TEXTBOX look ===== */
.inset {
  background: var(--win-white);
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  padding: 8px;
}

/* ===== LAYOUT ===== */
.desktop {
  padding: 16px;
  padding-bottom: 52px;
  max-width: 960px;
  margin: 0 auto;
  min-height: 100vh;
}

.desktop-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  align-items: start;
}

/* ===== SIDEBAR ===== */
.sidebar-window .window-content {
  padding: 6px;
}

.sidebar-section {
  margin-bottom: 12px;
}

.sidebar-label {
  font-size: 14px;
  color: var(--win-darker);
  padding: 2px 4px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--win-dark);
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  padding: 1px 0;
}

.sidebar-links a {
  color: var(--win-blue);
  text-decoration: none;
  font-size: 16px;
  display: block;
  padding: 1px 8px;
}

.sidebar-links a:hover {
  background: var(--win-highlight);
  color: var(--win-white);
}

/* Tag pills */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
}

.tag {
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-darker);
  border-bottom: 1px solid var(--win-darker);
  padding: 0 6px;
  font-size: 14px;
  text-decoration: none;
  color: var(--win-black);
  cursor: pointer;
}

.tag:hover {
  background: var(--win-highlight);
  color: var(--win-white);
}

.tag-list .tag-more-label {
  cursor: pointer;
  padding: 2px 6px;
  font-size: 14px;
  color: var(--win-blue);
  text-decoration: underline;
}

.tag-list .tag-more-label:hover {
  color: var(--win-highlight);
}

.tag-list .tag-more-label-end {
  display: none;
}

.tag-list .tag-extra {
  display: none;
  opacity: 0;
  transition: opacity 160ms ease, display 160ms allow-discrete;
}

.tag-more-toggle:checked ~ .tag-more-label-start {
  display: none;
}

.tag-more-toggle:checked ~ .tag-extra {
  display: inline;
  opacity: 1;

  @starting-style {
    opacity: 0;
  }
}

.tag-more-toggle:checked ~ .tag-more-label-end {
  display: inline;
}

/* ===== POST LIST ===== */
.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-card {
  background: var(--win-white);
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  padding: 10px 12px;
}

.post-card:hover {
  border-color: var(--win-blue);
}

.post-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.post-card-title {
  font-size: 22px;
  font-weight: normal;
}

.post-card-title a {
  color: var(--win-blue);
  text-decoration: none;
}

.post-card-title a:hover {
  text-decoration: underline;
  color: var(--accent);
}

.post-card-date {
  font-size: 14px;
  color: var(--win-darker);
  white-space: nowrap;
}

.post-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.post-card-excerpt {
  font-size: 16px;
  color: var(--win-darker);
  line-height: 1.4;
}

.read-more {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--win-blue);
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

/* ===== SINGLE POST ===== */
.post-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--win-dark);
}

.post-cover {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
  border: 2px inset #c0c0c0;
}

.post-title {
  font-size: 32px;
  font-weight: normal;
  line-height: 1.1;
  margin-bottom: 6px;
}

.post-meta {
  font-size: 14px;
  color: var(--win-darker);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.post-body {
  font-size: 18px;
  line-height: 1.6;
}

.post-body h2 {
  font-size: 24px;
  margin: 16px 0 8px;
  color: var(--win-blue);
}

.post-body h3 {
  font-size: 20px;
  margin: 12px 0 6px;
}

.post-body p {
  margin-bottom: 12px;
}

.post-body iframe,
.post-body img {
  max-width: 100%;
}

.post-body a {
  color: var(--accent);
}

.post-body blockquote {
  border-left: 4px solid var(--accent);
  margin: 12px 0;
  padding: 6px 12px;
  background: var(--win-white);
  font-style: italic;
}

.post-body ul, .post-body ol {
  margin: 8px 0 8px 24px;
}

.post-body li { margin-bottom: 4px; }

.post-body hr {
  border: none;
  border-top: 2px solid var(--win-dark);
  margin: 16px 0;
}

/* ===== HERO / HEADER ===== */
.site-header-window {
  margin-bottom: 12px;
}

.site-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.site-logo {
  height: 64px;
  width: auto;
  display: block;
}

.site-tagline {
  font-size: 16px;
  color: var(--win-darker);
}

/* ===== ABOUT SIDEBAR BOX ===== */
.now-playing {
  font-size: 14px;
  color: var(--win-darker);
  padding: 4px;
}

.np-track {
  color: var(--accent);
  font-size: 16px;
  display: block;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-darker);
  border-bottom: 2px solid var(--win-darker);
  padding: 3px 12px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  color: var(--win-black);
}

.btn:hover {
  background: var(--win-highlight);
  color: var(--win-white);
}

.btn:active {
  border-top: 2px solid var(--win-darker);
  border-left: 2px solid var(--win-darker);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  background: var(--win-gray);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  justify-content: center;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar-track { background: var(--win-gray); }
::-webkit-scrollbar-thumb {
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-darker);
  border-bottom: 2px solid var(--win-darker);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .desktop-grid {
    grid-template-columns: 1fr;
  }
  .desktop-grid--nav-last aside {
    order: 2;
  }
  .desktop-grid--nav-last main {
    order: 1;
  }
  .site-logo { height: 48px; }
  .post-title { font-size: 26px; }
}

/* ===== ACCENT / SIGNATURE ===== */
/* Neon magenta (#ff00ff) leaks through on hover/active links
   and the blockquote bar — one bold color against the
   otherwise period-faithful gray-and-navy palette */
