.journal {
  background: var(--ivory);
  color: var(--ink);
}

.journal-heading,
.article-heading {
  padding: calc(var(--header-height) + 96px) 0 80px;
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
}

.journal-heading h1 {
  margin: 0 0 32px;
  font-size: clamp(3rem, 5.5vw, 5rem);
  letter-spacing: -0.045em;
}

.journal-heading > .container > p:last-child {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ivory-muted);
  font-size: 1.05rem;
}

.journal-collection {
  padding: 64px 0 96px;
}

.article-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(8, 8, 6, 0.2);
}

.article-filters[hidden],
.article-card[hidden],
.article-empty[hidden],
.article-share[hidden],
.share-fallback[hidden] {
  display: none;
}

.article-filters button {
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(8, 8, 6, 0.24);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.4;
  transition: color 180ms ease, background-color 180ms ease;
}

.article-filters button:hover,
.article-filters button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ivory);
}

.article-count {
  margin: 24px 0 40px;
  color: rgba(8, 8, 6, 0.65);
  font-size: 0.8rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px 48px;
}

.article-card {
  min-width: 0;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(8, 8, 6, 0.2);
}

.article-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 24px;
  background: var(--ink-soft);
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms var(--ease);
}

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

.article-card-category,
.article-category {
  margin: 0 0 16px;
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

.article-card-category span {
  white-space: nowrap;
}

.article-card h2,
.article-card h3 {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.article-card h2 a:hover,
.article-card h2 a:focus-visible,
.article-card h3 a:hover,
.article-card h3 a:focus-visible {
  color: var(--gold-deep);
}

.article-card-excerpt {
  max-width: 56ch;
  margin: 0 0 24px;
  color: rgba(8, 8, 6, 0.75);
  line-height: 1.8;
}

.article-card-date {
  margin: 0 0 20px;
  color: rgba(8, 8, 6, 0.65);
  font-size: 0.8rem;
}

.article-read-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--gold-deep);
  color: var(--gold-deep);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.8;
  text-transform: uppercase;
}

.article-empty {
  padding: 64px 0;
  text-align: center;
}

.article-empty h2 {
  margin-bottom: 24px;
}

.latest-articles {
  background: var(--ivory);
  color: var(--ink);
}

.latest-articles .eyebrow,
.latest-articles h2 em {
  color: var(--gold-deep);
}

.article-grid--latest {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.latest-articles .article-card {
  display: flex;
  flex-direction: column;
}

.latest-articles .article-card-image {
  flex-shrink: 0;
}

.latest-articles .article-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.latest-articles .article-card h3 {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
}

.latest-articles .article-card-date {
  margin-top: auto;
}

.article-heading .container {
  max-width: 1000px;
}

.article-back {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--ivory-muted);
  font-size: 0.82rem;
}

.article-back:hover {
  color: var(--gold-light);
}

.article-category {
  color: var(--gold-light);
}

.article-category span::before {
  padding-inline: 12px;
  content: "·";
}

.article-heading h1 {
  margin: 0 0 32px;
  font-size: clamp(2.75rem, 4.8vw, 4.4rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.article-deck {
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--ivory-muted);
  font-size: 1.15rem;
  line-height: 1.8;
}

.article-byline {
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.article-byline a {
  border-bottom: 1px solid var(--line);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  color: var(--ivory-muted);
  font-size: 0.76rem;
}

.article-meta p {
  margin: 0;
}

.article-sharing {
  margin-top: 32px;
}

.article-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  font-size: 0.78rem;
}

.article-share:hover {
  border-color: var(--gold-light);
}

.share-status {
  margin: 12px 0 0;
  color: var(--ivory-muted);
  font-size: 0.8rem;
}

.share-status:empty {
  display: none;
}

.share-fallback {
  max-width: 600px;
  margin: 24px auto 0;
  text-align: left;
}

.share-fallback label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.share-fallback input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--ink-soft);
  color: var(--ivory);
  font-size: 0.8rem;
}

.share-link-row {
  display: flex;
  gap: 8px;
}

.share-link-row input {
  min-width: 0;
}

.share-link-row .article-share {
  flex-shrink: 0;
}

.share-device {
  margin-top: 16px;
}

.article-layout {
  padding-top: 64px;
  padding-bottom: 96px;
}

.article-cover {
  max-width: 1000px;
  margin: 0 auto 64px;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-cover figcaption {
  margin-top: 8px;
  color: rgba(8, 8, 6, 0.6);
  font-size: 0.7rem;
}

.article-prose {
  max-width: 68ch;
  margin-inline: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.9;
  overflow-wrap: break-word;
}

.article-prose p,
.article-prose ul {
  margin: 0 0 24px;
}

.article-prose h2 {
  margin: 48px 0 24px;
  font-size: clamp(1.7rem, 2.4vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  scroll-margin-top: 24px;
}

.article-prose a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-prose a:hover {
  color: var(--ink);
}

.article-prose li + li {
  margin-top: 12px;
}

.article-prose .article-notice {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(8, 8, 6, 0.2);
  color: rgba(8, 8, 6, 0.68);
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.8;
}

.article-sources {
  margin-top: 64px;
  padding-top: 8px;
  border-top: 1px solid rgba(8, 8, 6, 0.2);
}

.article-table-wrap {
  max-width: 100%;
  margin: 32px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.article-table-wrap table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 1.6;
}

.article-table-wrap caption {
  padding-bottom: 16px;
  color: rgba(8, 8, 6, 0.7);
  font-size: 0.8rem;
  text-align: left;
}

.article-table-wrap th,
.article-table-wrap td {
  padding: 16px 12px;
  border: 1px solid rgba(8, 8, 6, 0.2);
  text-align: right;
  vertical-align: middle;
}

.article-table-wrap thead {
  background: var(--ink-soft);
  color: var(--ivory);
}

.article-table-wrap tbody th {
  font-weight: 400;
}

.article-table-wrap tr > :first-child {
  text-align: left;
}

.article-table-wrap:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 4px;
}

.article-sources ol {
  padding-left: 24px;
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 1.8;
}

.article-sources li,
.article-prose [id^="citation-"] {
  scroll-margin-top: 32px;
}

.article-end {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(8, 8, 6, 0.2);
}

.journal button:focus-visible,
.journal a:focus-visible,
.journal input:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  .journal-heading,
  .article-heading {
    padding-top: calc(var(--header-height) + 64px);
    padding-bottom: 64px;
  }

  .article-grid {
    gap: 48px 32px;
  }

  .article-grid--latest {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .article-filters {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .journal-heading h1 {
    font-size: 2.8rem;
  }

  .journal-collection {
    padding: 40px 0 64px;
  }

  .article-filters {
    gap: 8px;
    padding-bottom: 24px;
  }

  .article-filters button {
    padding: 12px;
    font-size: 0.75rem;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .article-card h2,
  .article-card h3 {
    font-size: 1.75rem;
  }

  .article-heading h1 {
    font-size: 2.4rem;
  }

  .article-category span {
    display: block;
    margin-top: 8px;
  }

  .article-category span::before {
    content: none;
  }

  .article-meta {
    flex-direction: column;
  }

  .share-link-row {
    flex-direction: column;
  }

  .article-layout {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .article-cover {
    margin-bottom: 40px;
  }

  .article-cover img {
    aspect-ratio: 4 / 3;
  }

  .article-prose {
    font-size: 1.08rem;
    line-height: 1.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-card-image img,
  .article-filters button {
    transition: none;
  }
}
