:root {
  --paper: #f4f1ea;
  --ink: #242a26;
  --muted: #6f766f;
  --line: #d8d4ca;
  --moss: #667765;
  --deep: #39453d;
  --cream: #ebe5d9;
  --clay: #8a7a68;
  --harbor: #58676b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.55;
}

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

.site-header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 6vw, 90px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(244, 241, 234, .94);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--deep);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-weight: 600;
  letter-spacing: .03em;
}

.brand small {
  font-size: 11px;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

nav a:hover,
.text-link:hover,
.back-link:hover {
  opacity: .62;
}

.hero {
  padding: clamp(70px, 10vw, 145px) clamp(24px, 9vw, 140px) clamp(65px, 9vw, 120px);
  max-width: 1250px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: 11px;
  font-weight: 600;
  color: var(--moss);
  margin: 0 0 22px;
}

.hero h1,
.about h2,
.members-callout h2,
.story-hero h1,
.member-hero h1 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  line-height: .96;
  margin: 0;
}

.hero h1 {
  font-size: clamp(52px, 8vw, 108px);
}

.hero h1 em {
  font-weight: 400;
  color: var(--moss);
}

.hero-copy {
  max-width: 620px;
  font-size: 18px;
  color: #555e57;
  margin: 34px 0 25px;
}

.text-link,
.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 12px;
  padding: 0 clamp(14px, 3vw, 42px) 110px;
}

.story-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 240px;
  background: #a0a79f;
  display: block;
}

.story-card.wide {
  grid-column: span 2;
}

.story-card.tall {
  grid-row: span 2;
}

.image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .05) 0 24%, transparent 24% 100%),
    linear-gradient(145deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .18));
  transition: transform .6s ease;
}

.image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .18), transparent 45%),
    linear-gradient(to top, rgba(25, 30, 26, .74), rgba(25, 30, 26, .16) 58%, rgba(25, 30, 26, .18));
}

.image-placeholder span {
  font-family: "Newsreader", Georgia, serif;
  color: rgba(255, 255, 255, .36);
  font-size: 28px;
  font-style: italic;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(.12) contrast(.92);
}

.image-has-source::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(36, 42, 38, .14);
}

/* Mosaic interactions leave grid tracks and neighboring cards in place. */
.mosaic .story-card { transition: transform 180ms ease-out; }
.mosaic .story-card .image-placeholder { transition: transform 180ms ease-out; }
.mosaic .story-card .card-copy small {
  transition: opacity 180ms ease-out;
  text-underline-offset: 4px;
}
.mosaic .story-card:focus-visible {
  z-index: 3;
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.mosaic .story-card:focus-visible .card-copy small {
  opacity: 1;
  text-decoration: underline;
}
@media (hover: hover) and (pointer: fine) {
  .mosaic .story-card:is(:hover, :focus-visible) {
    transform: scale(1.03);
    z-index: 3;
  }
  .mosaic .story-card:is(:hover, :focus-visible) .image-placeholder {
    transform: scale(1.02);
  }
  .mosaic .story-card:is(:hover, :focus-visible) .card-copy small {
    opacity: 1;
    text-decoration: underline;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mosaic .story-card,
  .mosaic .story-card .image-placeholder,
  .mosaic .story-card .card-copy small { transition: none; }
  .mosaic .story-card:is(:hover, :focus-visible),
  .mosaic .story-card:is(:hover, :focus-visible) .image-placeholder { transform: none; }
}

.card-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  color: white;
  z-index: 2;
}

.card-copy p {
  margin: 0 0 5px;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .78;
}

.card-copy h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  margin: 0 0 7px;
}

.card-copy span,
.card-copy small {
  display: block;
  font-size: 12px;
  opacity: .82;
}

.card-copy small {
  margin-top: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
}

