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

:root {
  --cream: #f7f4ef;
  --cream-dark: #ede9e2;
  --ink: #1a1a1a;
  --ink-mid: #444;
  --ink-light: #777;
  --accent: #c0392b;
  --rule: #d4cfc8;
  --max-width: 740px;
}

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 18px;
  line-height: 1.65;
}

/* ── Header ── */
header {
  border-bottom: 2px solid var(--ink);
  padding: 2rem 1.5rem 1.25rem;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-name {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.site-name:hover {
  color: var(--accent);
}

.site-tagline {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-light);
  font-family: Georgia, serif;
}

/* ── Nav strip ── */
nav {
  background-color: var(--cream-dark);
  border-bottom: 1px solid var(--rule);
  padding: 0.5rem 1.5rem;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-size: 0.8rem;
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--ink-mid);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ink-light);
}

.breadcrumb a {
  color: var(--ink-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  margin: 0 0.4rem;
}

/* ── Main layout ── */
main {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
}

main.article {
  margin-top: 2rem;
}

/* ── Section heading ── */
.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: 0.75rem;
  font-family: Georgia, serif;
  font-style: normal;
  font-weight: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  white-space: nowrap;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ── Article list (index pages) ── */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list li {
  border-bottom: 1px solid var(--rule);
  padding: 0.75rem 0;
}

.article-list li:first-child {
  padding-top: 0;
}

.article-list a {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 0.15rem;
}

.article-list a:hover {
  color: var(--accent);
}

/* ── Article cards (with image) ── */
.article-card {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 1.25rem;
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
  align-items: start;
}

.article-card:first-child {
  padding-top: 0;
}

.article-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.article-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

/* ── Category label ── */
.category-label,
.article-category {
  display: block;
  font-size: 0.65rem;
  font-family: Georgia, serif;
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.1rem 0;
}

/* ── Date & meta ── */
.date,
.article-meta {
  font-size: 0.78rem;
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--ink-light);
}

/* ── Article page ── */
.article-header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.article-header h1 {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.article-header .article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-hero {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 2rem;
}

/* ── Article body content ── */
.article-content h1 {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.article-content h2 {
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.3;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.article-content p {
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.article-content p:last-child {
  margin-bottom: 0;
}

.article-content em {
  font-style: italic;
}

.article-content strong {
  font-weight: bold;
}

/* ── Source link ── */
.source-link {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-light);
}

.source-link a {
  color: var(--accent);
  text-decoration: none;
}

.source-link a:hover {
  text-decoration: underline;
}

/* ── Related articles ── */
.related {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--rule);
}

.related-heading {
  font-size: 0.75rem;
  font-family: Georgia, serif;
  font-style: normal;
  font-weight: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 1.25rem;
}

.related ul {
  list-style: none;
}

.related ul li {
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 0;
}

.related ul li:first-child {
  padding-top: 0;
}

.related ul li a {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
}

.related ul li a:hover {
  color: var(--accent);
}

.related ul li .date {
  display: block;
  margin-top: 0.2rem;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copyright {
  font-size: 0.78rem;
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--ink-light);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.78rem;
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--ink-light);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-name { font-size: 1.5rem; }
  .article-content h1,
  .article-header h1 { font-size: 1.5rem; }
  .article-list a { font-size: 1.05rem; }
  .article-card {
    grid-template-columns: 1fr;
  }
  .article-card img {
    height: 180px;
    order: -1;
  }
}
