/* Dracula's Cave — recreation of the WordPress "Skeptical" look */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: #efefef; /* matches the banner GIF background exactly */
  color: #555;
  font: 14px/1.6 Helvetica, Arial, sans-serif;
}

a:link, a:visited { color: #000; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 940px; margin: 0 auto; padding: 0 15px; }

/* ---------- header ---------- */
/* dark sliver at the very top holds only the nav; the page background
   starts right after it and runs either side of the banner GIF */
#masthead {
  background: #333 linear-gradient(180deg, #3a3a3a, #2d2d2d);
  border-bottom: 2px solid #222;
}

#navigation { display: flex; justify-content: space-between; flex-wrap: wrap; }
#navigation ul { list-style: none; display: flex; flex-wrap: wrap; }
#navigation li a {
  color: #fff;
  display: block;
  font-size: 15px;
  font-weight: bold;
  line-height: 42px;
  margin-right: 20px;
}
#navigation .nav-rss li a { margin-right: 0; }

#branding { margin: 30px auto 40px; }
#branding img { display: block; max-width: 100%; height: auto; margin: 0 auto; }

/* ---------- layout ---------- */
.main-wrap { display: flex; gap: 40px; align-items: flex-start; }
#content { flex: 1; min-width: 0; padding-bottom: 40px; }
#sidebar { width: 220px; flex-shrink: 0; padding-bottom: 40px; }

/* ---------- posts ---------- */
/* each article sits in its own white box, as in the original theme */
.post {
  background: #fff;
  border-right: 1px solid #e3e3e3;
  border-bottom: 1px solid #e3e3e3;
  padding: 20px;
  margin-bottom: 40px;
}

.post .title, .post .title a {
  font: bold 30px/1.1 Arial, Helvetica, sans-serif;
  color: #000;
  word-wrap: break-word;
}
.post .title { margin: 0 0 12px; }
.post .title a:hover { text-decoration: none; }
h2.title, h2.title a { font-size: 24px; }

