/* --- THEME VARIABLES --- */
html {
  scroll-behavior: smooth;
  /* Optional: Adds space so the title isn't stuck to the very top edge */
  scroll-padding-top: 2rem;
}
:root {
  /* Peace Corps Blue, but darker/grittier */
  --pc-navy: #0a1628;
  --pc-blue-dim: #1e3a8a;

  /* Warning/Blood Red */
  --alert-red: #dc2626;
  --alert-red-dark: #991b1b;

  /* Paper/Text */
  --paper-white: #f1f5f9;
  --text-muted: #94a3b8;
  --pure-black: #000000;

  /* Fonts */
  --font-headline: "Anton", sans-serif; /* Impactful, cover-style */
  --font-body: "Roboto Condensed", sans-serif; /* Modern, condensed */
  --font-mono: "Courier Prime", monospace; /* Dossier/Report style */

  --max-width: 1100px;
}

/* --- RESET & GLOBAL --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--pc-navy);
  color: var(--paper-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  /* Subtle texture overlay */
  background-image:
    linear-gradient(rgba(10, 22, 40, 0.95), rgba(10, 22, 40, 0.95)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e3a8a' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3 {
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
}

h1 {
  font-size: 4.5rem;
}

h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--paper-white);
}

h3 {
  font-size: 1.5rem;
  color: var(--alert-red);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  letter-spacing: 0;
}

p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* --- UTILITY CLASSES --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.text-highlight {
  color: var(--alert-red);
  font-weight: bold;
}

.mono-text {
  font-family: var(--font-mono);
}

/* --- BUTTONS & LINKS --- */
.cta-group {
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  font-family: var(--font-headline);
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 1px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--alert-red);
  color: var(--paper-white);
  box-shadow: 0 4px 0 var(--alert-red-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--alert-red-dark);
  background-color: #ef4444;
}

.btn-outline {
  border: 2px solid var(--paper-white);
  background: transparent;
  color: var(--paper-white);
  margin-left: 10px;
}

.btn-outline:hover {
  background: var(--paper-white);
  color: var(--pc-navy);
}

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

.btn-navy:hover {
  background: #000;
}

.tag-line {
  font-family: var(--font-mono);
  color: var(--alert-red);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: 1px solid var(--alert-red);
  display: inline-block;
  padding: 4px 8px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.arrow-link {
  border-bottom: 2px solid var(--alert-red);
  padding-bottom: 2px;
  font-family: var(--font-headline);
  font-size: 1.2rem;
}

.arrow-link:hover {
  background-color: var(--alert-red);
  color: white;
}

/* --- NAVIGATION --- */

nav {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  margin-left: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.accent-link {
  color: var(--alert-red) !important;
}

.logo {
  font-family: var(--font-headline);
  font-size: 1.8rem;
  color: var(--paper-white);
}

.logo span {
  color: var(--alert-red);
}

/* --- BURGER MENU (Adapted for your HTML) --- */

#nav-toggle {
  display: none;
}

.nav-burger {
  display: none;
}

/* 2. MOBILE ONLY STYLES */
@media (max-width: 900px) {
  /* --- BURGER ICON (LABEL) --- */
  .nav-burger {
    display: block;
    position: fixed; /* Keep it fixed as per your snippet */
    top: 25px; /* Adjusted to fit your header height */
    right: 20px;
    height: 20px;
    width: 30px;
    z-index: 2000; /* Must be higher than the menu */
    cursor: pointer;
  }

  /* Burger Spans (The Lines) */
  .nav-burger span {
    position: absolute;
    width: 100%;
    height: 3px; /* Made slightly thicker for visibility */
    left: 0;
    display: block;
    background: white; /* Matches your theme */
    transition: 0.5s;
    border-radius: 2px;
  }

  .nav-burger span:first-child {
    top: 0;
  }

  .nav-burger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-burger span:last-child {
    bottom: 0;
  }

  /* --- ANIMATION: Turn into X --- */
  #nav-toggle:checked + .nav-burger span {
    opacity: 0;
    top: 50%;
  }

  #nav-toggle:checked + .nav-burger span:first-child {
    opacity: 1;
    transform: rotate(405deg);
  }

  #nav-toggle:checked + .nav-burger span:last-child {
    opacity: 1;
    transform: rotate(-405deg);
  }

  /* --- THE MENU OVERLAY (.nav-links) --- */
  .nav-links {
    background: #0a1628; /* Your Theme Navy Color */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0; /* Start closed */
    z-index: 1500;
    transition: height 0.5s; /* The sweep effect */
    transition-delay: 0.5s; /* Close delay */
    overflow: hidden;

    /* Centering Content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: none;
    border: none;
  }

  /* --- MENU LINKS --- */
  .nav-links a {
    opacity: 0; /* Start hidden */
    transition: opacity 0.5s;
    transition-delay: 0s;

    /* Text Styles */
    text-decoration: none;
    text-transform: uppercase;
    color: white;
    font-weight: 700;
    font-family: "Anton", sans-serif; /* Your theme font */
    font-size: 2rem;
    display: block;
    padding: 20px;
    margin: 0;
  }

  /* --- OPEN STATE --- */
  /* When checkbox is checked, expand the .nav-links sibling */
  #nav-toggle:checked ~ .nav-links {
    height: 100vh; /* Full screen */
    transition-delay: 0s; /* Open immediately */
  }

  /* Fade in the links AFTER menu opens */
  #nav-toggle:checked ~ .nav-links a {
    opacity: 1;
    transition-delay: 0.5s;
  }
}

