/* ============================================
   Scypeoralus — Urban Reflection Journal
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #222222;
  background-color: #f7f5f2;
  background-image:
    linear-gradient(rgba(247, 245, 242, 0.86), rgba(247, 245, 242, 0.86)),
    url('../images/background_window_memory.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.75;
  font-size: 1.05rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('../images/background_paper_texture.jpg');
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

/* ---- Navigation ---- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(145, 167, 181, 0.25);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #222222;
  text-decoration: none;
  font-style: italic;
}

.site-logo:hover {
  color: #91a7b5;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: #222222;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #91a7b5;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #91a7b5;
}

/* Hamburger */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #222222;
  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);
}

/* ---- Layout Wrappers ---- */

.page-wrapper,
.article-container,
.contact-container,
.privacy-container {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.page-wrapper {
  max-width: 820px;
  margin: 2.5rem auto;
  padding: 3rem 2.5rem;
}

.article-container {
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 3rem 2.5rem;
}

.contact-container,
.privacy-container {
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 3rem 2.5rem;
}

/* ---- Typography ---- */

h1 {
  font-size: 1.85rem;
  font-weight: normal;
  line-height: 1.35;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.45rem;
  font-weight: normal;
  margin: 2.5rem 0 1.2rem;
  color: #222222;
  letter-spacing: 0.02em;
}

h3 {
  font-size: 1.15rem;
  font-weight: normal;
  margin: 1.5rem 0 0.8rem;
  color: #91a7b5;
}

p {
  margin-bottom: 1.2rem;
}

a {
  color: #91a7b5;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

a:hover {
  color: #6d8a9a;
  text-decoration-color: #6d8a9a;
}

.intro-italic {
  font-style: italic;
  color: #555555;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-divider {
  border: none;
  border-top: 1px solid rgba(145, 167, 181, 0.3);
  margin: 2.5rem 0;
}

/* ---- Fade-in Animation ---- */

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Blog Dashboard ---- */

.blog-dashboard {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.blog-dashboard h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}

.blog-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  padding: 1.8rem;
  text-decoration: none;
  color: #222222;
  display: block;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  color: #222222;
}

.blog-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
  color: #222222;
  transition: color 0.3s ease;
}

.blog-card:hover h3 {
  color: #91a7b5;
}

.blog-card .excerpt {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #555555;
  margin: 0;
}

.blog-card .read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: #91a7b5;
  text-decoration: none;
}

/* ---- Article Footer ---- */

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(145, 167, 181, 0.3);
}

.related-stories h3 {
  font-size: 1.2rem;
  color: #222222;
  margin-bottom: 1rem;
}

.related-stories ul {
  list-style: none;
  margin-bottom: 2rem;
}

.related-stories li {
  margin-bottom: 0.6rem;
}

.return-home {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border: 1px solid #91a7b5;
  border-radius: 30px;
  color: #91a7b5;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.return-home:hover {
  background: #91a7b5;
  color: #ffffff;
  text-decoration: none;
}

/* ---- Contact Form ---- */

.contact-details {
  margin: 2rem 0;
  line-height: 2;
}

.contact-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: #555555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(145, 167, 181, 0.4);
  border-radius: 10px;
  font-family: Georgia, serif;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.6);
  color: #222222;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #91a7b5;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-submit {
  padding: 0.75rem 2rem;
  background: transparent;
  border: 1px solid #91a7b5;
  border-radius: 30px;
  color: #91a7b5;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-submit:hover {
  background: #91a7b5;
  color: #ffffff;
}

/* ---- Privacy Policy ---- */

.privacy-container h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.privacy-container ul {
  margin: 0.8rem 0 1.2rem 1.5rem;
}

.privacy-container li {
  margin-bottom: 0.4rem;
}

/* ---- Footer ---- */

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  font-size: 0.88rem;
  color: #777777;
}

.site-footer a {
  color: #91a7b5;
}

/* ---- Mobile ---- */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 1.2rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(145, 167, 181, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-inner {
    position: relative;
  }

  .page-wrapper,
  .article-container,
  .contact-container,
  .privacy-container {
    margin: 1.2rem;
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  body {
    background-attachment: scroll;
  }
}
