/* ==========================
   ro's mind — Textual Newspaper Edition
   with header + inline images
   ========================== */

:root {
  --bg: #ffffff;
  --text: #111;
  --muted: #555;
  --accent: #000;
  --border: #dcdcdc;
  --max-width: 980px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ==========================
   HEADER
   ========================== */
.site-header {
  text-align: center;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.site-title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.site-title a {
  text-decoration: none;
  color: inherit;
}
.site-tagline {
  color: var(--muted);
  font-style: italic;
  margin-top: 0.3rem;
  font-size: 0.95rem;
}

/* ==========================
   NAVIGATION
   ========================== */
.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0;
  margin: 1.5rem 0 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.main-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ==========================
   MAIN LAYOUT
   ========================== */
main {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  padding: 3rem 0;
}

/* ==========================
   POSTS — Index View / Single View
   ========================== */

.post {
  margin-bottom: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

/* Headline — clean and classic */
.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--accent);
  margin: 0.6rem 0 0.4rem;
}
.post-title a {
  text-decoration: none;
  color: inherit;
}
.post-title a:hover {
  text-decoration: underline;
}

/* Meta line — subtle and literary */
.post-meta {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0 1.5rem;
  letter-spacing: 0.02em;
}


/* ==========================
   HEADER IMAGE — cinematic banner
   ========================== */
.post-header-image {
  width: 100%;
  height: 45vh;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(0%) contrast(1.05);
  border: 1px solid var(--border);
  margin-bottom: 1.8rem;
  transition: filter 0.4s ease, transform 0.4s ease;
}
.post-header-image:hover {
  filter: grayscale(100%) brightness(0.9);
  transform: scale(1.01);
}

/* ==========================
   INLINE IMAGES — subtle inserts within essay text
   ========================== */
.inline-image {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  border-radius: 3px;
  border: 1px solid var(--border);
  filter: grayscale(0%) contrast(1.05);
  transition: filter 0.3s ease;
}
.inline-image:hover {
  filter: grayscale(100%) brightness(0.9);
}

/* Caption-like text below inline images */
.inline-image + .image-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.4rem;
  margin-bottom: 1.6rem;
}


/* ==========================
   BODY — flowing text
   ========================== */
.post-body p {
  margin: 0 0 1.5rem;
  text-align: justify;
  font-size: 1.05rem;
  color: var(--text);
}

/* Read More — elegant kicker */
.read-more {
  font-family: 'Lora', serif;
  font-style: italic;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}
.read-more:hover {
  border-color: var(--accent);
  opacity: 0.7;
}

/* ==========================
   SIDEBAR
   ========================== */
.sidebar .widget {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-bottom: 1.75rem;
}
.widget h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}
.widget p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.5rem 0 0;
}

/* ==========================
   ABOUT FOOT SECTION
   ========================== */
.about-foot {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 1.8rem 0 1.2rem;
  text-align: center;
}
.about-foot h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.about-foot p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}
/* HERO IMAGE (essay top) */
.hero-image {
  width: 100%;
  height: 55vh;
  background-size: cover;
  background-position: center;
  filter: grayscale(0%) contrast(1.1);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}


/* ==========================
   FOOTER
   ========================== */
.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 2.5rem 0;
  letter-spacing: 0.02em;
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }
  .post {
    padding-bottom: 2rem;
  }
  .post-header-image {
    height: 30vh;
  }
  .inline-image {
    max-width: 100%;
  }
}
