/* fprafidox.com — After the Flood Interface */

*,
*::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: #222222;
  background-color: #f8f7f3;
  background-image:
    linear-gradient(
      rgba(248, 247, 243, 0.92),
      rgba(248, 247, 243, 0.92)
    ),
    url('../../background_water_memory.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #222222;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}

a:hover,
a:focus {
  border-bottom-color: #888888;
}

/* Header & Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 243, 0.95);
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
  backdrop-filter: blur(4px);
}

.nav-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 0.95rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.site-title a {
  border-bottom: none;
}

.site-title a:hover {
  opacity: 0.7;
}

.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: #222222;
  cursor: pointer;
  transition: background 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(34, 34, 34, 0.05);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* Main Content */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typography */

h1 {
  font-size: 1.65rem;
  font-weight: normal;
  line-height: 1.4;
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.25rem;
  font-weight: normal;
  margin: 3.5rem 0 1.25rem;
  letter-spacing: 0.02em;
}

h3 {
  font-size: 1.1rem;
  font-weight: normal;
  margin: 2.5rem 0 1rem;
}

p {
  margin-bottom: 1.25rem;
}

.intro-italic {
  font-style: italic;
  color: #555555;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* Sections */

section {
  margin-bottom: 1rem;
}

.reflection-lines {
  margin: 2rem 0;
}

.reflection-lines p {
  margin-bottom: 0.75rem;
  font-style: italic;
  color: #444444;
}

/* Dashboard / Memories */

.memories-dashboard {
  margin: 4rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 34, 34, 0.1);
}

.memory-item {
  display: block;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
  border-bottom-color: transparent;
  transition: opacity 0.3s ease;
}

.memory-item:hover {
  opacity: 0.75;
  border-bottom-color: rgba(34, 34, 34, 0.12);
}

.memory-item .memory-title {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  border-bottom: none;
}

.memory-item .memory-note {
  display: block;
  font-size: 0.92rem;
  color: #666666;
  font-style: italic;
  border-bottom: none;
}

/* Contact Block */

.contact-block {
  margin: 4rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 34, 34, 0.1);
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-block p {
  margin-bottom: 0.5rem;
}

/* Related Memories */

.related-memories {
  margin: 4rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 34, 34, 0.1);
}

.related-memories ul {
  list-style: none;
  margin: 1rem 0;
}

.related-memories li {
  margin-bottom: 0.75rem;
}

.return-home {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.95rem;
  font-style: italic;
}

/* Contact Form */

.contact-form {
  margin: 2.5rem 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #555555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: Georgia, serif;
  font-size: 1rem;
  color: #222222;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(34, 34, 34, 0.15);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(34, 34, 34, 0.35);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  padding: 0.6rem 1.5rem;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  color: #222222;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(34, 34, 34, 0.2);
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-submit:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Privacy Policy */

.policy-section {
  margin-bottom: 2.5rem;
}

.policy-section h2 {
  margin-top: 2.5rem;
}

/* Footer */

.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid rgba(34, 34, 34, 0.1);
  font-size: 0.88rem;
  color: #666666;
}

.footer-nav {
  margin-bottom: 1.5rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  color: #666666;
}

.footer-contact {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.footer-copyright {
  font-size: 0.82rem;
  color: #999999;
}

/* Journal anchor section on homepage */
#journal,
#notes,
#archive {
  scroll-margin-top: 5rem;
}

/* Mobile */

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
    font-size: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(248, 247, 243, 0.98);
    border-bottom: 1px solid rgba(34, 34, 34, 0.08);
    padding: 1rem 1.5rem 1.25rem;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.85rem;
  }

  .nav-container {
    position: relative;
    flex-wrap: wrap;
  }

  main {
    padding: 2rem 1.25rem 3rem;
  }

  h1 {
    font-size: 1.4rem;
  }
}
