:root {
  --bg-0: #1b2128;
  --bg-1: #232a32;
  --bg-2: #2b333b;
  --bg-3: #38424a;
  --line: rgba(205, 211, 219, 0.3);
  --line-strong: rgba(211, 217, 224, 0.5);
  --text: #ece9e3;
  --text-soft: #c8c4bb;
  --text-muted: #a2a7ad;
  --accent: #8ea0b5;
  --accent-warm: #ad967d;
  --accent-silver: #d6d1c5;
  --accent-slate: #8e97a7;
  --accent-moss: #b8b79b;
  --accent-rust: #9d7565;
  --shadow-blue: rgba(71, 92, 116, 0.18);
  --shadow-warm: rgba(173, 150, 125, 0.13);
  --shadow: 0 20px 50px rgba(10, 13, 18, 0.36);
  --shadow-color: 0 26px 62px rgba(10, 13, 18, 0.36), 0 10px 24px rgba(142, 151, 167, 0.16), 0 0 28px rgba(173, 150, 125, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-0);
  color: var(--text);
  font-family: "Inter", "IBM Plex Sans", "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1180px 580px at 12% -8%, rgba(214, 209, 197, 0.28), transparent 58%),
    radial-gradient(1020px 520px at 86% -10%, rgba(142, 151, 167, 0.4), transparent 60%),
    radial-gradient(980px 560px at 52% 42%, rgba(184, 183, 155, 0.2), transparent 64%),
    radial-gradient(740px 380px at 18% 76%, rgba(173, 150, 125, 0.18), transparent 58%),
    radial-gradient(920px 460px at 94% 76%, rgba(71, 92, 116, 0.24), transparent 64%),
    radial-gradient(860px 520px at 44% 102%, rgba(142, 151, 167, 0.16), transparent 68%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 52%, var(--bg-0) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(173, 150, 125, 0.3), transparent 0 17%, rgba(173, 150, 125, 0.14) 28%, transparent 58%),
    radial-gradient(circle at 82% 74%, rgba(142, 151, 167, 0.34), transparent 0 17%, rgba(142, 151, 167, 0.14) 30%, transparent 61%),
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 90px 90px, 90px 90px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  z-index: 0;
  filter: blur(0.45px) saturate(1.18);
  animation: atmospheric-drift 72s ease-in-out infinite, atmospheric-wash 132s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
  background:
    radial-gradient(circle at center, transparent 0 44%, rgba(4, 6, 9, 0.64) 100%),
    radial-gradient(circle at 14% 24%, rgba(255, 255, 255, 0.1), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(173, 150, 125, 0.1), transparent 30%),
    repeating-radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 5px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 240px 240px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  mix-blend-mode: soft-light;
  filter: blur(1.2px);
  animation: atmospheric-drift 96s ease-in-out infinite reverse, atmospheric-wash 168s linear infinite reverse;
}

@keyframes atmospheric-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.12;
  }
  50% {
    transform: translate3d(3%, -1.5%, 0) scale(1.042);
    opacity: 0.38;
  }
  100% {
    transform: translate3d(-2%, 1.1%, 0) scale(1.028);
    opacity: 0.25;
  }
}

@keyframes atmospheric-wash {
  0% {
    background-position: 0% 0%, 0% 0%, 0 0, 0 0;
  }
  50% {
    background-position: 10% -6%, -7% 4%, 18px 0, 0 18px;
  }
  100% {
    background-position: -5% 3%, 5% -3%, 0 0, 0 0;
  }
}

@keyframes soft-wave-drift {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }
  50% {
    background-position: 18px 0, 8px 0, 0 0;
  }
  100% {
    background-position: 0 0, 0 0, 0 0;
  }
}

.archive-page,
.archive-footer {
  position: relative;
  z-index: 1;
}

.archive-page {
  width: min(1280px, calc(100% - 48px));
  margin: 26px auto 0;
  display: grid;
  gap: 28px;
}

.masthead,
.control-bar,
.featured,
.publications,
.topics,
.latest {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(44, 51, 59, 0.97), rgba(31, 37, 45, 0.97));
  box-shadow: var(--shadow-color);
}

.masthead,
.featured,
.publications,
.topics,
.latest {
  border-radius: var(--radius-lg);
}

.masthead {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 292px;
  background:
    radial-gradient(820px 320px at 74% 16%, rgba(173, 150, 125, 0.18), transparent 58%),
    radial-gradient(520px 240px at 18% 68%, rgba(142, 151, 167, 0.14), transparent 58%),
    radial-gradient(640px 300px at 46% 96%, rgba(184, 183, 155, 0.09), transparent 66%),
    linear-gradient(90deg, rgba(50, 57, 66, 0.99) 0%, rgba(50, 57, 66, 0.97) 22%, rgba(44, 51, 59, 0.92) 30%, rgba(39, 46, 54, 0.78) 38%, rgba(28, 33, 40, 0.38) 52%, rgba(24, 29, 35, 0.14) 100%);
  animation: atmospheric-drift 88s ease-in-out infinite;
}

