/* ============================================================
   CITIZEN SCOTT — Constructivist / Soviet Propaganda Theme
   citizenscott.net
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Bebas+Neue&family=Special+Elite&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

/* ---- CUSTOM PROPERTIES ------------------------------------ */
:root {
  --red:        #CC1111;
  --dark-red:   #8B0000;
  --black:      #141414;
  --near-black: #1E1E1E;
  --cream:      #F2E4C4;
  --warm-white: #F8F0DC;
  --gold:       #D4A017;
  --muted:      #9A8878;
  --rule:       2px solid var(--red);
}

/* ---- RESET & BASE ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--black);
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 1rem;
  line-height: 1.7;
  /* Subtle aged paper texture via CSS noise */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.015) 2px,
      rgba(0,0,0,0.015) 4px
    );
}

/* ---- TYPOGRAPHY ------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--black);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--dark-red); }
h3 { font-size: 1.4rem; color: var(--red); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.25rem; }
a { color: var(--red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--dark-red); text-decoration: underline; }

strong { font-weight: 700; }
em { font-style: italic; }

blockquote {
  border-left: 6px solid var(--red);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: rgba(0,0,0,0.04);
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--dark-red);
}

blockquote p { margin: 0; }

code, pre {
  font-family: 'Courier Prime', monospace;
  font-size: 0.9rem;
}

code {
  background: rgba(0,0,0,0.08);
  padding: 0.1em 0.4em;
  border-radius: 2px;
  color: var(--dark-red);
}

pre {
  background: var(--near-black);
  color: var(--cream);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-left: 5px solid var(--red);
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
}

hr {
  border: none;
  border-top: var(--rule);
  margin: 2rem 0;
}

ul, ol {
  margin: 0 0 1.25rem 1.5rem;
}

li { margin-bottom: 0.4rem; }

/* ---- LAYOUT WRAPPER -------------------------------------- */
.site-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- DECORATIVE ELEMENTS --------------------------------- */
.star {
  display: inline-block;
  color: var(--red);
  font-size: 1em;
  line-height: 1;
}

.star-lg {
  font-size: 2rem;
  color: var(--red);
}

.red-bar {
  display: block;
  height: 6px;
  background: var(--red);
  width: 100%;
}

.double-rule {
  border-top: 6px solid var(--black);
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
  margin: 0 0 2rem 0;
}

/* Angled banner accent */
.angle-accent {
  display: block;
  height: 4px;
  background: linear-gradient(135deg, var(--red) 50%, var(--black) 50%);
}

/* ---- SITE HEADER ----------------------------------------- */
.site-header {
  background: var(--black);
  color: var(--cream);
  padding: 0;
  border-bottom: 6px solid var(--red);
  position: relative;
  overflow: hidden;
}

/* Constructivist diagonal stripe behind header */
.site-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: var(--dark-red);
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0.35;
  pointer-events: none;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.5rem;
  position: relative;
  z-index: 1;
}

.site-title-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.header-star {
  font-size: 3.5rem;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.15rem;
  text-shadow: 2px 2px 0px var(--dark-red);
}

.site-title {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: 0.08em;
  color: var(--cream);
  text-decoration: none;
  text-transform: uppercase;
  line-height: 0.9;
  text-shadow: 3px 3px 0px rgba(0,0,0,0.5);
}

.site-title:hover { color: var(--gold); text-decoration: none; }

.site-tagline {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 0.6rem;
  margin-top: 0.5rem;
}

/* ---- NAVIGATION ------------------------------------------ */
.site-nav {
  background: var(--red);
  padding: 0;
  border-bottom: 3px solid var(--dark-red);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
  align-items: stretch;
}

.site-nav a {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 0.7rem 1.2rem;
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: background 0.15s, color 0.15s;
}

.site-nav a:first-child { border-left: 1px solid rgba(255,255,255,0.2); }

.site-nav a:hover,
.site-nav a.active {
  background: var(--dark-red);
  color: #fff;
  text-decoration: none;
}

/* ---- HERO BANNER ----------------------------------------- */
.hero {
  background: var(--black);
  color: var(--cream);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 6px solid var(--red);
}

.hero::before {
  content: '★';
  position: absolute;
  font-size: 40vw;
  color: rgba(204, 17, 17, 0.06);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  line-height: 1;
}

.hero-kicker {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--cream);
  text-shadow: 4px 4px 0 var(--dark-red);
  margin-bottom: 1.25rem;
  letter-spacing: 0.06em;
}

.hero p {
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 2rem;
  color: rgba(242,228,196,0.8);
  font-family: 'Courier Prime', monospace;
}

.btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  background: var(--red);
  color: var(--cream);
  border: 2px solid var(--red);
  transition: background 0.15s, color 0.15s;
}

