/* Premium watch journal — design tokens (Stitch brief aligned) */
:root {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "DM Sans", system-ui, sans-serif;

  --bg: #f5f2ec;
  --surface: #fffcf7;
  --surface-2: #ebe6dc;
  --ink: #111111;
  --ink-muted: #5e5a54;
  --ink-faint: #8c8680;
  --gold: #c4a962;
  --gold-dark: #9a7a3a;
  --charcoal: #1a1a1a;
  --line: rgba(17, 17, 17, 0.08);
  --line-strong: rgba(17, 17, 17, 0.14);

  --shadow-soft: 0 4px 24px rgba(17, 17, 17, 0.06);
  --shadow-card: 0 12px 40px rgba(17, 17, 17, 0.08);
  --shadow-featured: 0 24px 80px rgba(17, 17, 17, 0.12);

  --radius: 2px;
  --radius-lg: 4px;
  --container: 1240px;
  --narrow: 680px;
  --article-width: 920px;
  --article-navy: #07263b;
  --article-dark: #000000;
  --article-dark-text: #d4d4d4;
  --article-dark-muted: #a8a8a8;
  --article-hero-bg: linear-gradient(135deg, #eef3f7 0%, #f8fafc 55%, #ffffff 100%);
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; }

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2rem, var(--narrow));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 252, 247, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  transition: opacity 0.2s;
}

.logo:hover .logo-mark { opacity: 0.82; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav { display: flex; gap: 0.5rem; }

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.nav-link:hover { color: var(--gold-dark); }

/* Journal nav dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link--journal { padding-right: 0.35rem; }

.nav-dropdown-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  color: var(--gold-dark);
  background: rgba(196, 169, 98, 0.1);
  outline: none;
}

.nav-dropdown-chevron {
  display: block;
  transition: transform 0.25s ease;
}

.nav-dropdown.is-open .nav-dropdown-chevron { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  z-index: 200;
  width: min(22rem, calc(100vw - 2rem));
  padding: 0.85rem 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s;
}

.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 0.75rem;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.15rem 0.65rem;
  border-bottom: 1px solid var(--line);
}

.nav-dropdown-eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.nav-dropdown-all {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.nav-dropdown-all:hover { color: var(--gold-dark); }

.nav-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0;
}

.nav-dropdown-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 1.15rem;
  transition: background 0.18s;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus-visible {
  background: rgba(196, 169, 98, 0.08);
  outline: none;
}

.nav-dropdown-item-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  transition: color 0.2s;
}

.nav-dropdown-item:hover .nav-dropdown-item-name,
.nav-dropdown-item:focus-visible .nav-dropdown-item-name {
  color: var(--gold-dark);
}

.nav-dropdown-item-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-faint);
}

@media (max-width: 768px), (hover: none) {
  .nav-dropdown-toggle { display: inline-flex; }
}

/* Eyebrow & badges */
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.badge {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border: 1px solid rgba(196, 169, 98, 0.45);
  background: rgba(196, 169, 98, 0.08);
}

.badge--light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

/* Featured hero (home) */
.featured { margin-bottom: 0; }

.featured-link {
  display: block;
  position: relative;
  color: #fff;
}

.featured-media {
  position: relative;
  height: min(72vh, 640px);
  overflow: hidden;
  background: var(--charcoal);
}

.featured-media img,
.featured-media-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-media-fallback {
  background: linear-gradient(135deg, #2a2824 0%, #1a1a1a 50%, #3d3528 100%);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.25) 100%);
}

.featured-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: clamp(2rem, 6vw, 4rem);
  z-index: 2;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  max-width: 16ch;
  margin-bottom: 1rem;
}

.featured-excerpt {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

.featured-cta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.25rem;
}

/* Sections */
.section { padding: clamp(3rem, 8vw, 5rem) 0; }
.section--journal { background: var(--bg); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
}

.section-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.section-link:hover { color: var(--gold-dark); }

.section-title-link {
  color: inherit;
  text-decoration: none;
}

.section-title-link:hover { color: var(--gold-dark); }

.section--category + .section--category {
  padding-top: 0;
}

/* Horizontal card slider (home) */
.card-slider-wrap {
  position: relative;
}

.card-slider {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-inline: calc(-1 * clamp(1rem, 4vw, 1.5rem));
  padding-inline: clamp(1rem, 4vw, 1.5rem);
  cursor: grab;
  touch-action: pan-x pan-y;
}

.card-slider img,
.card-slider .card-link {
  -webkit-user-drag: none;
  user-select: none;
}

.card-slider::-webkit-scrollbar {
  display: none;
}

.card-slider--dragging {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none;
}

.card-slider--dragging .card-link {
  pointer-events: none;
}

.card-slider > .card {
  flex: 0 0 min(300px, 78vw);
  scroll-snap-align: start;
}

.card-slider-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.card-slider-btn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--surface);
}

