:root {
  color-scheme: light;
  --paper: #f9f5ec;
  --ink: #212236;
  --muted: #52536a;
  --link: #5945a7;
  --night: #14172b;
  --pale: #faf5ed;
  --line: #d3c9cb;
  --serif: Georgia, serif;
  --mono: ui-monospace, Consolas, monospace;
  font-family: system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-size: 1.125rem; line-height: 1.7; }
main { flex: 1; }
a { color: var(--link); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #a15425; outline-offset: 4px; }
.skip { position: absolute; z-index: 1; top: .5rem; left: .5rem; padding: .65rem 1rem; background: var(--pale); transform: translateY(-150%); }
.skip:focus { transform: none; }
.shell { width: min(100% - 2rem, 74rem); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); }
.mast-inner, .site-footer .shell { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 2rem; }
.mast-inner { padding-block: .65rem; }
.masthead a, .site-footer a { display: inline-block; padding-block: .4rem; }
.brand { font: bold 1.34rem var(--serif); color: var(--ink); text-decoration: none; }
nav ul { display: flex; flex-wrap: wrap; padding: 0; margin: 0; gap: .1rem 1.15rem; list-style: none; }
nav a { color: inherit; font-size: 1rem; text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--link); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); letter-spacing: -.052em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.025em; }
h3 { font-size: 1.35rem; }
p { margin: .6rem 0 1rem; max-width: 65ch; overflow-wrap: anywhere; }
.annotation, .trail, .citations span { font: .875rem/1.55 var(--mono); color: var(--muted); }
.trail a { font: 1rem/1.6 system-ui, sans-serif; }
.home { padding-block: clamp(1rem, 3vw, 2.5rem) 3.5rem; }
.cover { color: var(--pale); background: var(--night); display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.cover-copy { padding: clamp(1.25rem, 5vw, 4rem); position: relative; z-index: 1; }
.cover-copy p { max-width: 43ch; }
.cover h1 { font-size: clamp(2.25rem, 5.5vw, 4.75rem); text-wrap: balance; }
.cover h1 + p { margin-block: 1rem 1.15rem; color: #e8e3ef; }
.action { display: inline-block; background: #ffc7ab; color: var(--night); padding: .64rem 1rem; font-size: 1rem; font-weight: 700; }
.coastline { position: relative; overflow: hidden; min-height: 9rem; background: linear-gradient(145deg, #252849, #654471); }
.coastline::before { content: ''; position: absolute; width: 68%; height: 115%; top: 10%; left: 19%; background: #da967c;
  clip-path: polygon(43% 0, 65% 6%, 54% 19%, 71% 25%, 66% 39%, 89% 55%, 72% 72%, 98% 95%, 78% 100%, 47% 78%, 48% 58%, 30% 51%, 34% 33%, 13% 27%); }
.coastline::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 17px, #fff2 18px 19px); }
.coastline i { position: absolute; border: 1px solid #f9d4c888; width: 77%; height: 40%; left: 10%; top: 18%; transform: rotate(-19deg); }
.coastline i:nth-child(2) { top: 36%; left: 17%; }
.coastline i:nth-child(3) { top: 54%; left: 24%; }
.home-index { display: grid; gap: 2rem; padding-top: clamp(1.5rem, 4vw, 3rem); }
.records, .citations { list-style: none; margin: .75rem 0 0; padding: 0; }
.records > li, .citations > li { border-top: 1px solid var(--line); padding-block: .8rem; overflow-wrap: anywhere; }
.records p { font-size: 1.0625rem; margin-bottom: 0; }
.records a { color: var(--ink); text-decoration-color: var(--link); }
.inner { padding-block: clamp(1.25rem, 4vw, 3.5rem) 4rem; }
.inner section { margin-block: 1.8rem; }
.inner .records { max-width: 65ch; }
.reader { max-width: 65ch; }
.lede { font-size: clamp(1.125rem, 2vw, 1.35rem); }
.citations span { display: block; }
.next { border-top: 1px solid var(--line); padding-top: 1rem; font-size: 1rem; }
.site-footer { border-top: 1px solid var(--line); padding-block: 1rem; }
.site-footer p { color: var(--muted); font-size: .875rem; margin: 0; }

@media (min-width: 48rem) {
  .cover { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .home-index { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
}

.cast-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.cast-table th,
.cast-table td {
  padding: .75rem .35rem;
  border-bottom: 1px solid currentColor;
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}
.cast-table th:last-child { width: 35%; }
.cast-table time,
.reader time { white-space: nowrap; }


.character-list-scroll { overflow-x: auto; padding: .25rem; }
.character-list-scroll:focus-visible { outline-offset: -3px; }
.character-list-table { min-width: 42rem; table-layout: auto; }
.character-list-table th:last-child { width: auto; }
.character-list-table th, .character-list-table td { border-color: var(--line); }
@media (min-width: 46rem) {
  .character-list-hint { display: none; }
}
