:root {
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ink: #1a1a1a;
  --paper: #fdfcf9;
  --rule: #ddd8cd;
  --accent: #a00000;
  --muted: #6b6559;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 18px;
}
.site-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  display: inline-flex;
}
.site-logo {
  display: block;
  height: 60px;
  width: auto;
}
.nav-toggle {
  display: none;
}
.nav-burger {
  position: relative;
  display: block;
  width: 28px;
  height: 22px;
  cursor: pointer;
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: var(--ink);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    opacity 0.3s ease;
}
.nav-burger span::before {
  transform: translateY(-7px);
}
.nav-burger span::after {
  transform: translateY(7px);
}
.nav-burger:hover span,
.nav-burger:hover span::before,
.nav-burger:hover span::after {
  background: var(--accent);
}
.nav-toggle:checked ~ .nav-burger span {
  background: transparent;
}
.nav-toggle:checked ~ .nav-burger span::before {
  transform: rotate(45deg);
}
.nav-toggle:checked ~ .nav-burger span::after {
  transform: rotate(-45deg);
}
.site-nav {
  display: none;
  position: absolute;
  top: calc(100% - 24px);
  right: 18px;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 1;
}
.nav-toggle:checked ~ .site-nav {
  display: flex;
}
.site-nav a {
  margin-left: 0;
}

/* Language selector */
.lang-select {
  position: relative;
}
.lang-select-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.lang-select-current::-webkit-details-marker {
  display: none;
}
.lang-select-current:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.lang-select-flag {
  font-size: 1.1rem;
  line-height: 1;
}
.lang-select-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 5;
}
.lang-select-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink);
}
.lang-select-item a:hover {
  background: var(--paper);
  text-decoration: none;
}

/* Kicker / labels */
.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 8px;
}
.kicker a {
  text-decoration: none;
}
.kicker a:hover {
  text-decoration: underline;
}
.section-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 10px;
  margin: 0 0 24px;
}
.byline {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Hero (home, latest article) */
.hero {
  padding: 48px 24px 40px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
.hero-image,
.card-image {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: var(--rule);
}
.hero-image img,
.card-image img {
  display: block;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-image:hover img,
.card-image:hover img {
  transform: scale(1.06);
}
.hero-image {
  margin-bottom: 28px;
}
.hero-image img {
  aspect-ratio: 16 / 7;
}
.hero-title {
  font-size: 3rem;
  line-height: 1.08;
  margin: 0 0 16px;
}
.hero-dek {
  font-size: 1.25rem;
  color: #3a3a3a;
  font-style: italic;
  margin: 0 0 16px;
  max-width: 46em;
}
.hero-cta {
  margin: 20px 0 0;
}
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: #fff;
  padding: 11px 22px;
  border-radius: 2px;
}
.btn:hover {
  background: #7f1918;
  text-decoration: none;
}

/* Card grid (older articles / section list) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px 32px;
  margin-bottom: 32px;
}
.card-image {
  margin-bottom: 14px;
}
.card-image img {
  aspect-ratio: 3 / 2;
}
.card-title {
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 8px;
}
.dek {
  font-size: 0.95rem;
  color: #444;
  margin: 0 0 8px;
}
.older-articles {
  padding-bottom: 56px;
}
.see-all {
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Category list */
.category-list {
  list-style: none;
  margin: 0;
  padding: 0 0 60px;
}
.category-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.category-list a {
  font-size: 1.5rem;
}
.category-list .count {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Breadcrumbs */
.breadcrumbs {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs .sep {
  margin: 0 6px;
}
.breadcrumbs .current {
  color: var(--ink);
}

/* Article detail */
.page-title {
  font-size: 2.2rem;
  padding-bottom: 24px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--rule);
}
.article {
  padding: 32px 24px 80px;
}
.article-header {
  margin-bottom: 36px;
}
.article-title {
  font-size: 2.6rem;
  line-height: 1.1;
  margin: 0 0 18px;
}
.article-dek {
  font-size: 1.3rem;
  font-style: italic;
  color: #3a3a3a;
  margin: 0 0 18px;
}
.article-image {
  margin: 0 0 36px;
}
.article-image img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 2px;
}
.article-body {
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 42em;
}
.article-body blockquote {
  margin: 1.8em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: #3a3a3a;
}
.article-body blockquote p:last-child {
  margin-bottom: 0;
}
.article-body p {
  margin: 0 0 1.4em;
}
.article-body h2 {
  font-size: 1.5rem;
  margin: 1.8em 0 0.6em;
}
.article-body figure {
  margin: 1.8em 0;
}
.article-body img {
  display: block;
  max-width: 100%;
  max-height: 520px;
  height: auto;
  border-radius: 2px;
  margin: 1.8em auto;
}
.article-body figure img {
  margin: 0 auto;
}
.article-image figcaption,
.article-body figcaption {
  margin-top: 0.6em;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  text-align: center;
}
.audio-embed {
  margin: 2rem auto;
  max-width: 720px;
}
.audio-embed-title {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 10px;
}
.audio-embed audio {
  width: 100%;
}
.article-body > p:first-of-type::first-letter {
  float: left;
  font-size: 4.2rem;
  line-height: 0.8;
  padding: 0.08em 0.08em 0 0;
  font-weight: 700;
  color: var(--accent);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 24px 0 60px;
  margin: 0;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.pagination .page-link {
  text-decoration: none;
}

.pagination .page-item.disabled .page-link {
  text-decoration: none;
  color: var(--muted);
}

.pagination .page-item.active .page-link {
  color: var(--accent);
  font-weight: 700;
}

/* Footer */
.site-footer {
  padding: 24px 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: white;
  background-color: #7f1918;
  flex-shrink: 0;
}
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-nav a {
  margin-right: 20px;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}
.footer-nav a:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
  .article-title {
    font-size: 1.9rem;
  }
}
