/*
Theme Name: Rabbit in the Attic
Theme URI: https://rabbitintheattic.net
Author: Ava Bacchus
Author URI: https://rabbitintheattic.net
Description: A dark cyber-noir author blog theme with neon glitch accents, book-cover-inspired header art, sidebar widgets, and retro terminal styling.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: rabbit-attic
Tags: blog, custom-header, custom-logo, featured-images, right-sidebar, dark, two-columns
*/

:root {
  --bg: #05080b;
  --bg-2: #081016;
  --panel: rgba(5, 12, 17, 0.88);
  --panel-2: rgba(8, 18, 25, 0.94);
  --line: rgba(69, 211, 229, 0.42);
  --line-soft: rgba(69, 211, 229, 0.16);
  --hot: #ff684a;
  --hot-2: #ff7e61;
  --cyan: #45d3e5;
  --cyan-soft: #94f5ff;
  --pink: #ff5d8f;
  --text: #edf7f9;
  --muted: #b6cbd0;
  --paper: #f1e8dc;
  --ink: #11171a;
  --shadow: rgba(0, 0, 0, 0.72);
  --max: 1180px;
  --heading: 'Special Elite', 'Courier New', monospace;
  --pixel: 'Pixelify Sans', 'Silkscreen', monospace;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 177, 220, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(255, 104, 74, 0.13), transparent 28rem),
    linear-gradient(180deg, #030507 0%, var(--bg) 42%, #030507 100%);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
}

a { color: var(--cyan-soft); text-decoration: none; transition: color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
a:hover, a:focus { color: var(--hot-2); }
img { max-width: 100%; height: auto; }
::selection { background: var(--hot); color: #08090b; }

.site-shell { min-height: 100vh; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--cyan); color: #001013; padding: .65rem .85rem;
}
.skip-link:focus { left: .75rem; top: .75rem; }

.site-hero {
  min-height: 400px;
  background-image: linear-gradient(180deg, rgba(1,4,7,.04), rgba(1,4,7,.38)), var(--hero-image);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(69,211,229,.24);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -70px 90px rgba(0,0,0,.62);
}
.site-hero:after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: screen;
  opacity: .36;
  pointer-events: none;
}
.hero-card {
  position: relative; z-index: 1;
  text-align: center;
  padding: 1.4rem 2rem 1.15rem;
  background: rgba(0, 8, 11, .46);
  border: 1px solid rgba(69, 211, 229, .22);
  box-shadow: 0 0 0 1px rgba(255,104,74,.15), 0 26px 80px rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
}
.site-title {
  font-family: var(--pixel);
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.03em;
  text-shadow: 3px 3px 0 rgba(255,104,74,.25), -2px 0 0 rgba(69,211,229,.2);
}
.site-title a { color: var(--text); }
.site-title .dot-net, .site-title a::first-letter { color: var(--hot); }
.site-description {
  margin: .7rem 0 0;
  font-family: var(--pixel);
  text-transform: uppercase;
  letter-spacing: .36em;
  color: var(--hot-2);
  font-size: clamp(.8rem, 1.25vw, 1rem);
}
.rabbit-mark { color: var(--hot); font-size: 1.75rem; margin-top: .5rem; filter: drop-shadow(0 0 10px rgba(255,104,74,.6)); }

.site-nav-wrap {
  background: rgba(4, 8, 12, .95);
  border-bottom: 1px solid rgba(69,211,229,.22);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  min-height: 58px;
}
.nav-rabbit { color: var(--cyan); font-size: 1.7rem; margin-right: .6rem; }
.main-navigation { flex: 1; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem 1.4rem; }
.main-navigation a {
  color: var(--text);
  display: block;
  font-family: var(--pixel);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  padding: 1rem .1rem .85rem;
  border-bottom: 2px solid transparent;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--hot); border-bottom-color: var(--hot); }
.search-toggle { color: var(--cyan); font-size: 1.25rem; }

.site-main-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem 1rem 2.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.25rem;
}
.content-area { min-width: 0; }
.widget-area { min-width: 0; }

.panel, .post-card, .widget, .page-panel, .comments-area {
  background: linear-gradient(180deg, rgba(8,16,22,.96), rgba(5,10,14,.96));
  border: 1px solid var(--line-soft);
  box-shadow: 0 0 0 1px rgba(255,104,74,.05), 0 22px 70px rgba(0,0,0,.35);
}
.panel-title, .widget-title, .section-label {
  margin: 0 0 .8rem;
  color: var(--cyan);
  font-family: var(--pixel);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .95rem;
}
.section-label { border-left: 3px solid var(--cyan); padding-left: .75rem; }