.top-nav {
  display: flex;
  justify-content: flex-start;
  gap: 22px;
  flex-wrap: wrap;
  padding: 0;
  position: absolute;
  top: 20px;
  left: 28px;
  right: 28px;
  width: auto;
  z-index: 3;
}

.top-nav a {
  color: var(--accent-silver);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: clamp(16px, 1.35vw, 22px);
  text-decoration: none;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.36);
  font-weight: 700;
}

.top-nav a:hover {
  color: var(--text);
}

.masthead-grid {
  display: block;
  position: relative;
  min-height: 318px;
}

.identity {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 64px 0 24px 30px;
  position: relative;
  z-index: 2;
  width: min(42%, 540px);
}

.kicker {
  margin: 0;
  color: var(--accent-silver);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  font-weight: 600;
}

.nameplate {
  margin: 0;
  display: grid;
  gap: 6px;
}

.nameplate span {
  display: block;
  font-family: "Playfair Display", "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 0.98;
}

.nameplate span:first-child {
  font-size: clamp(30px, 5vw, 46px);
}

.nameplate span:last-child {
  font-size: clamp(18px, 2.3vw, 26px);
  color: var(--text-soft);
}

.identity-rule {
  height: 1px;
  width: min(280px, 100%);
  background: var(--line-strong);
}

.identity-subtitle,
.identity-track {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 600;
}

.identity-copy {
  margin: 4px 0 0;
  max-width: 34ch;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 14px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.waveform {
  margin-top: 10px;
  height: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0.42;
  background:
    radial-gradient(circle at 10% 50%, rgba(173, 150, 125, 0.28), transparent 22%),
    repeating-linear-gradient(
      90deg,
      rgba(140, 151, 170, 0.22) 0 2px,
      transparent 2px 7px
    );
  background-size: auto, 180px 100%;
  animation: soft-wave-drift 90s linear infinite;
}

.hero-photo-wrap {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #0f1217;
  position: absolute;
  inset: 0;
  min-height: 0;
  max-height: none;
  width: auto;
  z-index: 1;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.38), 0 0 36px var(--shadow-blue);
}

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.76) 0%, rgba(8, 10, 14, 0.18) 30%, rgba(8, 10, 14, 0.04) 58%, rgba(8, 10, 14, 0.5) 100%),
    linear-gradient(90deg, rgba(36, 43, 52, 1) 0%, rgba(35, 42, 51, 0.98) 18%, rgba(35, 42, 51, 0.9) 30%, rgba(34, 41, 50, 0.58) 42%, rgba(28, 33, 40, 0.18) 58%, rgba(8, 10, 14, 0) 76%);
  animation: atmospheric-drift 84s ease-in-out infinite;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 86% 18%;
  display: block;
  filter: grayscale(8%) contrast(103%) saturate(90%);
}

.hero-photo-wrap figcaption {
  display: none;
}

.control-bar {
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  align-items: center;
  position: sticky;
  top: 12px;
  z-index: 20;
  background:
    radial-gradient(circle at 18% 50%, rgba(173, 150, 125, 0.13), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(142, 151, 167, 0.11), transparent 22%),
    linear-gradient(180deg, rgba(45, 52, 60, 0.97), rgba(31, 37, 45, 0.97));
}

.type-switch {
  display: flex;
  gap: 8px;
}

.pill {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.pill.active,
.pill:hover {
  color: var(--text);
  border-color: rgba(212, 191, 172, 0.54);
  background: linear-gradient(180deg, rgba(173, 150, 125, 0.18), rgba(142, 151, 167, 0.12));
}

.pill.secondary {
  border-color: rgba(188, 201, 218, 0.22);
}

.search-wrap {
  display: grid;
  gap: 3px;
  min-width: min(360px, 100%);
  width: min(520px, 100%);
}

.topic-search {
  width: 100%;
  min-width: 0;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(188, 201, 218, 0.18);
}

.topic-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topics .search-wrap input {
  width: 100%;
}

.topics .topic-bar {
  margin-bottom: 0;
}

.search-wrap span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-wrap input,
.archive-footer input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(15, 19, 24, 0.94);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font: inherit;
  min-height: 30px;
}

.search-wrap input:focus,
.archive-footer input:focus {
  outline: 1px solid rgba(157, 117, 101, 0.46);
  border-color: rgba(157, 117, 101, 0.56);
}

