/* WarrenYoder.net — Shared Stylesheet */

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #111111;
  background-color: #ffffff;
}

a {
  color: #5C2D6E;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Header === */
header {
  background-color: #5C2D6E;
  color: #ffffff;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 4rem;
}

header .site-title {
  font-family: Optima, Candara, 'Trebuchet MS', sans-serif;
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-decoration: none;
}

header .site-title:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* === Navigation === */
nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  font-family: Optima, Candara, 'Trebuchet MS', sans-serif;
  font-size: 0.95rem;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.03em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

nav a:hover,
nav a.active {
  border-bottom-color: #ffffff;
  text-decoration: none;
}

/* === Page Layout === */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* === Homepage: Two-Column === */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 28%;
  gap: 2.5rem;
  align-items: start;
}

.main-content {
  flex: 1 1 65%;
  min-width: 0;
}

.prose-items,
.poems {
  grid-column: 1;
}

.sidebar {
  grid-column: 2;
  grid-row: 1 / 3;
}

/* === Blog Section Header === */
.blog-section-header {
  font-family: Optima, Candara, 'Trebuchet MS', sans-serif;
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5C2D6E;
  border-bottom: 1px solid #5C2D6E;
  padding-bottom: 0.3rem;
  margin-bottom: 1.5rem;
}

/* === Blog Post === */
.blog-post .post-title {
  font-family: Optima, Candara, 'Trebuchet MS', sans-serif;
  font-size: 1.8rem;
  font-weight: normal;
  color: #5C2D6E;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.title-date {
  color: #888888;
}

.blog-post .post-tagline {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.tagline-divider {
  margin: 0.75rem 0;
  border: none;
  border-top: 1px solid #cccccc;
}

.blog-post .post-meta {
  font-size: 0.85rem;
  color: #666666;
  margin-bottom: 1.5rem;
}

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

blockquote {
  border-left: 3px solid #5C2D6E;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: #333333;
}

blockquote p {
  margin-bottom: 1rem;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* === Sidebar === */
.sidebar-section {
  margin-bottom: 2rem;
  max-height: 40vh;
  overflow: hidden;
}

.sidebar-section.has-overflow {
  position: relative;
  padding-bottom: 1.2rem;
}

.sidebar-section.has-overflow::after {
  content: "...";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  text-align: center;
  padding-top: 0.8rem;
  color: #666666;
}

.sidebar-section h2 {
  font-family: Optima, Candara, 'Trebuchet MS', sans-serif;
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5C2D6E;
  border-bottom: 1px solid #5C2D6E;
  padding-bottom: 0.3rem;
  margin-bottom: 0.8rem;
}

.sidebar-section ul {
  list-style: none;
}

.sidebar-section ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.sidebar-section ul li a {
  color: #111111;
}

.sidebar-section ul li .item-meta {
  display: block;
  font-size: 0.78rem;
  color: #888888;
}

/* === Section Pages === */
.section-header {
  margin-bottom: 2rem;
}

.section-header h1 {
  font-family: Optima, Candara, 'Trebuchet MS', sans-serif;
  font-size: 2rem;
  font-weight: normal;
  color: #5C2D6E;
  margin-bottom: 0.4rem;
}

.section-header .section-description {
  font-size: 1rem;
  color: #555555;
}

/* === Chapter / Item Lists === */
.item-list {
  list-style: none;
}

.item-list li {
  border-bottom: 1px solid #e8e8e8;
  padding: 0.9rem 0;
}

.item-list li:first-child {
  border-top: 1px solid #e8e8e8;
}

.item-list .item-title {
  font-family: Optima, Candara, 'Trebuchet MS', sans-serif;
  font-size: 1.5rem;
}

.item-list .item-meta {
  font-size: 0.82rem;
  color: #888888;
  margin-top: 0.15rem;
}

/* === Footer === */
footer {
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: #aaaaaa;
  border-top: 1px solid #e8e8e8;
}

/* === Mobile === */
@media (max-width: 700px) {
  header {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .home-layout {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    gap: 0;
  }

  .prose-items {
    display: contents;
  }

  .prose-items ul.item-list li:first-child {
    order: 0;
    width: 100%;
  }

  .prose-items ul.item-list li:not(:first-child) {
    order: 2;
    width: 100%;
  }

  .sidebar {
    order: 1;
    grid-column: unset;
    grid-row: unset;
    width: 100%;
  }

  .poems {
    order: 3;
    width: 100%;
  }

  [data-ad-number] img {
    max-width: 300px;
  }
}
