:root {
  color-scheme: dark;
  --background: #17131d;
  --panel: #221b29;
  --table: #1c1623;
  --line: #49394d;
  --text: #f2e8ed;
  --muted: #d5c5cf;
  --accent: #f1b999;
  --heading: Georgia, 'Times New Roman', serif;
  font: 100%/1.65 system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
}

a { color: var(--accent); text-underline-offset: .23em; }
a:hover { color: #ffe0cb; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip-link {
  position: absolute;
  z-index: 2;
  padding: .55rem 1rem;
  background: var(--background);
  transform: translateY(-130%);
}

.skip-link:focus { transform: translateY(0); }

.page-width {
  width: min(76rem, calc(100% - 3rem));
  margin-inline: auto;
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 76% 28%, #5c354f 0%, transparent 57%),
    linear-gradient(120deg, #2f1d31, #211a2a 80%);
}

.hero-content {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2.75rem, 6vw, 5rem);
}

.hero-content::after {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 45%;
  background: repeating-radial-gradient(ellipse at 75% 48%, transparent 0 1.8rem, #f1b99920 1.8rem calc(1.8rem + 1px), transparent calc(1.8rem + 1px) 3.5rem);
  mask-image: radial-gradient(ellipse, black 8%, transparent 70%);
  content: '';
}

.eyebrow, .version, .contents-title {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow { margin: 0 0 1rem; color: var(--accent); }
.hero h1 {
  margin: 0;
  font: 400 clamp(3.05rem, 7.5vw, 6.75rem)/.98 var(--heading);
  letter-spacing: -.055em;
}
.hero h1 span { color: #eabcc5; }
.hero-description { margin: 1.2rem 0 .9rem; color: var(--muted); }
.version { margin: 0; color: var(--accent); letter-spacing: .06em; }

.layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: 2.75rem 4rem;
}

.contents {
  position: sticky;
  top: 1.5rem;
  max-height: calc(100dvh - 3rem);
  overflow: auto;
  scrollbar-width: thin;
  padding: .25rem .75rem .75rem .25rem;
}

.contents-title { margin: 0 0 .7rem; color: var(--accent); }
.contents ul {
  margin: 0;
  padding: 0 0 0 .8rem;
  border-left: 1px solid var(--line);
  list-style: none;
}
.contents a {
  display: block;
  width: fit-content;
  padding: .28rem .25rem;
  color: var(--muted);
  font-size: .9375rem;
  text-decoration: none;
}
.contents a:hover, .contents a:focus-visible { color: var(--accent); text-decoration: underline; }

.guide-section {
  padding: clamp(1.15rem, 3.5vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--panel);
  scroll-margin-top: 1.25rem;
}
.guide-section + .guide-section { margin-top: 1.35rem; }
.guide-section:target { border-color: #b78791; }
.guide-section h2, .guide-section h3 { font-family: var(--heading); font-weight: 400; line-height: 1.15; }
.guide-section h2 { margin: 0 0 1rem; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.03em; }
.guide-section h3 { margin: 1.55rem 0 .6rem; color: var(--accent); font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
.guide-section p, .guide-section ul { margin: 0 0 1rem; }
.guide-section ul { padding-inline-start: 1.25rem; }
.guide-section li + li { margin-top: .35rem; }
.guide-section li::marker { color: var(--accent); }
.guide-section > :last-child { margin-bottom: 0; }
.guide-section code { font-size: .88em; color: var(--accent); }

.table-wrap {
  overflow-x: auto;
  margin: 1.15rem 0;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--table);
  scrollbar-color: #8f687f var(--table);
  scrollbar-width: thin;
}

table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .72rem .8rem; vertical-align: top; }
th { color: var(--accent); background: #302336; font-size: .9375rem; }
td { border-top: 1px solid var(--line); }
td:first-child { font-weight: 650; }
tr:nth-child(even) td { background: #241b2a; }
td:first-child:not(:last-child) { width: 24%; }
#boss-list table { min-width: 37rem; }
#boss-list td:first-child { width: auto; }
#boss-list td:nth-last-child(-n+2) { font-variant-numeric: tabular-nums; }
.back-link { display: inline-block; margin-top: .25rem; font-size: .9375rem; }

@media (max-width: 52rem) {
  .layout { display: block; padding-top: 1.5rem; }
  .contents { position: static; max-height: none; padding: 0 0 1.25rem; }
  .contents ul { display: flex; flex-wrap: wrap; gap: .3rem .55rem; padding: 0; border: 0; }
  .contents a { padding: .32rem .6rem; border: 1px solid var(--line); border-radius: .35rem; }
}

@media (max-width: 38rem) {
  .page-width { width: calc(100% - 1.5rem); }
  .hero h1 span { display: block; }
  .hero-content::after { inset-inline-start: 25%; }
  .guide-section table:has(th:nth-child(3)) { min-width: 31rem; }
  #boss-list table { min-width: 37rem; }
  th, td { padding: .55rem .6rem; }
}