.featured,
.publications,
.topics,
.latest {
  padding: 24px;
  box-shadow:
    0 24px 52px rgba(10, 13, 18, 0.3),
    0 12px 34px var(--shadow-blue),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(184, 183, 155, 0.07);
  background:
    radial-gradient(circle at 12% 12%, rgba(214, 209, 197, 0.07), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(142, 151, 167, 0.11), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(173, 150, 125, 0.055), transparent 44%),
    linear-gradient(180deg, rgba(44, 51, 59, 0.97), rgba(31, 37, 45, 0.97));
}

.meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(188, 201, 218, 0.2);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-family: "Playfair Display", "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: 0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 18%, rgba(173, 150, 125, 0.15), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(142, 151, 167, 0.11), transparent 26%),
    linear-gradient(180deg, rgba(38, 44, 52, 0.97), rgba(22, 27, 33, 0.97));
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(7, 10, 14, 0.32), 0 0 34px var(--shadow-warm);
}

.featured-copy {
  padding: clamp(22px, 3vw, 36px);
  display: grid;
  align-content: start;
  gap: 12px;
}

.micro-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
}

.featured-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.featured-copy h3,
.featured-title-link {
  margin: 2px 0 0;
  font-family: "Playfair Display", "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.01em;
  font-size: clamp(22px, 2.5vw, 32px);
}

.featured-title-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.featured-title-link:hover {
  color: var(--text);
}

.featured-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.66;
}

