/* ============================================================
   SPEEDHUNTERS ARCHIVE
   Dark Motorsport Editorial
   ============================================================ */

/* ----- Custom Properties ----- */
:root {
  --red: #e31837;
  --red-dark: #b8122c;
  --black: #0a0a0a;
  --black-card: #111111;
  --black-soft: #161616;
  --black-lighter: #1c1c1c;
  --grey-dark: #2a2a2a;
  --grey-mid: #555;
  --grey-light: #999;
  --grey-lighter: #bbb;
  --white: #f0f0f0;
  --white-pure: #ffffff;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui: 'Barlow Condensed', -apple-system, sans-serif;

  --container: 900px;
  --wide: 1280px;
  --gap: 1.25rem;
  --radius: 3px;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  color: var(--white);
  background: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
a:hover { color: var(--white-pure); }

img { max-width: 100%; height: auto; display: block; }

::selection {
  background: var(--red);
  color: var(--white-pure);
}

/* ----- Noise Overlay ----- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wide-container {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-rule {
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red) 30%, transparent 100%);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  text-decoration: none;
  line-height: 1;
}
.site-logo:hover { text-decoration: none; }
.site-logo:hover .logo-speed { color: var(--red); }

.logo-speed {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--white-pure);
  transition: color 0.2s var(--ease-out);
}
.logo-hunters {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--red);
}
.logo-archive {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--grey-light);
  text-transform: uppercase;
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--grey-dark);
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav > a,
.nav-dropdown > a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-light);
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  position: relative;
  transition: color 0.2s var(--ease-out);
}

.site-nav > a:hover,
.nav-dropdown > a:hover {
  color: var(--white-pure);
  text-decoration: none;
}

.site-nav > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s var(--ease-out), left 0.25s var(--ease-out);
}
.site-nav > a:hover::after {
  width: 100%;
  left: 0;
}

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown > a::after {
  content: '';
  position: static;
  display: inline-block;
  width: 0; height: 0;
  margin-left: 0.35em;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: var(--black-soft);
  border: 1px solid var(--grey-dark);
  min-width: 100px;
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--grey-light);
  padding: 0.45rem 1rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-menu a:hover {
  background: var(--red);
  color: var(--white-pure);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { bottom: 0; }

.nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============================================================
   MAIN
   ============================================================ */
.site-main {
  flex: 1;
}

/* ============================================================
   LISTING PAGES
   ============================================================ */
.listing-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--grey-dark);
  margin-bottom: 2.5rem;
}

.listing-header .wide-container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white-pure);
  line-height: 1.1;
}

.page-subtitle {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-top: 0.25rem;
}

.page-indicator {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--grey-light);
  text-transform: uppercase;
}

/* ----- Featured Card (first article on page 1) ----- */
.featured-card {
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
  aspect-ratio: 21 / 9;
  text-decoration: none;
}

.featured-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.featured-card:hover .featured-card-image {
  transform: scale(1.03);
}

.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.05) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
}

.featured-card-category {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.featured-card-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white-pure);
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 0.6rem;
}

.featured-card-meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--grey-lighter);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ----- Article Cards Grid ----- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-bottom: 3rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--black-card);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid transparent;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.article-card:hover {
  border-color: var(--grey-dark);
  transform: translateY(-2px);
  text-decoration: none;
}

.article-card-image-wrap {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--black-soft);
}

.article-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.article-card:hover .article-card-image {
  transform: scale(1.04);
}

.article-card-body {
  padding: 1rem 1.1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-category {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 0.4rem;
}

.article-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 0.5rem;
  transition: color 0.2s var(--ease-out);
}

.article-card:hover .article-card-title { color: var(--white-pure); }

.article-card-meta {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--grey-mid);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Shared meta dot */
.meta-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--grey-mid);
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

/* ----- Pagination ----- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 0 4rem;
}

.pagination-btn {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--grey-dark);
  color: var(--grey-light);
  transition: all 0.2s var(--ease-out);
}

.pagination-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white-pure);
  text-decoration: none;
}

.pagination-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.pagination-info {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--grey-mid);
  min-width: 100px;
  text-align: center;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */

/* Hero full-bleed */
.article-hero-wrap {
  position: relative;
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
}

.article-hero {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  display: block;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.6) 35%,
    rgba(10, 10, 10, 0.1) 60%,
    rgba(10, 10, 10, 0.15) 100%
  );
  display: flex;
  align-items: flex-end;
}

.article-hero-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  width: 100%;
}

/* No-hero fallback */
.article-header-nohero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--grey-dark);
  margin-bottom: 2rem;
}

