/* Forgotten Objects Journal — Editorial Styles */

*,
*::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: #f7f5f2;
  background-image:
    linear-gradient(
      rgba(247, 245, 242, 0.92),
      rgba(247, 245, 242, 0.92)
    ),
    url('../../background_storage_memory.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('../../background_paper_grain.jpg');
  opacity: 0.07;
  pointer-events: none;
  z-index: -1;
}

/* Fade-in on load */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 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;
  color: rgba(34, 34, 34, 0.55);
  margin: 0 0 1.25rem;
  font-weight: normal;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover {
  color: #222;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.main-nav a {
  color: #222;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: rgba(34, 34, 34, 0.4);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(34, 34, 34, 0.2);
  padding: 0.4rem 0.75rem;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  color: #222;
  cursor: pointer;
  margin-bottom: 1rem;
}

/* Typography */
h1 {
  font-size: 1.65rem;
  font-weight: normal;
  line-height: 1.35;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.25rem;
  font-weight: normal;
  margin: 2.75rem 0 1rem;
  letter-spacing: 0.01em;
}

h3 {
  font-size: 1.05rem;
  font-weight: normal;
  margin: 2rem 0 0.75rem;
}

p {
  margin: 0 0 1.25rem;
}

.intro-lead {
  font-size: 1.1rem;
  color: rgba(34, 34, 34, 0.85);
  margin-bottom: 2rem;
}

.article-intro {
  font-style: italic;
  color: rgba(34, 34, 34, 0.7);
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(34, 34, 34, 0.15);
}

/* Links */
a {
  color: #222;
  text-decoration: underline;
  text-decoration-color: rgba(34, 34, 34, 0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: rgba(34, 34, 34, 0.7);
}

/* Sections */
.content-section {
  margin-bottom: 1rem;
}

/* Dashboard — vertical journal entries */
.dashboard {
  margin: 3rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(34, 34, 34, 0.12);
}

.dashboard h2 {
  margin-top: 0;
}

.journal-entry {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
}

.journal-entry a {
  display: block;
  padding: 1.1rem 0;
  text-decoration: none;
  transition: padding-left 0.25s ease, background-color 0.25s ease;
}

.journal-entry a:hover {
  padding-left: 0.5rem;
  background-color: rgba(247, 245, 242, 0.6);
  text-decoration: none;
}

.journal-entry .title {
  display: block;
  font-size: 1.05rem;
  color: #222;
  margin-bottom: 0.2rem;
}

.journal-entry .note {
  display: block;
  font-size: 0.9rem;
  color: rgba(34, 34, 34, 0.55);
  font-style: italic;
}

/* Remains list */
.remains-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.remains-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(34, 34, 34, 0.06);
  font-style: italic;
  color: rgba(34, 34, 34, 0.75);
}

.remains-list li:last-child {
  border-bottom: none;
}

/* Related articles */
.related-notes {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 34, 34, 0.12);
}

.related-notes h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.related-notes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-notes li {
  margin-bottom: 0.5rem;
}

.return-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.95rem;
}

/* Contact form */
.contact-form {
  margin-top: 2rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: rgba(34, 34, 34, 0.7);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
  font-size: 1rem;
  border: 1px solid rgba(34, 34, 34, 0.2);
  background: rgba(255, 255, 255, 0.5);
  color: #222;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  font-family: Georgia, serif;
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid rgba(34, 34, 34, 0.3);
  color: #222;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form button:hover {
  background-color: rgba(34, 34, 34, 0.05);
}

.contact-details {
  margin: 1.5rem 0;
}

.contact-details p {
  margin-bottom: 0.5rem;
}

/* Privacy policy */
.policy-section {
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(34, 34, 34, 0.12);
  font-size: 0.85rem;
  color: rgba(34, 34, 34, 0.5);
}

.site-footer a {
  color: rgba(34, 34, 34, 0.6);
}

/* Article page */
.article-header {
  margin-bottom: 2rem;
}

.article-meta {
  font-size: 0.85rem;
  color: rgba(34, 34, 34, 0.45);
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    font-size: 1rem;
    background-attachment: scroll;
  }

  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 ul.open {
    display: flex;
  }

  .site-wrapper {
    padding: 0 1.15rem 3rem;
  }
}
