/* ==========================================================================
   The Parable Blueprint — style.css
   Academic research site by Anne Sugano
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: #333333;
  background: #ffffff;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", serif;
  color: #2c3e50;
  line-height: 1.3;
  margin-bottom: 0.6em;
}

h1 { font-size: 1.9rem; margin-top: 0; }
h2 { font-size: 1.5rem; margin-top: 1.8rem; }
h3 { font-size: 1.25rem; margin-top: 1.4rem; }
h4 { font-size: 1.1rem; margin-top: 1.2rem; }

p {
  margin-bottom: 1em;
}

a {
  color: #4a6da7;
  text-decoration: underline;
}

a:hover {
  color: #2c3e50;
}

blockquote {
  border-left: 4px solid #4a6da7;
  margin: 1.5em 0;
  padding: 1em 1.5em;
  background: #f8f8f8;
  font-style: italic;
  color: #444;
}

blockquote cite,
blockquote .cite {
  display: block;
  margin-top: 0.8em;
  font-style: normal;
  font-weight: 600;
  color: #333;
  font-size: 0.95em;
}

ul, ol {
  margin: 1em 0 1em 1.5em;
}

li {
  margin-bottom: 0.4em;
}

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

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}

/* --- Layout --- */
.site-wrapper {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 20px;
  flex: 1;
  width: 100%;
}

/* --- Header --- */
.site-header {
  background: #fff;
  border-bottom: 2px solid #4a6da7;
  padding: 1.2em 0;
  position: relative;
}

.site-header .site-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  color: #2c3e50;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.site-title:hover {
  color: #4a6da7;
}

.site-subtitle {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.2em;
  font-style: italic;
}

/* --- Navigation --- */
.site-nav {
  background: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
}

.site-nav .site-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.7em 1em;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  background: #4a6da7;
  color: #fff;
}

/* --- Main Content --- */
.site-main {
  padding: 2em 0 3em;
  flex: 1;
}

/* --- Homepage Layout (two-column) --- */
.home-layout {
  display: flex;
  gap: 2em;
  align-items: flex-start;
}

.home-content {
  flex: 1;
  min-width: 0;
}

.home-sidebar {
  width: 260px;
  flex-shrink: 0;
}

/* --- Sidebar Testimonial --- */
.testimonial-box {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #4a6da7;
  padding: 1.3em;
  border-radius: 3px;
  margin-bottom: 1.5em;
}

.testimonial-box p {
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 0.8em;
}

.testimonial-box .testimonial-author {
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
  color: #2c3e50;
}

.sidebar-section {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  padding: 1.2em;
  border-radius: 3px;
  margin-bottom: 1.5em;
}

.sidebar-section h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.6em;
  color: #4a6da7;
}

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

.sidebar-section li {
  margin-bottom: 0.3em;
}

.sidebar-section a {
  font-size: 0.9rem;
}

/* --- Parable Color Codes --- */
.parable-section {
  padding: 0.8em 1em;
  margin: 0.5em 0;
  border-radius: 3px;
  border-left: 5px solid;
}

.parable-pr {
  background: rgba(231, 76, 60, 0.08);
  border-color: #e74c3c;
}

.parable-bg {
  background: rgba(52, 152, 219, 0.08);
  border-color: #3498db;
}

.parable-cp {
  background: rgba(46, 204, 113, 0.08);
  border-color: #2ecc71;
}

.parable-wt {
  background: rgba(243, 156, 18, 0.08);
  border-color: #f39c12;
}

.parable-sf {
  background: rgba(155, 89, 182, 0.08);
  border-color: #9b59b6;
}

.parable-section .label {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3em;
  display: block;
}

.parable-pr .label { color: #e74c3c; }
.parable-bg .label { color: #3498db; }
.parable-cp .label { color: #2ecc71; }
.parable-wt .label { color: #f39c12; }
.parable-sf .label { color: #9b59b6; }

/* Color legend */
.color-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin: 1.5em 0;
  padding: 1em;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
}

.color-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.85rem;
}

.color-legend .swatch {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
}

.swatch-pr { background: #e74c3c; }
.swatch-bg { background: #3498db; }
.swatch-cp { background: #2ecc71; }
.swatch-wt { background: #f39c12; }
.swatch-sf { background: #9b59b6; }

/* --- Book List --- */
.book-list {
  list-style: none;
  padding: 0;
  margin: 1.5em 0;
}

.book-list li {
  padding: 1em 0;
  border-bottom: 1px solid #e0e0e0;
}

.book-list li:last-child {
  border-bottom: none;
}

.book-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  display: block;
  margin-bottom: 0.3em;
}

.book-desc {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.6;
}

/* --- Blog List --- */
.blog-list {
  list-style: none;
  padding: 0;
  margin: 1.5em 0;
}

.blog-list li {
  padding: 1.2em 0;
  border-bottom: 1px solid #e0e0e0;
}

.blog-list li:last-child {
  border-bottom: none;
}

.blog-list a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.blog-list .blog-excerpt {
  margin-top: 0.4em;
  font-size: 0.92rem;
  color: #555;
}

.blog-list .blog-date {
  font-size: 0.82rem;
  color: #888;
  margin-top: 0.3em;
}

/* --- Blog Post --- */
.post-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1.5em;
}

.post-content {
  line-height: 1.8;
}

.post-content p {
  margin-bottom: 1.1em;
}

.post-nav {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
}

/* --- Contact Form (static) --- */
.contact-info {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  padding: 1.5em;
  border-radius: 3px;
  margin: 1.5em 0;
}

/* --- Footer --- */
.site-footer {
  background: #2c3e50;
  color: #ccc;
  padding: 1.5em 0;
  font-size: 0.85rem;
  margin-top: auto;
}

.site-footer .site-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
}

.site-footer a {
  color: #aab;
  text-decoration: underline;
}

.site-footer a:hover {
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .home-layout {
    flex-direction: column;
  }

  .home-sidebar {
    width: 100%;
  }

  .site-nav .site-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
  }

  .site-footer .site-wrapper {
    flex-direction: column;
    text-align: center;
  }

  h1 { font-size: 1.5rem; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1em; }
.mt-2 { margin-top: 2em; }
.mb-1 { margin-bottom: 1em; }
.mb-2 { margin-bottom: 2em; }