.featured-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.featured-actions a.pill {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.featured-media {
  min-height: 290px;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.featured-media-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.secondary-featured-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 10px;
}

.mini-featured-card {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 12%, rgba(184, 183, 155, 0.12), transparent 24%),
    radial-gradient(circle at 18% 82%, rgba(142, 151, 167, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(45, 52, 62, 0.97), rgba(31, 37, 46, 0.97));
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 100%;
  box-shadow: 0 16px 36px rgba(9, 11, 16, 0.26), 0 6px 20px rgba(142, 151, 167, 0.08);
}

.mini-featured-media {
  min-height: 170px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.mini-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-featured-copy {
  padding: 18px;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.mini-featured-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-featured-copy h3 {
  margin: 0;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-size: 23px;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-featured-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-featured-actions {
  margin-top: auto;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-media.no-media::after {
  content: "No preview image";
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.featured-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
}

.featured-empty h3 {
  margin: 0 0 8px;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
}

.publication-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.pub-chip {
  appearance: none;
  border: 1px solid rgba(188, 201, 218, 0.22);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(142, 151, 167, 0.04));
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pub-logo,
.publication-mark img {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.pub-logo img {
  width: auto;
  max-width: 100px;
  max-height: 24px;
  object-fit: contain;
  filter: grayscale(1) contrast(0.9);
  opacity: 0.74;
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.publication-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text-muted);
}

.publication-mark img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  filter: grayscale(1) contrast(0.9);
  opacity: 0.78;
}

.publication-mark.large img {
  width: 22px;
  height: 22px;
}

.pub-chip:hover,
.pub-chip.active {
  border-color: rgba(157, 117, 101, 0.66);
  background: linear-gradient(180deg, rgba(173, 150, 125, 0.18), rgba(142, 151, 167, 0.14));
  color: var(--text);
}

.pub-chip:hover .pub-logo img,
.pub-chip.active .pub-logo img {
  opacity: 0.92;
  transform: translateY(-0.5px) scale(1.015);
  filter: grayscale(0.55) contrast(0.98);
}

.topic-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 8px;
}

.topic-btn {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 18%, rgba(173, 150, 125, 0.08), transparent 24%),
    rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
}

.topic-btn small {
  color: var(--text-muted);
  font-size: 10px;
}

.topic-btn.active {
  border-color: rgba(157, 117, 101, 0.66);
  background: linear-gradient(180deg, rgba(173, 150, 125, 0.18), rgba(184, 183, 155, 0.14));
  color: var(--text);
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.article-card {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 10%, rgba(142, 151, 167, 0.17), transparent 24%),
    radial-gradient(circle at 14% 88%, rgba(173, 150, 125, 0.13), transparent 28%),
    radial-gradient(circle at 56% 48%, rgba(184, 183, 155, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(42, 49, 59, 0.98), rgba(29, 36, 45, 0.98));
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24), 0 6px 18px rgba(173, 150, 125, 0.08);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(205, 211, 219, 0.48);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28), 0 10px 24px rgba(142, 151, 167, 0.1), 0 8px 20px rgba(173, 150, 125, 0.08);
}

.card-main {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.thumb {
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.article-card:hover .thumb img {
  transform: scale(1.012);
  filter: contrast(1.04) saturate(0.98);
}

.thumb-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--text-soft);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thumb-fallback .ext {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 10px;
}

.card-copy {
  padding: 14px 14px 12px;
  display: grid;
  gap: 8px;
  align-content: start;
  flex: 1;
}

.card-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.card-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  min-height: 1.5em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-copy h3 {
  margin: 0;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  margin: 2px 0 0;
  color: var(--text-soft);
  line-height: 1.58;
  font-size: 14px;
  min-height: 4.6em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--accent-silver);
  background: rgba(142, 151, 167, 0.08);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-actions {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 11px 12px 12px;
}

.text-link {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  cursor: pointer;
}

.text-link:hover {
  color: var(--text);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 30px;
  text-align: center;
  color: var(--text-soft);
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-size: 28px;
}

.archive-footer {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 16%, rgba(173, 150, 125, 0.12), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(142, 151, 167, 0.09), transparent 22%),
    linear-gradient(180deg, rgba(40, 47, 56, 0.96), rgba(29, 35, 43, 0.96));
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 18px;
  padding: 22px;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col h3,
.footer-col h4 {
  margin: 0;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-weight: 600;
}

.footer-col p,
.footer-col small {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.footer-col a {
  color: var(--text-soft);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-icons {
  display: flex;
  gap: 8px;
}

.footer-icons span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 12px;
}

dialog {
  border: 0;
  background: transparent;
  width: min(92vw, 900px);
  padding: 0;
}

dialog::backdrop {
  background: rgba(5, 7, 10, 0.75);
  backdrop-filter: blur(4px);
}

.dialog-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(16, 20, 26, 0.98);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.dialog-media {
  min-height: 220px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.dialog-media img,
.dialog-media video,
.dialog-media iframe {
  width: 100%;
  height: min(70vh, 560px);
  border: 0;
  object-fit: contain;
}

.dialog-media audio {
  width: min(100%, 560px);
  margin: 22px;
}

.dialog-card h3 {
  margin: 0;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-size: 30px;
}

.dialog-card p {
  margin: 0;
  color: var(--text-soft);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  max-width: min(92vw, 520px);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 16, 22, 0.94);
  color: var(--text);
  font-size: 13px;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  border-color: rgba(157, 117, 101, 0.62);
}

@media (max-width: 1180px) {
  .latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .archive-page,
  .archive-footer {
    width: min(1280px, calc(100% - 24px));
  }

  .masthead-grid,
  .featured-card {
    grid-template-columns: 1fr;
  }

  .masthead {
    min-height: 0;
    padding: 18px;
  }

  .top-nav {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    padding: 0 0 14px;
    justify-content: flex-start;
  }

  .masthead-grid {
    min-height: 0;
  }

  .identity {
    width: 100%;
    padding: 0 0 16px;
  }

  .hero-photo-wrap {
    position: relative;
    inset: auto;
    min-height: 230px;
    max-height: none;
    width: 100%;
  }

  .control-bar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
  }

  .search-wrap {
    min-width: 0;
  }

  .archive-footer {
    grid-template-columns: 1fr;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .secondary-featured-row {
    grid-template-columns: 1fr;
  }

  .mini-featured-card {
    grid-template-columns: 1fr;
  }

  .mini-featured-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mini-featured-actions {
    border-left: 0;
    border-top: 1px solid var(--line);
    flex-direction: row;
  }
}

@media (max-width: 640px) {
  .archive-page {
    gap: 20px;
    margin-top: 14px;
  }

  .masthead,
  .featured,
  .publications,
  .topics,
  .latest,
  .archive-footer {
    padding: 14px;
    border-radius: var(--radius-md);
  }

  .masthead {
    padding: 16px;
  }

  .top-nav {
    justify-content: flex-start;
    gap: 10px;
    padding-right: 0;
  }

  .nameplate span:first-child {
    font-size: clamp(34px, 11vw, 54px);
  }

  .identity-copy {
    max-width: none;
    font-size: 14px;
  }

  .hero-photo-wrap {
    min-height: 210px;
  }

  .latest-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-copy h3 {
    font-size: 24px;
  }

  .featured-copy h3,
  .section-head h2 {
    font-size: clamp(24px, 8vw, 40px);
  }

  body::before,
  body::after,
  .masthead,
  .hero-photo-wrap::before,
  .waveform {
    animation-duration: 180s;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .masthead,
  .hero-photo-wrap::before,
  .waveform,
  .article-card,
  .thumb img,
  .pub-logo img {
    animation: none !important;
    transition: none !important;
  }
}
