/* Forgotten Corners Interface — Personal Notes 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: 1.05rem;
  line-height: 1.75;
  color: #222;
  background-color: #f8f7f3;
  background-image:
    linear-gradient(
      rgba(248, 247, 243, 0.92),
      rgba(248, 247, 243, 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_texture.jpg');
  opacity: 0.06;
  pointer-events: none;
  z-index: -1;
}

/* Layout */

.site-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */

.site-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid rgba(34, 34, 34, 0.1);
  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-bottom: 1.25rem;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover {
  color: #222;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.main-nav a {
  color: #222;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: opacity 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile menu toggle */

.menu-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;
}

/* Content sections */

.content-section {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-section h1 {
  font-size: 1.65rem;
  font-weight: normal;
  line-height: 1.35;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.content-section h2 {
  font-size: 1.25rem;
  font-weight: normal;
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.content-section p {
  margin-bottom: 1.15rem;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.intro-text {
  font-size: 1.1rem;
  color: rgba(34, 34, 34, 0.85);
  margin-bottom: 2rem;
}

/* Article styles */

.article-intro {
  font-style: italic;
  color: rgba(34, 34, 34, 0.7);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.article-body p {
  margin-bottom: 1.15rem;
}

/* Featured image */

.featured-image-section {
  margin: 3rem -1.5rem;
  padding: 0 1.5rem;
}

.featured-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.featured-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  opacity: 0;
  animation: imageFadeIn 1.2s ease forwards;
}

@keyframes imageFadeIn {
  from { opacity: 0; }
  to { opacity: 0.88; }
}

.featured-caption {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(34, 34, 34, 0.6);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Dashboard / Journal entries */

.dashboard-section {
  margin-bottom: 3rem;
}

.dashboard-section h2 {
  font-size: 1.25rem;
  font-weight: normal;
  margin-bottom: 1.75rem;
}

.journal-entry {
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
}

.journal-entry a {
  display: block;
  padding: 1.1rem 0;
  text-decoration: none;
  color: #222;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.journal-entry a:hover {
  padding-left: 0.5rem;
  background-color: rgba(34, 34, 34, 0.03);
}

.journal-entry .title {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.journal-entry .note {
  display: block;
  font-size: 0.88rem;
  color: rgba(34, 34, 34, 0.55);
  font-style: italic;
}

/* Observations list */

.observations-list {
  list-style: none;
  padding: 0;
}

.observations-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(34, 34, 34, 0.06);
  font-size: 0.95rem;
  color: rgba(34, 34, 34, 0.8);
}

.observations-list li:last-child {
  border-bottom: none;
}

/* Related notes */

.related-notes {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 34, 34, 0.1);
}

.related-notes h3 {
  font-size: 0.95rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(34, 34, 34, 0.5);
  margin-bottom: 1rem;
}

.related-notes ul {
  list-style: none;
}

.related-notes li {
  margin-bottom: 0.5rem;
}

.related-notes a {
  color: #222;
  text-decoration: none;
  font-size: 0.95rem;
}

.related-notes a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.return-link {
  display: inline-block;
  margin-top: 2rem;
  color: rgba(34, 34, 34, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  font-style: italic;
}

.return-link:hover {
  color: #222;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact form */

.contact-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: rgba(34, 34, 34, 0.6);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  color: #222;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(34, 34, 34, 0.15);
  border-radius: 3px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(34, 34, 34, 0.35);
}

.submit-btn {
  background: none;
  border: 1px solid rgba(34, 34, 34, 0.25);
  padding: 0.55rem 1.5rem;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  color: #222;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background-color: rgba(34, 34, 34, 0.05);
}

.contact-details {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: rgba(34, 34, 34, 0.75);
}

.contact-details p {
  margin-bottom: 0.5rem;
}

/* Privacy policy */

.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  font-size: 1.1rem;
  font-weight: normal;
  margin-bottom: 0.75rem;
}

.policy-section p {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: rgba(34, 34, 34, 0.85);
}

/* Footer */

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(34, 34, 34, 0.1);
  font-size: 0.8rem;
  color: rgba(34, 34, 34, 0.45);
  text-align: center;
}

.site-footer a {
  color: rgba(34, 34, 34, 0.55);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 600px) {
  body {
    font-size: 1rem;
    background-attachment: scroll;
  }

  .site-wrapper {
    padding: 0 1.15rem;
  }

  .content-section h1 {
    font-size: 1.4rem;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
  }

  .main-nav ul.open {
    display: flex;
  }

  .featured-image-section {
    margin: 2.5rem -0.5rem;
    padding: 0 0.5rem;
  }
}