/* Category badges */
.article-category-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.category-badge {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  border: 1px solid var(--red);
  padding: 0.2rem 0.6rem;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.category-badge:hover {
  background: var(--red);
  color: var(--white-pure);
  text-decoration: none;
}

/* Title */
.article-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.08;
  color: var(--white-pure);
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}

/* Meta */
.article-meta {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--grey-lighter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.article-meta a {
  color: var(--grey-lighter);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.article-meta a:hover {
  color: var(--white-pure);
  border-bottom-color: var(--red);
}

/* Article container */
.article-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
}

/* ----- Article Body ----- */
.article-body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--grey-lighter);
}

.article-body p {
  margin-bottom: 1.4rem;
}

.article-body strong { color: var(--white); font-weight: 600; }
.article-body em { font-style: italic; }

.article-body a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(227, 24, 55, 0.3);
  transition: border-color 0.2s var(--ease-out);
}
.article-body a:hover {
  border-bottom-color: var(--red);
  color: var(--white-pure);
}

/* Headings in body */
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white-pure);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-top: 2px solid var(--red);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.article-body h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

/* Images in body */
.article-body img {
  width: 100%;
  margin: 1.75rem 0;
  background: var(--black-soft);
}

.article-body figure {
  margin: 2rem 0;
}

.article-body figure img {
  margin: 0;
}

.article-body figcaption {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--grey-mid);
  text-align: center;
  margin-top: 0.6rem;
  letter-spacing: 0.04em;
}

.article-body blockquote {
  border-left: 3px solid var(--red);
  padding: 1rem 1.5rem;
  margin: 1.75rem 0;
  background: var(--black-soft);
  color: var(--grey-lighter);
  font-style: italic;
}

.article-body ul, .article-body ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.article-body li { margin-bottom: 0.4rem; }

/* Image gallery */
.image-gallery,
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin: 2rem 0;
}

.image-gallery img,
.gallery img {
  width: 100%;
  margin: 0;
  transition: opacity 0.3s var(--ease-out);
  cursor: pointer;
}

.image-gallery img:hover,
.gallery img:hover { opacity: 0.85; }

/* Chapter breaks */
.sh-post-chapter-break {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white-pure);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 2px solid var(--red);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ----- Tags ----- */
.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-dark);
}

.article-tags {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.tags-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-mid);
  padding-top: 0.3rem;
  flex-shrink: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-pill {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--grey-light);
  background: var(--black-soft);
  border: 1px solid var(--grey-dark);
  padding: 0.25rem 0.65rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s var(--ease-out);
}

.tag-pill:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white-pure);
  text-decoration: none;
}

/* ----- Original Link ----- */
.original-link {
  margin-top: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--grey-mid);
  padding: 1rem;
  border: 1px solid var(--grey-dark);
}

.original-link a { color: var(--grey-light); }
.original-link a:hover { color: var(--white-pure); }

/* ----- Prev / Next ----- */
.article-nav {
  background: var(--black-soft);
  border-top: 1px solid var(--grey-dark);
  margin-top: 3rem;
}

.article-nav-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.article-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 2rem 1.5rem;
  text-decoration: none;
  transition: background 0.2s var(--ease-out);
}

.article-nav-link:hover {
  background: var(--black-lighter);
  text-decoration: none;
}

.article-nav-link.empty { pointer-events: none; }

.article-nav-link.next {
  text-align: right;
  border-left: 1px solid var(--grey-dark);
}

.article-nav-link .nav-direction {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}

.article-nav-link .nav-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--grey-lighter);
  line-height: 1.3;
  transition: color 0.2s var(--ease-out);
}

.article-nav-link:hover .nav-title { color: var(--white-pure); }

/* ============================================================
   AUTHORS INDEX
   ============================================================ */
.author-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--black-card);
  text-decoration: none;
  transition: background 0.2s var(--ease-out);
  border-left: 2px solid transparent;
}

.author-card:hover {
  background: var(--black-lighter);
  border-left-color: var(--red);
  text-decoration: none;
}

.author-card-initial {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white-pure);
  background: var(--grey-dark);
  flex-shrink: 0;
}

.author-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.author-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.author-card-count {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--grey-mid);
  letter-spacing: 0.04em;
}

/* ============================================================
   TAG CLOUD
   ============================================================ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 1rem 0 3rem;
}

.tag-cloud-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--grey-light);
  background: var(--black-card);
  border: 1px solid var(--grey-dark);
  padding: 0.3rem 0.75rem;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
}

.tag-cloud-pill:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white-pure);
  text-decoration: none;
}

.tag-cloud-count {
  font-size: 0.65rem;
  color: var(--grey-mid);
  transition: color 0.2s var(--ease-out);
}

.tag-cloud-pill:hover .tag-cloud-count { color: rgba(255,255,255,0.7); }

/* ============================================================
   YEARS INDEX
   ============================================================ */