.card-slider-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.card-slider-btn--prev {
  left: clamp(0.15rem, 1.5vw, 0.35rem);
}

.card-slider-btn--next {
  right: clamp(0.15rem, 1.5vw, 0.35rem);
}

.card--compact .card-body {
  padding: 1rem 1.15rem 1.25rem;
  gap: 0.5rem;
}

.card--compact .card-title {
  font-size: 1.15rem;
  line-height: 1.25;
}

.card--compact:hover {
  transform: translateY(-4px);
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.card-link {
  position: static;
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-link:focus-visible::after {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.card-meta a,
.card-body .tag-list a {
  position: relative;
  z-index: 2;
}

.card-media {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}

.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card-media img { transform: scale(1.05); }

.card-media-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #e8e4dc, #d4cfc4);
}

.card-media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.08), transparent 50%);
  pointer-events: none;
}

.card-body {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--ink);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.card-excerpt {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

/* Page header (archive) */
.page-header {
  padding: clamp(3rem, 8vw, 5rem) 0 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-header-inner { max-width: 720px; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.page-lead {
  font-size: 1.1rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* About page — reuses article split-hero + ribbon sections */
.about-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(7, 38, 59, 0.65);
}

.about-hero-deck {
  margin: 1.25rem 0 0;
  max-width: 36ch;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(7, 38, 59, 0.82);
}

.page-about .prose code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
}

/* Article page — NIKA editorial reference */
.page-article .site-main { background: var(--article-dark); }

.page-article .breadcrumbs {
  width: min(100% - 2rem, var(--article-width));
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 1.5rem) 0 clamp(0.5rem, 1.5vw, 0.875rem);
}

.page-article .breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.page-article .breadcrumbs-item {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
}

.page-article .breadcrumbs-item:not(:last-child)::after {
  content: "›";
  margin: 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(196, 169, 98, 0.38);
  pointer-events: none;
}

.page-article .breadcrumbs-link {
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-article .breadcrumbs-link:hover,
.page-article .breadcrumbs-link:focus-visible {
  color: var(--gold);
  outline: none;
}

.page-article .breadcrumbs-item--current {
  min-width: 0;
  text-transform: none;
  letter-spacing: 0.02em;
}

.page-article .breadcrumbs-current {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(245, 242, 236, 0.82);
  line-height: 1.35;
}

@media (max-width: 640px) {
  .page-article .breadcrumbs {
    padding: 0.875rem 0 0.5rem;
  }

  .page-article .breadcrumbs-list {
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    gap: 0.25rem 0;
  }

  .page-article .breadcrumbs-item:not(:last-child)::after {
    margin-inline: 0.4rem;
    font-size: 0.6875rem;
  }

  .page-article .breadcrumbs-current {
    font-size: 0.8125rem;
  }
}

.page-article .site-header {
  background: rgba(7, 38, 59, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.page-article .logo-text,
.page-article .nav-link { color: rgba(255, 255, 255, 0.82); }

.page-article .nav-link:hover { color: #fff; }

.page-article .nav-dropdown-toggle {
  color: rgba(255, 255, 255, 0.72);
}

.page-article .nav-dropdown-toggle:hover,
.page-article .nav-dropdown-toggle:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.page-article .nav-dropdown-panel {
  background: rgba(7, 38, 59, 0.98);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.page-article .nav-dropdown-header { border-bottom-color: rgba(255, 255, 255, 0.1); }

.page-article .nav-dropdown-eyebrow { color: rgba(196, 169, 98, 0.95); }

.page-article .nav-dropdown-all { color: rgba(255, 255, 255, 0.55); }

.page-article .nav-dropdown-all:hover { color: #fff; }

.page-article .nav-dropdown-item:hover,
.page-article .nav-dropdown-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.page-article .nav-dropdown-item-name { color: rgba(255, 255, 255, 0.92); }

.page-article .nav-dropdown-item:hover .nav-dropdown-item-name,
.page-article .nav-dropdown-item:focus-visible .nav-dropdown-item-name {
  color: #fff;
}

.page-article .nav-dropdown-item-desc { color: rgba(255, 255, 255, 0.48); }

.page-article .logo-mark {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.page-article .logo:hover .logo-mark { opacity: 1; }

.badge--article {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

/* Split hero: title left, cover right */
.article-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(320px, 42vw, 520px);
  background: var(--article-hero-bg);
}

.article-hero-split--solo {
  grid-template-columns: 1fr;
  min-height: auto;
}

.article-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4.5rem);
}

.article-hero-media {
  position: relative;
  min-height: 280px;
  background: #111;
}

.article-hero-media .article-hero-image {
  width: 100%;
  height: 100%;
  min-height: clamp(280px, 42vw, 520px);
  object-fit: cover;
}

.article-hero-split .article-meta {
  justify-content: flex-start;
  margin-bottom: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--article-navy);
}

.article-hero-split .article-meta time,
.article-hero-split .article-meta .reading-time {
  color: rgba(7, 38, 59, 0.65);
}

.article-hero-split .badge--article {
  color: var(--article-navy);
  border-color: rgba(7, 38, 59, 0.2);
  background: rgba(7, 38, 59, 0.06);
}

.article-hero-split .article-title {
  font-family: var(--font-ui);
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  max-width: none;
  margin: 0;
  color: var(--article-navy);
}

/* Intro band on dark background */
.article-lead {
  background: var(--article-dark);
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-lead-inner {
  width: min(100% - 2rem, var(--article-width));
  margin-inline: auto;
}

.article-deck {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--article-dark-text);
  max-width: none;
  margin: 0;
  text-align: left;
}

/* Body */
.article-body {
  background: var(--article-dark);
  padding: 0 0 clamp(3rem, 8vw, 5rem);
}

.article-content {
  width: 100%;
}

.article-content > .prose {
  width: min(100% - 2rem, var(--article-width));
  margin-inline: auto;
}

.article-section + .article-section {
  margin-top: 0.5rem;
}

.section-ribbon {
  width: 100%;
  padding: clamp(1rem, 3vw, 1.35rem) 1.5rem;
  background: var(--article-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.article-section:first-child .section-ribbon {
  border-top: 0;
}

.section-ribbon h2 {
  width: min(100%, var(--article-width));
  margin: 0 auto;
  font-family: var(--font-ui);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
}

.section-body.prose {
  width: min(100% - 2rem, var(--article-width));
  margin-inline: auto;
  padding-top: clamp(1.5rem, 4vw, 2.25rem);
}

/* Inline figures — borderless, centered caption */
.article-section .article-figure {
  width: min(100% - 2rem, var(--article-width));
  margin-inline: auto;
}

.article-figure {
  margin: clamp(2rem, 5vw, 3rem) 0;
  border: 0;
  background: transparent;
}

.article-figure-media {
  background: #111;
  line-height: 0;
}

.article-figure img {
  width: 100%;
  display: block;
}

.article-figure figcaption {
  padding: 0.85rem 0.5rem 0;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--article-dark-muted);
  text-align: center;
  border: 0;
}

/* Article prose on dark */
.page-article .prose {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--article-dark-text);
  overflow-wrap: break-word;
}

.page-article .prose :is(img, video, iframe, table) {
  max-width: 100%;
}

.page-article .prose pre {
  max-width: 100%;
  overflow-x: auto;
}

.page-article .prose h2 {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin: 2.5rem 0 1rem;
  padding: 0;
  border: 0;
}

.page-article .prose h3 {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 2rem 0 0.85rem;
}

.page-article .prose p { margin-bottom: 1.25em; }

.page-article .prose a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.page-article .prose a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

.page-article .prose ul,
.page-article .prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.2em;
}

.page-article .prose li { margin-bottom: 0.5em; }

.page-article .prose strong {
  font-weight: 500;
  color: #fff;
}

/* Related articles (article page) */
.see-also {
  background: var(--article-dark);
  padding: clamp(2.5rem, 6vw, 4rem) 0 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.see-also-inner {
  width: min(100% - 2rem, var(--article-width));
  margin-inline: auto;
}

.see-also-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--article-dark-text);
  margin-bottom: 1.5rem;
}

.see-also-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.page-article .see-also .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.page-article .see-also .card-title {
  color: #fff;
}

.page-article .see-also .card-meta,
.page-article .see-also .card-meta time {
  color: var(--article-dark-muted);
}

.page-article .see-also .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.page-article .see-also .card-media-fallback {
  background: rgba(255, 255, 255, 0.06);
}

/* Legacy article rules (overridden above on .page-article) */
.article-hero {
  position: relative;
  max-height: 70vh;
  overflow: hidden;
  background: var(--charcoal);
}

.article-hero-image {
  width: 100%;
  height: min(70vh, 560px);
  object-fit: cover;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent 60%);
}

.article-header {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  text-align: center;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  max-width: 18ch;
  margin: 0 auto 1.25rem;
}

.article-content { padding: 0 0 4rem; }

.article-section + .article-figure {
  margin-top: -0.5rem;
}

.article-section h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Prose (list/archive pages) */
.prose {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--ink);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2.75rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.prose p { margin-bottom: 1.35em; }

.prose a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul, .prose ol { margin: 0 0 1.35em; padding-left: 1.25em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: #fff;
  transition: background 0.2s, color 0.2s;
}

.btn:hover { background: transparent; color: var(--charcoal); }

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 2rem;
}

.logo--footer { color: #fff; }

.logo--footer .logo-mark {
  filter: none;
  opacity: 1;
}

.logo--footer:hover .logo-mark { opacity: 0.88; }

.footer-tagline {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.footer-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p { margin: 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); }

/* Utilities */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px dashed var(--line-strong);
  color: var(--ink-muted);
}

.home-intro {
  max-width: 780px;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.home-intro-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.95;
  margin: 0 0 1rem;
}
.home-intro-lead {
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 auto;
  max-width: 620px;
}

.hero-empty { padding: 6rem 0; text-align: center; }
.hero-empty-title { font-family: var(--font-display); font-size: 3rem; margin-bottom: 1rem; }
.hero-empty-lead { color: var(--ink-muted); }

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.pagination-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.pagination-link:hover { color: var(--gold-dark); }

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.45rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

a.pagination-page:hover {
  color: var(--gold-dark);
  border-color: var(--line-strong);
}

.pagination-page--current,
.pagination-item--current .pagination-page {
  color: var(--ink);
  font-weight: 600;
  border-color: var(--gold);
  background: rgba(184, 150, 90, 0.08);
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 2.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  user-select: none;
}

.pagination-current { font-size: 0.85rem; color: var(--ink-faint); }

/* Taxonomy */
.taxonomy-nav {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.taxonomy-nav-group { display: grid; gap: 0.65rem; }

.taxonomy-nav-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tag:hover {
  color: var(--gold-dark);
  border-color: rgba(196, 169, 98, 0.45);
}

.tag.is-active {
  color: var(--gold-dark);
  border-color: rgba(196, 169, 98, 0.55);
  background: rgba(196, 169, 98, 0.08);
}

.tag--category {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.tag--term { border-radius: 999px; }

.card-body .tag-list { margin-top: 0.75rem; }

.page-article .article-hero-copy .tag-list { margin-top: 1rem; }

.page-article .tag {
  color: rgba(7, 38, 59, 0.75);
  border-color: rgba(7, 38, 59, 0.15);
  background: rgba(255, 255, 255, 0.55);
}

.page-article .tag:hover,
.page-article .tag.is-active {
  color: var(--article-navy);
  border-color: rgba(7, 38, 59, 0.35);
  background: rgba(255, 255, 255, 0.85);
}

.page-article .article-meta .tag--category {
  color: var(--article-navy);
  border-color: rgba(7, 38, 59, 0.2);
  background: rgba(7, 38, 59, 0.06);
}

/* Responsive */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .see-also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 1.5rem, var(--container)); }
  .logo-mark { width: 34px; height: 34px; }
  .logo-text { font-size: 1.15rem; }
  .card-grid { grid-template-columns: 1fr; }
  .see-also-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .featured-title { max-width: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .article-hero-split { grid-template-columns: 1fr; }
  .article-hero-media { order: -1; min-height: 220px; }
  .article-hero-media .article-hero-image { min-height: 220px; }
  .section-ribbon { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
