@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/eb-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/eb-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/eb-garamond-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cinzel Decorative";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/cinzel-decorative-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cinzel-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/cinzel-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IM Fell English";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/im-fell-english-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IM Fell English";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/im-fell-english-latin-400-italic.woff2") format("woff2");
}

:root {
  --ink: #2c2118;
  --ink-soft: #5c4636;
  --parchment: #f4e6c8;
  --amber: #f0c27a;
  --brass: #c4a15a;
  --ember: #ff8a3c;
  --timber: #2a1a10;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #140e0a;
  color: #f6ead8;
  font-family: "EB Garamond", Palatino, "Palatino Linotype", Georgia, serif;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 5;
  background: var(--parchment);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
}

.skip:focus {
  top: 0.55rem;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid #ffbf66;
  outline-offset: 3px;
}

::selection {
  background: #e2b15a;
  color: #2a160c;
}

.tavern {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  background: #1a100c;
}

.tavern-photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.fire-flicker,
.embers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.fire-flicker {
  background: radial-gradient(ellipse at 28% 66%, rgba(255, 176, 80, 0.18), transparent 32%);
  mix-blend-mode: soft-light;
  animation: flicker 5s ease-in-out infinite;
}

.embers {
  overflow: hidden;
}

.mote {
  position: absolute;
  bottom: 28%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #ffd7a4;
  box-shadow: 0 0 4px rgba(255, 180, 90, 0.55);
  opacity: 0;
  animation: mote 16s linear infinite;
}

.mote:nth-child(1) { left: 22%; animation-duration: 15s; }
.mote:nth-child(2) { left: 34%; animation-duration: 18s; animation-delay: -6s; }
.mote:nth-child(3) { left: 46%; animation-duration: 14s; animation-delay: -3s; }
.mote:nth-child(4) { left: 58%; animation-duration: 17s; animation-delay: -9s; }

@keyframes flicker {
  0%,
  100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}

@keyframes mote {
  0% { transform: translateY(8px); opacity: 0; }
  18% { opacity: 0.45; }
  100% { transform: translateY(-42vh); opacity: 0; }
}

.column {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 1.25rem));
  margin: 0 auto;
  padding-bottom: 2rem;
}

.mast {
  margin-top: 0.85rem;
  padding: 0.95rem 1rem 0.85rem;
  color: #f6efe6;
  background: rgba(32, 20, 12, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid rgba(216, 178, 112, 0.62);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.wordmark {
  display: inline-block;
  max-width: 100%;
  font-family: "Cinzel Decorative", Cinzel, Palatino, serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 3.4vw, 1.85rem);
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #f8f1e6;
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.tagline {
  margin: 0.15rem 0 0;
  font-family: "IM Fell English", Palatino, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  color: #d7b48a;
}

.nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.45rem;
  text-align: center;
  text-decoration: none;
  color: #f4eadc;
  font-family: Cinzel, Palatino, serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 244, 224, 0.06);
  border: 1px solid rgba(216, 178, 112, 0.4);
  border-radius: 10px;
  box-shadow: none;
}

.nav a:hover {
  border-color: rgba(232, 204, 150, 0.8);
  color: #fff8ee;
}

.nav a[aria-current="page"] {
  color: #fff8ee;
  background: rgba(216, 178, 112, 0.18);
  border-color: rgba(232, 204, 150, 0.9);
  box-shadow: inset 0 0 0 1px rgba(232, 204, 150, 0.2);
}

