:root {
  color-scheme: light;
  --paper: #f3eee1;
  --surface: #faf6ed;
  --ink: #25251e;
  --muted: #605d51;
  --accent: #932c24;
  --rule: #b9ae96;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: Georgia, "Times New Roman", serif;
  --sans: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font: 100%/1.5 var(--sans);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
p, figure { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; font-family: var(--display); }
.wrap { width: min(1200px, calc(100% - 100px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: .5rem; left: .75rem; padding: .6em 1em; color: white; background: var(--accent); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { border-top: 5px solid var(--accent); }
.masthead { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: .5rem; font: 700 clamp(1.24rem, 2.3vw, 1.55rem)/1 var(--display); text-decoration: none; }
.wordmark img { flex: none; }
.header-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.header-link, .text-link {
  display: inline-block; background: none; border: 0; padding: .2em 0;
  color: var(--ink); font-size: .875rem; font-weight: 650;
  text-decoration: underline; text-underline-offset: .28em;
}
.header-link:hover, .text-link:hover, .back-link:hover, .contents a:hover { color: var(--accent); }
.header-link span { margin-left: .2em; color: var(--accent); }
.cover {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.3fr);
  align-items: center; gap: clamp(26px, 5vw, 86px);
  padding-block: clamp(32px, 6vw, 83px) 34px;
  border-bottom: 1px solid var(--ink);
}
.edition-label {
  margin: 0 0 1.25rem; color: var(--accent); font-size: .78rem; font-weight: 720;
  letter-spacing: .085em; text-transform: uppercase;
}
.cover h1 { font-size: clamp(3.65rem, 6.9vw, 6.6rem); line-height: .88; letter-spacing: -.07em; hyphens: manual; overflow-wrap: normal; }
.cover-deck { max-width: 36ch; margin: 1.55rem 0 1.65rem; font: clamp(1.13rem, 2vw, 1.35rem)/1.43 var(--body); color: var(--muted); }
.cover-link { display: inline-flex; align-items: center; gap: 14px; padding-bottom: 4px; color: var(--accent); font-weight: 740; text-decoration: none; border-bottom: 1px solid currentColor; }
.cover-link:hover { color: var(--ink); }
.cover-figure, .story-image { min-width: 0; margin: 0; }
.cover-figure img { width: 100%; aspect-ratio: 1.42; height: auto; object-fit: cover; object-position: center 38%; background: #d4c6a8; }
figcaption { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font: .78rem/1.45 var(--sans); margin-top: 9px; }
figcaption span { flex: none; color: var(--accent); font-weight: 750; }
.reading-layout {
  display: grid; grid-template-columns: minmax(158px, 225px) minmax(0, 780px);
  gap: clamp(28px, 7vw, 112px); align-items: start;
  padding-block: clamp(37px, 6vw, 75px) 46px;
}
.contents { position: sticky; top: 25px; scroll-margin-top: 20px; border-top: 3px solid var(--accent); padding: 12px 0 0; }
.contents h2 { font: 750 .89rem/1.4 var(--sans); margin-bottom: 10px; }
.contents ol { list-style: none; margin: 0 0 15px; padding: 0; }
.contents li { border-bottom: 1px solid var(--rule); }
.contents a { display: block; font-size: .84rem; color: var(--ink); text-decoration: none; padding: 7px 0; }
.contents p { font-size: .74rem; color: var(--muted); margin: 0; }
.chronicle { min-width: 0; }
.chapter { max-width: 66ch; margin-inline: auto; scroll-margin-top: 24px; }
.chapter + .chapter, .story-image + .chapter, .pull-quote + .chapter { margin-top: clamp(46px, 7vw, 76px); }
.chapter-number { color: var(--accent); font: bold .94rem/1 var(--display); }
.chapter h2 { font-size: clamp(2.25rem, 4.5vw, 3.6rem); line-height: 1.03; letter-spacing: -.04em; margin: .25em 0 .57em; text-wrap: balance; }
.chapter p { font: clamp(1.06rem, 1.75vw, 1.22rem)/1.68 var(--body); margin-bottom: .9em; }
.chapter p:last-child { margin-bottom: 0; }
.opening::first-letter { float: left; color: var(--accent); font-size: 3.4em; line-height: .82; padding: .09em .09em 0 0; }
.story-image { margin-block: clamp(27px, 5vw, 58px); }
.story-image img { width: 100%; height: auto; background: #d4c6a8; }
.inset-image { width: min(100%, 510px); margin-inline: auto; }
.recovered-image { width: min(100%, 720px); margin-inline: auto; padding: 12px; background: #e7deca; border: 1px solid var(--rule); }
.ending-image { width: min(100%, 580px); margin-inline: auto; }
.pull-quote { margin: 42px auto 0; padding: 5px 0 5px 22px; border-left: 3px solid var(--accent); width: min(100%, 570px); }
.pull-quote p { margin-bottom: .3em; color: var(--accent); font: italic clamp(1.55rem, 3.7vw, 2.5rem)/1.2 var(--body); }
.pull-quote cite { color: var(--muted); font: .78rem/1.4 var(--sans); }
.end-mark { margin-top: 35px; display: flex; justify-content: center; }
.site-footer { border-block: 1px solid var(--ink) 5px solid var(--accent); background: #e7deca; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 29px; }
.footer-inner p { margin: 8px 0 0; color: var(--muted); font-size: .85rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: .65em 1em; min-height: 43px; border: 1px solid var(--accent);
  background: var(--accent); color: #fffdf5; text-decoration: none; font-size: .88rem; font-weight: 700;
}
.button:hover:not(:disabled) { background: #702117; }
.button-outline { color: var(--ink); background: transparent; border-color: var(--ink); }
.button-outline:hover:not(:disabled) { color: var(--accent); background: var(--surface); border-color: var(--accent); }
.games-body { min-height: 100vh; }
.account-main { padding-block: 26px 60px; }
.back-link { display: inline-block; margin-bottom: clamp(25px, 5vw, 50px); color: var(--muted); font-size: .87rem; text-underline-offset: .25em; }
.account-main h1 { font-size: clamp(2.6rem, 6vw, 4.55rem); line-height: 1; letter-spacing: -.045em; margin-bottom: .42em; }
.account-main h1 + p { color: var(--muted); }
.panel { max-width: 520px; margin-inline: auto; border-block: 3px solid var(--accent) 1px solid var(--rule); padding: clamp(18px, 4vw, 36px); background: var(--surface); }
#credentials { display: grid; gap: 9px; margin: 23px 0 12px; }
#credentials label { font-size: .92rem; font-weight: 670; }
#credentials input { min-width: 0; width: 100%; min-height: 44px; margin-bottom: 6px; padding: 8px 11px; color: var(--ink); border: 1px solid var(--muted); background: #fffdf7; border-radius: 0; }
#credentials .button { margin-top: 6px; justify-self: start; }
.field-hint { color: var(--muted); font-size: .8rem; margin: 0; }
.text-link { color: var(--accent); }
.form-error { color: var(--accent); margin: 0; }
.game-card { display: grid; align-items: center; grid-template-columns: minmax(0, 1.18fr) minmax(270px, 1fr); gap: 23px; max-width: 890px; border-block: 1px solid var(--ink); padding-block: 18px; }
.game-card img { height: auto; width: 100%; object-fit: cover; aspect-ratio: 1.65; }
.game-copy h2 { font-size: clamp(1.9rem, 4vw, 3.05rem); line-height: 1.05; letter-spacing: -.04em; margin-bottom: .42em; }
.game-copy > p:not(.edition-label) { color: var(--muted); }
.requests { max-width: 930px; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.requests li { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) 100px auto; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.requests strong { overflow-wrap: anywhere; }
.account-status { color: var(--muted); font-size: .89rem; }
.account-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 54px); }
  .cover { gap: 27px; }
  .reading-layout { gap: 32px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 38px); }
  .masthead { min-height: 64px; }
  .cover { grid-template-columns: 1fr; align-items: start; gap: 22px; padding-top: 35px; }
  .cover h1 { max-width: 11ch; font-size: clamp(3.6rem, 11vw, 5.6rem); }
  .cover-deck { margin: 1rem 0 1.2rem; }
  .reading-layout { grid-template-columns: minmax(0, 1fr); }
  .contents { position: static; }
  .contents ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 17px; }
  .game-card { grid-template-columns: 1fr; max-width: 540px; }
}
@media (max-width: 510px) {
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 13px; }
  .requests li { grid-template-columns: minmax(0, 1fr) auto; }
  .account-row-actions { grid-column: 1 / -1; }
}
.game-copy h2 { display: flex; align-items: center; gap: 9px; }
.game-card .game-mark { flex: none; width: 28px; aspect-ratio: 1; object-fit: contain; }

#additional-games .game-card { margin-top: 20px; }
#additional-games .game-card-text { grid-template-columns: 1fr; }
