:root {
  color-scheme:light;
  --navy:#112c42;
  --ink:#263d4d;
  --accent:#006c7f;
  --gold:#fa0;
  --paper:#f1f7f9;
  --line:#c6d8dc;
  --caption:#506672;
  --type:system-ui,Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,monospace;
  font:normal 110%/1.6 var(--type);
  background:#e8eff2;
  color:var(--ink);
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

a {
  color:var(--accent);
  text-underline-offset:.21em;
  text-decoration-thickness:.09em;
}

a:hover {
  text-decoration-thickness:.16em;
}

a:focus-visible,summary:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:4px;
}

header a:focus-visible,.cover a:focus-visible,footer a:focus-visible {
  outline-color:var(--gold);
}

.skip {
  position:absolute;
  top:.5rem;
  left:.5rem;
  transform:translateY(-180%);
  z-index:5;
  background:white;
  padding:.5rem;
}

.skip:focus {
  transform:none;
}

.wrap {
  width:min(100% - 3rem,66rem);
  margin:auto;
}

header {
  background:var(--navy);
  color:white;
  border-bottom:3px solid var(--gold);
}

header a,footer a {
  color:#f1f7f9;
}

.mast {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:2rem;
  padding-block:.75rem;
}

.brand {
  display:grid;
  line-height:1;
  text-decoration:none;
  width:max-content;
  padding:.4rem 0;
}

.brand span,h1,h2,h3,.counter {
  font-family:"Arial Black",system-ui,sans-serif;
  font-weight:900;
  letter-spacing:-.04em;
}

.brand span {
  font-size:1.65rem;
}

.brand small {
  font:600 .71rem var(--mono);
  letter-spacing:.04em;
  color:#c5d8d8;
  margin-top:.3rem;
}

.mast nav,footer nav,.actions,.contents,.onpage {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.4rem 1.2rem;
}

.mast nav a,footer nav a {
  padding:.5rem 0;
  min-height:44px;
}

.mast nav a {
  font-weight:650;
  text-decoration:none;
  border-bottom:2px solid transparent;
}

.mast nav a[aria-current] {
  border-bottom-color:var(--gold);
}

.mast nav a:hover,.mast nav a:focus-visible {
  text-decoration:underline;
}

main {
  padding:2.4rem 0 3rem;
}

h1,h2,h3 {
  line-height:1.13;
  color:var(--navy);
}

h1 {
  font-size:clamp(2rem,5.3vw,3.6rem);
  margin:.1em 0 .38em;
}

h2 {
  font-size:clamp(1.4rem,3vw,2.1rem);
  margin:1.5em 0 .45em;
}

h3 {
  font-size:1.22rem;
  margin:1em 0 .35em;
}

p {
  margin:.6rem 0 1rem;
  max-width:68ch;
}

li+li {
  margin-top:.42rem;
}

.label {
  font:700 .73rem var(--mono);
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.12em;
  margin:0 0 .5rem;
}

.lead {
  font-size:1.13rem;
  max-width:65ch;
}

.cover {
  background:var(--navy);
  color:#f1f7f9;
  border-top:2px solid var(--gold);
  padding:clamp(1rem,3.3vw,2.6rem);
  display:grid;
  grid-template-columns:minmax(0,1.8fr) minmax(0,.8fr);
  align-items:center;
  gap:clamp(1rem,3vw,2.5rem);
}

.cover .label,.cover .attribution {
  color:#bbd1d1;
}

.cover h1,.cover h2 {
  color:white;
}

.cover h2 {
  font-size:1.2rem;
  margin:1.2em 0 .4rem;
}

.cover p {
  max-width:59ch;
}

.cover .actions {
  margin:1.35rem 0 0;
}

.cover a {
  color:#b4edef;
}

.cover a.primary {
  background:var(--gold);
  color:var(--navy);
  text-decoration:none;
  padding:.64rem .92rem;
  font-weight:750;
}

.cover-art {
  max-width:100%;
  height:auto;
}

.panel,.boxes>div,.character,.paper-note {
  background:var(--paper);
  padding:1.15rem 1.35rem;
  border-top:2px solid var(--line);
}

.panel {
  margin:1rem 0;
}

.panel h2,.panel h3,.boxes h2,.boxes h3,.character h3 {
  margin-top:0;
}

.boxes {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.85rem;
}

