/* shadebehind.com - one stylesheet, no web fonts, no frameworks. Built for 800x600, holds up on a phone. */

html { background: #050404 url(/img/ui/bg.png); }
body {
  margin: 0; padding: 12px 0 24px;
  color: #c9c1b0; background: transparent;
  font: 13px/1.55 Verdana, Tahoma, "DejaVu Sans", Geneva, sans-serif;
  -webkit-text-size-adjust: 100%;
}
img { border: 0; }
img.px, #top img, .shot img, .gallery img, .gif img, .keyart img, .cmp img, #nav a, .badges img, .lamp,
.boxh img, h1 img, h2 img, .counter img, .nd img {
  image-rendering: pixelated; image-rendering: crisp-edges;
}
a { color: #ffc83c; text-decoration: none; border-bottom: 1px dotted #7a5a1c; }
a:visited { color: #d9a640; }
a:hover, a:focus { color: #fff1c4; border-bottom-color: #ffc83c; }
a img { border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: #000; padding: 4px 8px; }
.skip:focus { left: 8px; z-index: 5; }
b, strong { color: #eadfc6; }
em { color: #e9d8ae; }
p { margin: 0 0 11px; }
small, .small { font-size: 11px; color: #8d8574; }

/* ------------------------------------------------ the column */
#page {
  width: 780px; margin: 0 auto;
  background: #0b0a08;
  border: 1px solid #3b2e17; outline: 1px solid #000;
  box-shadow: 0 0 0 4px #000, 0 0 24px 6px rgba(255, 180, 60, .05);
}
#top { line-height: 0; background: #000; }
#top a, #top a:hover { border: 0; }

/* nav: image buttons, three states in one sprite (normal / lit / pressed) */
#nav {
  display: flex; margin: 0; padding: 0; list-style: none;
  background: #000; border-top: 1px solid #2a2114; border-bottom: 1px solid #000;
}
#nav li { flex: 1 1 0; }
#nav a {
  display: block; height: 26px; border: 0;
  background-repeat: no-repeat; background-size: 100% 300%; background-position: 0 0;
}
#nav a:hover, #nav a:focus { background-position: 0 50%; }
#nav a.here { background-position: 0 100%; }
#nav span { position: absolute; left: -9999px; }

#crumb {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 3px 10px; font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  color: #7d7564; background: #100d09; border-bottom: 1px solid #2a2114;
}
#crumb a { color: #a99f88; border: 0; }
#crumb a:hover { color: #ffc83c; }

/* ------------------------------------------------ layout */
#cols { display: flex; align-items: flex-start; }
#content { flex: 1 1 auto; min-width: 0; padding: 14px 18px 8px; }
#cols #content { width: 540px; }
#side { flex: 0 0 200px; width: 200px; padding: 14px 12px 8px 0; }
.wide { padding: 14px 20px 8px; }

h1, h2, h3 { margin: 0; font-weight: normal; line-height: 0; }
h1 { margin: 2px 0 14px; }
h2 { margin: 20px 0 9px; padding-bottom: 5px; border-bottom: 1px solid #2a2114; }
h1 + h2, .chap h2 { margin-top: 4px; }
h3 { line-height: 1.4; margin: 14px 0 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #ffc83c; }
.lead { font-size: 14px; color: #ddd3bd; }
.lead::first-letter { color: #ffc83c; }
.rule { display: block; margin: 16px auto; max-width: 100%; height: 3px; }

/* bevelled panels and boxes */
.box { margin: 0 0 14px; background: #0f0d0a; border: 1px solid #000; outline: 1px solid #2e2618; }
.boxh { height: 20px; line-height: 0; background: url(/img/ui/bar.png) repeat-x; padding: 2px 0 0 6px; border-bottom: 1px solid #000; }
.boxb { padding: 8px 9px 4px; font-size: 11px; line-height: 1.5; }
.panel { background: #0f0d0a; border: 1px solid; border-color: #3b2e17 #000 #000 #3b2e17; padding: 10px 12px; margin: 0 0 12px; }

/* news */
.news { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px dotted #2e2618; }
.news:last-child { border-bottom: 0; }
.nd { font-size: 10px; color: #8d8574; letter-spacing: .06em; }
.nd img { vertical-align: -1px; }
.nt { color: #ffc83c; font-weight: bold; margin: 1px 0 3px; }
.news p { margin: 0; }
#content .news { padding: 2px 0 10px; }
#content .news .nt { font-size: 13px; }
.more { text-align: right; margin: 4px 0 6px; }

/* facts table */
table.facts { border-collapse: collapse; width: 100%; margin: 4px 0 12px; font-size: 12px; }
table.facts th, table.facts td { padding: 4px 8px; border: 1px solid #241d12; text-align: left; vertical-align: top; }
table.facts th { width: 34%; color: #ffc83c; font-weight: normal; background: #14110c; white-space: nowrap; }
table.facts td { background: #0d0b08; }
table.facts tr:nth-child(even) td { background: #110e0a; }
table.facts kbd { font: bold 12px Verdana, sans-serif; color: #000; background: #c9c1b0; border-radius: 9px; padding: 0 5px; }

/* pictures */
.keyart { margin: 2px 0 12px; line-height: 0; text-align: center; }
.frame { display: inline-block; padding: 3px; background: #000; border: 1px solid; border-color: #4a3a1c #120e08 #120e08 #4a3a1c; line-height: 0; max-width: 100%; box-sizing: border-box; }
.frame img { max-width: 100%; height: auto; }
.cap { display: block; line-height: 1.4; font-size: 11px; color: #8d8574; margin-top: 5px; text-align: center; }
.gif { text-align: center; margin: 6px 0 14px; }
.fr { float: right; margin: 2px 0 10px 16px; text-align: center; max-width: 50%; }
.fl { float: left; margin: 2px 16px 10px 0; text-align: center; max-width: 50%; }
.clear { clear: both; }
.minis { display: flex; gap: 8px; justify-content: space-between; margin: 0 0 6px; }
.minis a { border: 0; line-height: 0; }
.minis img { width: 120px; height: 90px; border: 1px solid; border-color: #4a3a1c #000 #000 #4a3a1c; }
.minis a:hover img { border-color: #ffc83c; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; margin: 6px 0 12px; }
.th { text-align: center; }
.th a { display: inline-block; border: 0; padding: 3px; background: #000; border: 1px solid; border-color: #4a3a1c #120e08 #120e08 #4a3a1c; line-height: 0; }
.th a:hover, .th a:focus { border-color: #ffc83c; box-shadow: 0 0 8px rgba(255, 200, 60, .35); }
.th img { width: 160px; height: 120px; }
.th span { display: block; font-size: 10px; line-height: 1.35; color: #8d8574; margin-top: 4px; letter-spacing: .03em; }

/* the world */
.chap { display: flex; gap: 18px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #1d1710; }
.chap-r { flex-direction: row-reverse; }
.chap .shot { flex: 0 0 328px; text-align: center; }
.chap .shot a { display: inline-block; border: 0; padding: 3px; background: #000; border: 1px solid; border-color: #4a3a1c #120e08 #120e08 #4a3a1c; line-height: 0; }
.chap .shot a:hover { border-color: #ffc83c; }
.chap .shot span { display: block; font-size: 10px; color: #8d8574; margin-top: 4px; }
.chap .txt { flex: 1 1 auto; min-width: 0; }
.chap h2 { border: 0; padding: 0; }
.rooms { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #8d8574; margin: 0 0 8px; }
.toc { columns: 3; font-size: 12px; margin: 0 0 6px; padding-left: 18px; }

/* tech comparison */
.cmp { display: flex; gap: 12px; justify-content: center; text-align: center; margin: 6px 0 12px; }
.cmp div { flex: 0 1 50%; }
.cmp img { width: 100%; height: auto; max-width: 352px; }

/* status lamps */
table.status { border-collapse: collapse; width: 100%; margin: 4px 0 14px; font-size: 12px; }
table.status td { padding: 6px 8px; border-bottom: 1px solid #1d1710; vertical-align: top; }
table.status td.l { width: 24px; padding-right: 0; }
table.status td.s { width: 92px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.s-done { color: #ffc83c; } .s-work { color: #d9b46a; } .s-todo { color: #6f6858; }
.nodl { text-align: center; padding: 14px; margin: 6px 0 16px; background: #000; border: 1px dashed #5a4824; }
.nodl b { color: #ffc83c; font-size: 15px; letter-spacing: .08em; }

/* counter */
.counter { text-align: center; line-height: 0; margin: 2px 0 4px; }
.counter + p { text-align: center; }

/* footer */
#foot { clear: both; padding: 2px 16px 12px; text-align: center; font-size: 11px; color: #8d8574; border-top: 1px solid #2a2114; background: #080706; }
#foot p { margin: 0 0 6px; }
#foot .legal { font-size: 10px; color: #6f6858; max-width: 640px; margin: 0 auto 8px; }
#foot .fnav a { color: #a99f88; border: 0; }
#foot .fnav a:hover { color: #ffc83c; }
.badges { line-height: 0; margin: 8px 0 !important; }
.badges img { margin: 0 2px 4px; }

/* lightbox (js/site.js); without JS the thumbnails simply open the picture */
#lb { position: fixed; inset: 0; background: rgba(0, 0, 0, .92); display: none; z-index: 9; align-items: center; justify-content: center; flex-direction: column; }
#lb.on { display: flex; }
#lb img { max-width: 96vw; max-height: 80vh; width: auto; height: auto; border: 1px solid #4a3a1c; padding: 3px; background: #000; image-rendering: pixelated; }
#lb p { color: #c9c1b0; font-size: 12px; margin: 8px 0 0; text-align: center; }
#lb .bt { margin-top: 8px; display: flex; gap: 6px; }
#lb button { font: 11px Verdana, sans-serif; color: #c9c1b0; background: #1d1810; border: 1px solid; border-color: #5a4824 #000 #000 #5a4824; padding: 3px 10px; cursor: pointer; }
#lb button:hover, #lb button:focus { color: #fff1c4; background: #2a2112; }
#lb button:active { border-color: #000 #5a4824 #5a4824 #000; }

/* ------------------------------------------------ narrow screens: the fixed column lets go */
@media (max-width: 800px) {
  body { padding: 0 0 12px; font-size: 14px; }
  #page { width: auto; border-left: 0; border-right: 0; box-shadow: none; outline: 0; }
  #top img { width: 100%; height: auto; }
  #nav { flex-wrap: wrap; }
  #nav li { flex: 0 0 33.333%; }
  #nav a { height: auto; aspect-ratio: 130 / 26; }
  #crumb .r { display: none; }
  #cols { display: block; }
  #cols #content, #content { width: auto; padding: 12px 12px 4px; }
  #side { width: auto; padding: 0 12px 4px; }
  .wide { padding: 12px 12px 4px; }
  h1 img, h2 img { max-width: 100%; height: auto; }
  .fr, .fl { float: none; max-width: none; margin: 4px 0 12px; }
  .gif img, .keyart img { max-width: 100%; height: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px 8px; }
  .th img { width: 100%; height: auto; }
  .th a { max-width: 100%; box-sizing: border-box; }
  .chap, .chap-r { flex-direction: column; gap: 6px; }
  .chap .shot { flex: none; width: 100%; }
  .chap .shot a { max-width: 100%; box-sizing: border-box; }
  .chap .shot img { width: 100%; height: auto; }
  .toc { columns: 2; }
  .cmp { flex-direction: column; }
  .cmp div { flex: none; }
  .minis { flex-wrap: wrap; justify-content: center; }
  .minis img { width: 140px; height: 105px; }
  table.facts th { white-space: normal; width: 38%; }
  #foot .legal { font-size: 11px; }
  .boxb { font-size: 13px; }
  .nd { font-size: 11px; }
}
