* {
  box-sizing: border-box;
}
:root {
  --ink: #243d32;
  --muted: #526056;
  --accent: #8a5334;
  --paper: #f6f3e9;
  --edge: #cfcdbb;
  --serif: "Crimson Text", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-text-size-adjust: 100%;
}
a {
  color: inherit;
  text-underline-offset: 0.23em;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid #a56536;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1160px, calc(100% - 96px));
  margin: auto;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  position: absolute;
  z-index: 5;
  left: 10px;
  top: 8px;
  background: white;
  padding: 10px;
}
header {
  background: #f6f3e9;
  border-bottom: 1px solid var(--edge);
}
.mast,
.mast nav,
.brand,
.foot,
.foot nav {
  display: flex;
  align-items: center;
}
.mast {
  min-height: 68px;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
  font: 700 25px/1 var(--serif);
  letter-spacing: -1.1px;
  white-space: nowrap;
}
.brand em {
  font-weight: 400;
}
.compass {
  width: 30px;
  height: 30px;
  position: relative;
  background: #355846;
  clip-path: polygon(50% 0, 92% 24%, 92% 77%, 50% 100%, 8% 77%, 8% 24%);
}
.compass:after,
.compass i {
  position: absolute;
  inset: 4px 7px;
  content: "";
  background: #dbc48a;
  clip-path: polygon(50% 0, 63% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 63%, 0 50%, 38% 38%);
}
.compass i {
  background: #e7d8a3;
  inset: 10px 11px;
  z-index: 1;
}
.mast nav {
  gap: 28px;
}
.mast nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 0;
}
.mast nav a[aria-current] {
  box-shadow: inset 0 -2px #94663e;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #213e33;
  color: #fff9e8;
  border-bottom: 4px solid #9c885b;
}
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 24%;
  overflow: hidden;
}
.panorama {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  image-rendering: pixelated;
}
.hero-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #213e33 0%,
    rgba(33, 62, 51, 0.88) 12%,
    rgba(33, 62, 51, 0.45) 27%,
    transparent 49%
  );
}
.hero-inner {
  padding: 39px 0 43px;
}
.hero-label,
.kicker,
.edition,
.card-action,
.cite span,
.mobile-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ebd8a2;
  margin: 0 0 15px;
}
.hero-label span {
  background: #d3ba79;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
.hero h1 {
  font-size: clamp(52px, 5vw, 77px);
  letter-spacing: -0.055em;
  line-height: 0.99;
}
.hero h1 em {
  font-weight: 400;
  color: #eed6a1;
}
.hero-blurb {
  max-width: 375px;
  margin: 16px 0 0;
  color: #f0efe1;
  font-size: 16px;
  line-height: 1.45;
}
.home-body {
  padding: 32px 0 46px;
}
.section-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0 0 20px;
}
.section-heading h2 {
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.045em;
}
.flourish {
  height: 1px;
  background: #c5c7b2;
  flex: 1;
  position: relative;
}
.flourish:after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  background: #9b966f;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.card {
  background: #fffcf3;
  border: 1px solid #c8c9b6;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  padding: 22px 24px 16px;
  box-shadow: 0 2px 0 rgba(32, 61, 46, 0.07);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.card:hover {
  background: #fffef8;
  border-color: #6a816c;
  color: #254d39;
}
.card-cap {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}
.inventory {
  display: grid;
  place-items: center;
  width: 58px;
  height: 54px;
  border: 1px solid #bfae8c;
  border-radius: 3px;
  background: #f0e3cd;
}
.act .inventory {
  border-color: #a4b3a0;
  background: #e1e8d8;
}
.offline .inventory {
  border-color: #acb5aa;
  background: #e4e8df;
}
.sprite {
  width: auto;
  height: 40px;
  image-rendering: pixelated;
}
.kicker {
  color: #5d665a;
  font-size: 10.5px;
}
.card h3 {
  font-size: clamp(23px, 2vw, 29px);
  letter-spacing: -0.045em;
  text-wrap: initial;
}
.card p {
  color: var(--muted);
  margin: 9px 0 19px;
  max-width: 35ch;
  font-size: 15px;
  line-height: 1.48;
}
.card-action {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #dedccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #395740;
  text-transform: none;
  font-size: 13px;
  letter-spacing: 0;
}
.card-action b {
  font-size: 19px;
  font-weight: 400;
  color: #87683a;
}
.tools {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 34px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--edge);
}
.tools h2 {
  font-size: 27px;
  letter-spacing: -0.04em;
  margin: 6px 0 14px;
}
.tools p {
  margin: 7px 0;
  font-size: 14px;
}
.tools small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}
.patch-panel {
  border-left: 1px solid var(--edge);
  padding-left: 30px;
}
.patch-panel a,
.cite a,
.data-note a {
  font-size: 13px;
  color: #49654f;
}
.search-panel form {
  display: flex;
  max-width: 460px;
}
input,
button,
select {
  font: inherit;
  color: var(--ink);
}
input[type="search"],
select {
  background: #fffdf6;
  border: 1px solid #a6b09f;
  border-radius: 3px;
  padding: 10px 12px;
  max-width: 100%;
  min-width: 0;
}
.search-panel input {
  flex: 1;
  border-radius: 3px 0 0 3px;
}
button {
  background: #375741;
  color: #fff;
  border: 0;
  border-radius: 0 3px 3px 0;
  padding: 10px 16px;
  cursor: pointer;
}
.search-panel ul {
  padding-left: 20px;
}
.search-panel ul:empty {
  display: none;
}
footer {
  border-top: 1px solid var(--edge);
  background: #eaeadd;
  font-size: 13px;
  color: #4d5d50;
}
.foot {
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
}
.foot strong {
  font-family: var(--serif);
  font-size: 19px;
  color: #374f3e;
}
.foot nav {
  gap: 22px;
}
.foot a {
  padding: 8px 0;
}
.book {
  padding: 22px 0 48px;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 24px;
}
.crumb span,
.edition span {
  margin: 0 8px;
  color: #8a927b;
}
.book-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding-bottom: 24px;
  border-bottom: 2px solid #7d927c;
}
.book-heading {
  max-width: 820px;
}
.book h1,
.error h1 {
  font-size: clamp(38px, 4.2vw, 61px);
  letter-spacing: -0.055em;
  margin: 6px 0 12px;
}
.lede {
  max-width: 70ch;
  margin: 8px 0 17px;
  font-size: 18px;
}
.edition {
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
  font-size: 10.5px;
}
.big-sprite {
  width: 104px;
  height: auto;
  image-rendering: pixelated;
  margin: 0 24px;
  filter: drop-shadow(3px 5px 0 #d6d4be);
}
.reading {
  display: grid;
  grid-template-columns: minmax(175px, 0.65fr) minmax(0, 2.6fr);
  gap: clamp(28px, 4vw, 60px);
  margin-top: 30px;
}
.contents {
  font-size: 14px;
}
.contents h2 {
  font-family: var(--sans);
  font-size: 13px;
}
.contents ul {
  padding-left: 0;
  list-style: none;
}
.contents li {
  border-top: 1px solid var(--edge);
  padding: 7px 0;
}
.contents a {
  text-decoration: none;
}
.contents a:hover {
  text-decoration: underline;
}
.facts {
  border-left: 2px solid #a8ad87;
  padding-left: 12px;
}
.facts div + div {
  margin-top: 7px;
}
.facts dt {
  font-size: 12px;
  color: var(--muted);
}
.facts dd {
  margin: 0;
  font-weight: 600;
}
.bookmark a {
  text-decoration: underline;
}
.chapter {
  border-bottom: 1px solid var(--edge);
  padding: 0 0 24px;
  margin-bottom: 24px;
  scroll-margin-top: 12px;
}
.chapter h2 {
  font-size: clamp(26px, 2.6vw, 35px);
  letter-spacing: -0.04em;
}
.chapter p,
.steps li {
  max-width: 76ch;
}
.steps {
  padding-left: 1.6em;
}
.steps li {
  padding: 3px 0 7px 5px;
}
.steps li::marker {
  font-weight: 700;
  color: #80643b;
}
.cite {
  display: block;
  color: #64725f;
  font-size: 12px !important;
  line-height: 1.65;
}
.cite span {
  font-size: 10px;
  margin-right: 4px;
}
.route-link {
  display: inline-block;
  color: #385e46;
  font-weight: 600;
}
.limits,
.finder {
  background: #e9eddf;
  border: 1px solid #c0cbb7;
  border-radius: 3px;
  padding: 14px 17px;
  margin-top: 14px;
}
.limits p,
.finder p {
  margin: 4px 0;
}
.finder p:empty {
  display: none;
}
.finder label {
  font-weight: 700;
  margin-right: 12px;
}
.finder p {
  margin-top: 10px;
}
.chain {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 20px;
}
.chain th,
.chain td {
  text-align: left;
  padding: 11px 9px;
  vertical-align: top;
  border-bottom: 1px solid var(--edge);
}
.chain thead,
.chain tr:target,
.chain tr.selected {
  background: #e7ecdf;
}
.chain small {
  display: block;
  color: #536854;
  margin-top: 4px;
}
.chain th[scope="row"] {
  width: 24%;
}
.mobile-tag {
  display: none;
}
.error {
  padding: 46px 0;
}
.error .cards {
  margin-top: 25px;
}
@media (max-width: 920px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .card {
    padding: 16px;
  }
  .cards {
    gap: 12px;
  }
  .reading {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
  }
  .book-intro {
    gap: 12px;
  }
  .big-sprite {
    margin: 0;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .mast {
    min-height: 54px;
    flex-wrap: wrap;
    gap: 0;
  }
  .brand {
    font-size: 20px;
    gap: 7px;
  }
  .compass {
    width: 23px;
    height: 23px;
  }
  .mast nav {
    gap: 13px;
  }
  .mast nav a {
    font-size: 12px;
  }
  .hero-inner {
    padding: 26px 0;
  }
  .hero-art {
    left: 14%;
  }
  .hero-art:after {
    background: linear-gradient(
      90deg,
      #213e33 0%,
      rgba(33, 62, 51, 0.9) 12%,
      rgba(33, 62, 51, 0.65) 37%,
      rgba(33, 62, 51, 0.06) 100%
    );
  }
  .panorama {
    object-position: 68% center;
  }
  .hero h1 {
    font-size: 49px;
  }
  .hero-blurb {
    max-width: 240px;
    font-size: 14px;
  }
  .hero-label {
    margin: 0 0 12px;
    font-size: 10px;
  }
  .home-body {
    padding: 23px 0 30px;
  }
  .section-heading {
    margin-bottom: 15px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .card {
    display: grid;
    grid-template-columns: 50px 1fr 20px;
    column-gap: 12px;
    align-items: center;
    padding: 13px 12px;
  }
  .card-cap {
    display: contents;
  }
  .card .inventory {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 48px;
    height: 51px;
  }
  .card .sprite {
    height: 34px;
  }
  .card .kicker,
  .card h3,
  .card p {
    grid-column: 2;
  }
  .card h3 {
    font-size: 22px;
    margin: 2px 0;
  }
  .card p {
    font-size: 13.5px;
    line-height: 1.35;
    margin: 0;
    max-width: none;
  }
  .card-action {
    grid-column: 3;
    grid-row: 1 / span 3;
    border: 0;
    font-size: 0;
    display: block;
    align-self: center;
    padding: 0;
    margin: 0;
  }
  .tools {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }
  .patch-panel {
    border: 0;
    border-top: 1px solid var(--edge);
    padding: 18px 0 0;
  }
  .foot {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0;
    padding: 12px 0;
  }
  .foot p {
    margin: 0 15px 0 0;
  }
  .foot nav {
    gap: 15px;
  }
  .book {
    padding-top: 14px;
  }
  .crumb {
    margin-bottom: 16px;
  }
  .big-sprite {
    width: 52px;
    align-self: flex-start;
    margin-top: 20px;
  }
  .book h1 {
    font-size: 35px;
  }
  .book-intro {
    position: relative;
  }
  .book-heading .kicker {
    padding-right: 60px;
  }
  .book-heading {
    width: 100%;
  }
  .big-sprite {
    display: none;
  }
  .lede {
    font-size: 16px;
  }
  .edition span {
    margin: 0 2px;
  }
  .reading {
    display: block;
    margin-top: 18px;
  }
  .contents ul {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 6px 0 14px;
  }
  .contents li {
    padding: 3px 9px;
    border: 1px solid #ccd1bf;
    border-radius: 3px;
  }
  .contents .facts {
    display: flex;
    gap: 18px;
  }
  .facts div + div {
    margin-top: 0;
  }
  .contents {
    margin-bottom: 22px;
  }
  .chain thead {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .chain,
  .chain tbody,
  .chain tr,
  .chain th[scope="row"],
  .chain td {
    display: block;
    width: auto;
  }
  .chain tr {
    padding: 10px 8px;
    border-top: 1px solid #c6cbb8;
  }
  .chain th,
  .chain td {
    padding: 2px 0;
    border: 0;
  }
  .chain th[scope="row"] {
    font-size: 16px;
  }
  .mobile-tag {
    display: inline-block;
    margin-right: 5px;
    font-size: 10px;
  }
  .finder select {
    display: block;
    width: 100%;
    margin-top: 7px;
  }
  .error {
    padding: 30px 0;
  }
}
@media (max-width: 420px) {
  .mast {
    justify-content: center;
    gap: 1px;
    min-height: 64px;
    flex-direction: column;
  }
  .mast nav a {
    padding: 4px 0 5px;
  }
  .mast nav {
    gap: 23px;
  }
  .hero-blurb {
    margin-top: 10px;
  }
  .hero-inner {
    padding: 18px 0;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero-label {
    margin-bottom: 8px;
  }
  .brand {
    padding-top: 5px;
  }
  .foot {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  color: #365a42;
  font-weight: 600;
  padding: 4px 0;
}
.chapter:target h2,
.chain tr:target th {
  color: #73492d;
}