/* --- HERO SECTION --- */
header.hero {
  padding: 6rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.hero-text p.lead {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
  border-left: 3px solid var(--alert-red);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Book 3D Effect */
.book-wrapper {
  position: relative;
  perspective: 1000px;
  display: flex;
  justify-content: center;
}

.book-cover {
  width: 350px;
  max-width: 100%;
  border-radius: 2px;
  box-shadow:
    -10px 10px 20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1); /* Subtle rim */
  transform: rotateY(-15deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.book-wrapper:hover .book-cover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* --- EVIDENCE / SYNOPSIS SECTION --- */
.section-dark {
  background-color: #050b14;
  padding: 6rem 0;
  position: relative;
}

/* Aesthetic "Dossier" lines */
.section-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(-50%);
}

.synopsis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.evidence-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

/* The "Redacted" text effect */
.redacted {
  background: var(--pure-black);
  color: var(--pure-black);
  padding: 0 4px;
  user-select: none;
  cursor: help;
  transition: 0.3s;
}

.redacted:hover {
  background: transparent;
  color: var(--alert-red);
  text-decoration: line-through;
}

.quote-box {
  font-family: var(--font-headline);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--paper-white);
  margin: 2rem 0;
}

.quote-box span {
  color: var(--alert-red);
  background: rgba(220, 38, 38, 0.1);
  padding: 0 5px;
}

/* --- AUTHOR SECTION --- */
.author-section {
  background: var(--paper-white);
  color: var(--pc-navy);
  padding: 6rem 0;
}

.author-section h2 {
  color: var(--pc-navy);
}
.author-section p {
  color: #334155;
}
.author-section .tag-line {
  border-color: var(--pc-navy);
  color: var(--pc-navy);
}

.author-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.author-photo-frame {
  width: 100%;
  border: 10px solid #fff;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: rotate(-2deg);
}

.caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 10px;
  color: #666;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  border-left: 4px solid var(--alert-red);
  padding-left: 1rem;
}

.stat-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-item span {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  color: var(--pc-navy);
}

/* --- FOOTER --- */
footer {
  background: #000;
  padding: 4rem 0;
  border-top: 4px solid var(--alert-red);
  text-align: center;
}

.footer-title {
  font-size: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-headline);
  text-transform: uppercase;
  font-size: 1.2rem;
}

.link-red {
  color: var(--alert-red);
}
.link-white {
  color: var(--paper-white);
}
.link-muted {
  color: var(--text-muted);
}

.disclaimer {
  font-family: var(--font-mono);
  font-size: 0.3rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

.copyright {
  margin-top: 1rem;
  font-size: 16px;
}

.dev-link:hover {
  color: #991b1b;
  transition: 0.3s;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 900px) {
  /* Fonts */
  h1 {
    font-size: 3.5rem;
  }
  h2 {
    font-size: 2.25rem;
  }

  /* Layouts */
  .hero-grid,
  .synopsis-grid,
  .author-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-grid {
    display: flex;
    flex-direction: column-reverse; /* Put image on top for mobile visually */
  }

  .section-dark::before {
    display: none;
  }

  .book-cover {
    width: 280px;
    margin: 0 auto;
  }

  /* Navigation Mobile */
  .nav-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .nav-links a {
    margin: 0 0.5rem;
  }

  /* Buttons */
  .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.8rem;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
}