.post-meta {
  color: #999;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* dark meta badge that juts out to the left of the post box on wide screens.
   Above 1200px the main wrap widens to reserve a 200px column for the badges,
   so the whole composition (badges + posts + sidebar) stays centered. */
.post-side { display: none; }
@media (min-width: 1200px) {
  .container.main-wrap { max-width: 1120px; padding-left: 195px; }
  .post { position: relative; }
  .post-side {
    display: block;
    position: absolute;
    top: 20px;
    right: 100%;
    margin-right: 18px; /* arrow tip almost touches the box */
    width: 165px;
  }
  /* badge replaces the inline meta line */
  .post-side ~ .post-meta { display: none; }

  .ps-date {
    position: relative;
    background: #333;
    color: #fff;
    font: bold 17px/1 Arial, Helvetica, sans-serif;
    padding: 11px 15px 10px;
    margin-bottom: 1px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
  }
  .ps-date::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    margin-top: -10px;
    border: 10px solid transparent;
    border-left-color: #333;
  }
  .post-side ul { list-style: none; background: #333; }
  .post-side ul li {
    padding: 7px 15px 8px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    /* embossed row divider, as in the original theme */
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  }
  .post-side ul li:last-child { border-bottom: none; }
  .post-side ul li a { color: #fff; }
  .ps-pre { color: #999; font-weight: normal; }
}
.post-meta a { color: #999; }
.post-meta a:hover { color: #000; }

.entry { overflow-wrap: break-word; }
.entry p, .entry ul, .entry ol, .entry blockquote, .entry figure { margin-bottom: 1.4em; }
.entry h2, .entry h3, .entry h4 { color: #000; margin: 1.6em 0 0.6em; font-family: Arial, Helvetica, sans-serif; }
.entry h2 { font-size: 22px; }
.entry h3 { font-size: 18px; }
.entry h4 { font-size: 15px; }
.entry ul, .entry ol { padding-left: 1.6em; }
.entry img { max-width: 100%; height: auto; display: block; margin: 1.4em auto; }
.entry img.banner { width: 100%; } /* wide images always fill the column */
.entry a { border-bottom: 1px dotted #999; }
.entry a:hover { text-decoration: none; border-bottom-style: solid; }
.entry a:has(img) { border-bottom: none; }
.entry blockquote {
  border-left: 3px solid #ccc;
  padding-left: 15px;
  color: #777;
  font-style: italic;
}
.entry figure figcaption {
  font-size: 12px;
  color: #888;
  font-style: italic;
  text-align: center;
  margin-top: -0.8em;
}
.entry iframe { max-width: 100%; }

.video-embed {
  aspect-ratio: 16 / 9;
  margin-bottom: 1.4em;
}
.video-embed iframe { width: 100%; height: 100%; border: 0; }

.post-tags { font-size: 12px; color: #999; margin-top: 20px; }
.post-tags a { color: #777; }

/* prev / next — its own small white box, like the original nav-entries */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border-right: 1px solid #e3e3e3;
  border-bottom: 1px solid #e3e3e3;
  padding: 12px 20px;
  margin-bottom: 40px;
  font-size: 13px;
}
.post-nav-next { text-align: right; }

/* ---------- home / listing ---------- */
.excerpt { padding-bottom: 10px; }
.excerpt-thumb { display: block; margin: 14px 0 15px; border-bottom: none !important; }
.excerpt-thumb img {
  display: block;
  width: 100%;
  height: auto; /* natural aspect ratio — never crop, but always fill */
}
.read-more {
  display: inline-block;
  background: #333;
  color: #fff !important;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  margin: 18px 0 10px;
}
.read-more:hover { background: #000; text-decoration: none; }

.archive-year { margin: 1.6em 0 0.6em; color: #000; }
.post-list { list-style: none; }
.post-list li { padding: 6px 0; border-bottom: 1px dotted #ddd; display: flex; gap: 15px; }
.post-list .pl-date { color: #999; font-size: 12px; white-space: nowrap; width: 85px; flex-shrink: 0; padding-top: 2px; }

.pagination { display: flex; justify-content: space-between; margin-bottom: 40px; }

/* ---------- sidebar ---------- */
.widget { margin-bottom: 35px; font-size: 13px; }

.search-form { display: flex; gap: 6px; }
.search-form input {
  flex: 1;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #ccc;
  background: #fff;
  font: 13px Helvetica, Arial, sans-serif;
  color: #555;
}
.search-form button {
  background: #333;
  color: #fff;
  border: 0;
  font: bold 11px Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 14px;
  cursor: pointer;
}
.search-form button:hover { background: #000; }

/* search results */
.post-list li.search-hit { display: block; padding: 10px 0; }
.search-hit a { font-weight: bold; }
.search-hit .hit-date { color: #999; font-size: 12px; margin-left: 8px; }
.search-hit .hit-snippet { color: #777; font-size: 13px; margin: 4px 0 0; }
.search-hit mark { background: #ffe9a8; padding: 0 1px; }
.widget h3 {
  font: bold 18px Arial, Helvetica, sans-serif;
  color: #000;
  text-transform: uppercase;
  /* embossed divider, replicating the theme's indentline.png */
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 0 0 15px;
  margin: 0 0 10px;
}
.widget ul { list-style: none; }
.widget ul li { padding: 4px 0; border-bottom: 1px dotted #ddd; }
.widget p { margin-bottom: 12px; }
.widget img { max-width: 100%; height: auto; }

/* the Lion Quest Infinity promo stack with the little Dracula */
.lqi-promo { position: relative; left: 0; top: 0; }
.lqi-promo img.lqi-main { max-width: 200px; height: auto; }
.lqi-promo img.lqi-banner { position: relative; bottom: 10px; }
.lqi-promo img.lqi-ground { position: absolute; bottom: -10px; left: 0; }
.lqi-promo img.lqi-dracula { position: absolute; bottom: -10px; left: 150px; }
.lqi-promo img.lqi-front { position: absolute; bottom: -10px; left: 0; }

/* ---------- footer ---------- */
#colophon {
  background: #dedede;
  border-top: 1px solid #ccc;
  border-bottom: 2px solid #333;
  color: #999;
  font-size: 12px;
  padding: 25px 0;
}
#colophon a { color: #777; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .main-wrap { flex-direction: column; }
  #sidebar { width: 100%; }
  .post .title, .post .title a { font-size: 24px; }
}
