.reader {
  --entry-accent: #8e623a;
  --entry-border: #d4c0a0;
  --entry-paper: #f9f2e3;
  --entry-ink: #29251f;
  --entry-link: #70421f;
  --entry-night: #253639;
  padding: clamp(1rem, 3vw, 2.75rem) 0 clamp(3rem, 7vw, 6rem);
  background: radial-gradient(ellipse at 50% 0, var(--entry-night), #101719 68rem);
}
.reader.theme-history { --entry-night: #3f3029; --entry-accent: #94563e; }
.reader.theme-peoples { --entry-night: #283e33; --entry-accent: #4c664b; --entry-link: #3c5e43; }
.reader.theme-rules { --entry-night: #302d42; --entry-accent: #675079; --entry-link: #59416d; }
.reader.theme-creatures { --entry-night: #3b2c2d; --entry-accent: #8b4e3d; }
.reader.theme-atlas,.reader.theme-directory { --entry-night: #273f41; --entry-accent: #486b6c; --entry-link: #315d5f; }
.entry-frame { max-width: 76rem; }
.entry-header {
  display: grid;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: clamp(20rem, 42vw, 33rem);
  border: 1px solid #c9ac756b;
  box-shadow: 0 14px 45px #06101166;
  background: var(--entry-night);
}
.entry-wide { align-items: end; }
.entry-wide .entry-illustration {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  z-index: -2;
}
.entry-wide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,#0d1518e8 2%,#0d15188c 52%,#0d15181f),linear-gradient(0deg,#0d1518dd,transparent 90%);
}
.entry-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.entry-split .entry-illustration {
  height: 100%;
  max-height: 38rem;
  object-fit: cover;
  object-position: 50% 35%;
  border-left: 1px solid #c9ac756b;
}
.entry-copy {
  align-self: end;
  min-width: 0;
  padding: clamp(1.45rem, 5vw, 4.6rem);
}
.entry-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .45rem 1.15rem;
  margin-bottom: 1.3rem;
}
.entry-crumbs a + a::before { content: "/"; display: inline-block; margin-right: 1.15rem; color: #e3d4b6; }
.reader .entry-copy h1 {
  font-size: clamp(2.45rem, 6.2vw, 5.7rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0 0 .85rem;
  text-wrap: balance;
  overflow-wrap: anywhere;
  color: #fff2d8;
}
.reader .entry-copy h1:focus { outline: none; }
.entry-folio { color: #ecd6a7; margin: 0; }
.entry-lead {
  max-width: 56ch;
  margin: 1rem 0 0;
  font: clamp(1.05rem, 2vw, 1.3rem)/1.52 var(--serif);
  color: #fff6e4;
}
.reader .reader-grid {
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem);
  align-items: start;
  gap: clamp(1rem, 3vw, 2.4rem);
  margin-top: clamp(1rem, 3vw, 2.4rem);
}
.reader .entry-paper {
  max-width: none;
  background: var(--entry-paper);
  color: var(--entry-ink);
  border: 1px solid var(--entry-border);
  border-top: 4px solid var(--entry-accent);
  padding: clamp(1.2rem, 4vw, 3.4rem);
  box-shadow: 0 12px 38px #09121355;
  overflow-wrap: anywhere;
}
.entry-paper a { color: var(--entry-link); }
.entry-paper a:hover { color: #2a2015; }
.entry-paper :focus-visible { outline-color: var(--entry-accent); }
.entry-body { font: 1.15rem/1.64 var(--serif); }
.reader .entry-body h2 {
  max-width: 38ch;
  border-bottom: 1px solid var(--entry-border);
  padding: 0 0 .55rem;
  margin: 1.8rem 0 .9rem;
  font-size: clamp(1.42rem, 3vw, 2.05rem);
  color: var(--entry-link);
}
.reader .entry-body h2:first-child { margin-top: 0; }
.entry-body > :last-child { margin-bottom: 0; }
.entry-body ul { padding-left: 1.3rem; }
.entry-body li + li { margin-top: .45rem; }
.entry-paper .plate { border: 1px solid var(--entry-border); margin-bottom: .85rem; background: #e4d4b6; }
.entry-paper .plate + a { font: .96rem/1.5 system-ui,sans-serif; }
.entry-paper .actions { margin: 1.4rem 0 0; border-color: var(--entry-border); }
.entry-paper .muted { color: #524a3d; }
.entry-paper .outline { background: transparent; border-color: var(--entry-accent); }
.reader .entry-body details {
  background: #ede3d2;
  border-color: var(--entry-border);
  border-left: 4px solid var(--entry-accent);
}
.reader .entry-body summary { color: var(--entry-link); }
.entry-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(.9rem, 3vw, 2rem);
}
.entry-directory h2,.entry-directory > p:first-child { grid-column: 1/-1; }
.entry-directory > p {
  padding: .28rem 0;
  margin: 0;
  border-bottom: 1px solid var(--entry-border);
  font-size: 1.06rem;
}
.reader .entry-side { border-top: 2px solid #c3a36b; padding: 1.1rem; }
.reader .entry-side h2 { margin: 0 0 .8rem; font-size: 1.4rem; }
.reader .entry-side ul { list-style: none; padding: 0; margin: 0; }
.entry-side a { display: block; padding: .4rem .6rem; font-size: .94rem; color: #e4ddca; text-decoration: none; }
.entry-side a:hover,.entry-side a[aria-current] { color: #ffdf9f; background: #b99a5c22; }
.entry-side a[aria-current] { box-shadow: inset 2px 0 #e2bb73; }
.entry-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 1rem; }
.entry-turn {
  display: grid;
  gap: .35rem;
  padding: 1rem clamp(.75rem, 2vw, 1.5rem);
  border: 1px solid #776446;
  background: #182326;
  text-decoration: none;
}
.entry-turn:hover { border-color: #e1b979; }
.entry-turn span { color: #ddc394; font-size: .875rem; }
.entry-turn strong { font: 1.2rem var(--serif); }
.reader-plate .entry-header { min-height: clamp(14rem, 31vw, 24rem); }
.reader-plate .entry-illustration { max-height: 24rem; }
@media (max-width: 760px) {
  .reader .reader-grid { grid-template-columns: 1fr; }
  .entry-split { grid-template-columns: 1fr; }
  .entry-split .entry-illustration { border-left: 0; border-top: 1px solid #c9ac756b; max-height: 19rem; }
  .reader .entry-side ul { max-height: 15rem; }
}
@media (max-width: 480px) {
  .entry-directory,.entry-navigation { grid-template-columns: 1fr; }
  .entry-wide::after { background: linear-gradient(0deg,#0d1518f4,#0d151873); }
}
