/* ==========================================================================
   THE ARCHITECTURE OF SOMATIC DEFIANCE — 1996-1999 WEB ARCHIVE EDITION
   ========================================================================== */

@font-face {
  font-family: "OckfeldMSGothic";
  src: url("MS-Gothic.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OckfeldMSGothic";
  src: url("MS-Gothic.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 12px;
  max-width: 100%;
  overflow-x: clip;
  background-color: #000c24;
  background-image: url("assets/tile_bg.gif");
  background-repeat: repeat;
  background-position: top left;
  background-attachment: scroll;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: pixelated;
  color: #e8f0ff;
  font-family: "MS Gothic", "ＭＳ ゴシック", "OckfeldMSGothic";
  font-weight: normal;
  font-style: normal;
  font-synthesis: none;
  font-size: 14.5px;
  line-height: 1.65;
}

body[data-active-tile="assets/tile_nibble.png"] {
  background-color: #181a1c;
  background-size: 192px 192px;
}

/* Classic 90s Top Marquee Banner */
.marquee-bar {
  max-width: 94vw;
  width: 100%;
  min-width: 0;
  margin: 0 auto 12px auto;
  background-color: #000080;
  color: #00ffcc;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  padding: 4px 8px;
  font-family: "MS Gothic", "ＭＳ ゴシック", "OckfeldMSGothic";
  font-synthesis: none;
  font-size: 13px;
  font-weight: normal;
  letter-spacing: 0.05em;
}

/* Main Site Header Box */
.site-header {
  max-width: 94vw;
  width: 100%;
  min-width: 0;
  margin: 0 auto 14px auto;
  background-color: #c0c0c0;
  color: #000000;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  border-right: 3px solid #404040;
  border-bottom: 3px solid #404040;
  padding: 4px;
}

.site-header-inner {
  position: relative;
  min-width: 0;
  background: linear-gradient(90deg, #000080 0%, #1084d0 50%, #008080 100%);
  color: #ffffff;
  padding: 14px 124px;
  border: 2px inset #808080;
  text-align: center;
}

.site-header-inner h1 {
  margin: 0 0 6px 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 28px;
  letter-spacing: 0.03em;
  text-shadow: 2px 2px 0px #000000;
  color: #ffff00;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.site-header-inner .subtitle {
  font-family: "MS Gothic", "ＭＳ ゴシック", "OckfeldMSGothic";
  font-synthesis: none;
  font-size: 13px;
  color: #00ffcc;
  margin: 0 0 10px 0;
}

.hazard-strip {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: 12px;
}

/* Two-Column Classic Portal Table/Grid Layout */
.portal-container {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  max-width: 94vw;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  align-items: start;
}

.sidebar-column,
.main-column {
  min-width: 0;
  max-width: 100%;
}

/* Win95 Window Component */
.win95-window {
  min-width: 0;
  max-width: 100%;
  background-color: #c0c0c0;
  color: #000000;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  border-right: 3px solid #404040;
  border-bottom: 3px solid #404040;
  padding: 3px;
  margin-bottom: 18px;
}

.win95-titlebar {
  min-width: 0;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #ffffff;
  padding: 4px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-family: "MS Gothic", "ＭＳ ゴシック", "OckfeldMSGothic";
  font-synthesis: none;
  font-size: 12px;
  font-weight: normal;
}

.win95-title-text {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-badge {
  flex-shrink: 0;
  vertical-align: middle;
  border: 1px solid #000000;
}

.win95-controls {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
}

.win95-btn {
  display: inline-block;
  width: 16px;
  height: 14px;
  line-height: 12px;
  text-align: center;
  background-color: #c0c0c0;
  color: #000000;
  font-size: 11px;
  font-weight: normal;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
  user-select: none;
}

/* Sidebar Directory Panel */
aside.sidebar-column {
  position: sticky;
  top: 12px;
}

.directory-box {
  background-color: #08142c;
  color: #d8e8ff;
  border: 2px inset #808080;
  padding: 10px;
}

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

.directory-list li {
  margin-bottom: 6px;
  border-bottom: 1px dotted #284878;
  padding-bottom: 5px;
}

.directory-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.directory-list a {
  color: #00ffcc;
  text-decoration: underline;
  font-family: "MS Gothic", "ＭＳ ゴシック", "OckfeldMSGothic";
  font-synthesis: none;
  font-size: 12.5px;
  display: block;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.directory-list a:hover {
  color: #ffff00;
  background-color: #000080;
}

.dir-date {
  display: block;
  font-size: 11px;
  color: #8ca8d8;
}

/* Hit Counter & Webring Box */
.counter-box {
  background-color: #000000;
  color: #00ff00;
  border: 2px inset #808080;
  padding: 10px;
  text-align: center;
  font-family: "MS Gothic", "ＭＳ ゴシック", "OckfeldMSGothic";
  font-synthesis: none;
}

.lcd-digits {
  display: inline-block;
  background-color: #051805;
  border: 2px inset #404040;
  padding: 3px 10px;
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 3px;
  color: #33ff33;
  margin: 4px 0;
}

.badges-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.badges-grid img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #808080;
}

.webring-box {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #406080;
  font-size: 11.5px;
  color: #ffff00;
}

.webring-links a {
  color: #00ffcc;
  text-decoration: underline;
  margin: 0 3px;
}

.webring-links a:hover {
  color: #ff66cc;
}

/* Essay Document Content Area (Classic Dark Terminal / CRT Document) */
.win95-body {
  min-width: 0;
  max-width: 100%;
  background-color: #0a111f;
  color: #e6eefc;
  border: 2px inset #808080;
  padding: 20px 24px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.win95-body > *:first-child {
  margin-top: 0;
}

.win95-body > *:last-child {
  margin-bottom: 0;
}

.win95-body h1 {
  font-family: "MS Gothic", "ＭＳ ゴシック", "OckfeldMSGothic";
  font-synthesis: none;
  font-weight: normal;
  font-size: 23px;
  color: #ffff00;
  border-bottom: 2px groove #4477aa;
  padding-bottom: 6px;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.win95-body h2 {
  font-family: "MS Gothic", "ＭＳ ゴシック", "OckfeldMSGothic";
  font-synthesis: none;
  font-weight: normal;
  font-size: 16.5px;
  color: #00ffcc;
  background-color: #102240;
  border-left: 4px solid #ffff00;
  padding: 4px 10px;
  margin: 22px 0 10px 0;
}

.win95-body h3 {
  font-family: "MS Gothic", "ＭＳ ゴシック", "OckfeldMSGothic";
  font-synthesis: none;
  font-weight: normal;
  font-size: 15px;
  color: #ff99cc;
  margin: 16px 0 6px 0;
}

.win95-body p {
  margin: 0 0 13px 0;
  text-align: left;
}

/* Date line under H1 */
.win95-body h1 + p > em:only-child {
  font-family: "MS Gothic", "ＭＳ ゴシック", "OckfeldMSGothic";
  font-synthesis: none;
  font-style: normal;
  color: #8ab4f8;
  font-size: 12.5px;
  display: block;
  margin-bottom: 16px;
}

/* Posted by ockfeld footer */
.win95-body p:last-child > em:only-child {
  font-family: "MS Gothic", "ＭＳ ゴシック", "OckfeldMSGothic";
  font-synthesis: none;
  font-style: normal;
  color: #00ff66;
  font-size: 12.5px;
  display: block;
  margin-top: 20px;
  padding-top: 8px;
  border-top: 1px dashed #3a5a8c;
}

.win95-body ul,
.win95-body ol {
  margin: 0 0 14px 0;
  padding-left: 24px;
}

.win95-body li {
  margin-bottom: 7px;
  line-height: 1.6;
}

.win95-body li:last-child {
  margin-bottom: 0;
}

code {
  font-family: "MS Gothic", "ＭＳ ゴシック", "OckfeldMSGothic";
  font-synthesis: none;
  background-color: #000000;
  color: #00ff66;
  border: 1px solid #2e4d7a;
  padding: 1px 5px;
  font-size: 13.5px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

pre {
  background-color: #000000;
  color: #00ff66;
  border: 2px inset #5070a0;
  padding: 12px 14px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  font-family: "MS Gothic", "ＭＳ ゴシック", "OckfeldMSGothic";
  font-synthesis: none;
  font-size: 13px;
  line-height: 1.4;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  overflow-wrap: normal;
  word-wrap: normal;
}

/* Classic 90s Beveled Data Tables */
table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  background-color: #808080;
  border: 2px outset #ffffff;
  margin: 18px 0;
  font-size: 13.5px;
  line-height: 1.5;
  overflow-wrap: normal;
  word-wrap: normal;
  word-break: normal;
}

th {
  background-color: #000080;
  color: #ffff00;
  font-family: "MS Gothic", "ＭＳ ゴシック", "OckfeldMSGothic";
  font-synthesis: none;
  font-weight: normal;
  text-align: left;
  padding: 8px 10px;
  border: 1px inset #ffffff;
  overflow-wrap: normal;
  word-wrap: normal;
  word-break: normal;
}

td {
  background-color: #0d1930;
  color: #e8f0ff;
  padding: 8px 10px;
  border: 1px inset #606060;
  vertical-align: top;
  overflow-wrap: normal;
  word-wrap: normal;
  word-break: normal;
}

strong {
  color: #ffffff;
  font-weight: normal;
}

/* Footer Banner */
.site-footer {
  max-width: 94vw;
  width: 100%;
  min-width: 0;
  margin: 10px auto 24px auto;
  background-color: #c0c0c0;
  color: #000000;
  border: 3px outset #ffffff;
  padding: 10px 14px;
  text-align: center;
  font-family: "MS Gothic", "ＭＳ ゴシック", "OckfeldMSGothic";
  font-synthesis: none;
  font-size: 12.5px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.site-footer a {
  color: #0000ee;
  font-weight: normal;
}

.site-footer a:visited {
  color: #551a8b;
}

/* 90s Featured Blog Buttons Hovering Inside Left & Right of Top Header (Staggered Blink) */
@keyframes stagger-glow-left {
  0%, 49% {
    border-color: #ffe666;
    filter: drop-shadow(0 0 4px #ff9900);
  }
  50%, 100% {
    border-color: #cc7a00;
    filter: none;
  }
}

@keyframes stagger-glow-right {
  0%, 49% {
    border-color: #ffb3e6;
    filter: drop-shadow(0 0 4px #ff66cc);
  }
  50%, 100% {
    border-color: #993377;
    filter: none;
  }
}

.badge-link-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  line-height: 0;
  border: 1px solid #ffcc00;
  box-shadow: 2px 2px 0px #000000;
  animation: stagger-glow-left 1.1s steps(1) infinite;
  transition: transform 0.1s steps(2);
  z-index: 5;
}
.badge-link-left:hover {
  transform: translateY(-50%) scale(1.06);
  filter: drop-shadow(0 0 6px #ff9900);
}
.badge-link-left:active {
  transform: translateY(calc(-50% + 1px)) translateX(1px);
}

.badge-link-featured {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  line-height: 0;
  border: 1px solid #ffb3e6;
  box-shadow: 2px 2px 0px #000000;
  animation: stagger-glow-right 1.1s steps(1) infinite;
  animation-delay: -0.275s;
  transition: transform 0.1s steps(2);
  z-index: 5;
}
.badge-link-featured:hover {
  transform: translateY(-50%) scale(1.06);
  filter: drop-shadow(0 0 6px #ff85d0);
}
.badge-link-featured:active {
  transform: translateY(calc(-50% + 1px)) translateX(1px);
}

/* ==========================================================================
   TABLET & MOBILE LAYOUT BREAKPOINTS
   ========================================================================== */
@media (max-width: 720px) {
  .site-header-inner {
    padding: 12px 14px;
  }

  .badge-link-left,
  .badge-link-featured {
    position: static;
    transform: none;
    margin: 0 4px 10px 4px;
  }

  .badge-link-left:hover,
  .badge-link-featured:hover {
    transform: scale(1.05);
  }
}

@media (max-width: 840px) {
  .portal-container {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  aside.sidebar-column,
  main.main-column {
    display: block;
    width: 100%;
    max-width: 100%;
    position: static;
  }

  .win95-window {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .win95-body {
    padding: 14px 16px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 8px;
    font-size: 13.5px;
    line-height: 1.55;
  }

  .marquee-bar,
  .site-header,
  .portal-container,
  .site-footer {
    max-width: 100%;
    width: 100%;
  }

  .site-header-inner {
    padding: 12px 10px;
  }

  .site-header-inner h1 {
    font-size: 20px;
    line-height: 1.25;
  }

  .site-header-inner .subtitle {
    font-size: 11.5px;
  }

  .win95-titlebar {
    font-size: 11px;
  }

  .win95-body {
    padding: 10px 8px;
  }

  .win95-body h1 {
    font-size: 19px;
  }

  .win95-body h2 {
    font-size: 15px;
    padding: 4px 8px;
  }

  .win95-body h3 {
    font-size: 14px;
  }

  code {
    font-size: 11px;
  }

  pre {
    font-size: 11px;
    padding: 8px 10px;
  }

  table {
    display: table;
    width: 100%;
    max-width: 100%;
    table-layout: auto;
    border-spacing: 1px;
    overflow-x: visible;
    white-space: normal;
    overflow-wrap: normal;
    word-wrap: normal;
    word-break: normal;
    font-size: 10px;
    line-height: 1.3;
  }

  th,
  td {
    padding: 4px 3px;
    white-space: normal;
    overflow-wrap: normal;
    word-wrap: normal;
    word-break: normal;
  }

  .site-footer {
    font-size: 11.5px;
    padding: 8px 10px;
  }
}

/* ==========================================================================
   16:9 WIDESCREEN DISPLAY OPTIMIZATIONS (1366x768, 1920x1080, 2560x1440+)
   ========================================================================== */
@media (min-width: 1366px) {
  body {
    padding: 16px 24px;
    font-size: 15.5px;
    line-height: 1.7;
  }

  .marquee-bar,
  .site-header,
  .portal-container,
  .site-footer {
    max-width: 1680px;
    width: 94vw;
  }

  .portal-container {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
  }

  .win95-body {
    padding: 28px 40px;
  }

  .win95-body p,
  .win95-body ul,
  .win95-body ol {
    max-width: 92ch;
  }

  .win95-body h1 {
    font-size: 26px;
  }

  .win95-body h2 {
    font-size: 18px;
    padding: 6px 14px;
  }

  table {
    font-size: 14.5px;
  }

  pre {
    font-size: 14px;
    padding: 16px 20px;
  }
}

@media (min-width: 1850px) {
  body {
    font-size: 16.5px;
  }

  .marquee-bar,
  .site-header,
  .portal-container,
  .site-footer {
    max-width: 1840px;
  }

  .portal-container {
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 28px;
  }

  .win95-body {
    padding: 34px 52px;
  }
}