*, *::before, *::after { box-sizing: border-box; }
.edition-page { margin: 0; background: var(--page-ground); }
.canvas {
  position: relative;
  container: design / size;
  width: 100%;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}
.full-sheet { height: 100vh; height: 100svh; min-height: 22rem; }
.miniature { aspect-ratio: 16 / 10; pointer-events: none; }
.edition {
  --ink: #242321;
  --rule: currentColor;
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  color: var(--ink);
  line-height: 1;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.plate { position: absolute; inset: 0; z-index: -2; }
.plate img, .plate picture { display: block; width: 100%; height: 100%; }
.plate img { object-fit: cover; }
.signature { position: absolute; }
.wordmark, .profession { margin: 0; }
.wordmark { font-weight: 400; line-height: .9; }
.wordmark span { display: inline-block; }
.profession {
  font-size: 1.35cqw;
  line-height: 1.3;
  font-weight: 500;
  margin-top: 2.7cqh;
}
.edition-contact {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2.65cqw;
  font-size: 1.18cqw;
  line-height: 1.25;
}
.edition-contact > * { color: inherit; text-decoration: none; }
.edition-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
}
.edition-contact a:hover { text-decoration: underline; text-underline-offset: .33em; }
.edition-contact a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.full-sheet .edition-contact { font-size: clamp(.875rem, 1.18cqw, 1.16rem); }
.full-sheet .profession { font-size: clamp(.875rem, 1.35cqw, 1.35rem); }

