/* ============================================================
   Editorial — Premium newspaper/magazine aesthetic
   Font: Playfair Display (headings) + Inter (body)
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #1a1a1a;
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-link); text-decoration: none; transition: color 0.12s; }
a:hover { color: var(--c-link-hover); text-decoration: underline; }

.skip-link {
  position: absolute; top: -999px; left: 1rem;
  background: var(--c-accent); color: var(--c-accent-text);
  padding: 0.5rem 1rem; border-radius: 0 0 6px 6px; z-index: 999; font-size: 0.875rem;
}
.skip-link:focus { top: 0; }

/* ---------- HEADER ---------- */
header {
  background: #111827;           /* IE11 fallback: CSS custom properties not supported */
  background: var(--c-header);
  color: #fff;
  border-bottom: 3px solid var(--c-accent);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
  gap: 1.5rem;
}
.site-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}
.site-title:hover { text-decoration: none; color: #fff; }
.site-title span { color: var(--c-suffix); font-weight: 400; font-style: italic; }

.header-inner nav { display: flex; gap: 0; flex-wrap: nowrap; overflow-x: auto; }
.header-inner nav a {
  color: var(--c-nav);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s;
}
.header-inner nav a:hover { color: #fff; text-decoration: none; }

/* ---------- MAIN ---------- */
main {
  max-width: 740px;
  margin: 3rem auto 5rem;
  padding: 0 1.5rem;
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--c-link); font-weight: 500; }

/* ---------- PAGE TITLE ---------- */
main > h1,
main > p.breadcrumb + h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.625rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--c-border);
}

/* ---------- ARTICLE META ---------- */
.article-date {
  font-size: 0.8125rem;
  color: #6b7280;
  font-style: italic;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

/* ---------- ARTICLE IMAGE ---------- */
.article-image {
  margin: 0 -1.5rem 2.5rem;
}
.article-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.article-image figcaption {
  font-size: 0.75rem;
  font-style: italic;
  color: #9ca3af;
  padding: 0.5rem 1.5rem;
  text-align: right;
}

/* ---------- ARTICLE TYPOGRAPHY ---------- */
main h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-h2);
  margin: 2.5rem 0 0.875rem;
  line-height: 1.3;
}
main h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.75rem 0 0.5rem;
}
main p { margin-bottom: 1.25rem; color: #1f2937; }
main ul, main ol { margin: 0 0 1.25rem 1.5rem; color: #1f2937; }
main li { margin-bottom: 0.5rem; }
main strong { font-weight: 600; color: #111827; }
main blockquote {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: #374151;
  border-left: 4px solid var(--c-accent);
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
}

/* ---------- ARTICLE LIST ---------- */
.article-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0;
}
.article-list li {
  border-bottom: 1px solid var(--c-border);
}
.article-list li:first-child { border-top: 1px solid var(--c-border); }
.article-list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 1.0625rem;
  font-weight: 400;
  color: #111827;
  text-decoration: none;
  transition: color 0.12s;
}
.article-list a:hover { color: var(--c-accent); text-decoration: none; }
.article-list a::before {
  content: counter(list-item, decimal-leading-zero);
  counter-increment: list-item;
  font-size: 0.75rem;
  color: var(--c-accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  min-width: 2rem;
}
.article-list { counter-reset: list-item; }

/* ---------- RELATED ARTICLES ---------- */
.related-articles {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 3px double var(--c-border);
}
.related-articles h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.875rem;
  font-style: italic;
  color: #6b7280;
  margin-bottom: 1rem;
  padding: 0; border: none;
  letter-spacing: 0;
  text-transform: none;
}
.related-articles ul { list-style: none; padding: 0; }
.related-articles li { border-bottom: 1px solid var(--c-border); }
.related-articles li a {
  display: block;
  padding: 0.75rem 0;
  color: #111827;
  font-size: 1rem;
  font-style: italic;
  transition: color 0.12s;
}
.related-articles li a:hover { color: var(--c-accent); text-decoration: none; }

/* ---------- PAGINATION ---------- */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
}
.pagination a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--c-accent);
  transition: opacity 0.15s;
}
.pagination a:hover { text-decoration: none; opacity: 0.75; }
.pagination-info { font-size: 0.8125rem; color: #9ca3af; font-style: italic; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--c-footer);
  color: var(--c-footer-text);
  padding: 3rem 1.5rem;
  border-top: 3px solid var(--c-accent);
}
footer p {
  max-width: 740px; margin: 0 auto; text-align: center;
  font-size: 0.8125rem; font-style: italic;
}
footer a { color: var(--c-footer-hover); }
footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .article-image { margin: 0 0 2rem; }
  main > h1 { font-size: 2rem; }
  .header-inner { height: 56px; padding: 0 1rem; }
}
@media (max-width: 480px) {
  main { padding: 0 1rem; }
  main > h1 { font-size: 1.75rem; }
}

/* ---------- FOOTER LAYOUT ---------- */
.footer-inner {
  max-width: 740px; margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-tagline { font-style: italic; margin: 0; }
.footer-nav { display: flex; gap: 0; flex-wrap: wrap; margin: 0; }
.footer-nav a {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem; border-right: 1px solid rgba(255,255,255,0.2);
}
.footer-nav a:last-child { border-right: none; }
.footer-copy { max-width: 740px; margin: 0 auto; text-align: center; }
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav { justify-content: center; }
}

/* ---------- ACTIVE NAV ---------- */
.header-inner nav a.nav-active {
  color: #fff;
  border-bottom: 2px solid var(--c-accent);
  padding-bottom: calc(0.5rem - 2px);
  text-decoration: none;
}
