:root {
  --primary-color: #000000;
  --secondary-color: #333333;
  --accent-color: #000000;
  --text-color: #000000;
  --background-color: #f5f6fa;
  --paper-color: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Times New Roman", serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-color);
}

.newspaper-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--paper-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.newspaper-header {
  text-align: center;
  border-bottom: 3px double var(--primary-color);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.newspaper-title {
  font-size: 4rem;

  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.newspaper-date {
  font-style: italic;
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.article {
  padding: 1.5rem;
  border: 1px solid #ddd;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.article h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin: 1rem 0;
  border: 1px solid #ddd;
  filter: grayscale(100%);
  transition: filter 0.3s ease-in-out;
}

.article-image:hover {
  filter: grayscale(0%);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--paper-color);
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mobile-menu-button {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #000;
  position: relative;
  cursor: pointer;
}

.mobile-menu-button::before,
.mobile-menu-button::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #fff;
}

.mobile-menu-button::before {
  top: -8px;
}

.mobile-menu-button::after {
  bottom: -8px;
}

.mobile-menu-content {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: var(--paper-color);
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mobile-menu-content.show {
  display: block;
}

.mobile-menu-content a {
  display: block;
  padding: 1rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--primary-color);
}

.mobile-menu-content a:last-child {
  border-bottom: none;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip .tooltip-text {
  visibility: hidden;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.article-content {
  padding: 2rem;
  background-color: #fff;
  border: 1px solid #ddd;
  margin-top: 2rem;
}

.article-content h2 {
  color: var(--primary-color);
  margin: 2rem 0 1rem;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.section-divider {
  border-top: 2px solid var(--primary-color);
  margin: 2rem 0;
}

.site-header {
  background-color: var(--paper-color);
  color: var(--text-color);
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 3px double var(--primary-color);
  position: relative;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--primary-color) 0,
    var(--primary-color) 10px,
    transparent 10px,
    transparent 20px
  );
}

.header-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.header-title {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  position: relative;
  padding-bottom: 1rem;
}

.header-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--primary-color) 0,
    var(--primary-color) 10px,
    transparent 10px,
    transparent 20px
  );
}

.header-nav {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  position: relative;
}

.header-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
  cursor: pointer;
}

.header-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.header-nav a:hover::after {
  transform: scaleX(1);
}

.site-footer {
  background-color: var(--paper-color);
  color: var(--text-color);
  padding: 3rem 0;
  margin-top: 3rem;
  border-top: 3px double var(--primary-color);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--primary-color) 0,
    var(--primary-color) 10px,
    transparent 10px,
    transparent 20px
  );
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  position: relative;
}

.footer-section {
  position: relative;
  padding: 1rem;
}

.footer-section::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--primary-color) 0,
    var(--primary-color) 10px,
    transparent 10px,
    transparent 20px
  );
}

.footer-section:last-child::after {
  display: none;
}

.footer-section h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-section p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
  position: relative;
  padding-left: 1rem;
}

.footer-section p::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--primary-color);
  font-style: italic;
  position: relative;
}

.footer-bottom::before,
.footer-bottom::after {
  content: "❧";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 1.5rem;
}

.footer-bottom::before {
  left: 20%;
}

.footer-bottom::after {
  right: 20%;
}

.footer-section a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-section a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.footer-section a:hover::after {
  transform: scaleX(1);
}

@media screen and (max-width: 768px) {
  .newspaper-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .newspaper-container {
    margin: 1rem;
    padding: 1rem;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .article {
    padding: 1rem;
  }

  .article h2 {
    font-size: 1.5rem;
  }

  .article-content {
    padding: 1rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
  }

  .article-content p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .header-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .header-title {
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
  }

  .header-title::after {
    width: 50%;
    left: 25%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-section {
    padding: 0.5rem;
  }

  .footer-section::after {
    display: none;
  }

  .footer-bottom::before,
  .footer-bottom::after {
    display: none;
  }

  .footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .mobile-menu {
    display: block;
  }

  .header-nav {
    display: none;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .header-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .header-title {
    font-size: 1.6rem;
  }

  .header-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newspaper-container {
    margin: 0.5rem;
    padding: 0.5rem;
  }

  .article-content {
    padding: 0.8rem;
  }
}

@media screen and (max-width: 480px) {
  .newspaper-title {
    font-size: 2rem;
  }

  .newspaper-date {
    font-size: 1rem;
  }

  .article-image {
    height: 150px;
  }

  .article-content {
    padding: 0.8rem;
  }

  .header-title {
    font-size: 1.5rem;
  }

  .footer-section h3 {
    font-size: 1.2rem;
  }

  .footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .footer-bottom {
    padding-top: 1rem;
    margin-top: 1rem;
  }
}
