/* ========================================
   Leopaticus — Garden Journal Archive
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.75;
  color: #222222;
  background-color: #f7f5f2;
  background-image:
    linear-gradient(
      rgba(247, 245, 242, 0.86),
      rgba(247, 245, 242, 0.86)
    ),
    url("../images/background_garden_memory.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../images/background_paper_texture.jpg");
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #222222;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #8EA68D;
}

/* ---- Navigation ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(142, 166, 141, 0.2);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #222222;
}

.site-logo span {
  color: #8EA68D;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding-bottom: 2px;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #8EA68D;
  transition: width 0.35s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a.active {
  color: #8EA68D;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #222222;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Layout Containers ---- */

.page-wrapper,
.article-container,
.contact-container,
.privacy-container {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.page-wrapper {
  max-width: 780px;
  margin: 3rem auto;
  padding: 3.5rem 3rem;
}

.article-container {
  max-width: 720px;
  margin: 3rem auto;
  padding: 3.5rem 3rem;
}

.contact-container,
.privacy-container {
  max-width: 720px;
  margin: 3rem auto;
  padding: 3.5rem 3rem;
}

/* ---- Typography ---- */

h1 {
  font-size: 2.25rem;
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.5rem;
  font-weight: normal;
  margin: 3.5rem 0 1rem;
  color: #222222;
  letter-spacing: 0.01em;
}

h3 {
  font-size: 1.15rem;
  font-weight: normal;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
}

.intro-italic {
  font-style: italic;
  color: #555555;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.section-divider {
  border: none;
  border-top: 1px solid rgba(142, 166, 141, 0.3);
  margin: 3rem 0;
}

/* ---- Fade-in Animation ---- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Blog Dashboard ---- */

.archive-section {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.archive-header {
  text-align: center;
  margin-bottom: 3rem;
}

.archive-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.archive-header p {
  font-style: italic;
  color: #555555;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.blog-card h3 a {
  transition: color 0.3s ease;
}

.blog-card h3 a:hover {
  color: #8EA68D;
}

.blog-card .excerpt {
  font-size: 0.95rem;
  color: #444444;
  flex-grow: 1;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.blog-card .read-more {
  font-size: 0.9rem;
  color: #8EA68D;
  position: relative;
  display: inline-block;
  align-self: flex-start;
}

.blog-card .read-more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #8EA68D;
  transition: width 0.35s ease;
}

.blog-card:hover .read-more::after {
  width: 100%;
}

/* ---- Article Pages ---- */

.article-meta {
  font-size: 0.9rem;
  color: #777777;
  margin-bottom: 2rem;
  font-style: italic;
}

.article-body p {
  text-align: left;
}

.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(142, 166, 141, 0.3);
}

.related-articles h2 {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.related-articles ul {
  list-style: none;
}

.related-articles li {
  margin-bottom: 0.75rem;
}

.related-articles a {
  position: relative;
  padding-bottom: 2px;
}

.related-articles a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #8EA68D;
  transition: width 0.35s ease;
}

.related-articles a:hover::after {
  width: 100%;
}

.return-home {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(142, 166, 141, 0.5);
  border-radius: 30px;
  font-size: 0.95rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.return-home:hover {
  background: #8EA68D;
  color: #ffffff;
}

/* ---- Contact Page ---- */

.contact-details {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(142, 166, 141, 0.2);
  border-bottom: 1px solid rgba(142, 166, 141, 0.2);
}

.contact-details p {
  margin-bottom: 0.75rem;
}

.contact-form {
  margin-top: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: Georgia, serif;
  font-size: 1rem;
  border: 1px solid rgba(142, 166, 141, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  color: #222222;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8EA68D;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.submit-btn {
  padding: 0.85rem 2rem;
  font-family: Georgia, serif;
  font-size: 1rem;
  background: #8EA68D;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background: #7a9479;
  transform: translateY(-1px);
}

/* ---- Privacy Policy ---- */

.privacy-container h2 {
  margin-top: 2rem;
}

.privacy-container ul {
  margin: 1rem 0 1.25rem 1.5rem;
}

.privacy-container li {
  margin-bottom: 0.5rem;
}

/* ---- Footer ---- */

.site-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: #666666;
}

.site-footer a {
  color: #8EA68D;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
  }

  .page-wrapper,
  .article-container,
  .contact-container,
  .privacy-container {
    margin: 1.5rem 1rem;
    padding: 2rem 1.5rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .archive-section {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .nav-container {
    padding: 0.85rem 1.25rem;
  }
}
