/* Base layout */
::before,
::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  background: #008080; /* retro desktop green-ish */
  color: #222;
}

body {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* Win98 shell */

.win98-shell {
  display: flex;
  width: 100%;
  max-width: 1100px;
  height: 100vh;
  background: #008080;
  padding: 6px;
}

/* Blog page shell */

.page-shell {
  flex: 1;
  background: #f5f5f5;
  border: 2px solid #000;
  box-shadow: 1px 1px 0 #fff inset, -1px -1px 0 #808080 inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #ccc;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: "Verdana", sans-serif;
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.logo-text span {
  color: #c00000;
}

.tagline {
  font-size: 11px;
  color: #666;
}

.top-nav {
  display: flex;
  gap: 10px;
}

.nav-link {
  font-size: 12px;
  text-decoration: none;
  color: #004080;
  padding: 3px 6px;
  border-radius: 2px;
}

.nav-link:hover {
  background: #ffe8a0;
  text-decoration: underline;
}

/* Layout */

.layout {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 10px;
  padding: 10px;
  overflow: auto;
  flex: 1;
}

.sidebar {
  font-size: 12px;
}

.content {
  font-size: 13px;
}

/* Ads */

.ad {
  background: #ffffe5;
  border: 1px dashed #c0a000;
  padding: 6px;
  font-size: 11px;
  text-align: center;
  margin-bottom: 10px;
}

.ad-label {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 10px;
  color: #a06000;
  margin-bottom: 4px;
}

.ad-placeholder-text {
  color: #555;
}

.ad-block {
  margin-bottom: 12px;
}

.ad-title {
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 4px;
}

.ad-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ad-link {
  color: #0000cc;
  text-decoration: underline;
}

/* Posts */

.post {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 12px;
}

.post-title {
  font-size: 18px;
  margin: 0 0 4px;
}

.secondary-post .post-title {
  font-size: 14px;
}

.post-meta {
  font-size: 11px;
  color: #777;
  margin-bottom: 8px;
}

.meta-highlight {
  color: #c00000;
}

.post-body p {
  margin: 0 0 8px;
}

.more-text {
  margin-top: 8px;
}

.inline-ad {
  margin: 10px 0;
}

/* Buttons */

.btn {
  border: 1px solid #808080;
  background: #e0e0e0;
  box-shadow: 1px 1px 0 #fff inset, -1px -1px 0 #808080 inset;
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
}

.btn:active {
  box-shadow: -1px -1px 0 #fff inset, 1px 1px 0 #808080 inset;
}

.small-btn {
  font-size: 10px;
  margin-right: 4px;
}

/* Pager */

.pager {
  font-size: 11px;
  text-align: center;
}

.pager-link {
  color: #004080;
  text-decoration: none;
}

.pager-link:hover {
  text-decoration: underline;
}

.pager-sep {
  color: #999;
}

/* Modules */

.module {
  background: #ffffff;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}

.module-title {
  background: #f0f0f0;
  padding: 5px 6px;
  font-weight: bold;
  font-size: 12px;
}

.module-body {
  padding: 6px;
  font-size: 12px;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  margin-bottom: 3px;
}

.link-list a {
  color: #004080;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  background: #ffffff;
  border-top: 1px solid #ccc;
  padding: 6px 10px;
  font-size: 11px;
  text-align: center;
}

/* Micro interactions */

@keyframes adPulse {
  0% {
    background-color: #ffffe5;
  }
  50% {
    background-color: #fff5b3;
  }
  100% {
    background-color: #ffffe5;
  }
}

.ad-pulse {
  animation: adPulse 0.8s ease-in-out infinite;
}

.focus-link {
  outline: 1px dotted #000;
}

/* Responsive tweaks for mobile */

@media (max-width: 800px) {
  .win98-shell {
    padding: 4px;
  }

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

  .sidebar-left,
  .sidebar-right {
    display: none;
  }

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

@media (max-width: 600px) {
  .win98-sidebar {
    display: none;
  }

  .layout {
    padding: 6px;
  }
}