:root {
  color-scheme: light;
  --ink: #1a262b;
  --soft: #526269;
  --line: #dbdfda;
  --paper: #f7f6f1;
  --white: #fffefa;
  --teal: #076568;
  --read: min(100% - 2rem, 32rem);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 system-ui, sans-serif; }
a { color: var(--teal); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #a8620c; outline-offset: 4px; }
.skip { position: absolute; z-index: 2; top: -8rem; left: 1rem; padding: .6rem .95rem; color: var(--ink); background: var(--white); }
.skip:focus { top: .75rem; }
.masthead { border-bottom: 1px solid var(--line); background: var(--white); }
.masthead nav { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1.15rem; flex-wrap: wrap; width: min(100% - 2rem, 74rem); margin: 0 auto; min-height: 3.1rem; padding: .3rem 0; }
.brand { color: var(--ink); font-weight: 750; }
.masthead a { font-size: .9rem; }
main:focus { outline: none; }
.edition { width: var(--read); margin: 0 auto; padding: 1rem 0 2rem; }
h1 { margin: 0 0 .72rem; font: 700 clamp(1.65rem, 4.4vw, 2.5rem)/1.05 Georgia, serif; letter-spacing: -.033em; }
.reader { margin: 0; }
.slides { display: flex; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: .48rem; background: #eae8df; }
.slides::-webkit-scrollbar { display: none; }
.slide { display: grid; place-items: center; flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: var(--slide-ratio, 4 / 5); }
.slide img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; -webkit-user-drag: none; }
.controls { display: grid; grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr); align-items: center; gap: .5rem; margin-top: .68rem; }
.controls[hidden] { display: none; }
.controls button { appearance: none; min-height: 44px; padding: .46rem .63rem; border: 1px solid var(--teal); border-radius: .34rem; color: var(--teal); background: var(--white); font: 700 .88rem/1.2 system-ui, sans-serif; cursor: pointer; }
.controls button:first-child { justify-self: start; }
.controls button:last-child { justify-self: end; }
.controls button:hover:not([aria-disabled="true"]) { background: #e2f0ed; }
.controls button[aria-disabled="true"] { color: #626e72; border-color: #c5cdca; cursor: default; }
.progress { font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--soft); }
.related { border-top: 1px solid var(--line); margin: 1.25rem 0 0; padding: .75rem 0 0; font-size: .9rem; }
.gallery { width: min(100% - 2rem, 70rem); margin: 0 auto; padding: clamp(1.75rem, 5vw, 4rem) 0 3rem; }
.gallery h1 { font-size: clamp(2.55rem, 7vw, 4.9rem); margin-bottom: 1.45rem; }
.gallery-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: 1.15rem; margin: 0; padding: 0; list-style: none; }
.gallery-list li { min-width: 0; }
.card { display: block; overflow: hidden; height: 100%; border: 1px solid var(--line); border-radius: .48rem; color: var(--ink); background: var(--white); text-decoration: none; }
.card:hover { border-color: var(--teal); }
.card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #eae8df; }
.card-title { display: block; padding: .78rem .82rem .32rem; font: 700 1.26rem/1.2 Georgia, serif; }
.card-date { display: block; padding: 0 .82rem .78rem; color: var(--soft); font-size: .78rem; }
@media (min-width: 51rem) {
  .edition { padding-top: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
