/* Quiet Path Interface — Memory Journal */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #222;
  background-color: #f7f6f2;
  background-image:
    linear-gradient(
      rgba(247, 246, 242, 0.90),
      rgba(247, 246, 242, 0.90)
    ),
    url('../../background_landscape_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('../../background_grain_soft.jpg');
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #333;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover,
a:focus {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Layout */

.site-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Header & Navigation */

.site-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid rgba(34, 34, 34, 0.12);
  margin-bottom: 2.5rem;
}

.site-title {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  font-weight: normal;
  color: #444;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover {
  text-decoration: underline;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.main-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: #444;
}

.main-nav a:hover,
.main-nav a.active {
  color: #111;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(34, 34, 34, 0.2);
  padding: 0.5rem 0.75rem;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  cursor: pointer;
  color: #222;
  margin-bottom: 1rem;
}

/* Typography */

h1 {
  font-size: 1.65rem;
  font-weight: normal;
  line-height: 1.35;
  margin: 0 0 1.5rem;
  color: #111;
}

h2 {
  font-size: 1.25rem;
  font-weight: normal;
  line-height: 1.4;
  margin: 3rem 0 1.25rem;
  color: #111;
}

h3 {
  font-size: 1.05rem;
  font-weight: normal;
  margin: 2rem 0 0.75rem;
  color: #222;
}

p {
  margin: 0 0 1.25rem;
}

.intro-lead {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 2rem;
}

.section {
  margin-bottom: 2.5rem;
}

.section + .section {
  padding-top: 0.5rem;
}

/* Journal Dashboard */

.dashboard {
  margin: 3rem 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(34, 34, 34, 0.12);
}

.dashboard-title {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.journal-entry {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
}

.journal-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.journal-entry a {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.journal-entry a:hover {
  text-decoration: none;
  opacity: 0.72;
}

.journal-entry .title {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: #111;
}

.journal-entry .note {
  display: block;
  font-size: 0.92rem;
  color: #555;
  font-style: italic;
}

/* Notices List */

.notices-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notices-list li {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  position: relative;
  color: #333;
  font-size: 0.98rem;
}

.notices-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #888;
}

/* Article Pages */

.article-header {
  margin-bottom: 2rem;
}

.article-intro {
  font-style: italic;
  color: #555;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.article-body p {
  text-align: left;
}

.related-section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 34, 34, 0.12);
}

.related-section h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-list li {
  margin-bottom: 0.75rem;
}

.return-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.92rem;
  color: #444;
}

/* Contact & Forms */

.contact-details {
  margin: 2rem 0;
  line-height: 1.9;
}

.contact-details p {
  margin-bottom: 0.5rem;
}

.contact-form {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 34, 34, 0.12);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  border: 1px solid rgba(34, 34, 34, 0.2);
  background: rgba(255, 255, 255, 0.6);
  color: #222;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  background: none;
  border: 1px solid rgba(34, 34, 34, 0.25);
  padding: 0.6rem 1.25rem;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  cursor: pointer;
  color: #222;
  transition: background 0.25s ease;
}

.form-submit:hover {
  background: rgba(34, 34, 34, 0.05);
}

/* Privacy Policy */

.policy-section {
  margin-bottom: 2rem;
}

/* Footer */

.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 34, 34, 0.12);
  font-size: 0.85rem;
  color: #666;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: #555;
}

/* Fade-in animation */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 600px) {
  body {
    font-size: 1rem;
    background-attachment: scroll;
  }

  .site-wrapper {
    padding: 0 1.15rem 3rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
  }

  .main-nav.open ul {
    display: flex;
  }
}
