/*
Theme Name: Hell-World Ownz
Theme URI: https://hell-world.org/ownz
Author: hellboy726
Author URI: https://hell-world.org
Description: A 1990s/2000s GeoCities-style WordPress theme for Hell-World Ownz. Lime pixel titles, flame torches, a blue genie, a live analog clock, and Win95 beveled chrome. Music stays off until the visitor turns it on.
Version: 1.0.8
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hell-world-ownz
Tags: blog, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --lime: #33ff00;
  --hell: #cc2200;
  --ember: #ff6600;
  --text: #f3f3f3;
  --muted: #b4b4b4;
  --panel: #111111;
  --chrome: #c0c0c0;
  --font-body: Verdana, Geneva, Tahoma, sans-serif;
  --font-title: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  --font-ui: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

body {
  background-image:
    radial-gradient(1px 1px at 12px 18px, #5a5a5a 50%, transparent 51%),
    radial-gradient(1px 1px at 72px 44px, #3a3a3a 50%, transparent 51%),
    radial-gradient(1px 1px at 140px 8px, #7a7a7a 50%, transparent 51%),
    radial-gradient(1px 1px at 188px 70px, #444 50%, transparent 51%),
    radial-gradient(1px 1px at 40px 96px, #2a1010 50%, transparent 51%),
    radial-gradient(1px 1px at 160px 110px, #3a1208 50%, transparent 51%);
  background-size: 220px 140px;
  min-height: 100vh;
}

a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--chrome);
  color: #000;
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

.stage {
  width: 960px;
  max-width: 96%;
  margin: 18px auto 40px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 8px 4px;
}
.torch {
  width: 110px;
  flex: 0 0 110px;
}
.brand {
  flex: 1;
  text-align: center;
}
.site-title {
  margin: 0;
  font-family: "VT323", "Courier New", Courier, monospace;
  font-size: 86px;
  line-height: 0.9;
  font-weight: 400;
  color: var(--lime);
  text-shadow: 2px 2px 0 #003300;
  letter-spacing: 1px;
}
.site-title a { color: var(--lime); text-decoration: none; }
.site-title a:hover { text-decoration: none; color: #66ff33; }
.site-tagline {
  margin: 8px 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.flame {
  display: block;
  width: 100%;
  max-width: 110px;
  height: auto;
  margin: 0 auto;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
}
.flame.flip { transform: scaleX(-1); }

.nav {
  padding: 10px 8px 16px;
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li { margin: 0; }
.nav a {
  display: inline-block;
  background: var(--chrome);
  color: #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border: 2px solid;
  border-color: #fff #555 #555 #fff;
  text-decoration: none;
}
.nav a:hover {
  background: #d8d8d8;
  text-decoration: none;
}
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a,
.nav .current_page_parent > a {
  background: #a8a8a8;
  border-color: #555 #fff #fff #555;
}
.nav .sub-menu {
  display: none;
}

.layout {
  display: flex;
  gap: 0;
  background: var(--panel);
  border: 2px solid;
  border-color: #666 #222 #222 #666;
}
.main {
  flex: 1;
  min-width: 0;
  padding: 18px 22px 28px;
  border-right: 2px solid #333;
}
.sidebar {
  width: 250px;
  flex: 0 0 250px;
  padding: 12px;
  background: #0a0a0a;
}

.page-title {
  margin: 0 0 18px;
  font-family: var(--font-title);
  font-size: 22px;
  color: #fff;
  border-bottom: 1px dotted #444;
  padding-bottom: 8px;
}
.archive-description {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.post {
  margin: 0 0 28px;
  padding: 0 0 18px;
  border-bottom: 1px dotted #444;
}
.main .post:last-of-type,
.single .post,
.page .post {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.post-title {
  margin: 0 0 6px;
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
}
.post-title a { color: #fff; }
.post-title a:hover { color: var(--lime); text-decoration: none; }
.meta {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}
.meta a { color: var(--muted); }
.meta a:hover { color: var(--lime); }
.post-excerpt p,
.post-content p {
  margin: 0 0 12px;
}

.new-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  background: #ffee00;
  color: #cc0000;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border: 2px solid #cc0000;
  animation: newpulse 1.6s steps(2) infinite;
}
@keyframes newpulse {
  0%, 49% { filter: none; }
  50%, 100% { filter: brightness(1.25); }
}

.btn,
.more-link,
.post-password-form input[type="submit"],
.comment-form input[type="submit"] {
  display: inline-block;
  background: var(--chrome);
  color: #000 !important;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border: 2px solid;
  border-color: #fff #555 #555 #fff;
  text-decoration: none !important;
  cursor: pointer;
}
.btn:hover,
.more-link:hover,
.post-password-form input[type="submit"]:hover,
.comment-form input[type="submit"]:hover {
  background: #ddd;
}

.post-thumbnail {
  margin: 0 0 14px;
}
.post-thumbnail img {
  max-width: 100%;
  height: auto;
  border: 2px solid;
  border-color: #555 #aaa #aaa #555;
  display: block;
}

.post-content {
  word-wrap: break-word;
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-family: var(--font-title);
  color: #fff;
  line-height: 1.3;
  margin: 1.2em 0 0.4em;
}
.post-content a { color: var(--lime); }
.post-content font,
.post-content [style*="color: #000"],
.post-content [style*="color:#000"],
.post-content [style*="color: black"],
.post-content [style*="color:black"],
.post-content [style*="color: #000000"],
.post-content [style*="color:#000000"] {
  color: inherit !important;
}
.post-content img,
.post-content figure {
  max-width: 100%;
  height: auto;
}
.post-content ul,
.post-content ol {
  margin: 0 0 12px;
  padding-left: 24px;
}
.post-content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  color: #ff6666;
  font-style: italic;
  border: 4px double var(--hell);
}
.post-content pre,
.post-content code {
  font-family: "Courier New", Courier, monospace;
  background: #1a1a1a;
  color: #c8c8c8;
}
.post-content pre {
  padding: 12px;
  overflow: auto;
  border: 1px solid #333;
  margin: 0 0 12px;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
  font-size: 14px;
}
.post-content th,
.post-content td {
  border: 1px solid #444;
  padding: 6px 8px;
}
.post-content .alignleft { float: left; margin: 0 16px 8px 0; }
.post-content .alignright { float: right; margin: 0 0 8px 16px; }
.post-content .aligncenter { display: block; margin: 0 auto 12px; }
.post-content .wp-caption { max-width: 100%; }
.post-content .wp-caption-text {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: var(--muted);
}

.page-links {
  margin: 16px 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}

.pagination,
.post-navigation {
  margin: 22px 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}
.pagination .nav-links,
.post-navigation .nav-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span,
.post-navigation a {
  display: inline-block;
  background: var(--chrome);
  color: #000;
  min-width: 1.8em;
  text-align: center;
  padding: 3px 7px;
  border: 2px solid;
  border-color: #fff #555 #555 #fff;
  text-decoration: none;
}
.pagination .dots {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  min-width: 0;
  padding: 3px 2px;
}
.page-jump {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  color: var(--muted);
}
.page-jump input[type="number"] {
  width: 5.5em;
  background: #fff;
  color: #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  padding: 3px 6px;
  border: 2px solid;
  border-color: #444 #fff #fff #444;
}
.pagination .current {
  background: #a8a8a8;
  border-color: #555 #fff #fff #555;
}

.widget {
  background: #141414;
  margin: 0 0 12px;
  padding: 10px 8px 12px;
  border: 2px solid;
  border-color: #666 #222 #222 #666;
  text-align: center;
}
.widget-title,
.widget h2,
.widget h3 {
  margin: 0 0 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}
.widget li {
  margin: 0;
  padding: 3px 4px;
  border-bottom: 1px dotted #333;
}
.widget li:last-child { border-bottom: 0; }
.widget select {
  width: 100%;
  font-family: "Courier New", Courier, monospace;
}

.genie-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}
.genie {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
}

.clock-wrap { padding: 4px 0 2px; }
.clock {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto;
  background: radial-gradient(circle at 50% 50%, #1a1a1a 0 58%, #0a0a0a 59% 100%);
  border: 8px solid #8a8a8a;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 3px #222,
    2px 2px 0 #333,
    -1px -1px 0 #ccc;
}
.clock .tick {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 2px;
  height: 10px;
  background: var(--lime);
  transform-origin: 50% 74px;
}
.clock .tick.hour {
  height: 14px;
  width: 3px;
  top: 8px;
  transform-origin: 50% 76px;
  background: #fff;
}
.clock .num {
  position: absolute;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: var(--lime);
  font-weight: 700;
}
.hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: 50% 100%;
  background: #eee;
  border-radius: 2px;
}
.hand.hour { width: 6px; height: 42px; margin-left: -3px; background: #f2f2f2; }
.hand.minute { width: 4px; height: 58px; margin-left: -2px; background: #ddd; }
.hand.second { width: 2px; height: 64px; margin-left: -1px; background: var(--hell); }
.clock .cap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--hell);
  border: 2px solid #eee;
  border-radius: 50%;
}
.clock-caption {
  margin: 8px 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: var(--muted);
}

.search-form,
.widget .search-form {
  display: flex;
  gap: 4px;
}
.search-form label { flex: 1; min-width: 0; }
.search-form .search-field,
.search-form input[type="search"] {
  width: 100%;
  background: #fff;
  color: #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  padding: 4px 6px;
  border: 2px solid;
  border-color: #444 #fff #fff #444;
}
.search-form .search-submit,
.search-form button {
  background: var(--chrome);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border: 2px solid;
  border-color: #fff #555 #555 #fff;
  cursor: pointer;
}

.counter {
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  letter-spacing: 4px;
  color: #ff3333;
  background: #000;
  border: 2px solid;
  border-color: #444 #aaa #aaa #444;
  padding: 4px 8px;
  display: inline-block;
}

.comments {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dotted #444;
}
.comments-title,
.comment-reply-title {
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  color: #fff;
}
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list .comment {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #0a0a0a;
  border: 2px solid;
  border-color: #444 #222 #222 #444;
}
.comment-list .children {
  list-style: none;
  margin: 10px 0 0 16px;
  padding: 0;
}
.comment-meta {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: var(--muted);
}
.comment-form label {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  margin-top: 8px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: #fff;
  color: #000;
  font-family: var(--font-body);
  padding: 6px;
  border: 2px solid;
  border-color: #444 #fff #fff #444;
}

.footer {
  margin-top: 0;
  padding: 14px 12px 18px;
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: var(--muted);
  background: #0a0a0a;
  border: 2px solid;
  border-color: #333 #111 #111 #333;
  border-top: 0;
}
.footer p { margin: 0 0 8px; }
.footer-signature {
  margin: 0 0 12px;
}
.footer-signature img {
  display: inline-block;
  max-width: 224px;
  height: auto;
  border: 0;
  image-rendering: auto;
}
.music-btn {
  background: var(--chrome);
  color: #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border: 2px solid;
  border-color: #fff #555 #555 #fff;
  cursor: pointer;
}
.badges {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  background: #000088;
  color: #ffff00;
  font-size: 10px;
  padding: 4px 6px;
  border: 2px outset #888;
}
.badge.ie { background: #003399; color: #fff; }
.badge.ns { background: #990000; color: #fff; }

.error-404 {
  text-align: center;
  padding: 20px 8px 32px;
}
.error-404 h1 {
  font-family: "VT323", "Courier New", Courier, monospace;
  font-size: 64px;
  color: var(--lime);
  margin: 0 0 8px;
}
.construction {
  display: inline-block;
  margin: 12px 0 18px;
  padding: 8px 16px;
  background: #ffee00;
  color: #000;
  font-family: "Courier New", Courier, monospace;
  font-weight: 900;
  border: 4px solid #000;
  box-shadow: 4px 4px 0 #cc2200;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

@media (max-width: 800px) {
  .layout { flex-direction: column; }
  .sidebar { width: auto; flex-basis: auto; }
  .main { border-right: 0; border-bottom: 2px solid #333; }
  .site-title { font-size: 56px; }
  .torch { width: 72px; flex-basis: 72px; }
  .flame { max-width: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .new-badge { animation: none; }
}