.boxes p:last-child,.panel p:last-child,.character p:last-child {
  margin-bottom:0;
}

.actions a,.contents a,.onpage a {
  min-height:44px;
  display:inline-flex;
  align-items:center;
  padding:.35rem 0;
}

.contents {
  margin:0;
  padding:0;
  list-style:none;
  gap:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border-top:1px solid var(--line);
}

.contents li {
  margin:0;
  padding:.8rem .8rem .8rem 0;
  border-bottom:1px solid var(--line);
}

.contents p {
  margin:0;
  max-width:52ch;
}

.contents a {
  font-weight:750;
  padding:.1rem 0;
}

.onpage {
  border-block:1px solid var(--line);
  margin:1.2rem 0;
}

.onpage span {
  font-size:.8rem;
  font-weight:760;
}

.table {
  width:100%;
  border-collapse:collapse;
  background:var(--paper);
  text-align:left;
  margin:1rem 0;
}

.table th,.table td {
  vertical-align:top;
  padding:.65rem .8rem;
  border-bottom:1px solid var(--line);
}

.table thead {
  background:var(--navy);
  color:white;
}

.table th[scope=row] {
  color:var(--navy);
  width:23%;
}

.table caption {
  text-align:left;
  font-weight:750;
  margin-bottom:.45rem;
}

.drive {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin:1.2rem 0;
  gap:.6rem;
}

.drive div {
  border:1px solid var(--line);
  border-top:.22rem solid var(--navy);
  background:var(--paper);
  padding:.75rem .9rem;
}

.drive b {
  font:700 .8rem var(--mono);
  color:var(--accent);
}

.drive strong,.drive small {
  display:block;
}

.drive strong {
  font:700 .91rem var(--mono);
  margin:.35rem 0;
}

.drive small {
  color:var(--caption);
  font-size:.86rem;
}

code,kbd,samp {
  font-family:var(--mono);
  font-size:.92em;
  overflow-wrap:anywhere;
}

kbd {
  display:inline-block;
  border:1px solid #b3c2c7;
  border-bottom-width:2px;
  border-radius:.22rem;
  padding:0 .23rem;
  background:#fff;
  color:var(--ink);
  line-height:1.4;
}

pre {
  white-space:pre-wrap;
  background:#122e42;
  color:#f1f7f9;
  padding:.8rem 1rem;
}

figure {
  margin:1.2rem 0;
  max-width:48rem;
}

figure svg {
  width:100%;
  height:auto;
  display:block;
  background:#fff;
  border:1px solid var(--line);
}

figcaption {
  color:var(--caption);
  padding:.5em 0;
  font-size:.92em;
  max-width:72ch;
}

dt {
  font-weight:740;
  color:var(--navy);
  margin-top:.85em;
}

dd {
  margin:.12rem 0 .65rem;
  max-width:65ch;
}

summary {
  cursor:pointer;
  color:var(--accent);
  font-weight:700;
  padding:.6rem 0;
  min-height:44px;
}

details {
  margin:.65rem 0;
}

section[id],h2[id],h3[id] {
  scroll-margin-top:1rem;
}

.paper-note {
  border-color:#a95700;
  background:#fff8ec;
}

.paper-note p:first-child {
  margin-top:0;
}

footer {
  border-top:2px solid var(--gold);
  background:var(--navy);
  color:#cddde1;
  padding:1.3rem 0 1.6rem;
}

footer p {
  font-size:.78rem;
  margin:.5rem 0 0;
  max-width:90ch;
}

footer nav {
  font-size:.89rem;
}

footer [aria-current] {
  font-weight:750;
  text-decoration-color:var(--gold);
}

@media(max-width:760px) {
  .mast {
    align-items:flex-start;
    flex-direction:column;
    gap:.35rem;
  }
  .mast nav {
    width:100%;
    justify-content:space-between;
    gap:.2rem .6rem;
  }
  .wrap {
    width:min(100% - 2rem,66rem);
  }
  .cover {
    grid-template-columns:1fr;
  }
  .cover-art {
    max-height:180px;
    justify-self:center;
  }
  .drive {
    grid-template-columns:1fr 1fr;
  }
  .boxes {
    grid-template-columns:1fr;
  }
  main {
    padding-top:1.35rem;
  }
  .contents {
    grid-template-columns:1fr;
  }
}

