:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #2563eb;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f6f1ea;
  color: #4a3f35;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main.container {
  flex: 1;
  width: 100%;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  background-color: #f6f1ea;
  border-bottom: 1px solid #e5ddd0;
  padding: 1.25rem 0;
  margin-bottom: 2.5rem;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.site-brand {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #4a3f35;
  text-decoration: none;
}

.site-tagline {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  font-style: italic;
  color: #6b645c;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.site-header nav a:hover {
  color: var(--accent);
}

.post-card {
  display: flex;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.card-thumb-link {
  flex: 0 0 220px;
  width: 220px;
  display: block;
}

.card-thumb,
article img {
  max-width: 400px;
  max-height: 400px;
  width: auto;
  height: auto;
  display: block;
}

.card-thumb {
  width: 220px !important;
  max-width: 400px !important;
  max-height: 400px !important;
  height: auto !important;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

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

.card-content h2 {
  font-size: 1.3rem;
  margin: 0.25rem 0 0.5rem;
}

.card-content h2 a {
  color: var(--text);
  text-decoration: none;
}

.card-content h2 a:hover {
  color: var(--accent);
}

.post-summary {
  color: #475569;
  font-size: 0.96rem;
  margin-bottom: 0.75rem;
}

.read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.full-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}

.post-header {
  margin-bottom: 1.5rem;
}

.post-header h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin-top: 0.35rem;
}

.post-hero-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.75rem;
}

.post-body p,
.post-body h2,
.post-body ol {
  margin-bottom: 1.15rem;
}

.post-body ol {
  padding-left: 1.5rem;
}

.post-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.post-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* Warm editorial hero layout */
.hero-section {
  max-width: 780px;
  margin: 2.5rem auto 3.5rem auto;
  text-align: center;
}

.hero-image-wrapper {
  margin-bottom: 1.75rem;
}

.hero-image {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(74, 63, 53, 0.08);
}

.hero-intro {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #5c4d3c;
  max-width: 720px;
  margin: 0 auto;
}

.hero-intro p {
  margin-bottom: 1rem;
}

.feed-heading {
  font-size: 1.25rem;
  color: #4a3f35;
  border-bottom: 1px solid #e5ddd0;
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}

/* Contrasting Warm Espresso Footer */
.site-footer {
  background: linear-gradient(135deg, #2c241e 0%, #1d1713 100%);
  color: #e6dfd5;
  margin-top: 5rem;
  padding: 4.5rem 0 2rem;
  position: relative;
  clip-path: polygon(0 2rem, 100% 0, 100% 100%, 0 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #d97706, #ea580c, #b45309);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.4fr;
  gap: 2.25rem;
  padding-bottom: 2.25rem;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #faf6f0;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.65rem;
}

.footer-brand p {
  color: #b8aca0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.site-footer h4 {
  color: #f5efe6;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.45rem;
}

.footer-nav a,
.latest-post-link {
  color: #d6ccc2;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-nav a:hover,
.latest-post-link:hover {
  color: #f59e0b;
  transform: translateX(4px);
}

.latest-post-link {
  font-weight: 600;
  line-height: 1.4;
}

.latest-post-date,
.muted-note {
  display: block;
  font-size: 0.8rem;
  color: #9c8f82;
  margin-top: 0.3rem;
}

.footer-bottom {
  border-top: 1px solid rgba(230, 223, 213, 0.14);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: #9c8f82;
}

.rss-badge {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.rss-badge:hover {
  background: rgba(245, 158, 11, 0.26);
}

/* About Page Portrait & Blockquote Styling */
.about-profile {
  float: right;
  margin: 0.25rem 0 1.25rem 1.75rem;
}

.about-photo {
  width: 230px !important;
  height: 230px !important;
  max-width: 230px !important;
  max-height: 230px !important;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #e5ddd0;
  box-shadow: 0 6px 18px rgba(74, 63, 53, 0.12);
}

.post-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background-color: #f6f1ea;
  border-left: 4px solid #d97706;
  border-radius: 0 8px 8px 0;
  font-size: 1.1rem;
  color: #4a3f35;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e0d8;
  font-size: 0.95rem;
}

.page-link {
  text-decoration: none;
  font-weight: 600;
  color: inherit;
  padding: 0.5rem 1rem;
  border: 1px solid #d6cfc2;
  border-radius: 6px;
}

.page-link:hover:not(.disabled) {
  background-color: #f4f0e8;
}

.page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.page-info {
  color: #6b645c;
}

/* Enhanced Editorial Search Bar & Archive Controls */
.archive-header {
  margin-bottom: 2.25rem;
}

.archive-meta {
  color: #6b645c;
  margin-bottom: 1.25rem;
}

.archive-search-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
  margin-bottom: 2.25rem;
}

.archive-search-input {
  flex: 1 1 100%;
  width: 100%;
  padding: 0.95rem 1.2rem 0.95rem 2.9rem;
  font-size: 1.08rem;
  font-family: inherit;
  color: #4a3f35;
  background-color: #ffffff;
  border: 1px solid #d6cfc2;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(74, 63, 53, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238c6d46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 1rem center;