/* monopole.wiki - McBling Classified Dossier
 * Implementation: blinking cursor, variable font weight animation
 * "UNDISCOVERED" slowly animates between weight 400 and 900 on a 4-second CSS animation loop
 * IBM Plex Mono" (Google Fonts), IntersectionObserver for all scroll-triggered animations (no scroll event listeners
 * Faded SVG monopole diagrams in margins. Redaction bars on 3–4 key phrases that reveal on hover.
 * at small size.
 */

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

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

body {
  background: #F2E8D5;
  color: #3D3425;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
.section-title {
  font-family: 'Anybody', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2A2218;
  line-height: 1.1;
}

.section-title-dark {
  color: #D4C5A9;
}

.animate-weight {
  font-variation-settings: 'wght' 800;
  transition: font-variation-settings 0.6s ease;
}

.animate-weight.in-view {
  animation: breatheWeight 4s ease-in-out infinite;
}

@keyframes breatheWeight {
  0%, 100% { font-variation-settings: 'wght' 200; }
  50% { font-variation-settings: 'wght' 800; }
}

.editorial-text {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  color: #3D3425;
  margin-bottom: 1.5em;
}

.editorial-text-dark {
  color: #D4C5A9;
}

.editorial-text em {
  font-style: italic;
}

.editorial-text strong {
  font-weight: 400;
  color: #2A2218;
}

/* ========== CHROME DIVIDER ========== */
.chrome-divider {
  height: 2px;
  background: linear-gradient(90deg, #A0885C, #C9B896, #7A7062);
  margin: 0;
}

/* ========== SPREAD 1: THE PREDICTION ========== */
.spread {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.spread-1 {
  background: #F2E8D5;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.spread-1-bg-svg {
  position: absolute;
  top: 50%;
  right: -10vw;
  transform: translateY(-50%);
  width: 80vw;
  height: 80vw;
  pointer-events: none;
  z-index: 0;
}

.spread-1-bg-svg svg {
  width: 100%;
  height: 100%;
}

.spread-1-content {
  position: relative;
  z-index: 1;
  padding-left: 15vw;
  padding-top: 40vh;
}

.domain-title {
  font-family: 'Anybody', sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #2A2218;
  line-height: 1;
  margin-bottom: 0.3em;
}

.typewriter-line {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 300;
  color: #3D3425;
  line-height: 1.6;
  min-height: 2em;
  max-width: 60vw;
}

.typewriter-line .cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: #2A2218;
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ========== SPREAD 2: THE THEORY ========== */
.spread-2 {
  background: #F2E8D5;
  padding: clamp(3rem, 6vh, 6rem) 5vw;
}

.spread-2-title {
  margin-bottom: clamp(2rem, 4vh, 4rem);
  padding-left: 10vw;
}

.spread-2-layout {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.timeline-column {
  width: 30vw;
  padding-left: 5vw;
  padding-right: 2vw;
}

.timeline-entry {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-entry.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-date {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: clamp(0.7rem, 0.85vw, 0.85rem);
  color: #8B7355;
  opacity: 0.7;
  letter-spacing: 0.1em;
  margin-bottom: 0.4em;
}

.timeline-desc {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 300;
  line-height: 1.6;
  color: #3D3425;
}

.gutter-line {
  width: 2vw;
  flex-shrink: 0;
}

.gutter-line svg {
  width: 100%;
  height: 100%;
}

.editorial-column {
  width: 55vw;
  padding-left: 3vw;
  padding-right: 5vw;
}

/* ========== SPREAD 3: THE SEARCH ========== */
.spread-3 {
  background: #F2E8D5;
  padding: clamp(3rem, 6vh, 6rem) 5vw;
}

.spread-3-title {
  margin-bottom: clamp(2rem, 4vh, 4rem);
  padding-left: 10vw;
}

.spread-3-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  padding: 0 5vw;
}

.search-block-wide {
  grid-column: 2 / 9;
}

.pull-quote {
  grid-column: 2 / 11;
  padding: 2rem 0;
}

.pull-quote {
  border-left: 2px solid;
  border-image: linear-gradient(180deg, #A0885C, #C9B896, #7A7062) 1;
  padding-left: 2rem;
}

.pull-quote p {
  font-family: 'Anybody', sans-serif;
  font-weight: 100;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  letter-spacing: 0.12em;
  color: #2A2218;
  line-height: 1.3;
}

.pull-quote-alt {
  grid-column: 3 / 12;
}

.search-block-narrow {
  grid-column: 8 / 12;
}

.search-stat {
  grid-column: 3 / 8;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: clamp(0.7rem, 0.85vw, 0.85rem);
  color: #8B7355;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-number {
  font-family: 'Anybody', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #2A2218;
  letter-spacing: 0.05em;
}

.stat-number .cursor {
  display: inline-block;
  width: 0.5em;
  height: 0.9em;
  background: #2A2218;
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
  margin-left: 2px;
}

.search-block-offset {
  grid-column: 2 / 8;
}

.fade-in-entry {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-entry.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== SPREAD 4: THE EVIDENCE ========== */
.spread-4 {
  background: linear-gradient(to bottom, #F2E8D5 0%, #2A2218 15%, #2A2218 100%);
  padding: clamp(6rem, 10vh, 10rem) 5vw clamp(3rem, 6vh, 6rem);
  position: relative;
}

.spread-4-content {
  max-width: 50vw;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ========== HUD OVERLAY ========== */
.hud-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hud-overlay.hud-active {
  opacity: 1;
}

.hud-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: #C9B896;
  border-style: solid;
  border-width: 0;
  opacity: 0.5;
}

.hud-corner-tl {
  top: 20px;
  left: 20px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.hud-corner-tr {
  top: 20px;
  right: 20px;
  border-top-width: 1px;
  border-right-width: 1px;
}

.hud-corner-bl {
  bottom: 20px;
  left: 20px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.hud-corner-br {
  bottom: 20px;
  right: 20px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

.hud-top-bar {
  position: absolute;
  top: 20px;
  left: 80px;
  right: 80px;
  height: 1px;
  background: rgba(201, 184, 150, 0.3);
}

.hud-tick-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 3rem);
  position: relative;
  top: -4px;
}

.hud-tick {
  display: block;
  width: 1px;
  height: 8px;
  background: rgba(201, 184, 150, 0.5);
}

.hud-pulse-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6B8F71;
  animation: hudPulse 2s ease-in-out infinite;
}

@keyframes hudPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

.hud-side-rail {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: 10px;
  color: #C9B896;
  opacity: 0.6;
  letter-spacing: 0.05em;
}

.hud-side-left {
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
}

.hud-side-right {
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
}

/* ========== SPREAD 5: THE IMPLICATIONS ========== */
.spread-5 {
  background: #F2E8D5;
  padding: clamp(3rem, 6vh, 6rem) 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}

.spread-5-content {
  width: 50vw;
  padding: 0 3vw;
}

.spread-5-marginalia-left,
.spread-5-marginalia-right {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  padding-top: 6rem;
  width: 5vw;
  align-items: center;
}

.marginalia-mark {
  font-family: 'Anybody', sans-serif;
  font-weight: 100;
  font-size: 2rem;
  color: #8B7355;
  opacity: 0.15;
}

.spread-5-margin-svg-left,
.spread-5-margin-svg-right {
  width: 10vw;
  padding-top: 4rem;
}

.spread-5-margin-svg-left svg,
.spread-5-margin-svg-right svg {
  width: 100%;
  height: auto;
}

/* ========== REDACTION ========== */
.redacted {
  background: #2A2218;
  color: #2A2218;
  padding: 0.05em 0.3em;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.redacted:hover {
  background: transparent;
  color: #3D3425;
}

/* ========== SPREAD 6: THE FUTURE ========== */
.spread-6 {
  background: #2A2218;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.spread-6-content {
  text-align: center;
}

.undiscovered-title {
  font-family: 'Anybody', sans-serif;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  color: #D4C5A9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.5em;
  animation: undiscoveredBreathe 4s ease-in-out infinite;
}

@keyframes undiscoveredBreathe {
  0%, 100% { font-variation-settings: 'wght' 400; }
  50% { font-variation-settings: 'wght' 900; }
}

.domain-footer {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: 0.9rem;
  color: #C9B896;
  letter-spacing: 0.1em;
}

.blink-cursor {
  animation: blink 0.7s step-end infinite;
  color: #6B8F71;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .spread-1-content {
    padding-left: 8vw;
    padding-top: 30vh;
  }
  
  .spread-2-layout {
    flex-direction: column;
  }
  
  .timeline-column {
    width: 90vw;
    padding-left: 5vw;
  }
  
  .editorial-column {
    width: 90vw;
    padding: 2rem 5vw;
  }
  
  .gutter-line {
    display: none;
  }
  
  .spread-3-grid {
    display: flex;
    flex-direction: column;
    padding: 0 5vw;
  }
  
  .search-block-wide,
  .search-block-narrow,
  .search-block-offset,
  .pull-quote,
  .pull-quote-alt,
  .search-stat {
    grid-column: auto;
  }
  
  .spread-4-content {
    max-width: 90vw;
  }
  
  .spread-5 {
    flex-direction: column;
    align-items: center;
  }
  
  .spread-5-content {
    width: 90vw;
  }
  
  .spread-5-marginalia-left,
  .spread-5-marginalia-right,
  .spread-5-margin-svg-left,
  .spread-5-margin-svg-right {
    display: none;
  }
  
  .hud-side-left,
  .hud-side-right {
    display: none;
  }
}
