html {
  box-sizing: border-box;
}

body, main, article, header, footer, figure, figcaption, div, p, h1, h2, ul, li, a, img {
  box-sizing: inherit;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  background: #f9f8f5;
  color: #222222;
  margin: 0;
  padding: 20px;
}

.article-container {
  max-width: 780px;
  margin: 0 auto;
  background-color: #f5f2eb;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  padding: 35px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  border: 1px solid #ded8cd;
}

.breadcrumb a {
  color: #8b3a2b;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.article-header h1 {
  margin: 15px 0 8px 0;
  font-size: 1.85rem;
  line-height: 1.3;
  color: #222222;
}

.article-meta {
  font-size: 0.85rem;
  color: #666666;
  margin-bottom: 25px;
}

.media-frame {
  margin: 0 0 30px 0;
  text-align: center;
  cursor: pointer;
}

.media-img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #e0ded8;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-frame:hover .media-img {
  transform: scale(1.01);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.hint {
  font-size: 0.8rem;
  color: #666666;
  margin-top: 8px;
}

.article-body p {
  margin: 0 0 1.25rem 0;
  font-size: 1.05rem;
}

.article-body .lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #333333;
  border-left: 3px solid #8b3a2b;
  padding-left: 14px;
  margin-bottom: 25px;
}

.article-body h2 {
  font-size: 1.35rem;
  color: #8b3a2b;
  margin: 35px 0 12px 0;
  border-bottom: 1px solid #e0ded8;
  padding-bottom: 6px;
}

.article-body ul {
  padding-left: 20px;
  margin-bottom: 25px;
}

.article-body li {
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.article-body blockquote {
  margin: 20px 0;
  padding: 12px 20px;
  background: #fdfbf7;
  border-left: 4px solid #8b3a2b;
  color: #444444;
  font-style: italic;
}

.article-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e0ded8;
  text-align: center;
  font-size: 0.85rem;
  color: #666666;
}

.article-footer a {
  color: #8b3a2b;
  text-decoration: none;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 4px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 38px;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 650px) {
  body {
    padding: 10px;
  }
  .article-container {
    padding: 20px;
  }
  .article-header h1 {
    font-size: 1.45rem;
  }
}