.tone-a { background: #747f6d; }
.tone-b { background: #8a7a68; }
.tone-c { background: #606e71; }
.tone-d { background: #786c65; }
.tone-e { background: #66715f; }
.tone-f { background: #91856e; }
.tone-g { background: #58676b; }
.tone-h { background: #7d7467; }

.about,
.members-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 140px);
  padding: 100px clamp(24px, 9vw, 140px);
  border-top: 1px solid var(--line);
}

.about h2,
.members-callout h2 {
  font-size: clamp(42px, 5vw, 68px);
}

.about-copy {
  font-family: "Newsreader", Georgia, serif;
  font-size: 24px;
  line-height: 1.45;
  color: #505851;
}

.about-copy p:first-child {
  margin-top: 0;
}

.members-callout {
  background: #e9e5db;
}

.members-callout > div > p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
}

.member-panel {
  align-self: center;
  border: 1px solid #c9c4b9;
  padding: 30px;
  background: rgba(255, 255, 255, .25);
}

.member-panel span,
.member-panel small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.member-panel strong {
  display: block;
  font-family: "Newsreader", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.08;
  margin: 10px 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(24px, 6vw, 90px);
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer a {
  border-bottom: 1px solid transparent;
}

footer a:hover {
  border-bottom-color: currentColor;
}

.story-shell {
  padding: 38px clamp(18px, 4vw, 64px) 96px;
}

.story-hero {
  min-height: clamp(430px, 58vw, 660px);
  margin-top: 28px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: clamp(32px, 6vw, 84px);
}

.story-hero .image-placeholder span {
  font-size: clamp(54px, 10vw, 132px);
}

.story-hero .image-placeholder img {
  width: min(78%, 760px);
  height: 100%;
  align-self: center;
  justify-self: end;
  margin-right: clamp(-150px, -9vw, -56px);
  object-fit: cover;
  object-position: 46% 31%;
  opacity: .9;
}

.story-hero .story-hero-image::after {
  background:
    radial-gradient(circle at 72% 34%, rgba(255, 255, 255, .12), transparent 24%),
    linear-gradient(to right, rgba(25, 30, 26, .72), rgba(25, 30, 26, .25) 48%, rgba(25, 30, 26, .58)),
    linear-gradient(to top, rgba(25, 30, 26, .78), transparent 62%);
}

.story-hero .story-hero-image::before {
  background: rgba(36, 42, 38, .24);
}

.image-credit {
  position: absolute;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 3;
  max-width: min(520px, calc(100% - 32px));
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.story-hero-copy {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 820px;
}

.story-hero .eyebrow {
  color: rgba(255, 255, 255, .72);
}

.story-hero h1 {
  font-size: clamp(48px, 7vw, 96px);
}

.story-hero p:last-child {
  max-width: 680px;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 820px);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
  max-width: 1180px;
  margin: 72px auto 0;
}

.story-sidebar {
  position: sticky;
  top: 112px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.story-sidebar p {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 18px 0;
}

.story-sidebar span {
  display: block;
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 5px;
}

.has-timeline .story-sidebar {
  position: static;
}

.story-timeline {
  margin-top: 32px;
  line-height: 1.55;
}

.story-timeline h2 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 20px;
}

.story-timeline ol {
  list-style: none;
  padding: 0 0 0 16px;
  margin: 0;
  border-left: 1px solid var(--line);
}

.story-timeline li + li {
  margin-top: 16px;
}

.story-timeline strong {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 900px) {
  .has-timeline .story-sidebar {
    order: 2;
  }
}

.article-body {
  font-family: "Newsreader", Georgia, serif;
  font-size: 22px;
  line-height: 1.58;
  color: #39413b;
}

.article-body section + section {
  margin-top: 46px;
}

.article-body h2 {
  font-family: "DM Sans", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 13px;
  color: var(--moss);
  margin: 0 0 18px;
}

.article-body p {
  margin: 0 0 20px;
}

.source-notes,
.related-stories,
.status-note {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.source-notes ul {
  display: grid;
  gap: 18px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  color: var(--muted);
  list-style: none;
  padding-left: 0;
}

.source-notes li {
  border-top: 1px solid rgba(216, 212, 202, .72);
  padding-top: 16px;
}

.source-notes strong,
.source-notes span,
.source-notes p {
  display: block;
}

.source-notes strong {
  color: var(--ink);
  font-weight: 500;
}

.source-notes a {
  border-bottom: 1px solid currentColor;
}

.source-notes span {
  margin-top: 4px;
  font-size: 12px;
  color: var(--moss);
}

.source-notes p {
  margin: 7px 0 0;
  font-size: 14px;
}

.related-stories > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font-family: "DM Sans", system-ui, sans-serif;
}

.related-stories a {
  border: 1px solid var(--line);
  padding: 18px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.related-stories span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 14px;
}

.placeholder-page .article-body {
  max-width: 760px;
  margin: 58px auto 0;
}

.status-note {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  color: var(--muted);
}

.story-break {
  margin: 54px 0;
}

.pullquote {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.pullquote blockquote {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  color: var(--deep);
}

.pullquote p {
  margin: 16px 0 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  color: var(--muted);
}

.context-note {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  color: var(--muted);
}

.context-note h3 {
  margin: 0 0 10px;
  color: var(--moss);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.inline-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 520px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.inline-image figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.inline-image small {
  text-align: right;
}

.member-hero {
  padding: clamp(70px, 10vw, 130px) clamp(24px, 9vw, 140px) 62px;
  max-width: 1180px;
}

.member-hero h1 {
  font-size: clamp(52px, 8vw, 96px);
}

.member-hero p:last-child {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
  margin-top: 28px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 clamp(18px, 4vw, 64px) 100px;
}

.module-card {
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, .25);
  min-height: 290px;
}

.module-card h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  margin: 0 0 22px;
}

.module-card ol,
.module-card ul {
  padding-left: 22px;
  color: #4d564f;
}

.module-card li + li {
  margin-top: 9px;
}

.wide-module {
  grid-column: span 2;
  min-height: auto;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  border: 1px solid #c9c4b9;
  padding: 8px 11px;
  font-size: 13px;
  color: #505851;
}

details summary {
  cursor: pointer;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(30px, 4vw, 44px);
}

details p {
  max-width: 760px;
  color: var(--muted);
}

.credits-list {
  display: grid;
  gap: 14px;
  padding: 0 clamp(18px, 4vw, 64px) 100px;
}

.credit-record {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .25);
  padding: clamp(18px, 4vw, 34px);
}

.credit-record img {
  width: 160px;
  aspect-ratio: 238 / 323;
  object-fit: cover;
  filter: grayscale(1) sepia(.12) contrast(.92);
}

.credit-record h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  margin: 0 0 24px;
}

.credit-record dl {
  display: grid;
  gap: 13px;
  margin: 0;
}

.credit-record dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.credit-record dt {
  color: var(--moss);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.credit-record dd {
  margin: 0;
  color: #4d564f;
}

.credit-record a {
  border-bottom: 1px solid currentColor;
}

@media (max-width: 900px) {
  .mosaic,
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-card.wide,
  .wide-module {
    grid-column: span 2;
  }

  .about,
  .members-callout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .story-sidebar {
    position: static;
  }

  .story-hero .image-placeholder img {
    width: min(92%, 620px);
    height: 100%;
    margin-right: clamp(-96px, -14vw, -38px);
    object-position: 45% 32%;
  }

  .site-header nav {
    gap: 14px;
  }

  .site-header {
    padding: 0 18px;
  }

  .hero {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 540px) {
  .story-hero:has(.image-credit) {
    padding-bottom: 88px;
  }

  nav a:nth-child(2) {
    display: none;
  }

  .mosaic,
  .module-grid,
  .related-stories > div {
    grid-template-columns: 1fr;
  }

  .story-card,
  .story-card.wide,
  .story-card.tall,
  .wide-module {
    grid-column: auto;
    grid-row: auto;
  }

  .story-card {
    min-height: 300px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .about,
  .members-callout {
    padding: 72px 28px;
  }

  .story-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .article-body {
    font-size: 20px;
  }

  .image-credit {
    left: 16px;
    right: 16px;
    text-align: left;
  }

  .inline-image figcaption {
    display: block;
  }

  .inline-image small {
    display: block;
    margin-top: 5px;
    text-align: left;
  }

  footer {
    flex-direction: column;
  }

  .credit-record,
  .credit-record dl div {
    grid-template-columns: 1fr;
  }
}


/* Keep full historical portraits separate from the story title. */
.story-hero.portrait-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: 0;
  padding: clamp(24px, 4vw, 60px);
  background: #e9e5db;
}
.portrait-layout .story-hero-copy {
  order: 1;
  color: var(--ink);
}
.portrait-layout .eyebrow,
.portrait-layout .story-hero-copy p:last-child {
  color: var(--muted);
}
.portrait-layout h1 {
  font-size: clamp(40px, 5.2vw, 76px);
}
.portrait-figure {
  order: 2;
  margin: 0;
  min-width: 0;
}
.portrait-figure img {
  display: block;
  width: 100%;
  max-height: 580px;
  object-fit: contain;
}
.portrait-figure figcaption {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.portrait-figure a,
.inline-image figcaption a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.credit-record {
  scroll-margin-top: 110px;
}
@media (max-width: 900px) {
  .story-hero.portrait-layout {
    grid-template-columns: 1fr;
  }
  .portrait-figure {
    width: min(100%, 440px);
    justify-self: center;
  }
}

/* Keep Hashima's skyline within its wide homepage card. */
.story-card[href="story.html?slug=hashima"] .image-placeholder img {
  position: absolute;
  inset: 0;
}

/* Keep Glover’s portrait bounded by its homepage card. */
.story-card[href="story.html?slug=glover"] .image-placeholder img {
  position: absolute;
  inset: 0;
}

/* Frame the relic, which sits low in the original canopy photograph. */
.portrait-figure img[src="assets/images/virgin/urakami-mary-josh-2009.jpg"] {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center bottom;
}
.story-card[href="story.html?slug=virgin-of-nagasaki"] .image-placeholder img {
  position: absolute;
  inset: 0;
  filter: none;
}

/* Keep Fukuda visible within the homepage image frame. */
.story-card[href="story.html?slug=sumako-fukuda"] .image-placeholder img {
  position: absolute;
  inset: 0;
}

/* Curated library: a few thematic anchors, compact supporting stories. */
.mosaic {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 10px;
}
.mosaic .story-card { min-height: 0; grid-column: auto; grid-row: auto; }
.mosaic .story-card .image-placeholder img { position: absolute; inset: 0; }
.mosaic .anchor-portrait { grid-row: span 2; }
.mosaic .anchor-landscape { grid-column: span 2; }
.mosaic .card-copy { left: 18px; right: 18px; bottom: 18px; }
.mosaic .card-copy h2 { font-size: 32px; line-height: 1.04; }
.mosaic .card-copy small { margin-top: 10px; }
.mosaic .mosaic-anchor .card-copy h2 { font-size: 34px; }
@media (max-width: 1399px) {
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .mosaic .anchor-portrait { grid-row: auto; }
  .mosaic .anchor-landscape { grid-column: auto; }
}
@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .mosaic .anchor-landscape { grid-column: auto; }
  .mosaic .anchor-landscape:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .mosaic { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 300px; }
  .mosaic .story-card,
  .mosaic .anchor-landscape:last-child { grid-column: auto; grid-row: auto; }
  .mosaic .card-copy { left: 24px; right: 24px; bottom: 22px; }
  .mosaic .mosaic-anchor .card-copy h2 { font-size: 32px; }
}

/* Prototype disclosure stays in the existing footer. */
footer { flex-wrap: wrap; }
.prototype-notice { flex-basis: 100%; margin: 0; max-width: 760px; }
.archive-shell { max-width: 1520px; margin: 0 auto; padding: 64px clamp(20px, 4vw, 64px) 100px; }
.archive-intro { max-width: 760px; margin-bottom: 40px; }
.archive-intro h1 { font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: clamp(44px, 6vw, 80px); line-height: 1.05; margin: 0; }
.archive-intro > p:last-child { color: #555e57; font-size: 18px; margin-top: 22px; }
.archive-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 18px 24px; padding: 24px 0; border-block: 1px solid var(--line); }
.archive-controls label { display: grid; gap: 8px; font-size: 13px; color: var(--deep); flex: 1 1 170px; }
.archive-controls select, .archive-controls button { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #959b91; border-radius: 2px; min-height: 46px; padding: 10px 12px; }
.archive-controls select { width: 100%; font-size: 16px; }
.archive-controls button { cursor: pointer; font-size: 14px; }
.archive-controls button:hover { background: var(--cream); }
.archive-shell :is(a, select, button):focus-visible { outline: 3px solid var(--deep); outline-offset: 4px; }
.archive-count { font-size: 14px; color: #555e57; margin: 24px 0; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.archive-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: rgba(255,255,255,.25); }
.archive-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.archive-image .image-placeholder img { position: absolute; inset: 0; }
.archive-image .image-placeholder::after { background: rgba(36,42,38,.06); }
.archive-image .image-has-source::before { display: none; }
.archive-copy { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.archive-copy p { color: var(--deep); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.archive-copy h2 { font-family: "Newsreader", Georgia, serif; font-size: 32px; font-weight: 400; line-height: 1.1; margin: 0 0 12px; }
.archive-copy > span { color: #555e57; font-size: 15px; }
.archive-copy small { display: block; padding-top: 24px; margin-top: auto; font-size: 13px; color: var(--deep); }
.archive-card:is(:hover, :focus-visible) small { text-decoration: underline; text-underline-offset: 4px; }
.archive-empty { padding: 32px 0; color: #555e57; }
@media (min-width: 1400px) { .archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .archive-shell { padding-top: 44px; }
  .archive-grid { grid-template-columns: minmax(0, 1fr); }
  .archive-controls label { flex-basis: 100%; }
  .archive-controls button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.image-credit a { text-decoration: underline; text-underline-offset: 3px; }
#stories, #about { scroll-margin-top: 110px; }
.credit-record dd, .source-notes li { overflow-wrap: anywhere; }
@media (max-width: 540px) {
  .site-header { height: auto; min-height: 86px; flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .site-header nav { flex-wrap: wrap; }
}
