/* mspa-style.css
   MSPA-inspired site stylesheet
   - Use on a simple static site for comic pages, archives, etc.
   - Tested for modern browsers; intentionally retro look.
*/

/* ---- Fonts (feel free to replace) ---- */
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');


:root{
  --page-bg: #d8d8d8;        /* paper grey */
  --content-bg: #f6f6f6;     /* comic paper */
  --panel-border: #222;      /* thick border color */
  --muted: #666;
  --accent: #0b67bd;
  --max-width: 920px;
  --comic-pad: 18px;
  --ui-radius: 4px;
}

/* ---- Global resets / layout ---- */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "VT323", monospace; /* retro monospace for body text */
  background: linear-gradient(#e3e3e3, var(--page-bg));
  color:#111;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
  padding:24px 12px;
  display:flex;
  justify-content:center;
}

/* ---- Page wrapper ---- */
.site{
  width:100%;
  max-width:var(--max-width);
  margin:0 auto;
}

/* ---- Header / masthead ---- */
.header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}
.header__logo{
  /* chunky pixel block logo */
  font-family: "Press Start 2P", monospace;
  font-size:20px;
  color:var(--panel-border);
  letter-spacing:1px;
  text-transform:uppercase;
}
.header__meta{
  color:var(--muted);
  font-size:12px;
}

/* ---- Navigation bar ---- */
.nav{
  display:flex;
  gap:10px;
  align-items:center;
  margin:10px 0 22px;
}
.nav a{
  display:inline-block;
  padding:6px 10px;
  text-decoration:none;
  background:transparent;
  border:2px solid transparent;
  font-family: "VT323", monospace;
  font-size:13px;
  color:var(--panel-border);
  border-radius:var(--ui-radius);
}
.nav a:hover{
  background:rgba(11,103,189,0.06);
  border-color:rgba(11,103,189,0.18);
}

/* ---- Content / comic frame ---- */
.content{
  background:var(--content-bg);
  border:6px solid var(--panel-border);
  padding:var(--comic-pad);
  border-radius:6px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.06);
}

/* Comic image container */
.comic{
  display:block;
  max-width:100%;
  margin:0 auto 14px;
  text-align:center;
}
.comic img{
  display:block;
  max-width:100%;
  height:auto;
  border:4px solid #000;
  background: #fff;
  image-rendering: pixelated; /* blocky look for pixel art */
}

/* Caption / alt text style that mimics MSPA speech boxes */
.caption{
  display:block;
  margin:6px 0 0;
  padding:8px 10px;
  background: linear-gradient(#fff,#f1f1f1);
  border:2px solid #bdbdbd;
  font-size:14px;
  font-family: "VT323", monospace;
  color:#111;
  white-space:pre-wrap;
}

/* ---- Archive / sidebar-ish list that looks MSPA-ish ---- */
.archive{
  margin-top:16px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.archive a{
  padding:6px 8px;
  text-decoration:none;
  border:2px solid #cfcfcf;
  background:#fff;
  font-family:"VT323", monospace;
  font-size:12px;
  color:#111;
  border-radius:3px;
}
.archive a:hover{
  border-color:var(--accent);
}

/* ---- Buttons that feel old web / MSPA-era ---- */
.btn{
  display:inline-block;
  padding:8px 12px;
  font-family:"Press Start 2P", monospace;
  font-size:12px;
  text-transform:uppercase;
  text-decoration:none;
  border:3px solid #000;
  background: linear-gradient(#fff,#eee);
  color:#000;
  box-shadow: 0 4px 0 #666;
  border-radius:3px;
}
.btn:active{ transform:translateY(2px); box-shadow:none; }

/* ---- Dialogue block (for panels with lines, like MSPA captions) ---- */
.dialogue{
  border-left:8px solid #000;
  padding:10px 12px;
  margin-top:12px;
  background: linear-gradient(90deg,#fff,#fafafa);
  font-family:"VT323", monospace;
  font-size:15px;
}

/* ---- Footer ---- */
.footer{
  margin-top:18px;
  font-size:12px;
  color:var(--muted);
}

/* ---- Responsive tweaks ---- */
@media (max-width:640px){
  :root{--max-width:720px; --comic-pad:12px}
  .header__logo{font-size:14px}
  .nav{gap:6px}
}
