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

body {
  margin: 0;
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1b1b1b;
  background: #fff;
}

a {
  color: #005ea2;
  text-decoration: underline;
}

a:hover, a:focus {
  color: #1a4480;
}

a:visited {
  color: #54278f;
}

h1, h2, h3, h4 {
  font-family: "Merriweather", Georgia, serif;
  color: #1b1b1b;
  line-height: 1.3;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

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

blockquote {
  border-left: 4px solid #005ea2;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  color: #333;
  font-style: italic;
  background: #f9f9f9;
}

blockquote p { margin: 0.25em 0; }

/* ===== Skip Link (Accessibility) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #005ea2;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ===== Header ===== */
.site-header {
  background: #1b1b1b;
  color: #fff;
  padding: 1rem 1.5rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.site-title {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.site-title a {
  color: #fff;
  text-decoration: none;
}

.site-title a:visited {
  color: #fff;
}

.site-description {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #a9aeb1;
}

.site-nav a {
  color: #97d4ea;
  text-decoration: none;
  margin-right: 1.25rem;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #fff;
  text-decoration: underline;
}

.site-nav a:visited {
  color: #97d4ea;
}

/* ===== Layout: Sidebar + Content ===== */
.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  padding: 1.5rem;
}

.sidebar {
  flex: 0 0 220px;
  font-size: 0.9rem;
}

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

/* ===== Sidebar ===== */
.sidebar-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dfe1e2;
}

.sidebar-block:last-child {
  border-bottom: none;
}

.sidebar-block h2 {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #565c65;
  margin: 0 0 0.5rem;
}

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

.sidebar-block li {
  margin-bottom: 0.3rem;
}

.sidebar-block a {
  text-decoration: none;
  color: #005ea2;
}

.sidebar-block a:hover,
.sidebar-block a:focus {
  text-decoration: underline;
}

/* ===== Blog Index ===== */
.blog-summary {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e6e6e6;
}

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

.blog-summary h2 {
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
}

.blog-summary h2 a {
  text-decoration: none;
}

.blog-summary h2 a:hover,
.blog-summary h2 a:focus {
  text-decoration: underline;
}

.post-meta {
  font-size: 0.85rem;
  color: #71767a;
  margin: 0 0 0.5rem;
}

.post-teaser {
  color: #333;
}

.category-nav,
.quote-nav {
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 0.9rem;
}

.category-nav a,
.quote-nav a {
  margin-right: 0.25rem;
}

/* ===== Quote Summary ===== */
.quote-summary {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e6e6e6;
}

.quote-summary:last-child {
  border-bottom: none;
}

.quote-tags {
  font-size: 0.85rem;
}

.quote-tags a {
  margin-right: 0.25rem;
}

/* ===== Single Post ===== */
article h2 {
  margin-top: 0;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid #dfe1e2;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #71767a;
  max-width: 1200px;
  margin: 2rem auto 0;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dfe1e2;
  font-size: 0.95rem;
}

.pagination a {
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border: 1px solid #005ea2;
  border-radius: 3px;
  color: #005ea2;
}

.pagination a:hover,
.pagination a:focus {
  background: #005ea2;
  color: #fff;
}

.page-info {
  color: #71767a;
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .site-wrapper {
    flex-direction: column;
    padding: 1rem;
  }

  .sidebar {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .sidebar-block {
    flex: 1;
    min-width: 150px;
    border-bottom: none;
    padding-bottom: 0;
  }
}
