/*
Theme Name:   Astra Child
Theme URI:    https://wpastra.com/
Description:  Astra Child Theme for "What He Said" fact-check log
Author:       Your Name
Author URI:   https://yoursite.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/

/* ============================================
   WHAT HE SAID — Category Template Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Source+Serif+4:wght@300;400;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --whs-red: #c0392b;
  --whs-red-light: #f9e9e8;
  --whs-ink: #1a1a1a;
  --whs-gray: #5a5a5a;
  --whs-rule: #e0e0e0;
  --whs-bg: #faf9f7;
  --whs-white: #ffffff;
  --whs-stamp: #b7410e;
}

/* Archive page header */
.whs-archive-header {
  border-bottom: 3px solid var(--whs-ink);
  padding: 48px 0 32px;
  margin-bottom: 48px;
}

.whs-archive-header .whs-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--whs-red);
  margin-bottom: 12px;
}

.whs-archive-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--whs-ink);
  line-height: 1.1;
  margin: 0 0 16px;
}

.whs-archive-header .whs-tagline {
  font-family: 'Source Serif 4', serif;
  font-size: 1.1rem;
  color: var(--whs-gray);
  font-style: italic;
  max-width: 560px;
}

.whs-entry-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--whs-gray);
  margin-top: 20px;
  letter-spacing: 0.1em;
}

/* Individual entry card */
.whs-entry {
  background: var(--whs-white);
  border: 1px solid var(--whs-rule);
  border-left: 4px solid var(--whs-red);
  margin-bottom: 40px;
  padding: 36px 40px;
  position: relative;
}

.whs-entry:hover {
  border-left-color: var(--whs-ink);
  box-shadow: 4px 4px 0 var(--whs-ink);
  transform: translate(-2px, -2px);
  transition: all 0.15s ease;
}

.whs-entry-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.whs-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--whs-gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.whs-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  background: var(--whs-red-light);
  color: var(--whs-red);
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.whs-entry h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--whs-ink);
  line-height: 1.25;
  margin: 0 0 24px;
}

.whs-entry h2 a {
  color: inherit;
  text-decoration: none;
}

.whs-entry h2 a:hover {
  color: var(--whs-red);
}

/* The quote */
.whs-quote {
  background: var(--whs-bg);
  border-left: none;
  border-top: 2px solid var(--whs-rule);
  border-bottom: 2px solid var(--whs-rule);
  padding: 20px 24px;
  margin: 0 0 28px;
  position: relative;
}

.whs-quote::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--whs-rule);
  position: absolute;
  top: -10px;
  left: 16px;
  line-height: 1;
}

.whs-quote p {
  font-family: 'Source Serif 4', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--whs-ink);
  line-height: 1.8;
  margin: 0;
  padding-left: 20px;
}

/* The three sections */
.whs-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.whs-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--whs-rule);
}

.whs-section:first-child {
  border-top: none;
  padding-top: 0;
}

.whs-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--whs-gray);
  display: block;
}

.whs-section-label.truth {
  color: var(--whs-red);
}

.whs-section-content {
  font-family: 'Source Serif 4', serif;
  font-size: 1.1rem;
  color: var(--whs-ink);
  line-height: 1.85;
}

.whs-section-content a {
  color: var(--whs-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Single post styles */
.single .whs-full-entry {
  max-width: 720px;
  margin: 0 auto;
}

.single .whs-quote {
  margin: 32px 0;
}

.single .whs-section {
  padding: 20px 0;
}

/* Single post */
.whs-single {
  max-width: 740px;
  margin: 40px auto;
}

.whs-single-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--whs-ink);
  line-height: 1.2;
  margin: 0 0 28px;
}

.whs-post-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--whs-rule);
}

.whs-back-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--whs-gray);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.whs-back-link:hover {
  color: var(--whs-red);
}

.whs-extra-content {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--whs-rule);
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Responsive */
@media (max-width: 600px) {
  .whs-entry {
    padding: 24px 20px;
  }

  .whs-section {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .whs-section-label {
    padding-top: 0;
  }
}
