/* fusceolepcus.com — Neighborhood Walk Journal */

*, *::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: 1.125rem;
  line-height: 1.75;
  color: #222;
  background-color: #f7f5f2;
  background-image:
    linear-gradient(
      rgba(247, 245, 242, 0.86),
      rgba(247, 245, 242, 0.86)
    ),
    url('../images/background_neighborhood_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;
}

a {
  color: #7fa6d9;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
  color: #5a8bc4;
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(127, 166, 217, 0.2);
  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;
  color: #222;
  letter-spacing: 0.02em;
}

.site-logo:hover {
  text-decoration: none;
  color: #7fa6d9;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-menu a {
  color: #444;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #7fa6d9;
  text-decoration: none;
}

.nav-menu a.active {
  border-bottom: 2px solid #7fa6d9;
  padding-bottom: 2px;
}

/* Hamburger */
.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.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Main layout */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.panel {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 2.5rem 2.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.panel.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.panel.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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;
  color: #2a2a2a;
}

h3 {
  font-size: 1.2rem;
  font-weight: normal;
  margin-bottom: 0.75rem;
  color: #333;
}

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;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(127, 166, 217, 0.25);
}

.section-divider {
  width: 60px;
  height: 2px;
  background: #7fa6d9;
  margin: 2rem 0;
  opacity: 0.6;
}

/* Reflection list */
.reflection-list {
  list-style: none;
}

.reflection-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(127, 166, 217, 0.15);
  font-style: italic;
  color: #444;
}

.reflection-list li:last-child {
  border-bottom: none;
}

/* Article dashboard */
.dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.dashboard-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.article-card {
  display: block;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #222;
  text-decoration: none;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(127, 166, 217, 0.18);
  text-decoration: none;
  color: #222;
}

.article-card h3 {
  color: #7fa6d9;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.article-card:hover h3 {
  color: #5a8bc4;
}

.article-card .excerpt {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
}

.article-card .read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #7fa6d9;
  letter-spacing: 0.04em;
}

/* Article page */
.article-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1.5rem;
}

.article-body p {
  text-align: left;
}

.related-articles {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(127, 166, 217, 0.25);
}

.related-articles ul {
  list-style: none;
  margin-top: 1rem;
}

.related-articles li {
  margin-bottom: 0.6rem;
}

.return-link {
  display: inline-block;
  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(127, 166, 217, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  color: #222;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #7fa6d9;
  box-shadow: 0 0 0 3px rgba(127, 166, 217, 0.15);
}

.btn-submit {
  background: #7fa6d9;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-family: Georgia, serif;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-submit:hover {
  background: #5a8bc4;
}

.contact-details {
  margin-top: 1.5rem;
}

.contact-details p {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  font-size: 0.85rem;
  color: #777;
}

.site-footer a {
  color: #7fa6d9;
}

/* Privacy policy */
.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-menu li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(127, 166, 217, 0.12);
  }

  .panel {
    padding: 1.75rem 1.5rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  main {
    padding: 1.5rem 1rem 3rem;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }
}
