#atlas-content {
  --atlas-ink: #112c29;
  --atlas-paper: #f5f2e9;
  --atlas-rule: #bdbeb1;
  color: var(--atlas-ink);
  width: 100%;
}

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(var(--atlas-card-count, 3), minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}

.atlas-card { min-width: 0; }
.atlas-story {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: start;
  cursor: pointer;
}

.atlas-card-image {
  display: block;
  aspect-ratio: 1.55;
  background: #dde0d2;
  overflow: hidden;
}

.atlas-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .48s cubic-bezier(.22,1,.36,1);
}

.atlas-card-info {
  display: block;
  padding: 17px 0 20px;
  border-bottom: 1px solid var(--atlas-rule);
}

.atlas-meta, .atlas-status, .atlas-feature-meta, .atlas-dialog-tools {
  font-family: var(--sans, 'DM Sans', Arial, sans-serif);
}

.atlas-meta, .atlas-feature-meta {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #40574d;
}

.atlas-meta span, .atlas-feature-meta span { color: #81682f; margin-inline: .22rem; }
.atlas-card-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 7px; }
.atlas-title {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(1.65rem, 2.6vw, 2.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.036em;
  text-wrap: balance;
}

.atlas-read-arrow { flex: none; align-self: start; margin-top: .18em; font: 400 1.15rem/1.2 Arial, sans-serif; color: #526c5b; }
.atlas-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 17px; }
.atlas-status { font-size: .73rem; letter-spacing: .035em; color: #4d6055; }
.atlas-paging-controls { display: flex; gap: 8px; }
.atlas-paging-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #8b9a8e;
  border-radius: 50%;
  padding: 0;
  font: 400 1.18rem/1 Arial, sans-serif;
  background: transparent;
  color: var(--atlas-ink);
  cursor: pointer;
}

.atlas-story:focus-visible, .atlas-paging-controls button:focus-visible,
.atlas-close:focus-visible, .credits-page a:focus-visible {
  outline: 3px solid #ac792b;
  outline-offset: 3px;
}

@media (hover: hover) {
  .atlas-story:hover .atlas-card-image img { transform: scale(1.035); }
  .atlas-story:hover .atlas-read-arrow { color: #81682f; }
  .atlas-paging-controls button:hover { background: var(--atlas-ink); color: var(--atlas-paper); }
}

body:has(.au-atlas-dialog[open]) { overflow: hidden; }
.au-atlas-dialog {
  box-sizing: border-box;
  width: min(1000px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: #112c29;
  background: #f5f2e9;
}

.au-atlas-dialog::backdrop { background: rgb(7 28 26 / .77); }
.atlas-dialog-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 52px;
  padding-inline: clamp(14px, 2vw, 28px);
  border-bottom: 1px solid #d2ccbc;
  color: #253f38;
  background: #f5f2e9;
  font-size: .73rem;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.atlas-dialog-tools i { margin: 0 .4em; font-style: normal; color: #96753d; }
.atlas-close {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 3px 6px 12px;
  border: 0;
  color: #112c29;
  background: transparent;
  font: inherit;
  letter-spacing: .03em;
  cursor: pointer;
}

.atlas-close span { font: 300 1.5rem/1 Arial, sans-serif; }
.atlas-feature { display: grid; grid-template-columns: 46% 54%; align-items: stretch; }
.atlas-feature figure { position: relative; min-height: 450px; margin: 0; background: #16352d; }
.atlas-feature figure img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.atlas-feature figcaption { position: absolute; inset: auto 0 0; padding: 36px 16px 12px; background: linear-gradient(transparent, rgb(0 0 0 / .75)); color: white; font: 400 .69rem/1.5 var(--sans, 'DM Sans', Arial, sans-serif); }
.atlas-feature-copy { align-self: center; padding: clamp(22px, 3.7vw, 54px); }
.atlas-feature-meta { margin: 0 0 12px; }
.atlas-feature-copy h2 { margin: 0 0 19px; font: 500 clamp(2.3rem, 4vw, 3.65rem)/.99 var(--serif, 'Cormorant Garamond', Georgia, serif); letter-spacing: -.045em; text-wrap: balance; color: #112c29; }
.atlas-paragraph { margin: 0 0 1em; font: 400 1rem/1.65 var(--sans, 'DM Sans', Arial, sans-serif); color: #30443d; }
.atlas-paragraph:last-child { margin-bottom: 0; }

/* Standalone photography credits share the atlas's paper, ink, and links. */
@font-face { font-family: 'Atlas Credits Serif'; src: url('media/cormorant.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Atlas Credits Serif'; src: url('media/cormorant-italic.woff2') format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Atlas Credits Sans'; src: url('media/dm-sans.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
.credits-page { --serif: 'Atlas Credits Serif', Georgia, serif; --sans: 'Atlas Credits Sans', Arial, sans-serif; min-height: 100vh; margin: 0; color: #112c29; background: #f5f2e9; font-family: var(--sans); }
.credits-page *, .credits-page *::before, .credits-page *::after { box-sizing: border-box; }
.credits-head, .credits-main { width: min(1140px, calc(100% - 64px)); margin: 0 auto; }
.credits-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 82px; border-bottom: 1px solid #a7b0a1; }
.credits-home { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.credits-brand { gap: 9px; }
.credits-brand span { display: block; white-space: nowrap; font: 600 clamp(1.7rem, 2.7vw, 2.3rem)/1 var(--serif); letter-spacing: -.05em; }
.credits-brand em { font-weight: 500; }
.credits-return { gap: 9px; font-size: .82rem; }
.credits-main { padding: clamp(48px, 7vw, 92px) 0 clamp(44px, 8vw, 105px); }
.credits-main h1 { max-width: 20ch; margin: 0; font: 500 clamp(3.2rem, 7vw, 6rem)/.95 var(--serif, 'Cormorant Garamond', Georgia, serif); letter-spacing: -.065em; }
.credits-intro { max-width: 48ch; margin: 18px 0 38px; color: #40564c; font-size: 1rem; line-height: 1.6; }
.credits-page a { color: inherit; }
.credits-page a:hover { text-decoration: underline; text-underline-offset: .2em; }
.credit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(22px, 4vw, 64px); }
.credit-entry { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid #bcc0b1; }
.credit-entry img { width: 100%; aspect-ratio: 1.35; object-fit: cover; }
.credit-entry h2 { margin: 0 0 5px; font: 500 clamp(1.28rem, 2vw, 1.65rem)/1.1 var(--serif, 'Cormorant Garamond', Georgia, serif); letter-spacing: -.035em; }
.credit-by { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .3em; padding: 7px 0; font-size: .79rem; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.credits-foot { margin: 25px 0 0; font-size: .79rem; line-height: 1.6; color: #48594f; }

@media (max-width: 760px) {
  .atlas-feature { grid-template-columns: 1fr; }
  .atlas-feature figure { min-height: 0; height: clamp(175px, 26vh, 245px); }
  .atlas-feature-copy { padding: 24px 22px 28px; }
  .atlas-feature-copy h2 { max-width: 17ch; }
  .credit-list { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .atlas-title { font-size: clamp(1.9rem, 7vw, 2.35rem); }
  .atlas-card-info { padding: 14px 0 16px; }
  .atlas-pagination { padding-top: 10px; }
  .au-atlas-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .credits-head, .credits-main { width: calc(100% - 36px); }
  .credits-head { min-height: 64px; }
  .credit-entry { grid-template-columns: 78px minmax(0, 1fr); gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-card-image img { transition: none; }
  .atlas-story:hover .atlas-card-image img { transform: none; }
}