@media(max-width:570px) {
  .table,.table tbody,.table tr,.table td,.table th[scope=row] {
    display:block;
    width:100%;
  }
  .table thead {
    position:absolute;
    clip-path:inset(50%);
    width:1px;
    height:1px;
    overflow:hidden;
  }
  .table tr {
    border-bottom:1px solid var(--line);
    padding:.35rem 0;
  }
  .table td,.table th[scope=row] {
    border:0;
    padding:.2rem .7rem;
  }
  .table td::before {
    content:attr(data-label) " ";
    font-weight:700;
    color:var(--accent);
  }
  .mast nav {
    font-size:.9rem;
  }
  .contents {
    display:block;
  }
  .actions {
    align-items:flex-start;
    flex-direction:column;
  }
  .cover .actions {
    gap:.5rem;
  }
  h1 {
    font-size:2rem;
  }
}

@media(max-width:370px) {
  .drive {
    grid-template-columns:1fr;
  }
  .wrap {
    width:calc(100% - 1.4rem);
  }
}

@media(forced-colors:active) {
  .cover a.primary {
    border:1px solid ButtonText;
  }
  a {
    forced-color-adjust:auto;
  }
  .mast nav a[aria-current] {
    border-color:LinkText;
  }
}

@media print {
  @page {
    margin:15mm;
  }
  * {
    background:#fff!important;
    color:#111!important;
    box-shadow:none!important;
  }
  header,.skip,footer nav,.onpage,.screen-only {
    display:none!important;
  }
  .wrap {
    width:auto;
  }
  .cover,.boxes,.contents {
    display:block;
  }
  .cover {
    padding:0;
  }
  .cover-art {
    max-width:42mm;
    max-height:40mm;
  }
  .cover h2 {
    margin-top:.6em;
  }
  body {
    font:10.5pt/1.42 Arial,sans-serif;
  }
  main {
    padding:0;
  }
  h1 {
    font-size:24pt;
  }
  h2 {
    font-size:16pt;
  }
  h2,h3,dt,caption {
    break-after:avoid;
  }
  figure,.drive div,.boxes>div,.character,tr {
    break-inside:avoid;
  }
  .panel,.boxes>div,.character {
    padding:.55rem .7rem;
  }
  .table {
    display:table;
  }
  .table tbody {
    display:table-row-group;
  }
  .table tr {
    display:table-row;
  }
  .table td,.table th[scope=row] {
    display:table-cell;
    width:auto;
  }
  .table thead {
    position:static;
    clip-path:none;
    width:auto;
    height:auto;
    overflow:visible;
    display:table-header-group;
  }
  .table td::before {
    content:none;
  }
  .drive {
    grid-template-columns:1fr 1fr;
  }
  .cover a.primary {
    border:1px solid #222;
    padding:.2rem .5rem;
  }
  .actions a,.contents a {
    min-height:0;
  }
  footer {
    padding:.5rem 0;
  }
  a {
    text-decoration:underline;
  }
  details:not([open])>*:not(summary) {
    display:none!important;
  }
  svg text {
    fill:#111;
  }
  p,li {
    orphans:3;
    widows:3;
  }
}

.guest {
  max-width:35rem;
}

.guest img {
  display:block;
  width:100%;
  height:auto;
  image-rendering:pixelated;
  background:#101c21;
}

.cast {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.7rem;
}

.character {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  border-top-color:#8fb6b9;
}

.character img {
  width:auto;
  height:3.2rem;
  max-width:100%;
  object-fit:contain;
  image-rendering:pixelated;
  margin:0 0 .6rem;
}

.character h3 {
  margin-bottom:.2rem;
}

.character p {
  font-size:.94rem;
  line-height:1.5;
}

@media(max-width:680px) {
  .cast {
    grid-template-columns:1fr;
  }
}

@media print {
  .cast {
    display:block;
  }
  .character {
    display:block;
    min-height:3rem;
  }
  .character img {
    float:left;
    margin-right:1rem;
  }
  .guest {
    max-width:95mm;
  }
}

.hud img {
  display:block;
  width:100%;
  height:auto;
  image-rendering:pixelated;
  background:#101c21;
}

.footing-detail {
  max-width: 36rem;
  margin: 1rem 0;
  break-inside: avoid;
}
.footing-detail svg {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid #112c42;
}
.footing-detail figcaption {
  padding: .65rem 0;
  line-height: 1.5;
}