.btn:hover {
  background: transparent;
  color: var(--red);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
  margin-left: 0.75rem;
}

.btn-outline:hover {
  background: var(--cream);
  color: var(--black);
}

/* ---- SECTION LABELS -------------------------------------- */
.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--red);
}

/* ---- POST LIST / INDEX ----------------------------------- */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-item {
  border-bottom: 1px solid rgba(0,0,0,0.12);
  padding: 2rem 0;
}

.post-item:last-child { border-bottom: none; }

.post-meta {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.post-meta .tag {
  background: var(--black);
  color: var(--cream);
  padding: 0.1em 0.5em;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

.post-item h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.post-item h2 a {
  color: var(--black);
  transition: color 0.15s;
}

.post-item h2 a:hover {
  color: var(--red);
  text-decoration: none;
}

.post-excerpt {
  font-size: 0.95rem;
  color: rgba(20,20,20,0.75);
  margin-bottom: 1rem;
}

.read-more {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.read-more:hover { color: var(--dark-red); border-color: var(--dark-red); text-decoration: none; }

/* ---- SINGLE POST ----------------------------------------- */
.post-header {
  background: var(--black);
  color: var(--cream);
  padding: 3rem 1.5rem 2.5rem;
  margin-bottom: 0;
  border-bottom: 6px solid var(--red);
}

.post-header-inner {
  max-width: 900px;
  margin: 0 auto;
}

.post-header .post-meta {
  color: var(--muted);
  margin-bottom: 1rem;
}

.post-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--cream);
  text-shadow: 3px 3px 0 var(--dark-red);
  letter-spacing: 0.05em;
  line-height: 1.05;
}

.post-content {
  padding: 3rem 0;
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: var(--rule);
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

/* Drop cap for first paragraph */
.post-content > p:first-of-type::first-letter {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4.5rem;
  float: left;
  line-height: 0.75;
  margin: 0.1em 0.08em 0 0;
  color: var(--red);
}

/* ---- CLASSIFIED CALLOUT ---------------------------------- */
.callout {
  border: 3px solid var(--black);
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
}

.callout::before {
  content: attr(data-label);
  position: absolute;
  top: -0.75em;
  left: 1rem;
  background: var(--cream);
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0 0.4em;
  color: var(--red);
}

.callout-warning {
  border-color: var(--red);
  background: rgba(204,17,17,0.04);
}

.callout-tip {
  border-color: var(--black);
  background: rgba(0,0,0,0.03);
}

/* ---- SIDEBAR / ABOUT PANEL ------------------------------- */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 680px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
}

.sidebar-widget {
  background: var(--black);
  color: var(--cream);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 0.5rem;
}

.sidebar-widget p,
.sidebar-widget li {
  font-size: 0.85rem;
  color: rgba(242,228,196,0.8);
}

.sidebar-widget ul { margin-left: 1rem; }

/* ---- TAGS ------------------------------------------------ */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tag {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--cream);
  padding: 0.25em 0.6em;
}

.tag:hover {
  background: var(--red);
  color: var(--cream);
  text-decoration: none;
}

/* ---- FOOTER ---------------------------------------------- */
.site-footer {
  background: var(--near-black);
  color: rgba(242,228,196,0.6);
  padding: 3rem 1.5rem 2rem;
  border-top: 6px solid var(--red);
  margin-top: 4rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--cream);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.footer-section h5 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.footer-section ul { list-style: none; margin: 0; padding: 0; }
.footer-section li { margin-bottom: 0.4rem; }
.footer-section a { color: rgba(242,228,196,0.6); }
.footer-section a:hover { color: var(--cream); text-decoration: none; }

.footer-bottom {
  max-width: 900px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,228,196,0.35);
}

/* ---- MAIN CONTENT PADDING -------------------------------- */
.main-content {
  padding: 3rem 0;
}

/* ---- PAGINATION ------------------------------------------ */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: var(--rule);
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---- ABOUT PAGE ------------------------------------------ */
.about-hero {
  background: var(--black);
  color: var(--cream);
  padding: 4rem 1.5rem;
  border-bottom: 6px solid var(--red);
  text-align: center;
}

.about-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  color: var(--cream);
  text-shadow: 3px 3px 0 var(--dark-red);
}

/* ---- UTILITY --------------------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ---- RESPONSIVE ------------------------------------------ */
@media (max-width: 600px) {
  .site-nav { overflow-x: auto; }
  .nav-inner { min-width: max-content; }
  .hero { padding: 3rem 1.5rem 2.5rem; }
}

/* ---- PRINT ----------------------------------------------- */
@media print {
  .site-header, .site-nav, .site-footer { display: none; }
  body { background: white; color: black; }
}
