/* ==========================================================================
   OBSCURE ART HISTORY — Visual Identity System v2.0
   Aesthetic: 1980s Cold War Light Scheme — Ultra-Minimal, Uncluttered, Horizontal Rules Only
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* 1980s Cold War Daylight Palette */
  --bg-paper: #F3EFE6;         /* Warm 1980s archival stock / East-West diplomatic paper */
  --bg-card: #EAE4D7;          /* Subtle recessed manila / institutional stone */
  --ink-primary: #191B1C;      /* Deep carbon / typewriter ribbon black */
  --ink-secondary: #4A4E50;    /* Faded graphite body secondary */
  --ink-muted: #767874;        /* Muted slate metadata */

  /* Cold War Signal Accents (Used Sparingly) */
  --accent-red: #B8291E;       /* 1980s Checkpoint / Red Star crimson */
  --accent-steel: #2C4C64;     /* Baltic / NATO diplomatic steel blue */
  --rule-color: #C8C1B2;       /* Subtle horizontal-only divider rule */
  --rule-dark: #191B1C;        /* Primary structural horizontal rule */

  /* Typography */
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-width: 1040px;
  --reading-width: 680px;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-paper);
  color: var(--ink-primary);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-paper);
  color: var(--ink-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--accent-red);
  color: var(--bg-paper);
}

/* ==========================================================================
   LAYOUT CONTAINER & HEADER (HORIZONTAL RULES ONLY)
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0 1.25rem;
  border-bottom: 2px solid var(--rule-dark);
}

.site-brand {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  display: block;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.site-brand:hover .brand-logo .reticle-group {
  transform: rotate(90deg);
}

.brand-logo .reticle-group {
  transform-origin: 20px 20px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav {
  display: flex;
  gap: 2.25rem;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding-bottom: 0.2rem;
  transition: color 0.15s ease, border-color 0.15s ease;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink-primary);
  border-bottom-color: var(--accent-red);
}

/* ==========================================================================
   LANDING PAGE: HERO
   ========================================================================== */
.hero {
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--rule-color);
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
  margin-bottom: 1.75rem;
  max-width: 18ch;
}

.hero-intro {
  max-width: 62ch;
}

.hero-intro p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.hero-intro p + p {
  margin-top: 1rem;
}

/* ==========================================================================
   LANDING PAGE: TWO-TRACK EDITORIAL ARCHITECTURE (FEATURES + DISPATCHES)
   ========================================================================== */
.section-divider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 3rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--rule-dark);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.section-label-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-red);
  display: inline-block;
}

.section-label-dot.steel {
  background-color: var(--accent-steel);
}

.section-subnote {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* Top Select Features Across the Top (3-Column Showcase, Large Cards + Icons) */
.features-showcase-section {
  padding-bottom: 1rem;
}

.features-top-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 2.5rem 0 2.75rem;
  border-bottom: 1px solid var(--rule-color);
}

.feature-card {
  display: flex;
  flex-direction: column;
}

.feature-card-thumb {
  display: block;
  overflow: hidden;
  background-color: var(--bg-card);
  margin-bottom: 1.25rem;
}

.feature-card-thumb img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
  transition: filter 0.25s ease, transform 0.3s ease;
}

.feature-card:hover .feature-card-thumb img {
  filter: saturate(1) contrast(1.06);
  transform: scale(1.02);
}

.feature-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule-color);
}

.feature-card-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.feature-card-meta a {
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 500;
}

.feature-card-meta a:hover {
  text-decoration: underline;
}

.feature-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

.feature-card h2 {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.feature-card h2 a {
  color: var(--ink-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.feature-card p {
  font-size: 0.96rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* Dispatches Wire List (Text-Only List with Horizontal Rules & Generous Padding) */
.dispatches-section {
  padding-bottom: 2rem;
}

.dispatch-list {
  list-style: none;
}

.dispatch-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 2.25rem;
  align-items: baseline;
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--rule-color);
}

.dispatch-row:last-child {
  border-bottom: 2px solid var(--rule-dark);
}

.dispatch-empty-row {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule-color);
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 2.25rem;
  align-items: baseline;
}

.dispatch-empty-row:last-child {
  border-bottom: 2px solid var(--rule-dark);
}

.dispatch-status-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dispatch-empty-message {
  font-size: 1.04rem;
  color: var(--ink-secondary);
  line-height: 1.65;
  max-width: 64ch;
}

.dispatch-empty-message strong {
  color: var(--ink-primary);
  font-weight: 600;
}

.dispatch-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Archive / Blog Listing Rows */
.articles-section {
  padding: 0 0 2rem;
}

.article-row {
  display: grid;
  grid-template-columns: 140px 1fr 240px;
  gap: 2.5rem;
  align-items: start;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--rule-color);
}

