/* Comic-book blog theme */

:root {
  --ink: #141414;
  --paper: #fdf6e3;
  --yellow: #ffd500;
  --red: #e63946;
  --blue: #1d5fa8;
  --blue-light: #4a90d9;
  --banner-h: 190px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding-top: var(--banner-h);
  background: #2b2b3a;
  background-image: radial-gradient(#ffffff14 1.5px, transparent 1.6px);
  background-size: 14px 14px;
  color: var(--ink);
  font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

/* ---- Fixed banner: the whole composition stays visible at any width.
        A blurred, darkened copy of the art bleeds to the edges so the
        banner still feels full-bleed on wide screens. ---- */
.banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--banner-h);
  background: #0d0d14;
  border-bottom: 5px solid var(--ink);
  z-index: 100;
  box-shadow: 0 4px 0 rgba(0,0,0,.35);
  overflow: hidden;
}
.banner::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: url('banner.jpg') center 30% / cover no-repeat;
  filter: blur(16px) brightness(.5) saturate(1.3);
}
.banner-link {
  text-decoration: none;
  display: block;
  height: 100%;
  position: relative;
  background: url('banner.jpg') center / contain no-repeat;
}
.banner-title {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(to right, rgba(0,0,0,.55), rgba(0,0,0,.15) 30%, rgba(0,0,0,.15) 70%, rgba(0,0,0,.55));
}
.banner-title h1 {
  font-family: 'Bangers', cursive;
  font-size: 64px;
  letter-spacing: 3px;
  color: var(--yellow);
  margin: 0;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 4px 0 var(--ink);
}
.banner-title p {
  margin: 2px 0 0;
  color: #fff;
  font-weight: bold;
  font-size: 19px;
  text-shadow: 2px 2px 0 var(--ink);
}

/* ---- Layout: sidebar 1/3, feed 2/3 ---- */
.page { max-width: 1200px; margin: 0 auto; padding: 24px 16px 60px; }
.layout { display: flex; gap: 24px; align-items: flex-start; }
.sidebar { flex: 0 0 33%; min-width: 0; }
.feed { flex: 0 0 calc(67% - 24px); min-width: 0; }

/* ---- Panels & cards ---- */
.panel, .card {
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(0,0,0,.45);
  padding: 18px 20px;
  margin-bottom: 24px;
}
.panel h3, .comments-title {
  font-family: 'Bangers', cursive;
  font-size: 30px;
  letter-spacing: 2px;
  margin: 0 0 12px;
  color: var(--red);
  -webkit-text-stroke: 1px var(--ink);
  text-shadow: 2px 2px 0 var(--ink);
}
.card-title {
  font-family: 'Bangers', cursive;
  font-size: 38px;
  letter-spacing: 1px;
  margin: 0 0 6px;
  line-height: 1.1;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--blue); }