[data-ink="graphite"] { --broadside-ink: #2e302e; }
[data-ink="ink-blue"] { --broadside-ink: #284565; }
[data-ink="evergreen"] { --broadside-ink: #285746; }
[data-ink="oxblood"] { --broadside-ink: #773a3e; }
[data-ink="copper"] { --broadside-ink: #985b36; }
.broadside { background: #f4f0e5; --ink: #191a18; }
.edition-page > .full-sheet:has(.broadside) { min-height: 15rem; }
.broadside .signature { left: 7.3%; top: 55%; transform: translateY(-50%); }
.broadside .wordmark {
  font: 400 min(10.25cqw, 19cqh)/.87 "Archivo Black", "Arial Black", Arial, sans-serif;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.broadside .wordmark span { display: block; width: max-content; }
.broadside .surname { color: var(--broadside-ink); }
.broadside .profession {
  margin: 1.65cqh 0 0 .22cqw;
  color: #332e2a;
  font: italic 400 1.86cqw/1.16 Baskervville, Georgia, "Times New Roman", serif;
  letter-spacing: -.012em;
}
.full-sheet .broadside .profession { font-size: clamp(1.15rem, 1.86cqw, 1.74rem); }
.broadside .paper-layer {
  position: absolute; inset: 0; z-index: -4; overflow: hidden; pointer-events: none;
  background-color: #ede8de;
  --hosted-stock: url("./art/vellum.webp");
  --extra-width: max(0px, calc(150cqh - 100cqw));
}
.miniature .broadside .paper-layer { --hosted-stock: url("./art/vellum-small.webp"); }
.broadside[data-paper="plain"] .paper-layer { display: none; }
/* Match L1's cover scale. The first third of the photograph is untouched cotton. */
.broadside .paper-layer, .broadside .paper-layer::before, .broadside .paper-layer::after {
  background-image: var(--paper-stock, none), var(--hosted-stock);
  background-repeat: no-repeat;
  background-size: max(100cqw, 150cqh) auto;
  background-position: left center;
}
.broadside .paper-layer::before, .broadside .paper-layer::after {
  content: ""; position: absolute; top: 0; bottom: 0;
  mask-image: linear-gradient(to right, transparent, black 3.1cqw);
}
.broadside .paper-layer::before {
  left: 31.5%; right: 30%;
  background-position: calc(-.16 * var(--extra-width)) 4%;
}
.broadside .paper-layer::after {
  left: 64.8%; right: 0;
  background-position: calc(-.32 * var(--extra-width)) 96%;
}
.broadside:is([data-paper="still"], [data-paper="moving"])::after {
  content: ""; position: absolute; inset: -7px 54% -7px -7px; z-index: -3; pointer-events: none;
  /* Both lips follow circles about one centre. Their perpendicular separation is the radius difference. */
  --centre-offset: max(18cqh, calc(200cqh - 90cqw));
  --centre: calc(0px - var(--centre-offset)) 110cqh;
  --outer-radius: hypot(var(--centre-offset), 107cqh);
  --ring-gap: min(13cqw, 18cqh);
  --bevel: min(1.2cqw, 2cqh);
  --impression: transparent calc(100% - 3.5 * var(--bevel)), rgb(103 83 55 / .025) calc(100% - 2.3 * var(--bevel)),
    rgb(103 83 55 / .10) calc(100% - 1.1 * var(--bevel)), rgb(103 83 55 / .25) calc(100% - .34 * var(--bevel)),
    rgb(255 253 246 / .83) 100%, rgb(255 253 246 / .20) calc(100% + .23 * var(--bevel)), transparent calc(100% + .56 * var(--bevel));
  background:
    radial-gradient(circle var(--outer-radius) at var(--centre), var(--impression)),
    radial-gradient(circle calc(var(--outer-radius) - var(--ring-gap)) at var(--centre), var(--impression));
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .broadside[data-paper="moving"]::after {
    transform: translate(var(--shift-x, 0px), var(--shift-y, 0px));
    transition: transform .45s ease-out;
  }
}
.broadside .plate { inset: 7% 3.4% 6% 49%; mix-blend-mode: multiply; }
.broadside .plate img { object-fit: contain; object-position: 50% 55%; }
.portrait-starting .full-sheet .broadside .plate img { opacity: 0; }
.broadside .portrait-fall { position: absolute; left: 0; width: 100%; pointer-events: none; }
@media (prefers-reduced-motion: reduce), print {
  .portrait-starting .full-sheet .broadside .plate img { opacity: 1; }
  .broadside .portrait-fall { display: none; }
}
.broadside .edition-contact {
  right: 3.4%; bottom: 1.5%; gap: 1.35cqw;
  color: #393933;
  font: 400 .92cqw/1.25 "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase; letter-spacing: .055em;
}
.full-sheet .broadside .edition-contact { font-size: clamp(.75rem, .92cqw, .8125rem); }
.broadside .edition-contact a { justify-content: center; padding-inline: .3em; }
.broadside .edition-contact a:is(:hover, :focus-visible, :active) {
  color: #285746; text-decoration: none;
}
@container design (aspect-ratio > 1 / 1) {
  .full-sheet .broadside .plate { bottom: max(6%, calc(1.5cqh + 48px)); }
}

.night-proof { --ink: #f3e9d5; background: radial-gradient(ellipse at 25% 45%, #243145, #101c2e 58%, #101a2a); }
.night-proof .plate { inset: 5% 47% 3% 0; mix-blend-mode: screen; }
.night-proof .plate img { object-fit: contain; }
.night-proof .signature { left: 56%; right: 5%; top: 49%; transform: translateY(-50%); }
.night-proof .wordmark { font-family: "Instrument Serif", "Times New Roman", Georgia, serif; font-size: min(11.3cqw, 23cqh); letter-spacing: -.052em; }
.night-proof .surname { display: block; margin-left: .19em; font-style: italic; color: #c1d0e5; }
.night-proof .profession { margin-left: .15em; margin-top: 4.1cqh; }
.night-proof .edition-contact { left: 56%; right: 6%; bottom: 6%; border-top: max(.075cqw,.5px) solid #708095; padding-top: 1cqh; }

.bookplate { --ink: #3a3027; background: radial-gradient(ellipse at 51% 40%, #f5edda, #ece2cd 85%); }
.bookplate .plate {
  z-index: -1;
  left: 50%; top: 10%; right: auto; bottom: auto;
  width: min(18.5cqw, 29cqh); aspect-ratio: .81;
  transform: translateX(-50%); overflow: hidden; border-radius: 50%;
  border: max(.09cqw,.45px) solid #755243; background: #eadcc3;
  box-shadow: 0 0 0 .28cqw #f2e9d5, 0 0 0 max(.39cqw,1px) #816250;
}
.bookplate .plate img { mix-blend-mode: multiply; object-position: 50% 38%; }
.bookplate .signature { top: 53%; left: 3%; right: 3%; text-align: center; }
.bookplate .wordmark { color: #53352b; font: 400 min(6.8cqw,13.5cqh)/1.04 Baskervville, "Palatino Linotype", Georgia, serif; letter-spacing: -.047em; }
.bookplate .profession, .deckle .profession {
  display: flex; align-items: center; justify-content: center; gap: 1.2em;
  text-transform: uppercase; letter-spacing: .21em;
}
.miniature :is(.bookplate, .deckle) .profession { font-size: 1.02cqw; }
.full-sheet :is(.bookplate, .deckle) .profession { font-size: clamp(.875rem, 1.02cqw, 1.16rem); }
.bookplate .profession::before, .bookplate .profession::after {
  content: ""; width: 3.1cqw; border-top: max(.075cqw,.5px) solid #957760;
}
.bookplate .edition-contact { left: 0; right: 0; justify-content: center; bottom: 7.5%; gap: 3.7cqw; }

.copper-edge { --ink: #f5eadb; background: #171717; }
.copper-edge .plate img { object-position: 75% 50%; }
.copper-edge .signature { left: 6%; right: 5%; bottom: 14%; }
.copper-edge .wordmark {
  font: 700 min(23cqw, 39cqh)/.82 "Barlow Condensed", Impact, "Arial Narrow", Arial, sans-serif;
  letter-spacing: -.052em; text-transform: uppercase;
}
.copper-edge .given {
  display: block; margin: 0 0 .32em .075em;
  font-size: .28em; letter-spacing: .14em; color: #e3ac86;
}
.copper-edge .surname { transform: scaleX(.9); transform-origin: left; }
.copper-edge .profession { padding-left: .28em; margin-top: 3.8cqh; }
.copper-edge .edition-contact { bottom: 4.7%; right: 5.8%; border-top: max(.09cqw,.5px) solid #bf8a6c; padding-top: .55cqh; }

.fault-line { --ink: #e7f1ec; background: #171e21; }
.fault-line .plate img { object-position: 65% center; }
.fault-line .signature { left: 7.8%; right: 35%; top: 46%; transform: translateY(-50%); }
.fault-line .signature::before {
  content: ""; display: block; width: 3.3cqw; height: max(.2cqw, .7px);
  background: #9ecbc0; margin: 0 0 3.5cqh .28cqw;
}
.fault-line .wordmark { font: 500 min(8.3cqw,17cqh)/.93 "Instrument Sans", "Helvetica Neue", Arial, sans-serif; letter-spacing: -.075em; }
.fault-line .surname { display: block; }
.fault-line .profession { color: #c7e1d7; margin: 3.4cqh 0 0 .22cqw; }
.fault-line .edition-contact { left: 8%; bottom: 6%; }

.oculus { --ink: #e8e7de; background: #191a1b; }
.oculus .plate img { object-position: 41% center; }
.oculus .signature { top: 46%; left: 55%; right: 4%; transform: translateY(-50%); }
.oculus .wordmark { font: 400 min(9cqw,19cqh)/.89 "DM Serif Text", Georgia, serif; letter-spacing: -.058em; }
.oculus .surname { display: block; margin-left: .23em; font-style: italic; color: #c6c7c1; }
.oculus .profession { margin: 4.2cqh 0 0 .2cqw; }
.oculus .edition-contact { left: 55%; bottom: 6%; }

.correspondence { --ink: #302725; background: #ede8de; }
.correspondence .plate img { object-position: 70% 50%; }
.correspondence .signature { left: 8.1%; right: 9%; top: 45%; transform: translateY(-50%); }
.correspondence .signature::before {
  content: ""; display: block; width: 33cqw; height: max(.36cqw,1.4px);
  border-block: max(.065cqw,.4px) solid #8c5e5a; margin: 0 0 4.9cqh .2cqw;
}
.correspondence .wordmark { font: 600 min(9.5cqw,19cqh)/.93 "Cormorant Garamond", Garamond, Georgia, serif; letter-spacing: -.066em; }
.correspondence .surname { color: #773a3e; font-style: italic; }
.correspondence .profession { margin-left: .2cqw; margin-top: 3.7cqh; }
.correspondence .edition-contact { left: 8.3%; bottom: 10%; }
.correspondence .edition-contact > * + * { position: relative; }
.correspondence .edition-contact > * + *::before {
  content: ""; position: absolute; left: -1.33cqw; top: 50%; transform: translateY(-50%);
  height: .72em; border-left: max(.07cqw,.35px) solid #997c73;
}

.deckle { --ink: #2f332d; background: #b5aa98; }
.deckle .plate img { object-fit: fill; }
.deckle .signature { top: 46%; left: 12%; right: 12%; text-align: center; transform: translateY(-50%); }
.deckle .wordmark {
  font: 400 min(5.5cqw, 13cqh)/1.1 Baskervville, "Palatino Linotype", Georgia, serif;
  letter-spacing: -.038em; text-shadow: 0 .06cqw .04cqw #fffae9;
}
.deckle .profession { margin-top: 2.8cqh; color: #484f44; }
.deckle .edition-contact { left: 20%; right: 20%; justify-content: center; bottom: 21%; gap: 3.4cqw; font-family: Baskervville, Georgia, serif; }

.oxblood { --ink: #fff0d3; background: #661f32; }
.oxblood .plate img { object-position: 66% center; }
.oxblood .signature { left: 8%; right: 10%; top: 45%; transform: translateY(-50%); }
.oxblood .wordmark { font: 400 min(13cqw,24cqh)/.86 "Instrument Serif", "Times New Roman", Georgia, serif; letter-spacing: -.052em; }
.oxblood .given { font-style: italic; }
.oxblood .surname { display: block; margin-left: .43em; }
.oxblood .profession { margin: 4.8cqh 0 0 .4cqw; }
.oxblood .edition-contact { left: 8.4%; right: 8%; justify-content: space-between; bottom: 5.8%; padding-top: 1.1cqh; border-top: max(.07cqw,.5px) solid #cc9c98; }

@container design (max-aspect-ratio: 1 / 1) {
  .edition-contact { gap: 6.3cqw; }
  .broadside { display: grid; grid-template-rows: minmax(0,1fr) auto auto; padding: 4.5cqh 7.5cqw 2cqh; }
  .broadside .plate { position: relative; inset: auto; grid-row: 1; min-height: 0; }
  .broadside .plate img { object-position: 60% bottom; }
  .broadside .signature { position: static; transform: none; grid-row: 2; margin-top: 2.4cqh; }
  .broadside .wordmark { font-size: min(16.5cqw,11.8cqh); }
  .broadside .profession { margin-top: 1.65cqh; }
  /* Anchor the impression to the name row when the portrait is stacked above it. */
  .broadside:is([data-paper="still"], [data-paper="moving"])::after {
    grid-row: 2 / 4; inset: 7px 23% calc(-2cqh - 7px) -7px;
    --centre-offset: 22cqw;
    --centre: calc(0px - var(--centre-offset)) 94cqw;
    --outer-radius: hypot(var(--centre-offset), 90cqw);
    --ring-gap: 14cqw;
    mask-image: linear-gradient(to bottom, transparent, black 13%);
  }
  .broadside .edition-contact { position: static; grid-row: 3; justify-self: end; gap: 4cqw; margin-top: 2.6cqh; }
  .night-proof .plate { inset: 0 3% 44%; }
  .night-proof .signature { left: 9%; right: 5%; top: 55%; transform: none; }
  .night-proof .wordmark { font-size: min(17cqw,10.5cqh); }
  .night-proof .surname { margin-left: .42em; }
  .night-proof .profession { margin-top: 2.2cqh; }
  .night-proof .edition-contact { left: 9%; right: 9%; bottom: 2.5%; padding-top: 0; }
  .bookplate .plate { top: 14%; width: min(38cqw,27cqh); }
  .bookplate .signature { top: 54%; }
  .bookplate .wordmark { font-size: min(11.2cqw,10cqh); }
  .bookplate .profession { margin-top: 2.7cqh; gap: 1em; }
  .bookplate .profession::before, .bookplate .profession::after { width: 7cqw; }
  .bookplate .edition-contact { bottom: 6%; gap: 7cqw; }
  .copper-edge .plate img { object-position: 72% center; }
  .copper-edge .signature { left: 6.5%; bottom: 18%; }
  .copper-edge .wordmark { font-size: min(34cqw,24cqh); }
  .copper-edge .given { font-size: .34em; }
  .copper-edge .profession { margin-top: 2.8cqh; }
  .copper-edge .edition-contact { left: 7%; right: 7%; bottom: 3%; justify-content: flex-end; }
  .fault-line .plate img { object-position: 66% center; }
  .fault-line .signature { top: 44%; left: 7.5%; right: 8%; }
  .fault-line .signature::before { width: 9cqw; margin-bottom: 2.2cqh; }
  .fault-line .wordmark { font-size: min(16.2cqw,11.8cqh); }
  .fault-line .profession { margin-top: 2.4cqh; }
  .fault-line .edition-contact { bottom: 4.5%; }
  .oculus .plate { bottom: 24%; mask-image: linear-gradient(to bottom, black 58%, transparent 100%); }
  .oculus .plate img { object-position: 25% center; }
  .oculus::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg,#191a1b 22%,transparent 53%); }
  .oculus .signature { left: 8%; right: 9%; text-align: right; top: auto; bottom: 16%; transform: none; }
  .oculus .wordmark { font-size: min(16cqw,11.8cqh); }
  .oculus .surname { margin-left: 0; }
  .oculus .profession { margin-top: 2.2cqh; }
  .oculus .edition-contact { left: auto; right: 9%; bottom: 3%; }
  .correspondence .plate img { object-position: 53% center; }
  .correspondence .signature { left: 8%; right: 5%; top: 47%; }
  .correspondence .signature::before { width: 53cqw; height: max(.58cqw,2px); margin-bottom: 3.2cqh; }
  .correspondence .wordmark { font-size: min(17.8cqw,12.5cqh); line-height: .91; }
  .correspondence .surname { display: block; margin-left: .15em; }
  .correspondence .profession { margin-top: 3cqh; }
  .correspondence .edition-contact { bottom: 7%; }
  .correspondence .edition-contact > * + *::before { left: -3.2cqw; }
  .deckle .plate { inset: 50% auto auto 50%; width: 100cqh; height: 100cqw; transform: translate(-50%,-50%) rotate(90deg); }
  .deckle .signature { top: 46%; left: 12%; right: 12%; }
  .deckle .wordmark { font-size: 10.2cqw; }
  .deckle .profession { margin-top: 2.5cqh; }
  .deckle .edition-contact { bottom: 20%; gap: 6.5cqw; }
  .oxblood .plate img { object-position: 58% center; }
  .oxblood .signature { top: 43.5%; left: 8%; right: 6%; }
  .oxblood .wordmark { font-size: min(23.5cqw,16cqh); }
  .oxblood .surname { margin-left: .27em; }
  .oxblood .profession { margin-top: 3.8cqh; }
  .oxblood .edition-contact { bottom: 4%; padding-top: .6cqh; }
}
@container design (max-aspect-ratio: 3 / 5) {
  .broadside { padding-bottom: 8cqh; }
  .broadside .edition-contact { transform: translateY(6cqh); }
  .broadside:is([data-paper="still"], [data-paper="moving"])::after { bottom: calc(-8cqh - 7px); }
  .broadside .plate { margin-inline: -3cqw; }
}
@media (forced-colors: active) {
  .edition { color: CanvasText; background: Canvas; }
  .edition .wordmark, .edition .given, .edition .surname, .edition .profession { color: CanvasText; }
  .edition .signature, .edition-contact a { background: Canvas; }
}


.broadside .wordmark a {
  display: block;
  width: max-content;
  color: inherit;
  text-decoration: none;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.broadside .wordmark a:focus-visible {
  outline: 2px solid var(--broadside-ink);
  outline-offset: .07em;
}
@media (forced-colors: active) {
  .broadside .wordmark a:focus-visible { outline-color: LinkText; }
}