.article-row:last-child {
  border-bottom: 2px solid var(--rule-dark);
}

.article-row-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.6;
  padding-top: 0.25rem;
}

.article-row-meta a {
  display: inline-block;
  color: var(--accent-red);
  text-decoration: none;
  margin-top: 0.25rem;
  font-weight: 500;
}

.article-row-meta a:hover {
  text-decoration: underline;
}

.article-row-content h2 {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.article-row-content h2 a {
  color: var(--ink-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.article-row-content h2 a:hover {
  color: var(--accent-red);
}

.article-row-content p {
  font-size: 1rem;
  color: var(--ink-secondary);
  line-height: 1.65;
  max-width: 58ch;
}

.article-row-thumb {
  display: block;
  overflow: hidden;
  background-color: var(--bg-card);
}

.article-row-thumb img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
  transition: filter 0.25s ease, transform 0.3s ease;
}

.article-row:hover .article-row-thumb img {
  filter: saturate(1) contrast(1.06);
  transform: scale(1.02);
}

/* ==========================================================================
   LANDING PAGE: BROWSE BY SUBJECT SECTION
   ========================================================================== */
.subjects-section {
  padding-bottom: 2rem;
}

.subjects-body {
  padding: 2.25rem 0 2.75rem;
  border-bottom: 2px solid var(--rule-dark);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
}

.tag-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-color);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tag-link:hover {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

.text-action-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-red);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-red);
  padding-bottom: 2px;
}

.text-action-link:hover {
  color: var(--ink-primary);
  border-bottom-color: var(--ink-primary);
}

/* ==========================================================================
   BLOG POST / ARTICLE PAGE
   ========================================================================== */
.post-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--rule-color);
  max-width: var(--reading-width);
}

.post-meta-line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.post-meta-line a {
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 500;
}

.post-meta-line a:hover {
  text-decoration: underline;
}

.post-header h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.post-body {
  max-width: var(--reading-width);
  padding: 3rem 0 4.5rem;
}

.post-body p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ink-primary);
  margin-bottom: 1.5rem;
}

.post-body h2,
.post-body h3 {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  margin-top: 3.25rem;
  margin-bottom: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-color);
}

.post-body h4 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.post-body ul {
  margin: 1.5rem 0 2rem;
  padding-left: 1.25rem;
}

.post-body ul li {
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--ink-primary);
  margin-bottom: 0.65rem;
}

.post-body ul li::marker {
  color: var(--accent-red);
}

.post-body a {
  color: var(--accent-steel);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

.post-body a:hover {
  color: var(--accent-red);
}

.post-figure {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background-color: var(--bg-card);
}

.post-figure img {
  display: block;
  max-width: 100%;
  max-height: 540px;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.post-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-secondary);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule-color);
  text-align: center;
}

.post-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.post-figure-grid .post-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Archive / Index Header */
.archive-header {
  padding: 3.5rem 0 2.25rem;
  border-bottom: 2px solid var(--rule-dark);
}

.archive-header h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.archive-header p {
  font-size: 1.05rem;
  color: var(--ink-secondary);
  margin-top: 0.65rem;
  max-width: 60ch;
}

/* Contact Page Layout */
.contact-section {
  padding: 3.5rem 0 4.5rem;
  max-width: var(--reading-width);
  border-bottom: 2px solid var(--rule-dark);
}

.contact-section h2 {
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

.contact-section p {
  font-size: 1.05rem;
  color: var(--ink-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.contact-details-box {
  margin-top: 2rem;
  padding: 1.75rem;
  background-color: var(--bg-card);
  border-top: 2px solid var(--rule-dark);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.contact-details-box div + div {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule-color);
}

.post-tags-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.1rem;
}

.post-tags-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Further Reading / Related Articles Section */
.related-articles {
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule-color);
  border-bottom: 2px solid var(--rule-dark);
  padding-bottom: 2.5rem;
}

.related-heading {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.related-item time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 0.35rem;
}

.related-item h3 {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.5rem 0;
  padding: 0;
  border: none;
}

.related-item h3 a {
  color: var(--ink-primary);
  text-decoration: none;
}

.related-item h3 a:hover {
  color: var(--accent-red);
}

.related-item p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0;
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  padding: 2.5rem 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
}

.footer-nav a {
  color: var(--ink-secondary);
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 780px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
  }

  .article-row,
  .dispatch-row,
  .dispatch-empty-row,
  .features-top-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section-divider-header {
    flex-direction: column;
    gap: 0.4rem;
  }

  .three-col-row,
  .two-col-band,
  .post-figure-grid,
  .related-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 1rem;
  }
}
