/* recofocius.com — Roadside Moments 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.125rem;
  line-height: 1.75;
  color: #222;
  background-color: #f7f5f2;
  background-image:
    linear-gradient(
      rgba(247, 245, 242, 0.90),
      rgba(247, 245, 242, 0.90)
    ),
    url('../images/background_road_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_film_grain.jpg');
  opacity: 0.06;
  pointer-events: none;
  z-index: -1;
}

a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

a:hover,
a:focus {
  border-bottom-color: #666;
  color: #111;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ——— Navigation ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  border-bottom: none;
  white-space: nowrap;
}

.site-logo:hover {
  border-bottom: none;
  opacity: 0.75;
}

.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.875rem;
  cursor: pointer;
  color: #222;
  border-radius: 2px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  justify-content: flex-end;
}

.main-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.main-nav a.active {
  border-bottom-color: #222;
}

/* ——— Layout ——— */

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.main-content {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 5rem;
}

/* ——— Content blocks ——— */

.content-block {
  background: rgba(255, 255, 255, 0.55);
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
  border-radius: 2px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(2px);
}

.content-block.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.content-block.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

h1 {
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.35;
  margin-bottom: 1rem;
  margin-top: 0.25rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.15rem;
}

p:last-child {
  margin-bottom: 0;
}

.article-intro {
  font-style: italic;
  color: #444;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
  border-left: 2px solid rgba(34, 34, 34, 0.15);
  padding-left: 1.25rem;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.5rem;
}

/* ——— Sidebar ——— */

.sidebar-block {
  background: rgba(255, 255, 255, 0.45);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 2px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}

.sidebar-block h3 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.75rem;
}

.sidebar-block p {
  margin-bottom: 0.75rem;
  color: #444;
  line-height: 1.6;
}

.sidebar-block p:last-child {
  margin-bottom: 0;
}

/* ——— Journal dashboard ——— */

.journal-dashboard {
  margin-top: 0.5rem;
}

.journal-entry {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
}

.journal-entry:last-child {
  border-bottom: none;
}

.journal-entry a {
  display: block;
  padding: 1.25rem 0.5rem;
  margin: 0 -0.5rem;
  border-bottom: none;
  border-radius: 2px;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.journal-entry a:hover {
  background: rgba(255, 255, 255, 0.6);
  padding-left: 1rem;
  border-bottom: none;
}

.journal-entry h3 {
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}

.journal-entry a:hover h3 {
  color: #000;
}

.journal-entry p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0;
}

/* ——— Reflection list ——— */

.reflection-list {
  list-style: none;
}

.reflection-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(34, 34, 34, 0.06);
  font-style: italic;
  color: #444;
  font-size: 1rem;
  line-height: 1.55;
}

.reflection-list li:last-child {
  border-bottom: none;
}

/* ——— Article page ——— */

.article-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.related-routes {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 34, 34, 0.1);
}

.related-routes h2 {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 1rem;
}

.related-routes ul {
  list-style: none;
}

.related-routes li {
  margin-bottom: 0.65rem;
}

.return-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ——— Contact form ——— */

.contact-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  color: #444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: Georgia, serif;
  font-size: 1rem;
  border: 1px solid rgba(34, 34, 34, 0.2);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  color: #222;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(34, 34, 34, 0.4);
}

.btn-submit {
  font-family: Georgia, serif;
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  background: rgba(34, 34, 34, 0.85);
  color: #f7f5f2;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-submit:hover {
  background: #222;
}

.contact-details p {
  margin-bottom: 0.5rem;
}

/* ——— Privacy policy ——— */

.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* ——— Footer ——— */

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid rgba(34, 34, 34, 0.08);
}

.site-footer a {
  font-size: 0.85rem;
}

/* ——— Responsive ——— */

@media (max-width: 900px) {
  .two-column {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    order: -1;
  }

  .sidebar-block {
    margin-bottom: 1rem;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 1.05rem;
    background-attachment: scroll;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 245, 242, 0.97);
    border-bottom: 1px solid rgba(34, 34, 34, 0.08);
    padding: 1rem 1.5rem 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  h1 {
    font-size: 1.6rem;
  }

  .content-block {
    padding: 1.5rem 1.25rem;
  }

  .page-wrapper {
    padding: 1.75rem 1rem 3rem;
  }
}
