/* Peofaciulax — Quiet Garden Journal */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  line-height: 1.85;
  color: #222;
  background-color: #f7f5f2;
  background-image:
    linear-gradient(
      rgba(247, 245, 242, 0.88),
      rgba(247, 245, 242, 0.88)
    ),
    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_grain_overlay.jpg');
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #3a4a3a;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: underline;
  color: #2a3a2a;
}

/* 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(0, 0, 0, 0.06);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-logo {
  font-size: 1.1rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #222;
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
  color: #3a4a3a;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #222;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.main-nav a {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #444;
  text-decoration: none;
  padding: 0.25rem 0;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: #222;
  text-decoration: none;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: #3a4a3a;
}

/* Layout */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.content-panel {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 2.5rem 3rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.content-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.35;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

h2 {
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  color: #2a2a2a;
}

h3 {
  font-size: 1.2rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
  color: #2a2a2a;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

.intro-italic {
  font-style: italic;
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  border-left: 2px solid rgba(58, 74, 58, 0.3);
  padding-left: 1.25rem;
}

.section-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 2.5rem 0;
}

/* Journal Dashboard */
.journal-dashboard {
  margin-top: 1rem;
}

.journal-dashboard > h2 {
  margin-bottom: 2rem;
  text-align: center;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.journal-entry {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.journal-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.78);
}

.journal-entry a {
  display: block;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
}

.journal-entry a:hover {
  text-decoration: none;
}

.journal-entry h3 {
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.journal-entry:hover h3 {
  color: #3a4a3a;
}

.journal-entry p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0;
  line-height: 1.65;
}

/* Reflections list */
.reflections-list {
  list-style: none;
  padding: 0;
}

.reflections-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-style: italic;
  color: #444;
  font-size: 1rem;
}

.reflections-list li:last-child {
  border-bottom: none;
}

/* Article page */
.article-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1.5rem;
}

.article-body p {
  text-align: justify;
  hyphens: auto;
}

.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.related-articles h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.related-articles ul {
  list-style: none;
  padding: 0;
}

.related-articles li {
  margin-bottom: 0.65rem;
}

.return-link {
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* Contact form */
.contact-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: #444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: Georgia, serif;
  font-size: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  color: #222;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(58, 74, 58, 0.4);
  box-shadow: 0 0 0 3px rgba(58, 74, 58, 0.08);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-submit {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  background: rgba(58, 74, 58, 0.85);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background: rgba(42, 58, 42, 0.95);
  transform: translateY(-1px);
}

.contact-details {
  margin-top: 1.5rem;
  line-height: 2;
}

.contact-details p {
  margin-bottom: 0.5rem;
}

/* Privacy policy */
.privacy-policy h2 {
  margin-top: 2rem;
}

.privacy-policy h2:first-of-type {
  margin-top: 0;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  font-size: 0.85rem;
  color: #777;
}

.site-footer a {
  color: #666;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .main-nav.open {
    max-height: 400px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 0;
  }

  .content-panel {
    padding: 1.75rem 1.5rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  main {
    padding: 1.5rem 1rem 3rem;
  }
}
