:root {
  color-scheme: dark;
  --coal: #24211d;
  --ivory: #f4e9d4;
  --coral: #fe7755;
  --lime: #d5ea63;
  --line: #827868;
  --ink: var(--coral);
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--coal);
  color: var(--ivory);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure { margin: 0; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.skip { background: var(--lime); color: var(--coal); padding: .75rem 1rem; position: fixed; z-index: 3; top: 0; left: 0; transform: translateY(-130%); }
.skip:focus { transform: none; }
.folio { width: min(80rem, 100% - clamp(2rem, 9.5vw, 10rem)); margin-inline: auto; }
.ink-features { --ink: var(--lime); }
.ink-rules { --ink: var(--ivory); }

.cover-title {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end;
  gap: 1rem 2rem; padding-block: clamp(1.5rem, 5.1vw, 4.5rem) clamp(1rem, 2.8vw, 2.7rem);
}
.cover-title h1 { font-size: clamp(4.15rem, 13.3vw, 12rem); line-height: .9; letter-spacing: -.078em; font-weight: 850; }
.cover-title h1 span { color: var(--coral); }
.cover-title p { max-width: 24ch; font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.45; padding: .65rem 0 .1rem; border-top: 1px solid var(--line); }

.plate-wall {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  border: 1px solid var(--line);
}
.wall-item { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; }
.item-symbols { grid-row: span 2; border-right: 1px solid var(--line); --strip: var(--coral); }
.item-features { --strip: var(--lime); border-bottom: 1px solid var(--line); }
.item-rules { --strip: var(--ivory); }
.wall-link { text-decoration: none; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; overflow: hidden; }
.wall-link img { height: clamp(8rem, 11vw, 11rem); object-fit: cover; object-position: center; transition: transform .25s ease; }
.item-symbols img { height: 100%; min-height: 15rem; }
.wall-link:hover img { transform: scale(1.02); }
.wall-link h2 { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .6rem clamp(.65rem, 1.8vw, 1.6rem); background: var(--strip); color: var(--coal); font-size: clamp(1.22rem, 2.25vw, 2.3rem); min-height: 3rem; line-height: 1.1; letter-spacing: -.04em; }
.wall-link:hover h2 { text-decoration: underline; }
.wall-section { justify-self: start; padding: .7rem clamp(.65rem, 1.8vw, 1.6rem); min-height: 2.75rem; font-size: .85rem; font-weight: 740; }
.wall-section:hover { color: var(--strip); }

.atlas-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem 1.4rem; border-top: 1px solid var(--line); margin-top: clamp(2.2rem, 6vw, 5rem); padding-block: .55rem 1.25rem; }
.atlas-wordmark { display: inline-flex; align-items: center; min-height: 2.75rem; letter-spacing: -.068em; font-weight: 850; font-size: clamp(1.25rem, 2.4vw, 1.9rem); text-decoration: none; }
.atlas-wordmark span { color: var(--coral); }
.edition-index { display: flex; flex-wrap: wrap; column-gap: clamp(.75rem, 3vw, 2.1rem); }
.edition-index a, .plate-nav > a:last-child { display: inline-flex; gap: .3em; align-items: center; min-height: 2.75rem; text-decoration: underline; font-weight: 650; }
.edition-index a:hover, .plate-nav > a:last-child:hover { color: var(--lime); }

.plate-header { padding-block: 1rem clamp(1rem, 2.4vw, 2rem); }
.plate-nav { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.plate-header h1 { font-size: clamp(2.35rem, 6.7vw, 6.35rem); line-height: .99; letter-spacing: -.065em; font-weight: 820; padding-top: clamp(.85rem, 2.8vw, 2.6rem); }
.plate-header p { max-width: 54ch; margin-top: 1rem; font-size: 1.08rem; line-height: 1.5; }
.plate-header .plate-credit { color: var(--ivory); font-size: .94rem; font-weight: 680; }
.plate-credit a:hover { color: var(--lime); }
.impression { background: #1d1b18; border-block: 1px solid var(--line); }
.impression img { width: 100%; height: clamp(18rem, 36vw, 36rem); object-fit: contain; }
.section-print { display: grid; text-decoration: none; border-top: 1px solid var(--line); background: #1d1b18; }
.section-print img { height: clamp(15rem, 36vw, 32rem); object-fit: contain; }
.section-print h2 { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .75em; background: var(--ink); color: var(--coal); font-size: clamp(1.35rem, 2.75vw, 2.4rem); line-height: 1.05; letter-spacing: -.038em; }
.section-print:hover h2 { text-decoration: underline; }

.reading-paper { background: var(--ivory); color: var(--coal); border-top: .5rem solid var(--ink); padding: clamp(1.1rem, 5vw, 4.5rem); }
.reading-paper :focus-visible { outline-color: #9a3220; }
.reading-column { width: min(100%, 63ch); margin-inline: auto; font: clamp(1.02rem, 1.55vw, 1.24rem)/1.65 Georgia, serif; overflow-wrap: anywhere; }
.reading-column .opening { font: 680 clamp(1.15rem, 2.1vw, 1.65rem)/1.42 "Segoe UI", Arial, sans-serif; border-bottom: 1px solid #9e8a74; padding-bottom: 1em; }
.reading-column h2 { font: 780 clamp(1.3rem, 2.25vw, 1.95rem)/1.13 "Segoe UI", Arial, sans-serif; margin: 1.5em 0 .55em; letter-spacing: -.035em; }
.reading-column p + p, .reading-column li + li { margin-top: .65em; }
.reading-column a { color: #813421; }
.reading-column ul, .reading-column ol { padding-left: 1.3em; }
.reading-column table { border-collapse: collapse; width: 100%; margin-top: .8em; font-size: .94em; }
.reading-column th, .reading-column td { padding: .55em; text-align: left; vertical-align: top; border-bottom: 1px solid #9e8a74; }
.reading-column th:first-child { width: 24%; min-width: 6.25em; }
.reading-column th { background: var(--coal); color: var(--ivory); }
.turn-page { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .22rem .65rem; padding: .75rem 0 0; min-height: 2.75rem; border-top: 1px solid #9e8a74; margin: 2rem auto 0; max-width: 49rem; text-decoration: none; }
.turn-page span:first-child { grid-column: span 2; font-size: .83rem; }
.turn-page strong { font-size: clamp(1.18rem, 2.6vw, 1.9rem); }
.turn-page:hover strong { text-decoration: underline; }

@media (max-width: 44rem) {
  .plate-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-symbols { grid-column: span 2; grid-row: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .item-symbols img { height: auto; min-height: 0; aspect-ratio: 1.9; object-fit: cover; }
  .item-features { border-bottom: 0; border-right: 1px solid var(--line); }
  .wall-item:not(.item-symbols) img { height: auto; aspect-ratio: 1.55; }
  .impression img { height: auto; }
  .wall-link h2 span { font-size: .9em; }
}

@media (max-width: 26rem) {
  .cover-title h1 { font-size: clamp(3.55rem, 17vw, 4.25rem); }
  .wall-item:not(.item-symbols) h2 { font-size: clamp(1rem, 5vw, 1.2rem); min-height: 3.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wall-link img { transition: none; }
}
