:root {
  color-scheme: light dark;
  --paper: #f7f7f8;
  --ink: #324a57;
  --line: #ced7da;
  --button: #1b544d;
  --button-ink: #fff;
  font: 1rem/1.45 system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e141a;
    --ink: #d3dce0;
    --line: #394950;
    --button: #dfc083;
    --button-ink: #162026;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.guide-title, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link:focus {
  position: absolute;
  z-index: 2;
  inset: .5rem auto auto .5rem;
  padding: .5rem;
  background: var(--paper);
  color: var(--ink);
}
.guide-controls {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem 1rem;
  padding: .55rem 1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.guide-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .9rem;
  border-radius: .3rem;
  color: var(--button-ink);
  background: var(--button);
  font-weight: 650;
  text-decoration: none;
}
.guide-button:focus-visible { outline: 2px solid var(--button); outline-offset: 3px; }
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .15rem .6rem;
  margin: 0;
  font-size: .82rem;
}
.guide-meta span { white-space: nowrap; }
.guide-meta span + span::before { content: '·'; margin-inline-end: .6rem; }
.guide-pages {
  display: grid;
  gap: .3rem;
  width: min(100%, 46rem);
  margin-inline: auto;
}
.guide-page {
  position: relative;
  scroll-margin-top: 4.25rem;
}
@media (max-width: 30rem) {
  .guide-page { scroll-margin-top: 6rem; }
}
.guide-pages img {
  display: block;
  width: 100%;
  height: auto;
  background: #0e141a;
}
.guide-page-link { position: absolute; }
.guide-page-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
  box-shadow: 0 0 0 4px #122026;
}