.featured-post {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.3rem;
  padding: 1rem;
  margin-bottom: 1.35rem;
}
.featured-media { min-height: 230px; background: linear-gradient(135deg, rgba(255,104,74,.15), rgba(69,211,229,.08)); overflow: hidden; position: relative; }
.featured-media img, .post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.05) saturate(.9) brightness(.82); }
.featured-media:after, .post-thumb:after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 50px rgba(0,0,0,.65);
  background: linear-gradient(45deg, rgba(255,104,74,.12), transparent 42%, rgba(69,211,229,.08));
}
.featured-body { display: flex; flex-direction: column; justify-content: center; padding: .5rem .5rem .5rem 0; }
.kicker, .entry-meta, .post-card .cat-links {
  font-family: var(--pixel);
  color: var(--cyan);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.entry-title {
  font-family: var(--heading);
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.05;
  margin: .4rem 0 .7rem;
  letter-spacing: .02em;
}
.entry-title a { color: var(--text); }
.entry-title a:hover { color: var(--hot); }
.excerpt { color: var(--muted); margin: 0 0 1rem; }
.read-more, .button, input[type='submit'], button {
  display: inline-flex; align-items: center; gap: .45rem;
  width: fit-content;
  border: 1px solid rgba(255,104,74,.72);
  color: var(--hot-2);
  background: rgba(255,104,74,.06);
  padding: .58rem .95rem;
  font-family: var(--pixel);
  text-transform: uppercase;
  letter-spacing: .12em;
  cursor: pointer;
}
.read-more:hover, .button:hover, input[type='submit']:hover, button:hover { box-shadow: 0 0 18px rgba(255,104,74,.32); transform: translateY(-1px); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.post-card { overflow: hidden; }
.post-thumb { height: 155px; position: relative; background: rgba(69,211,229,.08); }
.post-card-body { padding: .9rem; }
.post-card .entry-title { font-size: 1.55rem; margin-top: .35rem; }
.post-card p { color: var(--muted); margin: 0 0 .7rem; font-size: .9rem; }
.no-posts { padding: 1.25rem; }

.widget { padding: 1rem; margin-bottom: .85rem; position: relative; }
.widget:before, .post-card:before, .panel:before, .page-panel:before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-top: 1px solid rgba(69,211,229,.18);
}
.widget ul { margin: .5rem 0 0; padding-left: 1.15rem; }
.widget li { margin: .25rem 0; }
.widget p { color: var(--muted); margin: 0 0 .75rem; }
.about-widget { display: grid; grid-template-columns: 86px 1fr; gap: .85rem; align-items: center; }
.about-widget img { aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid rgba(69,211,229,.24); filter: saturate(.9) contrast(1.05); }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.status-item { border-top: 1px solid rgba(69,211,229,.14); padding-top: .55rem; font-size: .88rem; }
.status-item strong { color: var(--hot-2); display: block; font-family: var(--pixel); text-transform: uppercase; letter-spacing: .1em; }
.book-row { display: grid; grid-template-columns: repeat(4,1fr); gap: .45rem; }
.book-row img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border: 1px solid rgba(69,211,229,.22); }

.newsletter-form { display: flex; gap: .5rem; margin-top: .7rem; }
input[type='email'], input[type='text'], input[type='search'], textarea {
  width: 100%;
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(69,211,229,.28);
  color: var(--text);
  padding: .62rem .7rem;
  font-family: var(--mono);
}
input:focus, textarea:focus { outline: 1px solid var(--cyan); }

.page-panel, .comments-area { padding: 1.2rem; }
.single .entry-title, .page .entry-title { font-size: clamp(2.25rem, 6vw, 4.6rem); }
.entry-content { color: #dce8ea; }
.entry-content p { margin: 0 0 1.1rem; }
.entry-content h2, .entry-content h3 { font-family: var(--heading); color: var(--text); line-height: 1.1; }
.entry-content blockquote { border-left: 3px solid var(--hot); margin: 1.25rem 0; padding: .5rem 1rem; background: rgba(255,104,74,.06); color: var(--paper); }
.entry-content a { border-bottom: 1px dashed rgba(69,211,229,.55); }
.post-navigation, .posts-navigation { margin: 1rem 0; font-family: var(--pixel); text-transform: uppercase; }


.site-footer {
  border-top: 1px solid rgba(69,211,229,.22);
  background: rgba(3,6,9,.95);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: .82rem;
}
.footer-mark { color: var(--cyan); font-size: 1.8rem; margin-right: .6rem; vertical-align: middle; }
.footer-menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: .9rem; margin: 0; padding: 0; }
.footer-menu a { color: var(--muted); }

@media (max-width: 980px) {
  .site-main-grid { grid-template-columns: 1fr; }
  .widget-area { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .widget { margin-bottom: 0; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .site-hero { min-height: 220px; background-position: center top; }
  .hero-card { margin: 1rem; padding: 1rem; }
  .site-description { letter-spacing: .18em; }
  .main-navigation ul { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-body { padding: 0; }
  .post-grid { grid-template-columns: 1fr; }
  .widget-area { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { flex-direction: column; }
}
