@charset "utf-8";
/* The Tech Deck — inner page styles (Spectrum theme)
   Shares the cream-paper texture from Styles.css so the article cards
   and sidebar feel like the same piece of paper. */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  text-shadow: rgba(0, 0, 0, 0.01) 0 0 1px;
  font-size: 15px;
  line-height: 1.5;
  color: #1a1a1a;
  background-image: url("https://codeberg.org/Sinclair-Speccy/pages/raw/branch/pages/Server-Rack/Images/28851.png");
  background-repeat: repeat;
  background-position: center top;
}

/* ---------- Layout containers ---------- */
.body-wrapper,
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 8px 32px 8px;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Page header (black + rainbow stripe) ---------- */
header {
  position: relative;
  background: radial-gradient(ellipse at 50% 60%, #161616 0%, #050505 100%);
  color: #f1ead6;
  text-align: left;
  padding: 14px 18px 18px 18px;
  border: 2px solid #0a0a0a;
  border-bottom: none;
}

header h1 {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  font-family: 'Perfect DOS VGA 437', "Courier New", monospace;
  font-size: 2.2em;
  font-weight: normal;
  letter-spacing: 0.02em;
  color: #f1ead6;
  text-shadow:
    0 0 1px rgba(241, 234, 214, 0.9),
    0 0 6px rgba(241, 234, 214, 0.25),
    0 0 12px rgba(241, 234, 214, 0.12);
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background:
    linear-gradient(
      to right,
      #d70000 0 25%,
      #ffd800 25% 50%,
      #00c000 50% 75%,
      #00c8c8 75% 100%
    );
}

/* ---------- Footer ---------- */
footer {
  background: #0a0a0a;
  color: #f1ead6;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.85em;
  font-style: italic;
  border: 2px solid #0a0a0a;
  border-top: none;
  margin-bottom: 12px;
}

/* ---------- Main ---------- */
main {
  flex: 1;
  padding: 12px 0;
}

/* ---------- Article cards (same paper as the sidebar) ---------- */
article {
  margin-bottom: 14px;
  padding: 0 0 10px 0;
  border: 2px solid #0a0a0a;
  overflow: hidden;
  /* Paper texture — pulled straight from Styles.css */
  background-color: #f1ead6;
  background-image:
    radial-gradient(rgba(60, 40, 10, 0.06) 1px, transparent 1.4px),
    radial-gradient(rgba(60, 40, 10, 0.035) 1px, transparent 1.4px);
  background-size: 6px 6px, 14px 14px;
  background-position: 0 0, 3px 3px;
  /* Inset warm shadow + outer chunky drop */
  box-shadow:
    inset 0 0 24px rgba(80, 55, 20, 0.08),
    3px 3px 0 rgba(10, 10, 10, 0.45);
}

/* Article title bar — black with cream pixel font and rainbow underline.
   Scoped to article so it doesn't fight the page header h1. */
article .title {
  background: #0a0a0a;
  color: #f1ead6;
  padding: 6px 12px;
  margin: 0;
  font-family: 'VT323', 'Perfect DOS VGA 437', "Courier New", monospace;
  font-size: 1.7em;
  font-weight: normal;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-shadow:
    0 0 1px rgba(241, 234, 214, 0.9),
    0 0 5px rgba(241, 234, 214, 0.22);
  border-bottom: 4px solid transparent;
  background-image:
    linear-gradient(#0a0a0a, #0a0a0a),
    linear-gradient(
      to right,
      #d70000 0 25%,
      #ffd800 25% 50%,
      #00c000 50% 75%,
      #00c8c8 75% 100%
    );
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  background-repeat: no-repeat;
  overflow: hidden;
}

article p,
article h1,
article h2,
article h3,
article h4 {
  padding: 0 16px;
}

article p {
  margin: 10px 0;
}

article h2:not(.title),
article h3,
article h4 {
  margin: 14px 0 6px 0;
}

article em,
article i {
  color: #2a2a2a;
}

article strong,
article b {
  color: #000;
}

/* ---------- Links (Spectrum INK 0 / PAPER 6 hover) ---------- */
article a {
  color: #0026d8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

article a:hover {
  background: #ffd800;
  color: #000;
  text-decoration: none;
}

/* ---------- Figures (polaroid frames on textured paper) ---------- */
article figure {
  margin: 14px 16px;
  padding: 10px 10px 6px 10px;
  /* Slightly lighter cream so figures sit *on* the article paper
     rather than blending into it */
  background: #faf3df;
  border: 1px solid #0a0a0a;
  box-shadow: 2px 2px 0 rgba(10, 10, 10, 0.25);
  display: inline-block;
  max-width: calc(100% - 32px);
}

article figure img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border: 1px solid #0a0a0a;
  margin: 0;
}

article figcaption {
  margin-top: 8px;
  padding: 0 2px;
  text-align: left;
  font-style: italic;
  font-size: 0.88em;
  color: #4a4034;
  line-height: 1.35;
}

/* ---------- Utilities ---------- */
.text-centre {
  text-align: center;
}

.responsive {
  width: 100%;
  height: auto;
}

.picheader {
  height: 250px;
  overflow: hidden;
  border: 2px solid #0a0a0a;
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .body-wrapper,
  .container {
    padding: 8px 4px 24px 4px;
  }
  header { padding: 12px 14px 16px 14px; }
  header h1 { font-size: 1.6em; }
  article .title { font-size: 1.5em; }
  article figure {
    margin: 12px 10px;
    max-width: calc(100% - 20px);
  }
}