/* OUTRAGE! - mid-90s personal home page styling. No images needed. */

body {
  margin: 0;
  padding: 12px 8px;
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  color: #000;
  /* tiled "brick" background */
  background-color: #5a0000;
  background-image:
    linear-gradient(#3a0000 2px, transparent 2px),
    linear-gradient(90deg, #3a0000 2px, transparent 2px);
  background-size: 48px 24px;
}

.page {
  max-width: 820px;
  margin: 0 auto;
  background: #c0c0c0;
  border: 4px outset #e0e0e0;
}

a         { color: #0000ee; }
a:visited { color: #551a8b; }
a:hover   { color: #ff0000; }

/* ---------- masthead ---------- */
.masthead {
  text-align: center;
  padding: 10px 6px;
  background: linear-gradient(#000 0%, #400 40%, #c00 75%, #ff8c00 100%);
  border-bottom: 4px ridge #ff0000;
}
.flames-row { font-size: 22px; letter-spacing: 6px; }
.logo { margin: 4px 0; }
.logo a {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 72px;
  letter-spacing: 6px;
  color: #ffff00;
  text-decoration: none;
  text-shadow: 3px 3px 0 #ff0000, 6px 6px 0 #000;
  animation: shake 0.4s infinite;
  display: inline-block;
}
.tagline { color: #fff; font-style: italic; font-weight: bold; }

.navbar {
  text-align: center;
  padding: 6px;
  background: #000080;
  color: #fff;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 14px;
}
.navbar a { color: #ffff00; text-decoration: none; }
.navbar a:hover { text-decoration: underline; }

.ticker {
  display: block;
  background: #000;
  color: #00ff00;
  font-family: "Courier New", monospace;
  padding: 4px 0;
}

/* ---------- layout ---------- */
.layout { border-collapse: collapse; }
.main { background: #fff; border-right: 3px groove #808080; }
.side { background: #c0c0c0; font-family: Arial, sans-serif; font-size: 14px; }

.section-title {
  font-family: "Arial Black", sans-serif;
  color: #ff0000;
  border-bottom: 3px double #ff0000;
  margin-top: 0;
}

/* ---------- front page post cards ---------- */
.post-card {
  border: 2px solid #000;
  background: #ffffcc;
  padding: 10px 14px;
  margin: 0 0 16px;
  box-shadow: 4px 4px 0 #808080;
}
.post-card-title { margin: 0 0 4px; font-family: "Arial Black", sans-serif; font-size: 20px; }
.post-card-title a { color: #cc0000; }
.read-more { font-weight: bold; font-size: 14px; }
.post-meta { font-size: 13px; color: #555; font-family: "Courier New", monospace; margin-bottom: 8px; }
.flames { letter-spacing: 2px; }

/* ---------- sidebar ---------- */
.side-box { border: 2px inset #fff; background: #d8d8d8; padding: 8px; margin-bottom: 12px; }
.side-title { background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font-weight: bold; padding: 2px 6px; margin: -8px -8px 8px; }
.archive { padding-left: 16px; margin: 0; }
.archive li { margin: 4px 0; }
.archive-date { font-family: "Courier New", monospace; font-size: 11px; color: #555; }
.mood { font-size: 40px; margin: 0; }

/* ---------- single post page ---------- */
.post-page { background: #fff; padding: 16px 20px; }
article.post h1 {
  font-family: Impact, "Arial Black", sans-serif;
  color: #cc0000;
  font-size: 36px;
  margin: 0 0 4px;
  letter-spacing: 1px;
}
article.post h2 { font-family: "Arial Black", sans-serif; color: #000080; font-size: 20px; }
article.post p { line-height: 1.45; }
article.post blockquote {
  background: #ffffcc;
  border-left: 6px solid #ff0000;
  margin: 12px 0;
  padding: 8px 12px;
  font-style: italic;
}
article.post .yell {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 26px;
  color: #ff0000;
  text-align: center;
  text-transform: uppercase;
}
article.post .update {
  border: 2px dashed #000080;
  background: #e0e0ff;
  padding: 6px 10px;
  font-family: "Courier New", monospace;
  font-size: 14px;
}
article.post img { max-width: 100%; border: 3px ridge #808080; }
article.post .video { position: relative; aspect-ratio: 16 / 9; border: 3px ridge #808080; background: #000; margin: 12px 0; }
article.post .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 20px;
  background: #c0c0c0;
  border-top: 3px groove #808080;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 14px;
}
.post-nav .disabled { color: #808080; }

/* ---------- footer ---------- */
#site-footer { text-align: center; padding: 6px 12px 12px; }
.flame-hr { height: 6px; border: 0; background: linear-gradient(90deg, #ff0, #f80, #f00, #f80, #ff0); }
.counter { font-family: "Courier New", monospace; background: #000; color: #0f0; padding: 1px 6px; letter-spacing: 2px; }

/* ---------- misc ---------- */
.center { text-align: center; }
.tiny { font-size: 11px; }
.blink { animation: blink 1s steps(1) infinite; }

@keyframes blink { 50% { visibility: hidden; } }
@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-1px, 1px); }
  75% { transform: translate(1px, -1px); }
}
@media (prefers-reduced-motion: reduce) {
  .logo a, .blink { animation: none; }
}

/* phones: stack sidebar under the posts */
@media (max-width: 640px) {
  .logo a { font-size: 48px; }
  .layout, .layout tbody, .layout tr, .layout td { display: block; width: auto !important; }
  .main { border-right: 0; border-bottom: 3px groove #808080; }
  .post-page { padding: 12px; }
}
