:root {
  --parchment: #f4f1ea;
  --ink: #1a1a1a;
  --border-sepia: #4a4a4a;
}

body {
  background-color: #dcd7ca; /* Outer background */
  font-family: 'EB Garamond', serif;
  color: var(--ink);
  margin: 0;
  padding: 20px;
}

.newspaper-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--parchment);
  padding: 40px;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  border: 1px solid #ccc;
  position: relative;
  min-height: 800px;
  box-sizing: border-box;
}

/* Masthead Styles */
.masthead {
  text-align: center;
  border-bottom: 4px double var(--ink);
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.masthead-top {
  display: flex;
  justify-content: center;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
  font-weight: bold;
}

.masthead h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  margin: 10px 0;
  text-transform: uppercase;
  letter-spacing: -2px;
}

.masthead-bottom {
  font-size: 0.9rem;
  font-style: italic;
  font-weight: bold;
  padding-top: 5px;
  border-top: 1px solid var(--ink);
}

/* Controls Styles */
.controls-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding: 10px;
  border-bottom: 1px solid var(--ink);
  font-family: 'Playfair Display', serif;
  font-weight: bold;
}

.vintage-select {
  background: transparent;
  border: 1px solid var(--ink);
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  padding: 5px;
}

.vintage-button {
  background-color: var(--ink);
  color: var(--parchment);
  border: none;
  padding: 8px 20px;
  font-family: 'Playfair Display', serif;
  cursor: pointer;
  letter-spacing: 1px;
}

.vintage-button:hover {
  background-color: #333;
}

/* Main Content Styles */
.newspaper-main {
  position: relative;
  min-height: 400px;
}

.report-columns {
  column-count: 2;
  column-gap: 40px;
  column-rule: 1px solid #ccc;
  text-align: justify;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .newspaper-container {
    padding: 20px;
    min-height: auto;
  }

  .masthead-top {
    flex-direction: column;
    gap: 5px;
    text-align: center;
    padding-bottom: 10px;
  }

  .masthead h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  .controls-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .vintage-button {
    width: 100%;
  }

  .report-columns {
    column-count: 1;
  }
}

@media (max-width: 480px) {
  .masthead h1 {
    font-size: 1.8rem;
  }

  .masthead-top {
    font-size: 0.7rem;
  }

  .report-columns h2 {
    font-size: 1.8rem;
  }
}

.report-columns h2 {
  font-family: 'Playfair Display', serif;
  text-align: center;
  font-size: 2.5rem;
  margin-top: 0;
  column-span: all; /* Title spans both columns */
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.report-columns h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  border-top: 1px solid var(--ink);
  padding-top: 10px;
  margin-top: 20px;
}

.report-columns p {
  line-height: 1.5;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.report-columns ul {
  padding-left: 20px;
  list-style-type: square;
}

.report-columns li {
  margin-bottom: 10px;
}

.report-columns a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-weight: 500;
}

.report-columns a:hover {
  text-decoration: underline double;
}

/* Loading Animation Styles */
.hidden {
  display: none !important;
}

#loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(244, 241, 234, 0.9);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.printing-press {
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

.loading-text {
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 20px;
  text-transform: uppercase;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.placeholder-text {
  text-align: center;
  opacity: 0.6;
}

.newspaper-footer {
  text-align: center;
  border-top: 4px double var(--ink);
  margin-top: 40px;
  padding-top: 10px;
  font-size: 0.8rem;
  font-weight: bold;
}
