:root {
  --paper: #f6f3e9;
  --ink: #242822;
  --muted: #575b51;
  --rule: #969788;
  --wine: #77382b;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box }
body { margin: auto; max-width: 108rem; background: var(--paper); color: var(--ink); font: 1rem/1.55 Arial, sans-serif }
header, main, footer { margin-inline: clamp(1rem, 5vw, 5rem) }
header, footer, nav, .mast, .rule { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem }
header { padding-block: 1rem; border-bottom: 1px solid var(--ink) }
nav { gap: clamp(.9rem, 3vw, 3rem); flex-wrap: wrap }
a { color: inherit; text-underline-offset: .22em }
header a, article a, .edition, .cover-image, .signature { text-decoration: none }
a:hover, nav [aria-current] { text-decoration: underline }
a:focus-visible, input:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid #995d17; outline-offset: 4px }
.signature { font: bold 1.35rem var(--serif); white-space: nowrap }
.signature i { display: inline-grid; place-content: center; width: 1.8rem; height: 1.8rem; background: var(--wine); color: white; border-radius: 50%; font: 2rem/1 var(--serif); vertical-align: middle }
.skip { position: absolute; left: 1rem; top: -6rem; padding: .7em; background: white; z-index: 3 }.skip:focus { top: 0 }
small,.mast span { display: block; font: bold .8rem/1.4 'Courier New', monospace; letter-spacing: .07em; text-transform: uppercase }
h1,h2,h3,p,figure { margin: 0 } h1,h2,h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.045em }
h2 { font-size: clamp(2.2rem,4.4vw,4.7rem) } h3 { font-size: clamp(1.65rem,2.7vw,3rem) }
img { display: block; width: 100% }
.mast { padding-top: 1rem; color: var(--wine) }
.cover h1 { font-size: clamp(3rem,10.8vw,11.4rem); line-height: 1.13; text-align: center; white-space: nowrap; letter-spacing: -.065em; margin: .04em 0 .11em }
.cover h1 em { font-weight: 400 }
.cover-image { display: block; position: relative; color: #fff }
.cover-image img { height: clamp(25rem,52vh,41rem); object-fit: cover; object-position: center 47% }
.cover-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(15deg,#111a22ba 1%,transparent 65%) }
.cover-copy { position: absolute; z-index: 1; left: 4%; bottom: 8% }
.cover-copy small { display: inline-block; color: #29281e; background: #efdf9c; padding: .35em .65em }
.cover-copy h2 { font-size: clamp(3.2rem,6vw,7rem); margin: .18em 0 }
.cover-copy span,.line { text-decoration: underline; text-underline-offset: .3em }
.spread,.duo,.grid,.bench { display: grid; gap: clamp(1.5rem,4vw,5rem) }
.spread,.duo { grid-template-columns: repeat(2,minmax(0,1fr)) }
.spread { border-bottom: 1px solid var(--rule); padding-block: clamp(2.5rem,6vw,6rem) }
.spread h2,.lablink h2 { margin: .25em 0 }
.spread p,.reading p,.about p { font: 1.32rem/1.55 var(--serif); margin-bottom: 1em }
.rule { align-items: baseline; margin: 3rem 0 1.5rem }
.grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2.8rem 2rem }
article img,.edition img { aspect-ratio: 4/3; object-fit: cover }
article small,.edition small { margin: 1rem 0 .5rem; color: var(--wine) }
article p { margin-top: .65rem; color: var(--muted) }
.lablink,aside { margin-top: 4rem; padding: clamp(2rem,5vw,5rem); background: #393335; color: #faf6e7 }
.lablink h2 { max-width: 16ch }
footer { border-top: 1px solid var(--rule); padding-block: 2rem; margin-top: 5rem; flex-wrap: wrap }
.intro { margin: clamp(2.5rem,5vw,5rem) 0 2.5rem; max-width: 65rem }
.intro small { color: var(--wine) }
.intro h1 { font-size: clamp(3.3rem,7.7vw,8rem); margin: .12em 0 .22em; overflow-wrap: break-word }
.intro p { max-width: 52rem; font: clamp(1.18rem,2vw,1.55rem)/1.5 var(--serif) }
.back { display: inline-block; margin-top: 1.4rem }.back+.intro { margin-top: 2rem }
.edition img { aspect-ratio: 4/5 }.edition h2 { font-size: clamp(2rem,3vw,3.5rem) }
figure { background: #e4e2d7 }figure img { height: min(75vh,48rem); object-fit: contain }
figcaption { padding: .8rem 1rem; font-size: .9rem }
.reading { max-width: 43rem; margin: 3rem auto }
.reading h2,.about h2 { font-size: 2.1rem; margin: 1.3em 0 .45em }
aside h2 { margin: .3em 0 }
form { display: flex; gap: 1.25rem; align-items: end; flex-wrap: wrap }
[hidden] { display: none !important }
label { display: grid; gap: .35em; font-weight: bold }
input,select,button { font: inherit; padding: .6rem; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); max-width: 100% }
button { cursor: pointer; background: var(--ink); color: var(--paper) }
#count { color: var(--muted); margin: 1.25rem 0 }
.bench { background: #e4e2d7; grid-template-columns: 2.4fr 1fr; align-items: center; gap: 2rem; padding: clamp(.75rem,2vw,2rem) }
.viewer { overflow: hidden }.viewer img { aspect-ratio: 3/2; object-fit: cover }
#controls { display: grid; align-items: stretch } input[type=range] { width: 100%; accent-color: var(--wine) }
.about { align-items: start }.about img { height: 100%; object-fit: cover }.about h2:first-child { margin-top: 0 }
@media(max-width:720px) {
  header { flex-wrap: wrap; gap: .75rem } nav { width: 100%; justify-content: space-between; font-size: .92rem; gap: .5rem }
  .mast span { display: none }.mast small { font-size: .74rem }
  .cover h1 { font-size: 11.35vw }.cover-image img { height: 24rem }.cover-copy { left: 6% }
  .grid,.spread,.duo,.bench { grid-template-columns: 1fr }.edition img { aspect-ratio: 4/3 }
  .rule { flex-wrap: wrap }.about img { height: 18rem }.intro h1 { font-size: clamp(2.35rem,9.7vw,4.1rem) }
  footer { display: grid; gap: .6rem } figure img { height: auto; max-height: 80vh }.spread { gap: .6rem }
}
