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

body {
  font-family: "Lora", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  line-height: 1.7;
  color: #333;
  background: #fff;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  margin-bottom: 2rem;
}

.header-bg {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: linear-gradient(180deg, #f0ece3 0%, #f8f6f1 60%, #fff 100%);
  border-bottom: 1px solid #e2dacf;
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
}

header a {
  text-decoration: none;
}

header .site-title {
  font-family: "Lora", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-weight: 400;
  font-size: 1.35rem;
  color: #3d3529;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
}

header .site-title:hover {
  color: #5c5347;
}

.site-title-cross {
  color: #b8a88a;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #8a7f72;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #b8a88a;
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: #5c5347;
}

.nav-links a:hover::after {
  width: 100%;
}

h1, h2, h3 { line-height: 1.3; margin-bottom: 0.5rem; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }

a { color: #2563eb; }
a:hover { color: #1d4ed8; }

.meta {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tags a {
  background: #f1f5f9;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  text-decoration: none;
  color: #475569;
  margin-left: 0.25rem;
}

.content { margin-top: 1rem; }
.content p { margin-bottom: 1rem; }
.content ul, .content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.content blockquote {
  border-left: 3px solid #ddd;
  padding-left: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

.summary {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.summary h2, .summary h3 { margin-bottom: 0.25rem; }
.summary h2 a, .summary h3 a { text-decoration: none; color: #111; }
.summary h2 a:hover, .summary h3 a:hover { color: #2563eb; }
.summary time { color: #999; font-size: 0.85rem; }

.youtube-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1rem 0;
}

.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

footer {
  margin-top: 4rem;
  padding: 0;
  font-size: 0.85rem;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f8f6f1 8%, #f0ece3 100%);
  border-top: none;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 0 1.5rem;
}

.footer-mission-block {
  margin-bottom: 2rem;
}

.footer-cross {
  font-size: 1.4rem;
  color: #b8a88a;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.footer-mission {
  font-family: "Lora", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: #5c5347;
  max-width: 520px;
  margin: 0 auto 0.5rem;
}

.footer-verse {
  font-size: 0.78rem;
  color: #a09585;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #8a7f72;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #5c5347;
}

.footer-links svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c4b9a8;
  display: inline-block;
}

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid #e2dacf;
  color: #b0a595;
  font-size: 0.78rem;
}

/* List & home pages: keep narrow */
.list, .home {
  max-width: 800px;
}

/* Article two-column layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.article-layout--no-sidebar {
  grid-template-columns: 1fr;
  max-width: 800px;
}

.article-main h1 {
  margin-bottom: 1rem;
}

/* Author sidebar */
.sidebar-card {
  background: linear-gradient(170deg, #faf8f4 0%, #f3efe8 100%);
  border: 1px solid #e2dacf;
  border-radius: 10px;
  padding: 1.5rem;
  position: sticky;
  top: 1.5rem;
}

.sidebar-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: #3d3529;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #d4c9b8;
  letter-spacing: 0.02em;
}

.author-avatar {
  text-align: center;
  margin-bottom: 1.25rem;
}

.author-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e2dacf;
  box-shadow: 0 2px 8px rgba(61, 53, 41, 0.1);
}

.sidebar-fields {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.sidebar-field {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #5c5347;
  line-height: 1.4;
}

.sidebar-field svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #a09585;
}

.sidebar-section {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2dacf;
}

.sidebar-section-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #3d3529;
  margin-bottom: 0.5rem;
}

.sidebar-tags {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-tags a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  text-decoration: none;
  color: #5c5347;
  transition: color 0.2s ease;
}

.sidebar-tags a:hover {
  color: #3d3529;
}

.sidebar-tags a svg {
  width: 14px;
  height: 14px;
  color: #b8a88a;
}

@media (max-width: 860px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .author-sidebar {
    order: -1;
  }

  .sidebar-card {
    position: static;
  }
}
