:root {
  color-scheme: dark;
  background: #0b1b2b;
  color: #f3ead6;
  font: 400 .875rem/1.8 'DM Sans', sans-serif;
  --quiet: #e0d9c8;
  --brass: #dbc9a4;
  --rule: #887b61;
}

* { box-sizing: border-box; }
body { margin: 0; }
a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
a:hover { color: #fff7e4; }
.text-link-arrow {
  display: inline-block;
  width: .8em;
  height: .8em;
  vertical-align: .02em;
  margin-inline-start: .36em;
  color: var(--brass);
}
a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: .3rem;
  border-radius: .1rem;
}
.skip {
  position: fixed;
  z-index: 1;
  inset: .75rem auto auto .75rem;
  transform: translateY(-150%);
  background: #0b1b2b;
  padding: .6rem 1rem;
}
.skip:focus { transform: none; }

.site-header, main, .site-footer {
  width: min(70ch, 100% - 3rem);
  margin-inline: auto;
}
.site-header, .site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1.5rem;
  padding-block: .75rem;
}
.site-header { border-bottom: 1px solid var(--rule); }
.site-header nav, .site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
}
.site-header a, .site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-header a[aria-current="page"] { color: var(--brass); }
.identity { color: var(--brass); }
.site-footer { border-top: 1px solid var(--rule); margin-block: 3rem 1rem; }

main { padding-block: clamp(2rem, 6vw, 5.5rem) 1.5rem; outline: none; }
h1, h2, h3 {
  font: 400 2rem/1.15 'Instrument Serif', Georgia, serif;
  margin: 0 0 .65em;
  overflow-wrap: anywhere;
}
h1 { text-wrap: balance; }
p { color: var(--quiet); margin: 0 0 1.15em; overflow-wrap: anywhere; }
p a { color: #f3ead6; }
.constellation { color: var(--brass); margin-bottom: .45rem; }

.chapter, .case-list {
  border-top: 1px solid var(--rule);
  margin-block-start: 2.5rem;
  padding-block-start: 1.65rem;
  scroll-margin-block-start: 1rem;
}
.story-entry, .case-preview, .case-section { margin-block-start: 1.5rem; }
.story-entry + .story-entry, .case-preview + .case-preview { margin-block-start: 2.35rem; }
.text-links { list-style: none; padding: 0; }
.text-links li + li { margin-block-start: .5em; }
figure { margin: 2rem 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.back { margin-block-end: 1.5rem; }