.sample-banner {
  margin: 0.85rem auto 0.35rem;
  max-width: 100%;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(216, 178, 112, 0.55);
  border-radius: 999px;
  background: rgba(28, 18, 12, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  color: #f3e6d4;
  font-family: Cinzel, Palatino, serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.45;
}

.crumb {
  width: fit-content;
  max-width: calc(100% - 0.5rem);
  margin: 0.65rem auto 0.15rem;
  padding: 0.32rem 0.9rem 0.38rem;
  text-align: center;
  font-family: "EB Garamond", Palatino, serif;
  font-style: italic;
  font-size: 1.12rem;
  text-wrap: balance;
  color: #f6efe4;
  background: rgba(28, 18, 12, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(216, 178, 112, 0.45);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.crumb-pages {
  white-space: nowrap;
}

.table {
  position: relative;
  margin-top: 0.75rem;
  padding: 0.85rem 0.7rem 1rem;
  background: linear-gradient(
    108deg,
    rgba(24, 48, 96, 0.4) 0%,
    rgba(48, 28, 36, 0.22) 48%,
    rgba(128, 30, 42, 0.42) 100%
  );
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
  border: 1px solid rgba(216, 178, 112, 0.55);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.tome {
  min-width: 0;
}

.spine {
  background: linear-gradient(
    180deg,
    rgba(22, 40, 82, 0.28),
    rgba(92, 24, 36, 0.28)
  );
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.16);
  border-radius: 3px;
}

.leaf,
.sheet {
  min-width: 0;
  color: #1a120c;
  background-color: #e6d2ae;
  background-image: url("/img/parchment.webp");
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(90, 60, 30, 0.28);
}

.leaf {
  flex-direction: column;
  position: relative;
  padding: 1.2rem 1rem 1.15rem;
}

.leaf::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/img/parchment.webp") center / 100% 100% no-repeat;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 62%, #000 90%);
  mask-image: radial-gradient(ellipse at center, transparent 62%, #000 90%);
}

.leaf > * {
  position: relative;
  z-index: 1;
}

.leaf-left {
  box-shadow:
    inset -16px 0 18px rgba(70, 36, 12, 0.08),
    inset 0 0 0 1px rgba(120, 80, 30, 0.28);
}

.leaf-right {
  box-shadow:
    inset 16px 0 18px rgba(70, 36, 12, 0.08),
    inset 0 0 0 1px rgba(120, 80, 30, 0.28);
}

.tome-pages,
.book-static {
  display: grid;
  grid-template-columns: 1fr;
}

.tome-pages {
  gap: 0;
}

.book-static {
  gap: 0.7rem;
}

.tome-pages .leaf {
  display: none;
}

.tome-pages .leaf.is-focus {
  display: flex;
}

.tome-pages .spine,
.book-static .spine {
  display: none;
}

.book-static .leaf {
  display: flex;
}

.sheet {
  padding: 1.25rem 1.05rem 1.5rem;
}

.sheet.narrow {
  width: min(44rem, 100%);
}

.center-sheet {
  display: flex;
  justify-content: center;
}

.center-sheet .sheet {
  width: min(52rem, 100%);
}

.center-sheet .sheet.narrow {
  width: min(44rem, 100%);
}

.kicker {
  margin: 0;
  font-family: Cinzel, Palatino, serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a5a28;
}

.leaf h1,
.sheet h1 {
  margin: 0.15rem 0 0.35rem;
  font-family: "IM Fell English", Palatino, serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.05rem);
  line-height: 1.05;
  color: #2a160e;
  overflow-wrap: anywhere;
}

h2 {
  margin: 1.35rem 0 0.4rem;
  font-family: "IM Fell English", Palatino, serif;
  font-weight: 400;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.15;
  color: #2a160e;
}

h3 {
  margin: 0 0 0.2rem;
  font-family: "IM Fell English", Palatino, serif;
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: #2a160e;
}

.deck {
  margin: 0 0 1rem;
  color: #6a4a30;
  font-style: italic;
}

.running-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(120, 80, 30, 0.28);
  color: #7a5a3a;
  font-style: italic;
  font-size: 1rem;
}

.running-head span:last-child {
  text-align: right;
}

.prose p {
  margin: 0 0 0.85em;
  font-size: 1.125rem;
  line-height: 1.55;
}

.dropcap {
  float: left;
  margin: 0.08rem 0.12rem 0 0;
  padding: 0;
  font-family: "IM Fell English", Palatino, serif;
  font-weight: 400;
  font-size: 3.45rem;
  line-height: 0.72;
  color: #6e2418;
  background: none;
  border: 0;
  box-shadow: none;
  text-shadow: 0.4px 0.6px 0 rgba(50, 16, 8, 0.28);
}

.folio {
  margin: auto 0 0;
  padding-top: 1rem;
  text-align: center;
  font-family: Cinzel, Palatino, serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: #7a5a38;
}

.leaf-end {
  justify-content: center;
  text-align: center;
}

.endpaper-link {
  display: inline-block;
  margin-top: 0.4rem;
  color: #6e3a12;
  font-family: "IM Fell English", Palatino, serif;
  font-size: 1.35rem;
}

.system {
  margin: 1rem 0;
  padding: 0.65rem 0.8rem 0.75rem;
  color: #1a120c;
  background: rgba(70, 40, 18, 0.07);
  border: 1px solid rgba(74, 46, 24, 0.55);
  box-shadow: inset 0 0 18px rgba(60, 32, 12, 0.08);
}

.system p {
  margin: 0;
  color: #1a120c;
  font-size: 1.05rem;
  line-height: 1.45;
}

.system-kicker {
  margin: 0 0 0.3rem;
  font-family: Cinzel, Palatino, serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.system-level {
  border-color: #8a6420;
  background: rgba(122, 86, 28, 0.1);
}

.system-level .system-kicker {
  color: #7a5614;
}

.system-death {
  border-color: #8a342c;
  background: rgba(120, 36, 28, 0.08);
}

.system-death .system-kicker {
  color: #8c3028;
}

.system-uncommon {
  border-color: #24683a;
}

.system-rare {
  border-color: #245688;
}

.system-epic {
  border-color: #643484;
}

.system-legendary {
  border-color: #8a5a18;
}

.system .item-uncommon,
.system .quality-uncommon {
  color: #1a6834;
}

.system .item-rare,
.system .quality-rare {
  color: #1a4e8c;
}

.system .item-epic,
.system .quality-epic {
  color: #642f86;
}

.system .item-legendary,
.system .quality-legendary {
  color: #8a5410;
}

.system .item-common,
.system .quality-common {
  color: #3a2c22;
}

.system .item-poor,
.system .quality-poor {
  color: #5c5348;
}

.loot-line + .loot-line {
  margin-top: 0.25rem;
}

.loot-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: baseline;
}

.quality {
  font-family: Cinzel, Palatino, serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sheet .item-uncommon,
.sheet .quality-uncommon {
  color: #176b32;
}

.sheet .item-rare,
.sheet .quality-rare {
  color: #1a56b0;
}

.sheet .item-epic,
.sheet .quality-epic {
  color: #6d349f;
}

.sheet .item-legendary,
.sheet .quality-legendary {
  color: #9a5b10;
}

.sheet a,
.leaf a {
  color: #6e3a12;
  text-underline-offset: 0.14em;
}

.who-line,
.where-race,
.where-class,
.where-zone {
  margin: 0.15rem 0;
  color: var(--ink-soft);
}

.where-sub {
  margin: 0.2rem 0 0;
  font-family: "IM Fell English", Palatino, serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.05;
  color: #2a160e;
}

.where-level {
  margin: 0.35rem 0;
  font-family: Cinzel, Palatino, serif;
  font-weight: 700;
  font-size: 1.55rem;
  color: #6a3e14;
}

.identity-grid {
  display: grid;
  gap: 0.4rem 1.5rem;
}

.stats {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: lining-nums;
}

.stats caption {
  margin-bottom: 0.4rem;
  text-align: left;
  font-family: Cinzel, Palatino, serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d4a28;
}

.stats th,
.stats td {
  padding: 0.38rem 0.35rem;
  text-align: left;
  border-bottom: 1px solid rgba(90, 60, 30, 0.22);
  font-weight: 500;
}

.stats thead th {
  font-family: Cinzel, Palatino, serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6d4a28;
}

.stat-delta {
  font-weight: 600;
  color: #6b3e12;
}

.gear,
.traits,
.privacy,
.roster,
.steps {
  padding: 0;
}

.gear,
.traits,
.privacy,
.roster {
  list-style: none;
}

.gear {
  display: grid;
  gap: 0.7rem;
  margin: 0.4rem 0;
}

.gear-item {
  padding: 0.7rem 0.8rem;
  background: rgba(255, 250, 240, 0.35);
  border-left: 4px solid #8a6230;
}

.gear-uncommon {
  border-left-color: #1f7a3a;
}

.gear-rare {
  border-left-color: #1d5fbf;
}

.gear-epic {
  border-left-color: #7a3eb5;
}

.gear-slot {
  margin: 0;
  font-family: Cinzel, Palatino, serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a5a38;
}

.gear-name {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.65rem;
  align-items: baseline;
  margin: 0.15rem 0;
  font-size: 1.2rem;
}

.gear-item p,
.gear-aside,
.trait p,
.become p {
  margin: 0.3rem 0 0;
}

.traits {
  display: grid;
  gap: 0.7rem;
  margin: 0.6rem 0 0;
}

.trait {
  padding: 0.75rem 0.8rem 0.85rem;
  background: #fbf6ea;
  border: 1px solid #c4963c;
}

.trait.is-locked {
  background: #e7dcc6;
  border-color: #b5a48c;
  color: #4e3d30;
}

.trait.is-locked h3,
.trait.is-locked .trait-stat,
.trait.is-locked .trait-flag {
  color: #5c4a3a;
}

.trait-flag {
  margin: 0;
  font-family: Cinzel, Palatino, serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a4e12;
}

.trait.is-earned .trait-flag {
  color: #6d3e0e;
}

.lock {
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.25rem;
  vertical-align: -0.12rem;
}

.steps {
  margin: 0.4rem 0 0.2rem;
  padding-left: 1.3rem;
}

.steps li {
  margin: 0 0 0.9rem;
  padding-left: 0.25rem;
}

.steps li::marker {
  font-family: Cinzel, Palatino, serif;
  font-weight: 700;
  color: #8a4b12;
}

.steps h2 {
  margin-top: 0;
}

.privacy {
  display: grid;
  gap: 0.7rem;
  margin: 0.5rem 0 0;
}

.privacy li,
.version-note {
  padding: 0.8rem 0.9rem;
  background: rgba(255, 250, 240, 0.38);
  border: 1px solid rgba(120, 80, 30, 0.25);
}

.version-note {
  margin-top: 1.2rem;
}

.version-note h2 {
  margin-top: 0;
}

.sheet-links,
.roster-links,
.colophon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.sheet-links {
  margin-top: 1.2rem;
}

.contents {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}

.contents > li {
  margin-bottom: 1rem;
}

.contents a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.45rem 0.6rem;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
}

.contents-num,
.contents-folio {
  font-family: Cinzel, Palatino, serif;
  font-weight: 600;
  color: #8a4e1e;
}

.contents-title {
  display: block;
  font-family: "IM Fell English", Palatino, serif;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.contents-meta {
  display: block;
  color: #6d5340;
  font-size: 0.98rem;
  font-style: italic;
}

.contents a:hover .contents-title,
.contents a:focus-visible .contents-title {
  text-decoration: underline;
}

.contents-summary {
  margin: 0.2rem 0 0 2.6rem;
  color: #4e3b2c;
}

.select-label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  font-family: Cinzel, Palatino, serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d4a28;
}

select {
  width: 100%;
  min-height: 48px;
  padding: 0.4rem 0.55rem;
  font-family: "EB Garamond", Palatino, serif;
  font-size: 1.15rem;
  color: var(--ink);
  background: #fbf3e2;
  border: 1px solid #8a6230;
}

.roster {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 0;
}

.roster-card {
  padding: 0.85rem 0.9rem 1rem;
  background: rgba(255, 250, 240, 0.4);
  border: 1px solid rgba(120, 80, 30, 0.25);
}

.roster-card .sample-banner {
  margin-top: 0;
}

.roster-card h2 {
  margin-top: 0.35rem;
}

.roster-line {
  margin: 0.15rem 0;
  color: var(--ink-soft);
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.pager-spread {
  display: none;
}

.pager-folio {
  grid-column: 1 / -1;
  order: -1;
  margin: 0;
  text-align: center;
  color: #f6e2c0;
  font-family: Cinzel, Palatino, serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.pager-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
  color: #f6efe4;
  background: rgba(28, 18, 12, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(216, 178, 112, 0.55);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.pager-next {
  text-align: right;
  align-items: flex-end;
}

.pager-btn:hover {
  border-color: #e6c27a;
  color: #fff8ea;
}

.pager-btn.is-disabled {
  opacity: 0.5;
}

.pager-kicker {
  font-family: Cinzel, Palatino, serif;
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbb496;
}

.pager-title {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: "EB Garamond", Palatino, serif;
  font-size: 1.05rem;
  line-height: 1.25;
}

.colophon {
  margin-top: 1.4rem;
  padding: 0.95rem 1rem 1.15rem;
  color: #f3eadf;
  font-size: 1.02rem;
  background: rgba(28, 18, 12, 0.58);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(216, 178, 112, 0.5);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.colophon p {
  margin: 0.35rem 0;
}

.colophon-tag {
  font-family: "IM Fell English", Palatino, serif;
  font-style: italic;
  font-size: 1.3rem;
  color: #e4c8a0;
}

.colophon a {
  color: #e7d0aa;
}

@media (min-width: 720px) {
  .pager {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
  }

  .pager-folio {
    grid-column: auto;
    order: 0;
    align-self: center;
  }
}

@media (min-width: 740px) {
  .identity-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }

  .traits {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 640px) {
  .privacy {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 760px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
  }

  .nav a {
    flex: 0 1 auto;
    padding-inline: 0.9rem;
  }
}

@media (min-width: 900px) {
  .table {
    padding: 1rem;
  }

  .leaf {
    padding: 1.65rem 1.5rem 1.35rem;
  }

  .tome-pages,
  .book-static {
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
    gap: 0;
  }

  .tome-pages .leaf-left,
  .tome-pages .leaf-right,
  .book-static .leaf {
    display: flex;
  }

  .tome-pages .spine,
  .book-static .spine {
    display: block;
  }

  .tome-pages .leaf,
  .book-static .leaf {
    min-height: 34rem;
  }

  .pager-leaf {
    display: none;
  }

  .pager-spread {
    display: grid;
  }

  .prose p {
    font-size: 1.08rem;
  }

  .sheet {
    padding: 2rem 2.1rem 2.2rem;
  }
}

@media (min-width: 1100px) {
  .column {
    width: min(1040px, calc(100% - 3rem));
    margin-left: auto;
    margin-right: auto;
  }

  .tavern-photo {
    object-position: center center;
  }

  .table {
    padding: 1.15rem 1.1rem 1.3rem;
  }
}

@media (max-width: 380px) {
  .stats th,
  .stats td {
    padding: 0.32rem 0.18rem;
    font-size: 0.98rem;
  }

  .contents-summary {
    margin-left: 0;
  }
}

.chapters-stage {
  display: grid;
  gap: 0.85rem;
  align-items: start;
}

.closed-cover {
  margin: 0.35rem auto 0;
  width: min(220px, 68vw);
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.62));
}

.cover-plate {
  position: relative;
}

.cover-plate img {
  display: block;
  width: 100%;
  height: auto;
}

.stamped-name {
  position: absolute;
  left: 16%;
  right: 18%;
  bottom: 10.5%;
  margin: 0;
  text-align: center;
  font-family: "IM Fell English", Palatino, serif;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b08a46;
  text-shadow:
    0 1px 0 rgba(255, 224, 170, 0.25),
    0 2px 2px rgba(0, 0, 0, 0.7);
}

.closed-cover .stamped-name {
  left: auto;
  right: 12%;
  bottom: 9%;
  width: auto;
  max-width: 46%;
  text-align: right;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.cover-moment {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  perspective: 1400px;
  background: rgba(8, 5, 3, 0.46);
}

.cover-moment[hidden] {
  display: none;
}

.cover-board {
  width: min(440px, 88vw);
  transform-origin: left center;
  animation: open-cover 2.7s ease forwards;
}

.cover-skip {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  font-family: Cinzel, Palatino, serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f6efe4;
  background: rgba(28, 18, 12, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(216, 178, 112, 0.6);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

@keyframes open-cover {
  0%,
  30% {
    transform: rotateY(0deg);
    opacity: 1;
  }
  100% {
    transform: rotateY(-108deg);
    opacity: 0;
  }
}

@media (min-width: 900px) {
  .chapters-stage {
    grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
  }

  .closed-cover {
    width: 100%;
    margin-top: 0.8rem;
  }
}

@media (max-width: 899px) {
  .column {
    width: min(1040px, calc(100% - 1.1rem));
    padding-top: 4.25rem;
  }

  .tavern-photo {
    object-position: center 55%;
  }

  .table {
    padding: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fire-flicker,
  .mote,
  .cover-board {
    animation: none !important;
  }
}
