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

:root {
  --accent: #b52a2a;
  --dark:   #111111;
  --body:   #222222;
  --muted:  #6b6b6b;
  --border: #e4e4e0;
  --bg:     #f5f5f2;
  --white:  #ffffff;
  --max:    1200px;
  --read:   720px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
       background: var(--bg); color: var(--body); line-height: 1.6; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header { background: var(--dark); border-bottom: 3px solid var(--accent); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap;
}
.site-title {
  color: #fff; font-family: Georgia, serif;
  font-size: 1.6rem; font-weight: 700;
}
.site-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a {
  color: rgba(255,255,255,0.65); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 0.35rem 0.75rem; border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* Tags & byline */
.tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--accent); margin-right: 0.4rem;
}
.tag:hover { text-decoration: underline; }
.byline { font-size: 0.8rem; color: var(--muted); margin-top: 0.6rem; }
.byline .author { font-weight: 600; color: var(--body); }
.byline .sep { margin: 0 0.35rem; }

/* Featured */
.featured {
  padding: 2.5rem 0; background: var(--white);
  border-bottom: 1px solid var(--border);
}
.featured-article {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem; align-items: start;
}
.featured-img-link { display: block; overflow: hidden; border-radius: 3px; }
.featured-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  transition: transform 0.3s;
}
.featured-img-link:hover .featured-img { transform: scale(1.02); }
.article-tags { margin-bottom: 0.25rem; }
.featured-title {
  font-family: Georgia, serif; font-size: 1.9rem;
  line-height: 1.2; font-weight: 700; margin: 0.6rem 0 0.75rem;
}
.featured-title a:hover { color: var(--accent); }
.excerpt { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

/* Grid & cards */
.news-grid { padding: 2.5rem 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white); border-radius: 3px;
  border: 1px solid var(--border); overflow: hidden;
  display: flex; flex-direction: column;
}
.card-img-link { display: block; overflow: hidden; }
.card-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  transition: transform 0.3s;
}
.card-img-link:hover .card-img { transform: scale(1.03); }
.card-body {
  padding: 1.1rem 1.1rem 1.25rem;
  flex: 1; display: flex; flex-direction: column;
}
.card-body h2 {
  font-family: Georgia, serif; font-size: 1.05rem;
  line-height: 1.35; margin: 0.4rem 0 0.5rem; font-weight: 700;
}
.card-body h2 a:hover { color: var(--accent); }
.card-excerpt {
  font-size: 0.855rem; color: var(--muted);
  line-height: 1.55; flex: 1;
}

/* Article single */
.article-wrapper { padding-bottom: 3rem; }
.article-header {
  max-width: var(--read); padding: 2.5rem 1.5rem 1.5rem; margin: 0 auto;
}
.article-title {
  font-family: Georgia, serif; font-size: 2.2rem;
  line-height: 1.18; font-weight: 700; margin: 0.75rem 0 0;
}
.article-feature-img {
  width: 100%; max-height: 520px; object-fit: cover; margin: 1.5rem 0;
}
.article-body { max-width: var(--read); margin: 0 auto; padding: 0 1.5rem; }
.content {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem; line-height: 1.82;
}
.content p              { margin-bottom: 1.4em; }
.content h2             { font-family: -apple-system, sans-serif; font-size: 1.45rem; margin: 2em 0 0.6em; line-height: 1.25; }
.content h3             { font-family: -apple-system, sans-serif; font-size: 1.2rem; margin: 1.75em 0 0.5em; }
.content ul, .content ol { margin: 0 0 1.4em 1.5em; }
.content li             { margin-bottom: 0.4em; }
.content blockquote     { border-left: 3px solid var(--accent); margin: 1.75em 0; padding: 0.25em 1.5em; color: var(--muted); font-style: italic; }
.content blockquote p   { margin-bottom: 0; }
.content img            { margin: 1.75em auto; border-radius: 3px; }
.content figcaption     { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: -1.25em; margin-bottom: 1.75em; font-style: italic; font-family: -apple-system, sans-serif; }
.content a              { color: var(--accent); text-decoration: underline; }
.content a:hover        { opacity: 0.8; }
.content hr             { border: none; border-top: 1px solid var(--border); margin: 2.5em 0; }

/* Related */
.related {
  background: var(--white); border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.related-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1.5rem;
}
.related .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Tag/section pages */
.section-header {
  padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.tag-prefix {
  display: block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 0.3rem;
}
.section-title { font-family: Georgia, serif; font-size: 2rem; font-weight: 700; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 1.75rem 0;
  text-align: center; font-size: 0.78rem; color: var(--muted);
}
.site-footer a:hover { color: var(--body); }

/* Responsive */
@media (max-width: 768px) {
  .featured-article { grid-template-columns: 1fr; gap: 1.25rem; }
  .featured-title   { font-size: 1.5rem; }
  .article-title    { font-size: 1.65rem; }
  .content          { font-size: 1rem; }
}
