/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Gill Sans', 'Trebuchet MS', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #2f4f4f;
  background: #f0fff0;
  padding: 40px 20px;
}

/* Article Container */
article {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  padding: 60px 80px;
  position: relative;
  box-shadow: 0 4px 12px rgba(47, 79, 79, 0.1);
}

/* Layered Accent Elements */
.layer-accent {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 200px;
  height: 200px;
  background: #98fb98;
  opacity: 0.3;
  z-index: 0;
  border-radius: 4px;
}

.layer-intro {
  position: absolute;
  right: -20px;
  top: 300px;
  width: 150px;
  height: 150px;
  background: #8fbc8f;
  opacity: 0.2;
  z-index: 0;
  border-radius: 50%;
}

.layer-footer {
  position: absolute;
  bottom: 100px;
  left: -30px;
  width: 180px;
  height: 180px;
  background: #98fb98;
  opacity: 0.25;
  z-index: 0;
  transform: rotate(45deg);
}

/* Header */
.paper-header {
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #8fbc8f;
}

h1 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #2f4f4f;
  margin-bottom: 30px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

/* Abstract Section */
.abstract {
  background: #f0fff0;
  padding: 25px;
  margin-top: 25px;
  border-left: 4px solid #8fbc8f;
  position: relative;
  z-index: 1;
}

.abstract h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2f4f4f;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.abstract p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #2f4f4f;
}

/* Section Styling */
section {
  position: relative;
  margin-bottom: 35px;
}

section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2f4f4f;
  margin-bottom: 20px;
  margin-top: 35px;
  position: relative;
  z-index: 1;
}

section h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #2f4f4f;
  margin-bottom: 15px;
  margin-top: 25px;
}

p {
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

/* Footer and Resources */
.paper-footer {
  position: relative;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #8fbc8f;
}

.resources {
  background: #f0fff0;
  padding: 30px;
  border-radius: 6px;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(143, 188, 143, 0.15);
}

.resources h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2f4f4f;
  margin-bottom: 15px;
}

.resources p {
  margin-bottom: 15px;
}

.resources p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: #2f4f4f;
  text-decoration: underline;
  text-decoration-color: #98fb98;
  text-decoration-thickness: 2px;
  transition: all 0.2s ease;
}

a:hover {
  color: #8fbc8f;
  text-decoration-color: #2f4f4f;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }

  article {
    padding: 40px 30px;
  }

  h1 {
    font-size: 1.8rem;
  }

  section h2 {
    font-size: 1.3rem;
  }

  .layer-accent,
  .layer-intro,
  .layer-footer {
    display: none;
  }

  .resources {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  article {
    padding: 30px 20px;
  }

  h1 {
    font-size: 1.5rem;
  }

  section h2 {
    font-size: 1.2rem;
  }

  .abstract {
    padding: 20px;
  }

  .resources {
    padding: 20px;
  }
}
