/* hubowski.com, 2002-style stylesheet (based on the "pixelnotes.blog" template),
   widened to 960px and made responsive: sidebar drops under the content below 760px. */
body {
  margin: 0;
  padding: 24px 0 60px 0;
  min-height: 100vh;
  background: #dde5ee repeating-linear-gradient(0deg, rgba(255,255,255,0.5) 0 1px, transparent 1px 4px);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 14px;
  color: #333333;
}
a { color: #4477bb; text-decoration: none; }
a:hover { color: #ee7733; text-decoration: underline; }
img { border: 0; max-width: 100%; }

#card {
  width: 960px;
  max-width: 100%;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #aabbcc;
  box-shadow: 2px 2px 0 rgba(150,165,185,0.4);
  box-sizing: border-box;
}

/* header */
#header {
  background: #6699cc;
  background: linear-gradient(180deg, #6699cc, #446699);
  padding: 24px 28px 20px 28px;
  border-bottom: 3px solid #ee7733;
}
#header .wordmark {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: -1px;
}
#header .wordmark a { color: #ffffff; text-decoration: none; }
#header .wordmark .tld { color: #ffcc66; }
#header .tagline {
  font-size: 11px;
  color: #ccddf0;
  margin-top: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* tab strip */
#nav {
  background: #f0f4f8;
  border-bottom: 1px solid #aabbcc;
  font-size: 13px;
  font-weight: bold;
}
#nav a, #nav span {
  display: inline-block;
  padding: 8px 18px;
  border-right: 1px solid #d0dae4;
}
#nav a.active { background: #ffffff; color: #ee7733; }
#nav span.soon { color: #99aabb; font-weight: normal; cursor: default; }
#nav span.soon small { font-size: 10px; }

/* layout table */
#layout { width: 100%; border-collapse: collapse; }
#content { vertical-align: top; padding: 22px 26px; line-height: 1.7; }
#sidebar {
  width: 240px;
  vertical-align: top;
  background: #f0f4f8;
  border-left: 1px solid #d0dae4;
  padding: 18px;
  color: #444444;
  font-size: 13px;
}

/* posts */
.post { margin-bottom: 28px; }
.post .date { font-size: 11px; color: #999999; text-transform: uppercase; letter-spacing: 1px; }
.post .title { font-family: 'Trebuchet MS', sans-serif; font-size: 22px; font-weight: bold; color: #446699; margin: 3px 0 10px 0; }
.post .title a { color: #446699; }
.post p { margin: 0 0 10px 0; }
.post .meta { font-size: 11px; color: #999999; margin-top: 10px; border-top: 1px dotted #cccccc; padding-top: 5px; }
.post img.inline {
  display: block;
  width: 100%; max-width: 576px; height: auto;   /* C64 screens: 384px wide, shown at 1.5x */
  border: 1px solid #aabbcc; padding: 3px; background: #ffffff; box-sizing: border-box;
  image-rendering: pixelated; image-rendering: crisp-edges;
}
.post .imgcap { font-size: 11px; color: #8899aa; margin: 3px 0 12px 0; }
.post .platform { font-size: 10px; color: #ffffff; background: #446699; padding: 1px 6px; border: 1px solid #aabbcc; vertical-align: middle; }
h2.section { font-family: 'Trebuchet MS', sans-serif; font-size: 17px; color: #ee7733; margin: 22px 0 10px 0; border-bottom: 1px dotted #cccccc; padding-bottom: 3px; }
.list { line-height: 1.9; }

/* photo gallery (thumbnails table, 2002-style) */
table.gallery { border-collapse: separate; border-spacing: 8px; margin: 0 -8px; }
table.gallery td { width: 150px; text-align: center; vertical-align: top; font-size: 11px; color: #8899aa; }
table.gallery img { width: 140px; height: 105px; object-fit: cover; border: 1px solid #aabbcc; padding: 2px; background: #ffffff; }
table.gallery a:hover img { border-color: #ee7733; }

/* sidebar modules */
.module { background: #ffffff; border: 1px solid #d0dae4; padding: 10px 12px; margin-bottom: 14px; }
.module .head { font-weight: bold; color: #ee7733; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.module .list a { display: block; margin-bottom: 4px; }
.module .currently { line-height: 1.8; }
.avatar {
  width: 100px; height: 100px; margin: 0 auto 6px auto;
  background: repeating-linear-gradient(45deg, #dde5ee 0 6px, #ffffff 6px 12px);
  border: 1px solid #aabbcc;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #8899aa; text-align: center;
}
.avatar img { width: 100px; height: 100px; display: block; }
.agecount { text-align: center; font-size: 11px; color: #8899aa; margin: -2px 0 8px 0; }
.agecount b { color: #446699; font-weight: bold; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.badges span { border: 1px solid #aabbcc; font-size: 10px; padding: 2px 6px; }
.badges .b1 { background: #446699; color: #ffffff; }
.badges .b2 { background: #ee7733; color: #ffffff; }
.badges .b3 { background: #333333; color: #99ee99; }
.badges .b4 { background: #ffffff; color: #446699; }
.finePrint { text-align: center; font-size: 10px; color: #8899aa; margin-top: 5px; }

/* footer bar */
#footer {
  background: #f0f4f8; border-top: 1px solid #d0dae4;
  padding: 10px 26px; font-size: 11px; color: #8899aa;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px;
}
#footer b { color: #446699; }

/* ---- narrow screens: single column, sidebar under the content ---- */
@media (max-width: 760px) {
  body { padding: 0 0 30px 0; font-size: 15px; }
  #card { width: 100%; border-left: 0; border-right: 0; box-shadow: none; }
  #header { padding: 18px 16px 14px 16px; }
  #header .wordmark { font-size: 30px; }
  #header .tagline { font-size: 10px; letter-spacing: 0.5px; }
  #nav { font-size: 14px; }
  #nav a, #nav span { padding: 9px 12px; }
  #layout, #layout tbody, #layout tr, #layout td { display: block; width: 100%; box-sizing: border-box; }
  #content { padding: 18px 16px; }
  #sidebar { width: 100%; border-left: 0; border-top: 1px solid #d0dae4; padding: 16px; font-size: 14px; }
  .post .title { font-size: 21px; }
  .post img.inline { max-width: 100%; }
  table.gallery td { width: 33%; }
  table.gallery img { width: 100%; height: auto; }
  #footer { padding: 10px 16px; }
}
