@import url("fonts/fonts.css");

:root {
  --white: #fff;
  --paper: #fdfcf9;
  --ink: #272522;
  --muted: #595450;
  --rule: #e7e2de;
  --red: #9e292c;
  --slate: #71838e;
  --serif: "Spectral", "Noto Serif", Georgia, serif;
  --sans: "Source Sans 3", "Trebuchet MS", Optima, sans-serif;
  --mono: "IBM Plex Mono", "Source Code Pro", monospace;
  color-scheme: light;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
.shell { width: min(100% - clamp(2.5rem, 10vw, 10rem), 74rem); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 5;
  padding: .6rem .9rem;
  background: white;
  color: var(--red);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.landing {
  display: grid;
  justify-items: center;
  padding: clamp(10px, 3.52vw, 27px);
  background: var(--white);
}
.front-cover {
  --separation: 1.12cqw;
  position: relative;
  width: min(100%, 714px);
  aspect-ratio: 3 / 4;
  container-type: inline-size;
}
@media (min-width: 64rem) and (orientation: landscape) {
  .front-cover { max-width: 600px; }
}
.front-cover::before,
.front-cover::after {
  position: absolute;
  content: "";
  pointer-events: none;
  border: 2.5px solid var(--red);
  inset: 0;
}
.front-cover::after {
  inset: var(--separation);
  border-width: .85px;
}
.landing-title, .landing-coin, .landing-stamp, .scroll-cue {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
}
.landing-title {
  top: 26.56%;
  width: calc(100% - 2 * (var(--separation) + 3px));
  text-align: center;
  font: 600 6.16cqw/1.27 var(--sans);
  letter-spacing: .05238em;
}
.landing-title span { display: block; white-space: nowrap; }
.landing-coin {
  top: 50%;
  /* The tablet portrait reference had a 148px coin in a 714px frame. */
  width: 20.7283%;
}
.landing-stamp {
  top: 76.39%;
  transform: translate(-50%, -50%) rotate(-12deg);
  color: var(--slate);
  font: 700 4.34cqw/1.12 "Stardos Stencil", Georgia, serif;
  letter-spacing: .045em;
  white-space: nowrap;
}
@supports (background-clip: text) {
  .landing-stamp {
    color: transparent;
    background-color: var(--slate);
    background-image:
      radial-gradient(ellipse at 27% 47%, #cbd0d371 0 10%, transparent 25%),
      radial-gradient(ellipse at 67% 55%, #495e6945 0 12%, transparent 26%);
    background-size: 3.1px 2.7px, 2.8px 3.5px;
    background-clip: text;
  }
}
.scroll-cue {
  top: 93.7%;
  display: grid;
  place-items: center;
  width: max(44px, 17.37%);
  min-height: 44px;
  color: #7e909b;
}
.scroll-cue::before, .scroll-cue::after {
  position: absolute;
  top: calc(50% - 6px);
  content: "";
  width: 47%;
  height: 1.5px;
  background: currentColor;
  opacity: .54;
  transition: opacity 180ms ease;
}
.scroll-cue::before { right: 50%; transform: skewY(13deg); transform-origin: left; }
.scroll-cue::after { left: 50%; transform: skewY(-13deg); transform-origin: right; }
.scroll-cue:hover::before, .scroll-cue:hover::after,
.scroll-cue:focus-visible::before, .scroll-cue:focus-visible::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.reading-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
  padding-block: .6rem;
  font: 500 .94rem/1.35 var(--sans);
}
.reading-tools > a {
  padding-block: .3rem;
  text-decoration-color: var(--rule);
  text-underline-offset: .25em;
}

.back-cover {
  background: #15191e;
  color: #94a2ac;
  font-family: var(--sans);
  font-weight: 400;
}
.back-cover-inner {
  width: min(100% - clamp(2.25rem, 10vw, 6.5rem), 714px);
  margin-inline: auto;
  padding-top: clamp(1rem, 3.4vw, 2rem);
}
.back-cover-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(4.25rem, 16vw, 7.75rem);
  align-items: center;
  gap: clamp(.85rem, 4vw, 2.5rem);
  padding-bottom: clamp(.85rem, 2.4vw, 1.5rem);
}
.back-cover-intro p {
  max-width: 42ch;
  font-size: clamp(1rem, 1.65vw, 1.22rem);
  line-height: 1.48;
}
.back-cover-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
  border-top: 1px solid #333b42;
  min-height: 3rem;
  font: 500 .94rem/1.35 var(--sans);
  color: #c4c7ca;
}
.back-cover-nav a {
  justify-self: start;
  padding-block: .55rem;
  text-decoration: none;
  white-space: nowrap;
}
.back-cover-nav a:last-child { justify-self: end; }
.back-cover-nav a:hover { text-decoration: underline; text-underline-offset: .28em; }
.back-cover-nav a:focus-visible { outline-color: currentColor; }

.language-switch {
  display: flex;
  flex: none;
  align-items: center;
  gap: .16rem;
  font: 500 .875rem/1 var(--sans);
  white-space: nowrap;
}
.language-switch a {
  display: grid;
  place-items: center;
  min-width: 1.9rem;
  min-height: 2rem;
  padding-inline: .2rem;
  border-radius: 2px;
  text-decoration: none;
}
.language-switch a[aria-current], .language-switch a:hover { background: #efefef; }
.language-switch a:focus-visible { outline-offset: 1px; }
.language-divider { color: var(--muted); }
.language-switch--landing {
  position: absolute;
  z-index: 1;
  top: calc(var(--separation) + .42rem);
  right: calc(var(--separation) + .55rem);
}

.literary-section {
  background: var(--paper);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 3vw, 2rem);
}
.story-index { display: grid; gap: clamp(3.2rem, 8.5vw, 7.5rem); }
.story-card {
  display: grid;
  grid-template-columns: 1.34fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 7vw, 6rem);
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.2rem, 3.65vw, 2.8rem);
  text-decoration: none;
}
.story-card:nth-child(2) { grid-template-columns: 1fr 1.34fr; }
.story-card:nth-child(2) figure { grid-column: 2; grid-row: 1; }
.story-card:nth-child(2) .card-copy { grid-column: 1; grid-row: 1; }
.story-card figure { overflow: hidden; background: #f4f0eb; }
.story-card img {
  width: 100%;
  aspect-ratio: 1.48;
  object-fit: cover;
  transition: transform 280ms ease;
}
.story-card:first-child img { object-position: center 49%; }
.story-card:hover img { transform: scale(1.025); }
.card-copy { padding-block: .4rem; }
.card-copy h3, .article-header h1, .gallery-opening h1, .other-titles li, .continue .next-story {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: .025em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.card-copy h3 {
  margin: 0 0 .6em;
  font-size: clamp(1.65rem, 3.35vw, 3.5rem);
  line-height: 1.14;
  text-wrap: balance;
}
.card-copy p {
  max-width: 35ch;
  color: var(--muted);
  font: 400 clamp(1.0625rem, 1.7vw, 1.15rem)/1.5 var(--sans);
}
.read-link {
  display: inline-block;
  margin-top: 1.6rem;
  color: var(--red);
  font: 500 .91rem/1.3 var(--sans);
  text-decoration: underline;
  text-underline-offset: .32em;
}

.other-titles {
  --title-ink: #6c6460;
  --last-title-strength: 32%;
  --first-title-height: clamp(4.0625rem, 7vw, 4.875rem);
  list-style: none;
  width: min(100%, 51rem);
  margin: clamp(4.5rem, 11vw, 8rem) auto clamp(4.5rem, 10vw, 7.5rem);
  padding: 0;
  text-align: center;
}
.other-titles li {
  --step: 0;
  --letter-strength: 100%;
  --line-strength: 26%;
  display: grid;
  place-items: center;
  width: calc(100% - var(--step) * 2.5%);
  /* Allow the longer titles two lines while retaining the height progression. */
  min-height: calc(var(--first-title-height) - var(--step) * .1875rem);
  margin: 0 auto calc(.8rem - var(--step) * .075rem);
  padding: calc(.48rem - var(--step) * .05rem) clamp(.45rem, 1.9vw, .85rem);
  border: 1px solid color-mix(in srgb, var(--title-ink) var(--line-strength), var(--paper));
  color: color-mix(in srgb, var(--title-ink) var(--letter-strength), var(--paper));
  font-size: clamp(1rem, 2.14vw, 1.55rem);
  line-height: 1.22;
  text-wrap: balance;
}
.other-titles li:nth-child(2) { --step: 1; --letter-strength: 92%; --line-strength: 22%; }
.other-titles li:nth-child(3) { --step: 2; --letter-strength: 84%; --line-strength: 18%; }
.other-titles li:nth-child(4) { --step: 3; --letter-strength: 75%; --line-strength: 14.5%; }
.other-titles li:nth-child(5) { --step: 4; --letter-strength: 66%; --line-strength: 11%; }
.other-titles li:nth-child(6) { --step: 5; --letter-strength: 57%; --line-strength: 8%; }
.other-titles li:nth-child(7) { --step: 6; --letter-strength: 48%; --line-strength: 5.6%; }
.other-titles li:nth-child(8) { --step: 7; --letter-strength: 39%; --line-strength: 3.6%; }
.other-titles li:nth-child(9) {
  --step: 8;
  --letter-strength: var(--last-title-strength);
  --line-strength: 1.9%;
}
.other-titles::after {
  content: "";
  display: block;
  width: .23rem;
  height: .23rem;
  margin: .95rem auto 0;
  border-radius: 50%;
  color: color-mix(in srgb, var(--title-ink) var(--last-title-strength), var(--paper));
  background: currentColor;
  box-shadow: -.58rem 0 currentColor, .58rem 0 currentColor;
}

.book-section {
  padding-block: clamp(1.25rem, 4vw, 3rem) clamp(4.5rem, 11vw, 8rem);
  background: #15191e;
  color: #94a2ac;
}
.book-layout {
  --book-width: min(64cqw, 28rem);
  width: min(100%, 48rem);
  margin-inline: auto;
  container-type: inline-size;
}
.book-stage {
  --book-height: calc(var(--book-width) * 1.5);
  --book-depth: calc(var(--book-width) * .19);
  --ground: calc(var(--book-height) + clamp(3.25rem, 10cqw, 5.5rem));
  position: relative;
  height: calc(var(--ground) + clamp(2.5rem, 10cqw, 5.625rem));
  isolation: isolate;
  background: radial-gradient(ellipse 49% 67% at 49% 42%, #2d3339, #22272d 51%, transparent 100%);
}
/* The rear edge of the floor falls behind the book's contact plane. */
.book-stage::before {
  content: "";
  position: absolute;
  inset: calc(var(--ground) - var(--book-width) * .19) 0 0;
  background: radial-gradient(ellipse 49% 108% at 49% 18%, #393f45, #272d33 54%, transparent 100%);
  mask-image: linear-gradient(#000 58%, transparent);
}
.book-scene {
  position: absolute;
  inset: 0;
  perspective: calc(var(--book-width) * 6.5);
  perspective-origin: 50% calc(var(--ground) - var(--book-height) * .65);
}
.book-view {
  position: absolute;
  top: var(--ground);
  left: 50%;
  transform: rotateX(-15deg);
  transform-style: preserve-3d;
}
.book {
  position: absolute;
  left: calc(var(--book-width) * -.5);
  bottom: 0;
  width: var(--book-width);
  aspect-ratio: 2 / 3;
  transform: rotateY(-20deg);
  transform-origin: center bottom;
  transform-style: preserve-3d;
}
/* The shadow shares the book's base plane and rotates with the object. */
.book-shadow {
  position: absolute;
  top: 100%;
  left: -16%;
  width: 142%;
  height: calc(var(--book-depth) * 3.4);
  transform-origin: center top;
  transform: rotateX(-90deg) translateY(calc(var(--book-depth) * -.72));
  background:
    radial-gradient(ellipse 35% 18% at 46% 30%, #08090bf0 12%, #08090bbd 67%, transparent 100%),
    radial-gradient(ellipse 48% 46% at 53% 44%, #0a0c0ed6, #10121666 60%, transparent 100%);
}
.book-front, .book-back { position: absolute; inset: 0; }
.book-front { transform: translateZ(.25px); }
.book-front > img { width: 100%; height: auto; }
.book-back {
  transform: translateZ(calc(-1 * var(--book-depth)));
  background: #504037;
}
.book-pages, .book-top {
  position: absolute;
  backface-visibility: hidden;
}
.book-pages {
  inset: 0 auto 0 100%;
  width: var(--book-depth);
  transform-origin: left center;
  transform: rotateY(90deg);
  background:
    linear-gradient(90deg, #59463a 2px, transparent 2px calc(100% - 2px), #4b3c34 0),
    linear-gradient(180deg, #51443a18, transparent 14%, #51443a46),
    repeating-linear-gradient(90deg, #b6a998 0 .65px, #c9bda9 .65px 1.35px, #d5cab8 1.35px 2.6px);
}
.book-top {
  inset: auto 0 100%;
  height: var(--book-depth);
  transform-origin: center bottom;
  transform: rotateX(90deg);
  background:
    linear-gradient(0deg, #70594b 2px, transparent 2px calc(100% - 2px), #504037 0),
    linear-gradient(90deg, #6854462e, transparent 42%),
    repeating-linear-gradient(0deg, #cfc0a9 0 1px, #d8cbb6 1px 6px);
}
.publisher-invitation {
  width: min(100% - 2.5rem, 54ch);
  margin-inline: auto;
  padding-top: clamp(6rem, 100cqw - var(--book-width), 17rem);
  font: 400 clamp(1.125rem, 2vw, 1.25rem)/1.7 var(--sans);
  text-align: center;
}

.footer {
  border-top: 1px solid var(--rule);
  padding-block: 3rem;
  text-align: center;
}
.footer-logo { width: 148px; margin: 0 auto .55rem; }
.footer p { font: 400 .875rem/1.55 var(--sans); color: var(--muted); }
.footer .motto { margin-top: .8rem; font-size: 1rem; line-height: 1.5; }
.footer .coin-credit { margin-top: 1.6rem; font-size: .8rem; }
.footer a { text-decoration-color: #b7afaa; text-underline-offset: .2em; }

.entrance-hero {
  display: grid;
  position: relative;
  min-height: 315px;
  max-height: 48rem;
  overflow: hidden;
  aspect-ratio: 16/8.35;
  isolation: isolate;
  background: #353330;
}
.entrance-hero img { width: 100%; height: 100%; max-height: 48rem; object-fit: cover; object-position: center 46%; }
.entrance-hero::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  pointer-events: none;
  background: linear-gradient(0deg, #0d0d0dd9, #0d0d0d56 44%, transparent);
}
.entrance-hero h1 {
  position: absolute;
  bottom: clamp(1.25rem, 4.7vw, 4.4rem);
  left: max(calc((100% - 74rem) / 2), clamp(1.3rem, 5vw, 5rem));
  z-index: 1;
  color: white;
  font-size: clamp(2.55rem, 8vw, 7.6rem);
  font-weight: 400;
  letter-spacing: -.048em;
  line-height: .96;
}
.article-header {
  margin-top: clamp(3rem, 8vw, 6.5rem);
  text-align: center;
}
:is(.article-header, .gallery-opening) h1 {
  max-width: 17ch;
  margin-inline: auto;
  font-size: clamp(2rem, 5.6vw, 5.4rem);
  line-height: 1.1;
  text-wrap: balance;
}
.article-byline {
  margin: 1.3rem 0 clamp(2rem, 6vw, 4rem);
  font: 600 .98rem/1.2 var(--sans);
  letter-spacing: .025em;
  color: var(--muted);
}
.edition-status {
  color: var(--muted);
  font: 600 .875rem/1.45 var(--sans);
}
.article-header .edition-status { margin-block: -1rem 1.35rem; }
.prose .edition-status + .date { margin-top: 1rem; }
.article-hero { max-width: 62rem; margin-inline: auto; }
.article-hero img { width: 100%; }
.gallery-page {
  background: #15191e;
  color: #c4c7ca;
}
.gallery-page .reading-tools > a { text-decoration-color: #94a2ac; }
.gallery-page .language-divider { color: #94a2ac; }
.gallery-page .language-switch a:is([aria-current], :hover) { color: var(--ink); }
.gallery-page a:focus-visible { outline-color: #94a2ac; }
.gallery-content { padding-bottom: clamp(7rem, 21vw, 17rem); }
.gallery-opening {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.1rem, 3vw, 1.75rem);
  text-align: center;
}
.gallery-opening h1 { color: #f5f5f3; }
.gallery-opening p {
  max-width: 56ch;
  margin: 1.1rem auto 0;
  font: 400 clamp(1.125rem, 2vw, 1.25rem)/1.65 var(--sans);
}
.gallery-sequence, .gallery-pair, .gallery-context {
  display: grid;
}
.gallery-sequence { gap: clamp(2rem, 5vw, 4.5rem); }
.gallery-pair { gap: clamp(1.25rem, 3vw, 2rem); }
.gallery-context { gap: clamp(1.25rem, 3vw, 2rem); }
.gallery-copy {
  width: min(100%, 58ch);
  margin: 0 auto;
  font: 400 1.125rem/1.7 var(--sans);
}
.gallery-literary {
  color: #94a2ac;
  font-style: italic;
}
.gallery-portrait {
  justify-self: center;
  width: min(100%, 38rem);
}
.gallery-football { margin-block: clamp(1rem, 4vw, 3.5rem); }
@media (min-width: 48rem) {
  .gallery-pair { grid-template-columns: minmax(0, 9fr) minmax(0, 16fr); }
}
.article-hero figcaption, .inline-photo figcaption {
  margin-top: .85rem;
  text-align: center;
  color: var(--muted);
  font: italic 400 .95rem/1.4 var(--sans);
}
.prose {
  width: min(100% - 2.5rem, 65ch);
  margin: clamp(2.8rem, 7vw, 5.75rem) auto clamp(4rem, 9vw, 7.3rem);
  font: 400 1.125rem/1.7 var(--sans);
}
.prose p + p { margin-top: 1.16em; }
.prose .date { color: var(--red); font: 600 1.02rem/1.2 var(--sans); letter-spacing: .023em; }
.prose .inline-photo { margin-block: 2.2rem; }
.prose .dialogue { margin-inline-start: clamp(.75rem, 3.5vw, 2rem); }
.entrance-closing {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.4rem, 3.5vw, 2.15rem);
}
.entrance-foreword {
  color: var(--muted);
  font: italic 400 1rem/1.65 var(--sans);
}
.entrance-closing .entrance-bio-link {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  font-size: .95rem;
}
.entrance-bio-link a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: .23em;
}
.entrance-signature {
  width: clamp(5.5rem, 24vw, 8rem);
  margin-block-start: clamp(1.6rem, 4vw, 2.8rem);
  margin-inline-start: auto;
  filter: brightness(.53);
}
.biography-page {
  display: flow-root;
  background: var(--paper);
}
.biography-page .article-header h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}
.continue { border-top: 1px solid var(--rule); padding-top: 2rem; margin-top: 3.1rem; }
.continue a { color: var(--red); font-weight: 500; text-underline-offset: .23em; }

@media (max-width: 720px) {
  .story-card, .story-card:nth-child(2) { grid-template-columns: minmax(0, 1fr); }
  .story-card:nth-child(2) figure, .story-card:nth-child(2) .card-copy { grid-row: auto; grid-column: auto; }
  .story-card { gap: 1.4rem; }
  .card-copy h3 { max-width: 18ch; text-wrap: unset; }
  .read-link { margin-top: 1.15rem; }
  .entrance-hero { aspect-ratio: 1.35; min-height: 0; }
}
