/*
Theme Name: Down-Lo Dispatch
Theme URI: https://bbs.winzlo.com/
Author: Winzlo
Description: A high-contrast retro-computing theme for The Down-Lo BBS, technology, and music.
Version: 1.0.0
Requires at least: 6.0
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: down-lo-dispatch
Tags: blog, one-column, two-columns, custom-menu, featured-images, threaded-comments, accessibility-ready, dark
*/

:root {
  --black: #000;
  --white: #fff;
  --cyan: #00ffff;
  --green: #39ff14;
  --yellow: #fff200;
  --red: #ff3b3b;
  --blue: #247cff;
  --panel: #080808;
  --rule: #fff;
  --max: 80rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 1.125rem/1.7 "Courier New", Courier, monospace;
}
a { color: var(--cyan); text-decoration-thickness: .13em; text-underline-offset: .16em; }
a:hover, a:focus { color: var(--black); background: var(--yellow); outline: .18rem solid var(--yellow); }
img { max-width: 100%; height: auto; border: 2px solid var(--white); }
button, input, textarea, select { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; top: 1rem; left: 1rem; width: auto; height: auto; padding: .75rem 1rem; margin: 0; overflow: visible; clip: auto; background: var(--yellow); color: var(--black); z-index: 1000; }
.site-shell { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.site-header { border-bottom: 3px double var(--white); padding: 1rem 0; }
.masthead { display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.site-title { margin: 0; font-size: clamp(1.55rem, 5vw, 2.8rem); line-height: 1.15; text-transform: uppercase; letter-spacing: .04em; }
.site-title a { color: var(--white); text-decoration: none; }
.prompt { color: var(--green); font-weight: 700; }
.cursor { display: inline-block; width: .65em; height: 1em; margin-left: .15em; vertical-align: -.12em; background: var(--white); animation: blink 1.1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } html { scroll-behavior: auto; } }
@keyframes blink { 50% { opacity: 0; } }
.bbs-button, .button, input[type="submit"] { display: inline-block; border: 2px solid var(--cyan); padding: .55rem .8rem; color: var(--cyan); background: var(--black); font-weight: 700; text-decoration: none; box-shadow: .28rem .28rem 0 var(--blue); cursor: pointer; }
.bbs-button:hover, .bbs-button:focus, .button:hover, .button:focus, input[type="submit"]:hover, input[type="submit"]:focus { color: var(--black); background: var(--cyan); outline: .18rem solid var(--white); }
.site-nav { margin-top: 1rem; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--white); font-weight: 700; }
.site-nav a::before { content: "["; color: var(--green); }
.site-nav a::after { content: "]"; color: var(--green); }
.site-main { padding: 2rem 0 3rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 2rem; }
.terminal-panel, .post-card, .sidebar-widget, .comments-area { border: 2px solid var(--rule); background: var(--panel); box-shadow: .4rem .4rem 0 #222; }
.terminal-title { margin: 0; padding: .45rem .75rem; color: var(--black); background: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.terminal-body { padding: clamp(1rem, 4vw, 2rem); }
.intro { margin-bottom: 2rem; }
.intro h1 { margin: 0 0 .75rem; font-size: clamp(1.7rem, 5vw, 3.1rem); line-height: 1.18; color: var(--yellow); }
.intro p { max-width: 65ch; margin: 0; }
.status-line { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1rem; color: var(--green); font-weight: 700; }
.post-list { display: grid; gap: 1.5rem; }
.post-card { padding: clamp(1rem, 3vw, 1.5rem); }
.post-card h2, .entry-title { margin: 0 0 .4rem; font-size: clamp(1.45rem, 4vw, 2.25rem); line-height: 1.25; }
.entry-meta { margin: 0 0 1rem; color: var(--green); font-size: 1rem; font-weight: 700; }
.entry-content { max-width: 72ch; }
.entry-content h2, .entry-content h3 { color: var(--yellow); line-height: 1.3; }
.entry-content blockquote { margin-left: 0; border-left: .35rem solid var(--cyan); padding-left: 1rem; }
.entry-content code { color: var(--green); }
.read-more { display: inline-block; margin-top: .6rem; font-weight: 700; }
.sidebar { display: grid; align-content: start; gap: 1rem; }
.sidebar-widget { padding: 1rem; }
.sidebar-widget h2 { margin: 0 0 .75rem; color: var(--yellow); font-size: 1.15rem; text-transform: uppercase; }
.sidebar-widget ul { margin: 0; padding-left: 1.2rem; }
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.page-numbers { border: 1px solid var(--white); padding: .25rem .55rem; }
.page-numbers.current { color: var(--black); background: var(--green); font-weight: 700; }
.comments-area { margin-top: 2rem; padding: clamp(1rem, 3vw, 1.5rem); }
.comment-list { padding-left: 1.5rem; }
.comment-body { border-left: 3px solid var(--blue); margin: 1rem 0; padding-left: 1rem; }
.comment-meta { font-size: 1rem; color: var(--green); }
label { display: block; margin-top: .8rem; color: var(--yellow); font-weight: 700; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea { width: 100%; border: 2px solid var(--white); border-radius: 0; padding: .65rem; background: var(--black); color: var(--white); }
input:focus, textarea:focus { outline: .22rem solid var(--cyan); outline-offset: .14rem; }
.site-footer { border-top: 3px double var(--white); padding: 1.25rem 0 2.5rem; }
.footer-line { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer-line p { margin: 0; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .site-shell { width: min(calc(100% - 1rem), var(--max)); }
  .terminal-panel, .post-card, .sidebar-widget, .comments-area { box-shadow: .22rem .22rem 0 #222; }
}