.years-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 0 0 3rem;
}

.year-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--black-card);
  text-decoration: none;
  transition: background 0.2s var(--ease-out);
  border-left: 2px solid transparent;
}

.year-card:hover {
  background: var(--black-lighter);
  border-left-color: var(--red);
  text-decoration: none;
}

.year-card-year {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white-pure);
  letter-spacing: 0.04em;
  min-width: 80px;
}

.year-card-bar {
  flex: 1;
  height: 4px;
  background: var(--grey-dark);
  overflow: hidden;
}

.year-card-bar-fill {
  height: 100%;
  background: var(--red);
  transition: width 0.5s var(--ease-out);
}

.year-card-count {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--grey-mid);
  letter-spacing: 0.06em;
  white-space: nowrap;
  min-width: 85px;
  text-align: right;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 800;
  color: var(--grey-dark);
  line-height: 1;
  letter-spacing: 0.05em;
}

.error-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.error-text {
  font-family: var(--font-body);
  color: var(--grey-mid);
  margin-top: 0.75rem;
}

.error-link {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-pure);
  border: 1px solid var(--red);
  padding: 0.65rem 1.75rem;
  text-decoration: none;
  transition: background 0.2s var(--ease-out);
}

.error-link:hover {
  background: var(--red);
  text-decoration: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--grey-dark);
  padding: 3rem 1.25rem;
  margin-top: 2rem;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--grey-dark);
}

.footer-years {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--grey-mid);
}

.footer-text {
  text-align: right;
  max-width: 400px;
}

.footer-text p {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--grey-mid);
  line-height: 1.6;
}

.footer-original { margin-top: 0.35rem; }
.footer-text a { color: var(--grey-light); }
.footer-text a:hover { color: var(--red); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablets */
@media (min-width: 480px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .author-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .page-title { font-size: 3rem; }
  .article-title { font-size: 3.2rem; }
  .featured-card-title { font-size: 3.2rem; }
  .article-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .image-gallery, .gallery { gap: 6px; }
  .years-grid { grid-template-columns: 1fr; }
  .author-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop */
@media (min-width: 1024px) {
  .article-grid { grid-template-columns: repeat(3, 1fr); }
  .image-gallery, .gallery { grid-template-columns: repeat(2, 1fr); }
  .author-grid { grid-template-columns: repeat(3, 1fr); }

  /* Break article images out of the container slightly */
  .article-body > figure,
  .article-body > .gallery,
  .article-body > .image-gallery {
    margin-left: -3rem;
    margin-right: -3rem;
  }
}

@media (min-width: 1280px) {
  .article-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile */
@media (max-width: 719px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--black);
    border-top: 1px solid var(--grey-dark);
    flex-direction: column;
    padding: 0.75rem 1.25rem 1rem;
    z-index: 99;
  }
  .site-nav.open { display: flex; }

  .site-nav > a,
  .nav-dropdown > a {
    padding: 0.65rem 0;
    font-size: 0.9rem;
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    border: none;
    padding-left: 1rem;
    max-height: 200px;
  }

  .article-title { font-size: 2rem; }
  .featured-card { aspect-ratio: 4 / 3; }
  .featured-card-title { font-size: 1.6rem; }
  .featured-card-overlay { padding: 1.25rem; }

  .article-hero { height: 50vh; }
  .article-hero-content { padding: 1.5rem 1.25rem; }

  .article-nav-inner { grid-template-columns: 1fr; }
  .article-nav-link.next { border-left: none; border-top: 1px solid var(--grey-dark); }

  .footer-inner { flex-direction: column; }
  .footer-text { text-align: left; }

  .listing-header { padding: 2rem 0 1.5rem; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.article-card {
  animation: fadeUp 0.4s var(--ease-out) both;
}
.article-card:nth-child(1)  { animation-delay: 0s; }
.article-card:nth-child(2)  { animation-delay: 0.04s; }
.article-card:nth-child(3)  { animation-delay: 0.08s; }
.article-card:nth-child(4)  { animation-delay: 0.12s; }
.article-card:nth-child(5)  { animation-delay: 0.16s; }
.article-card:nth-child(6)  { animation-delay: 0.2s; }
.article-card:nth-child(7)  { animation-delay: 0.24s; }
.article-card:nth-child(8)  { animation-delay: 0.28s; }

.featured-card { animation: fadeUp 0.5s var(--ease-out) both; }

.article-hero-content {
  animation: fadeUp 0.6s var(--ease-out) 0.1s both;
}
