/* Alex's Attic. Built to look like a fan site from about 2002: tiled background, a fixed-width page,
   bevelled borders, title-bar boxes, bracketed links. Web-safe fonts only. Light only on purpose. */

:root {
  --tile: #4e8aa0;
  --paper: #fdfbea;
  --paper-2: #eef4ef;
  --ink: #1b1b17;
  --teal-dark: #0b3a45;
  --teal: #1f6b78;
  --teal-light: #7fb6c4;
  --gold: #ffe27a;
  --link: #0033cc;
  --visited: #660099;
  --hover: #cc3300;
  --btn: #dcd9c8;
  --font: "Trebuchet MS", Verdana, Tahoma, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  padding: 14px 8px 24px;
  background: var(--tile) url("img/bg-tile.png");
  color: var(--ink);
  font: 15px/1.5 var(--font);
}

a { color: var(--link); }
a:visited { color: var(--visited); }
a:hover { color: var(--hover); }
a:focus-visible, button:focus-visible { outline: 2px dotted var(--ink); outline-offset: 2px; }

img { max-width: 100%; height: auto; }

.skip { position: absolute; left: 8px; top: -3rem; background: var(--paper); padding: 6px 10px; border: 2px outset #fff; }
.skip:focus { top: 8px; }

/* the page */
#page {
  max-width: 760px;
  margin: 0 auto;
  background: var(--paper);
  border: 2px solid var(--teal-dark);
  box-shadow: 4px 4px 0 rgb(8 40 48 / 0.55);
}

#banner { display: block; width: 100%; border-bottom: 2px solid var(--teal-dark); }

.navbar {
  background: linear-gradient(#e6f0f2, #bcd5db);
  border-bottom: 2px solid var(--teal-dark);
  padding: 6px 8px;
  text-align: center;
  font-weight: bold;
}
.navbar a { white-space: nowrap; margin: 0 4px; }
.navbar a[aria-current="page"] { color: var(--ink); text-decoration: none; }

.cols { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 14px; }
@media (min-width: 640px) { .cols { grid-template-columns: 172px minmax(0, 1fr); } }

/* title-bar boxes, like a window in the game's own panels */
.win { border: 2px outset #fff; background: #fff; margin-bottom: 14px; box-shadow: 1px 1px 0 var(--teal-dark); }
#main .win > h2, #main .win > h3, .win > h2, .win > h3 {
  margin: 0;
  border: 0;
  padding: 3px 7px;
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal) 70%, var(--teal-light));
  text-shadow: 1px 1px 0 rgb(0 0 0 / 0.5);
}
.win .body { padding: 8px 10px; font-size: 14px; }
.win .body p { margin: 0 0 8px; }
.win .body p:last-child { margin-bottom: 0; }

#side ul { list-style: none; margin: 0; padding: 0; }
#side li { padding: 2px 0; }
#side li::before { content: "> "; color: var(--teal); font-weight: bold; }
.news { font-size: 13px; }
.news b { color: var(--teal-dark); }
.center { text-align: center; }

/* main column */
#main h1 { margin: 0 0 8px; font-size: 24px; color: var(--teal-dark); line-height: 1.2; }
#main h2 { margin: 22px 0 6px; font-size: 19px; color: var(--teal-dark); border-bottom: 2px groove #b9c9c5; padding-bottom: 2px; line-height: 1.25; }
#main h3 { margin: 16px 0 4px; font-size: 16px; color: var(--teal); }
#main .tv h3 { font-size: 17px; color: var(--teal-dark); margin-top: 18px; }
#main p { margin: 0 0 10px; }
#main ul, #main ol { margin: 0 0 10px; padding-left: 24px; }
#main li { margin-bottom: 4px; }
hr { border: 0; border-top: 2px groove #b9c9c5; margin: 16px 0; }

.hl { background: var(--gold); padding: 0 3px; }
.small { font-size: 12.5px; }
.mono { font-family: "Courier New", Courier, monospace; font-size: 0.95em; }

/* pictures: bordered thumbnails that link to the full image */
.shot { display: block; border: 2px inset #fff; background: #fff; padding: 2px; }
.shot img { display: block; width: 100%; }
.fl { float: left; width: 304px; margin: 2px 14px 6px 0; }
.fl > .shot + .shot { margin-top: 8px; }
@media (max-width: 560px) { .fl { float: none; width: auto; margin: 0 0 10px; } }
.clear { clear: both; }

/* buttons: grey, chunky, pressed look */
.btn {
  display: inline-block;
  font: bold 14px var(--font);
  color: var(--ink);
  background: var(--btn);
  border: 2px outset #fff;
  padding: 4px 14px;
  text-decoration: none;
  cursor: pointer;
}
.btn:visited { color: var(--ink); }
.btn:hover { color: var(--hover); background: #e8e5d4; }
.btn:active { border-style: inset; }
.btn.big { font-size: 16px; padding: 8px 20px; }

/* tv entries */
.tv { margin-bottom: 4px; }
.tv dl { margin: 6px 0 8px; font-size: 14px; }
.tv dt { float: left; clear: left; width: 82px; font-weight: bold; color: var(--teal-dark); }
.tv dd { margin: 0 0 1px 90px; }

/* games table */
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; list-style: none; padding: 0 !important; }
@media (min-width: 480px) { .games { grid-template-columns: repeat(4, 1fr); } }
.games li { text-align: center; font-size: 12.5px; line-height: 1.3; margin: 0 !important; }
.games a.shot { margin-bottom: 3px; }
.games b { display: block; }

/* footer */
#foot { border-top: 2px solid var(--teal-dark); background: var(--paper-2); padding: 12px 14px 14px; text-align: center; font-size: 12.5px; }
#foot p { margin: 0 0 8px; }
#foot img { display: inline-block; vertical-align: middle; border: 0; }
