/*
Theme Name: Print Ain't Dead
Theme URI: https://printaintdead.us
Description: Bold editorial blog about print culture, typography, and publishing
Version: 1.0
Author: Print Ain't Dead
*/

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --red:      #c0392b;
  --red-dark: #96281b;
  --black:    #111111;
  --ink:      #1a1a1a;
  --gray:     #f2f2f2;
  --border:   #e0e0e0;
  --white:    #ffffff;
}

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

/* ============================================================
   BASE
   ============================================================ */
body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: #fff;
  font-size: 17px;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: var(--black);
  padding: 0;
}

.header-top {
  background: var(--red);
  width: 100%;
  text-align: center;
  padding: 7px 20px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 2px;
  line-height: 1;
}

.logo-tag {
  display: block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--red);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  font-family: system-ui, -apple-system, sans-serif;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-links li.has-children > a::after {
  content: ' ▾';
  font-size: 10px;
}

#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

#nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
}

/* Mobile Nav Overlay */
#primary-nav {
  /* desktop: inline */
}

@media (max-width: 768px) {
  #nav-toggle {
    display: flex;
  }

  #primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--black);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    padding: 60px 30px 30px;
    overflow-y: auto;
  }

  #primary-nav.is-open {
    transform: translateX(0);
  }

  #primary-nav .nav-links {
    flex-direction: column;
    gap: 0;
  }

  #primary-nav .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #222;
    font-size: 13px;
  }

  .site-logo a {
    font-size: 32px;
  }
}

/* ============================================================
   HOME HERO
   ============================================================ */
.home-hero {
  background: var(--red);
  padding: 40px 0;
  color: var(--white);
}

.hero-label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 4px;
  font-family: system-ui, -apple-system, sans-serif;
  opacity: 0.7;
  margin-bottom: 8px;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 58px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 18px;
  max-width: 520px;
  opacity: 0.85;
}

.hero-meta {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 16px;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ============================================================
   BLOG LISTING — POSTS WRAP
   ============================================================ */
.posts-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  padding: 50px 0;
}

/* ============================================================
   POST CARD
   ============================================================ */
.post-card {
  border-bottom: 2px solid var(--border);
  padding-bottom: 32px;
  margin-bottom: 32px;
}

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

.post-cat {
  color: var(--red);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: system-ui, -apple-system, sans-serif;
  margin-bottom: 6px;
  display: block;
}

.post-card h2 a {
  color: var(--black);
  font-size: 1.5rem;
  line-height: 1.3;
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--red);
}

.post-meta {
  font-size: 13px;
  color: #888;
  font-family: system-ui, -apple-system, sans-serif;
  margin: 8px 0;
}

.post-excerpt {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #444;
}

.read-more {
  display: inline-block;
  margin-top: 14px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  border-bottom: 1px solid var(--red);
  padding-bottom: 2px;
  text-decoration: none;
}

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

/* Featured Post */
.post-card.featured {
  border-bottom: none;
  background: var(--gray);
  padding: 28px;
  margin-bottom: 40px;
  border-left: 5px solid var(--red);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.widget {
  margin-bottom: 36px;
}

.widget-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--black);
  border-bottom: 2px solid var(--red);
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.widget ul {
  list-style: none;
}

.widget ul li {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.widget ul li a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.widget ul li a:hover {
  color: var(--red);
}

.widget-about p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 14px;
}

.widget-quote {
  border-left: 4px solid var(--red);
  padding: 14px 18px;
  background: var(--gray);
}

.widget-quote blockquote {
  border: none;
  margin: 0;
  padding: 0;
  background: none;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink);
}

.widget-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-family: system-ui, -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  font-style: normal;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 20px;
}

.post-header {
  margin-bottom: 30px;
}

.post-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  line-height: 1.15;
  margin: 10px 0;
  color: var(--black);
}

/* Post content typography */
.post-content h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
  border-left: 3px solid var(--red);
  padding-left: 12px;
}

.post-content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.post-content p {
  margin-bottom: 1.2rem;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.2rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content blockquote {
  border-left: 4px solid var(--red);
  margin: 2rem 0;
  padding: 12px 20px;
  background: var(--gray);
  font-style: italic;
}

.post-content a {
  color: var(--red);
  text-decoration: underline;
}

.post-content a:hover {
  color: var(--red-dark);
}

/* Author Box */
.author-box {
  margin-top: 50px;
  padding: 24px;
  background: var(--gray);
  border-left: 4px solid var(--red);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-box-content h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--black);
}

.author-bio {
  font-size: 0.9rem;
  color: #555;
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content {
  max-width: 780px;
  margin: 50px auto;
  padding: 0 20px;
}

.page-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  color: var(--black);
  margin-bottom: 20px;
  border-bottom: 3px solid var(--red);
  padding-bottom: 10px;
}

.page-content p {
  margin-bottom: 1.2rem;
}

/* ============================================================
   404
   ============================================================ */
.error-404 {
  text-align: center;
  padding: 80px 20px;
}

.error-code {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 140px;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0;
}

.error-404 h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--black);
  margin-bottom: 12px;
}

.error-404 p {
  color: #666;
  margin-bottom: 28px;
  font-size: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--red);
}

.footer-tagline {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
  font-family: system-ui, -apple-system, sans-serif;
}

.footer-col h4 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-family: system-ui, -apple-system, sans-serif;
}

.footer-col ul li a:hover {
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 20px;
  font-size: 12px;
  color: #666;
  text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--red);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}

.cta-band h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  margin-bottom: 8px;
}

.cta-band p {
  opacity: 0.85;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.cta-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}

.cta-form input[type="email"] {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  border: none;
  font-family: system-ui, -apple-system, sans-serif;
  outline: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: system-ui, -apple-system, sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: var(--red-dark);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--red);
  color: var(--red);
  background: transparent;
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
}

.pagination a:hover,
.pagination .current {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .posts-wrap {
    grid-template-columns: 1fr;
  }

  .posts-main {
    order: 1;
  }

  .sidebar {
    order: 2;
  }
}

@media (max-width: 768px) {
  .site-logo a {
    font-size: 32px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .post-title {
    font-size: 36px;
  }

  .hero-title {
    font-size: 38px;
  }

  .cta-form {
    flex-direction: column;
  }

  .cta-form input[type="email"] {
    width: 100%;
  }
}
