/* skylopesca.com — Quiet Companion Journal */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #222222;
  background-color: #f7f5f2;
  background-image:
    linear-gradient(rgba(247, 245, 242, 0.86), rgba(247, 245, 242, 0.86)),
    url('../images/background_companion_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('../images/background_paper_texture.jpg');
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

/* ── Navigation ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(143, 164, 163, 0.2);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.1rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #222222;
  text-decoration: none;
}

.site-logo:hover {
  color: #8fa4a3;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-menu a {
  color: #222222;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  position: relative;
  padding-bottom: 2px;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #8fa4a3;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a.active {
  color: #8fa4a3;
}

/* Hamburger */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #222222;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Layout ── */

.page-wrapper,
.article-container,
.contact-container,
.privacy-container {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.page-wrapper {
  max-width: 780px;
  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;
}

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  font-size: 0.85rem;
  color: #666;
}

.site-footer a {
  color: #8fa4a3;
}

/* ── Typography ── */

h1 {
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 1.45rem;
  font-weight: normal;
  margin: 2.5rem 0 1.25rem;
  color: #222222;
  letter-spacing: 0.02em;
}

h3 {
  font-size: 1.15rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: #8fa4a3;
  text-decoration: none;
  position: relative;
}

a:not(.blog-card):not(.site-logo):not(.btn):not(.archive-link)::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: #8fa4a3;
  transition: width 0.3s ease;
}

a:not(.blog-card):not(.site-logo):not(.btn):not(.archive-link):hover::after {
  width: 100%;
}

.intro-italic {
  font-style: italic;
  color: #555;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.section-divider {
  border: none;
  border-top: 1px solid rgba(143, 164, 163, 0.25);
  margin: 3rem 0;
}

/* ── Fade-in ── */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Blog Dashboard ── */

.dashboard-section {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.dashboard-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  font-weight: normal;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: block;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  text-decoration: none;
  color: #222222;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.blog-card h3 {
  color: #222222;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.blog-card:hover h3 {
  color: #8fa4a3;
}

.blog-card .card-date {
  font-size: 0.8rem;
  color: #8fa4a3;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.blog-card .card-excerpt {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

.blog-card .read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #8fa4a3;
  letter-spacing: 0.04em;
}

/* ── Archive ── */

.archive-section {
  max-width: 780px;
  margin: 0 auto 3rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.archive-list {
  list-style: none;
}

.archive-list li {
  border-bottom: 1px solid rgba(143, 164, 163, 0.15);
  padding: 1rem 0;
}

.archive-list li:last-child {
  border-bottom: none;
}

.archive-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-decoration: none;
  color: #222222;
  transition: color 0.3s ease;
}

.archive-link:hover {
  color: #8fa4a3;
}

.archive-link .archive-date {
  font-size: 0.8rem;
  color: #8fa4a3;
  flex-shrink: 0;
  margin-left: 1rem;
}

/* ── Article ── */

.article-meta {
  font-size: 0.85rem;
  color: #8fa4a3;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(143, 164, 163, 0.25);
}

.related-articles h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.related-articles ul {
  list-style: none;
}

.related-articles li {
  margin-bottom: 0.6rem;
}

.return-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* ── Contact Form ── */

.contact-details {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(247, 245, 242, 0.5);
  border-radius: 12px;
}

.contact-details p {
  margin-bottom: 0.5rem;
}

.contact-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: Georgia, serif;
  font-size: 1rem;
  border: 1px solid rgba(143, 164, 163, 0.35);
  border-radius: 8px;
  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: #8fa4a3;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #8fa4a3;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background: #7a9291;
}

/* ── Privacy ── */

.privacy-container h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

/* ── Mobile ── */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
  }

  .page-wrapper,
  .article-container,
  .contact-container,
  .privacy-container {
    margin: 1.25rem;
    padding: 2rem 1.5rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  body {
    background-attachment: scroll;
  }
}