.meta { font-size: 14px; color: #555; margin-bottom: 10px; }
.meta .date { font-weight: bold; margin-right: 8px; }

/* ---- Tags ---- */
.tag {
  display: inline-block;
  background: var(--blue-light);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 1px 10px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  margin: 0 4px 4px 0;
  box-shadow: 2px 2px 0 var(--ink);
}
.tag:hover { background: var(--blue); }
.tag.active { background: var(--red); }
.tag-cloud { line-height: 2; }
.clear-filter { margin: 10px 0 0; font-size: 14px; }
.filter-note {
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(0,0,0,.4);
  padding: 8px 14px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* ---- Previous posts ---- */
.prev-list { list-style: none; margin: 0; padding: 0; }
.prev-list li { margin-bottom: 10px; line-height: 1.3; }
.prev-list li.current a { color: var(--red); }
.prev-list a { font-weight: bold; color: var(--blue); text-decoration: none; }
.prev-list a:hover { text-decoration: underline; }
.prev-date { display: block; font-size: 13px; color: #777; }

/* ---- Article body ---- */
.body h1, .body h2, .body h3, .body h4 {
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
  margin: 1.2em 0 .4em;
}
.body pre {
  background: #1e1e2e; color: #f8f8f2;
  border: 3px solid var(--ink);
  padding: 12px; overflow-x: auto;
  font-size: 14px;
}
.body code { background: #eee; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.body pre code { background: none; padding: 0; }
.body blockquote {
  border-left: 6px solid var(--red);
  background: #fff;
  margin: 1em 0; padding: 8px 16px;
  border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.body img { max-width: 100%; border: 3px solid var(--ink); }
.body table { width: 100%; border-collapse: collapse; margin: 1em 0; border: 4px solid var(--ink); box-shadow: 6px 6px 0 rgba(0,0,0,.45); background: #fff; }
.body th, .body td { border: 2px solid var(--ink); padding: 8px 10px; text-align: left; }
.body th { background: var(--ink); color: var(--yellow); font-family: 'Bangers', cursive; letter-spacing: 1px; font-size: 18px; }
.body a { color: var(--blue); font-weight: bold; }
.excerpt p { margin: 0 0 8px; }

.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.readmore {
  font-family: 'Bangers', cursive;
  font-size: 22px; letter-spacing: 1px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 4px 16px;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  display: inline-block;
}
.readmore:hover { background: var(--red); color: #fff; }
.comments-link { font-size: 14px; color: var(--blue); font-weight: bold; text-decoration: none; }

/* ---- Load more ---- */
.load-more {
  display: block;
  width: 100%;
  font-family: 'Bangers', cursive;
  font-size: 28px; letter-spacing: 2px;
  background: var(--red); color: #fff;
  border: 4px solid var(--ink);
  padding: 10px;
  cursor: pointer;
  box-shadow: 5px 5px 0 rgba(0,0,0,.45);
  -webkit-text-stroke: 1px var(--ink);
  text-shadow: 2px 2px 0 var(--ink);
}
.load-more:hover:not(:disabled) { background: var(--blue); }
.load-more:disabled { opacity: .6; cursor: wait; }

/* ---- Comments ---- */
.comment {
  border: 3px solid var(--ink);
  background: #fff;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: 3px 3px 0 rgba(0,0,0,.3);
}
.comment-head { font-size: 15px; margin-bottom: 4px; }
.comment-date { color: #777; font-size: 13px; margin-left: 8px; }
.comment-form-title { font-family: 'Bangers', cursive; font-size: 26px; letter-spacing: 1px; margin: 22px 0 10px; }
.comment-form label { display: block; margin-bottom: 12px; font-weight: bold; }
.comment-form small { font-weight: normal; color: #666; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form textarea {
  display: block; width: 100%;
  font: inherit; padding: 8px;
  border: 3px solid var(--ink); border-radius: 0;
  background: #fff;
}
.honeypot { position: absolute; left: -9999px; }
.notice {
  background: #d4edda; border: 3px solid var(--ink);
  padding: 10px 14px; font-weight: bold;
}
.empty { color: #666; font-style: italic; }

.btn, button.btn {
  font-family: 'Bangers', cursive;
  font-size: 22px; letter-spacing: 1px;
  background: var(--blue); color: #fff;
  border: 3px solid var(--ink);
  padding: 6px 20px; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  -webkit-text-stroke: 1px var(--ink);
}
.btn:hover { background: var(--red); }
.btn.danger { background: var(--red); }
.btn.small { font-size: 17px; padding: 3px 12px; }

/* ---- Admin ---- */
.admin-wrap { max-width: 900px; margin: 0 auto; }
.admin-nav { margin-bottom: 18px; }
.admin-nav a { margin-right: 8px; }
table.admin-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 4px solid var(--ink); box-shadow: 6px 6px 0 rgba(0,0,0,.45); }
table.admin-table th, table.admin-table td { border: 2px solid var(--ink); padding: 8px 10px; text-align: left; font-size: 15px; }
table.admin-table th { background: var(--ink); color: var(--yellow); font-family: 'Bangers', cursive; letter-spacing: 1px; font-size: 18px; }
.inline-form { display: inline; }
.editor label { display: block; margin-bottom: 12px; font-weight: bold; }
.editor input[type=text], .editor input[type=datetime-local], .editor textarea {
  display: block; width: 100%; font: inherit; padding: 8px;
  border: 3px solid var(--ink); background: #fff;
}
.editor textarea { font-family: monospace; font-size: 15px; }
.hint { font-weight: normal; font-size: 13px; color: #555; }
.login-box { max-width: 420px; margin: 40px auto; }

.footer { text-align: center; color: #ccc; font-size: 14px; margin-top: 30px; }
.footer a { color: var(--yellow); font-weight: bold; }

/* ---- Small screens ---- */
@media (max-width: 800px) {
  :root { --banner-h: 140px; }
  .banner-title h1 { font-size: 40px; }
  .banner-title p { font-size: 15px; }
  .layout { flex-direction: column; }
  .sidebar, .feed { flex: 1 1 auto; width: 100%; }
}
