/* foliuscapax.com — Quiet Repair Journal */

*, *::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: #f7f5f2;
  background-image:
    linear-gradient(
      rgba(247, 245, 242, 0.92),
      rgba(247, 245, 242, 0.92)
    ),
    url('../images/background_home_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.06;
  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);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.04em;
}

.site-title a {
  color: #222;
  text-decoration: none;
}

.site-title a:hover {
  text-decoration: underline;
}

.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;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #444;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.main-nav a:hover,
.main-nav a.active {
  color: #222;
  text-decoration: underline;
}

/* Layout */
.content-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.content-panel {
  background: rgba(247, 245, 242, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(34, 34, 34, 0.06);
}

/* Typography */
h1 {
  font-size: 1.65rem;
  font-weight: normal;
  line-height: 1.35;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.25rem;
  font-weight: normal;
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
}

h3 {
  font-size: 1.05rem;
  font-weight: normal;
  margin-bottom: 1rem;
  font-style: italic;
}

p {
  margin-bottom: 1.15rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: #333;
  transition: color 0.2s ease;
}

a:hover {
  color: #111;
}

.intro-italic {
  font-style: italic;
  color: #444;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* Homepage sections */
.home-section {
  margin-bottom: 2.5rem;
}

.home-section .content-panel {
  margin-bottom: 0;
}

/* Journal Dashboard */
.dashboard {
  margin: 3rem 0;
}

.dashboard h2 {
  font-size: 1.15rem;
  text-transform: none;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(34, 34, 34, 0.1);
}

.journal-entry {
  margin-bottom: 1.75rem;
  padding-left: 0;
  border-left: 2px solid transparent;
  transition: border-color 0.25s ease, padding-left 0.25s ease;
}

.journal-entry a {
  display: block;
  text-decoration: none;
  color: #222;
  padding: 0.25rem 0 0.25rem 0.75rem;
}

.journal-entry:hover {
  border-left-color: rgba(34, 34, 34, 0.25);
  padding-left: 0.25rem;
}

.journal-entry .title {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.journal-entry .note {
  display: block;
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
}

.journal-entry a:hover .title {
  text-decoration: underline;
}

/* Attention list */
.attention-list {
  list-style: none;
  margin-top: 1rem;
}

.attention-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(34, 34, 34, 0.06);
  font-style: italic;
  color: #444;
  font-size: 0.95rem;
}

.attention-list li:last-child {
  border-bottom: none;
}

/* Article page */
.article-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.article-body p {
  text-align: left;
}

.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 34, 34, 0.1);
}

.related-section h2 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.related-list {
  list-style: none;
  margin-bottom: 2rem;
}

.related-list li {
  margin-bottom: 0.75rem;
}

.related-list a {
  color: #333;
}

.return-link {
  margin-top: 2rem;
  font-size: 0.95rem;
}

.return-link a {
  color: #444;
}

/* Contact form */
.contact-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  border: 1px solid rgba(34, 34, 34, 0.15);
  background: rgba(255, 255, 255, 0.5);
  color: #222;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  padding: 0.6rem 1.5rem;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  background: rgba(34, 34, 34, 0.08);
  border: 1px solid rgba(34, 34, 34, 0.15);
  color: #222;
  cursor: pointer;
}

.form-submit:hover {
  background: rgba(34, 34, 34, 0.12);
}

.contact-details {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(34, 34, 34, 0.08);
  font-size: 0.95rem;
  color: #444;
}

.contact-details p {
  margin-bottom: 0.5rem;
}

/* Privacy policy */
.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* Footer */
.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
  border-top: 1px solid rgba(34, 34, 34, 0.06);
}

.site-footer a {
  color: #666;
}

/* Responsive */
@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 245, 242, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(34, 34, 34, 0.08);
    padding: 1rem 1.5rem;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .content-panel {
    padding: 1.5rem 1.25rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  body {
    background-attachment: scroll;
  }
}
