/* ============================================================
   But Does It Rhyme — style_test.css
   Clean modern stylesheet. Preserves the site's teal/slate color
   identity and keeps the layout familiar, but removes FrontPage
   table-based layout, inline styles, and 150+ redundant classes.
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Source+Sans+3:wght@400;600&display=swap');

/* ---------- Design tokens ---------- */
:root {
  --teal:        #31849B;   /* site's signature teal — links, headings */
  --teal-dark:   #1f6070;   /* hover state */
  --slate:       #1A1A1A;   /* body text */
  --muted:       #555;      /* secondary text, dates */
  --rule:        #ccc;      /* divider lines */
  --bg:          #fff;
  --sidebar-bg:  #f7f9fa;   /* very light blue-grey for sidebar */
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display:'Lora', Georgia, serif;   /* poems + post titles */
  --max-width:   1100px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.4;
  color: var(--slate);
  background: var(--bg);
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Page wrapper ---------- */
.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Banner ---------- */
.site-banner {
  display: block;
  width: 100%;
}
.site-banner img {
  width: 100%;
  height: auto;
  border: none;
}

/* ---------- Navigation ---------- */
.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}
.site-nav a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}
.site-nav a:hover { color: var(--teal-dark); text-decoration: underline; }

/* ---------- Two-column layout ---------- */
.content-area {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

/* ---------- Blog posts (main column) ---------- */

/* ★ NEW POST MARKER — easy to find when editing ★ */
/* Each blog post is wrapped in <article class="blog-post"> */

.blog-post {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.blog-post:last-of-type {
  border-bottom: none;
}

.post-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 300;
  color: var(--teal);
  margin-bottom: 0.15rem;
}

.post-date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.post-body {
  font-size: 1rem;
  line-height: 1.75;
}

.post-body p {
  margin-bottom: 1rem;
}

.post-body p.poem-body {
  margin-bottom: 0;
  margin-top: 0.8rem;
}

.post-body p.poem-title {
  margin-bottom: 0;
  margin-top: 0.5rem;
}

.post-body p.poem-attribution {
  margin-bottom: 0;
  margin-top: 0;
}

.post-body img {
  margin: 0.5rem 0.75rem;
}
.post-body img.float-left  { float: left;  margin-right: 1rem; }
.post-body img.float-right { float: right; margin-left:  1rem; }

/* clearfix for floated images */
.post-body::after {
  content: '';
  display: table;
  clear: both;
}

/* ---------- Poem blocks ---------- */
.poem-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--slate);
  margin: 0.5rem 0 0 2rem;
}

.poem-attribution {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
  margin-left: 2rem;
  margin-bottom: 0;
}

.poem-body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-style: normal;
  font-size: 0.97rem;
  line-height: 1.3;
  margin: 0 0 1rem 2rem;
  white-space: pre-line;
}

/* ---------- Separator between sections within a post ---------- */
.post-divider {
  border: none;
border-top: 1px dashed #b0b0b0;
  margin: 1.5rem 0;
}

/* ---------- "Older posts" link at bottom of main column ---------- */
.older-posts-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal);
}
.older-posts-link:hover { color: var(--teal-dark); }

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--sidebar-bg);
  border-left: 3px solid var(--teal);
  padding: 1.5rem;
  font-size: 0.92rem;
}

.sidebar-section {
  margin-bottom: 1.75rem;
}

.sidebar-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.sidebar p {
  margin-bottom: 0.65rem;
  line-height: 1.55;
}

/* Archive list */
.archive-list {
  list-style: none;
  padding: 0;
}
.archive-list li {
  padding: 0.18rem 0;
  border-bottom: 1px solid #e0e7ea;
}
.archive-list li:last-child { border-bottom: none; }
.archive-list a {
  color: var(--slate);
  font-style: italic;
  font-size: 0.88rem;
}
.archive-list a:hover { color: var(--teal); }

/* Sidebar image (books logo, etc.) */
.sidebar img {
  display: block;
  margin: 0.5rem auto;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 3rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .content-area {
    grid-template-columns: 1fr;
  }
  .sidebar {
    border-left: none;
    border-top: 3px solid var(--teal);
  }
  .site-nav {
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-nav, .sidebar { display: none; }
  .content-area { grid-template-columns: 1fr; }
}
