:root {
  --studio-ink: #08130f;
  --studio-panel: #101e17;
  --studio-paper: #f0e8d3;
  --studio-gold: #e6c384;
  --studio-muted: #bec4ab;
  --studio-line: #455340;
  --studio-serif: Marcellus, Georgia, serif;
  --studio-sans: Manrope, system-ui, sans-serif;
  --studio-gutter: clamp(20px, 5.5vw, 88px);
  --studio-rail: max(var(--studio-gutter), calc((100vw - 1440px) / 2 + 72px));
  --studio-ease: cubic-bezier(.23, 1, .32, 1);
}

.atlas-shell .atlas-navigation .atlas-header {
  min-height: 68px;
  padding-inline: var(--studio-rail);
  border-bottom: 1px solid #dac5a324;
  background: #0c1712;
  color: var(--studio-paper);
}

.atlas-shell .atlas-navigation .atlas-brand {
  font: 400 clamp(18px, 1.55vw, 24px)/1.1 var(--studio-serif);
  letter-spacing: .055em;
}
.atlas-shell .atlas-navigation .atlas-brand small {
  color: var(--studio-muted);
  font: 600 9px/1.5 var(--studio-sans);
  letter-spacing: .11em;
}
.atlas-shell .atlas-navigation .atlas-primary a {
  padding: 12px 14px;
  font-weight: 650;
  color: var(--studio-paper);
}
.atlas-shell .atlas-navigation~.archive-languages {
  min-height: 37px;
  padding: 0 var(--studio-rail);
  border-bottom: 1px solid #dac5a326;
  background: #101c15;
}
.atlas-shell .archive-languages a {
  min-height: 34px;
  padding: 7px 11px;
  color: var(--studio-muted);
}
.atlas-shell .archive-languages a[aria-current="true"],
.atlas-shell .archive-languages a[aria-current="page"] { color: var(--studio-gold); }
.atlas-shell :focus-visible { outline: 2px solid var(--studio-gold); outline-offset: 3px; }

.atlas-shell.atlas-home--living { background: var(--studio-ink); }
.atlas-home--living #atlas-main .atlas-frontier {
  --studio-hero-height: max(615px, calc(100svh - 106px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: var(--studio-hero-height) auto auto;
  grid-template-areas: "hero hero" "doors chart" "compass chart";
  reading-flow: grid-rows;
  column-gap: clamp(30px, 5vw, 76px);
  row-gap: 0;
  min-height: unset;
  max-width: none;
  padding: 0 var(--studio-rail) clamp(56px, 7vw, 105px);
  border-bottom: 1px solid var(--studio-line);
  background: var(--studio-ink);
  overflow: clip;
}
.atlas-home--living #atlas-main .atlas-frontier::before {
  z-index: -1;
  inset: 0 0 auto;
  height: var(--studio-hero-height);
  content: "";
  background:
    linear-gradient(0deg, #08130f 0%, #08130f29 19%, transparent 52%),
    linear-gradient(90deg, #08130f74, #08130f10 52%, transparent 71%),
    url("./atlas-valley-1600.webp") center center / cover no-repeat;
}
.atlas-home--living #atlas-main .atlas-frontier::after { content: none; }
.atlas-home--living #atlas-main .atlas-frontier > .atlas-frontier-art { display: none; }
.atlas-home--living #atlas-main .atlas-frontier-copy {
  display: block;
  grid-area: hero;
  align-self: center;
  width: min(100%, 650px);
  padding: 14px 0 38px;
  margin: 0;
}
.atlas-home--living #atlas-main .atlas-frontier-title { padding: 0; }
.atlas-home--living #atlas-main .atlas-frontier-title h1 {
  max-width: 9.1em;
  margin: 0 0 20px;
  font: 400 clamp(48px, 5.6vw, 84px)/.99 var(--studio-serif);
  color: var(--studio-paper);
  letter-spacing: -.032em;
  text-wrap: pretty;
}
.atlas-home--living #atlas-main .atlas-frontier-title > p {
  max-width: 40ch;
  margin: 0 0 24px;
  color: #e9dfc9;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.65;
}
.atlas-home--living #atlas-main .studio-atlas-link {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  min-height: 51px;
  padding: 11px 17px;
  border: 1px solid var(--studio-gold);
  background: var(--studio-gold);
  color: #191e14;
  font: 750 14px/1.35 var(--studio-sans);
  text-decoration: none;
  transition: background-color 180ms var(--studio-ease), transform 180ms var(--studio-ease);
}
.studio-atlas-link::after {
  width: .8em;
  height: .8em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg) scale(.72);
  content: "";
}
.atlas-home--living #atlas-main .atlas-frontier-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 25px 0 0;
  padding: 0;
  max-width: 510px;
  reading-flow: flex-visual;
}
.atlas-home--living #atlas-main .atlas-frontier-tools .atlas-navi { order: 3; margin: 5px 0 0; padding: 0; }
.atlas-home--living #atlas-main .atlas-frontier-tools .atlas-navi__heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.atlas-home--living #atlas-main .atlas-frontier-tools .atlas-navi__links { padding: 0; }
.atlas-home--living #atlas-main .atlas-frontier-tools .atlas-navi__link {
  min-height: 48px;
  padding: 7px 1px;
  gap: 5px;
  background: #0b1a12ad;
}
.atlas-home--living #atlas-main .atlas-frontier-tools .atlas-navi__item { width: 32px; height: 32px; }
.atlas-home--living #atlas-main .atlas-frontier-tools .atlas-navi__item > img { width: 23px; height: 23px; }
.atlas-home--living #atlas-main .atlas-frontier-tools .atlas-navi__fairy { max-width: 42px; max-height: 42px; }
.atlas-home--living #atlas-main .atlas-frontier .atlas-finder { order: 1; max-width: none; margin: 0; }
.atlas-home--living #atlas-main .atlas-frontier .atlas-finder__form {
  display: flex;
  align-items: end;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.atlas-home--living #atlas-main .atlas-frontier .atlas-finder__query-field { min-width: 0; }
.atlas-home--living #atlas-main .atlas-frontier .atlas-finder__query-field label { color: #e4dcc7; }
.atlas-home--living #atlas-main .atlas-frontier .atlas-finder__input-wrap {
  min-height: 48px;
  border: 1px solid #898f72;
  border-right: 0;
  background: #0c1811db;
}
.atlas-home--living #atlas-main .atlas-frontier .atlas-finder__input-wrap input { min-height: 48px; }
.atlas-home--living #atlas-main .atlas-frontier .atlas-finder__submit {
  min-height: 48px;
  max-width: 45%;
  padding: 8px 12px;
  border: 1px solid #999779;
  background: #182c20;
  color: var(--studio-paper);
  line-height: 1.2;
}
.atlas-home--living #atlas-main .atlas-frontier .atlas-finder__help {
  margin: 8px 0 0;
  color: #d1d0ba;
  line-height: 1.45;
}
.atlas-home--living #atlas-main .atlas-frontier .atlas-finder__results { background: #11251a; }
.atlas-home--living #atlas-main .atlas-quick-questions { order: 2; margin: 0; }

.atlas-home--living #atlas-main .atlas-frontier > .field-chart {
  grid-area: chart;
  align-self: start;
  position: relative;
  z-index: 1;
  inset: auto;
  min-width: 0;
  width: 100%;
  height: auto;
  margin: 40px 0 0;
  border: 1px solid var(--studio-line);
  background: var(--studio-panel);
}
.atlas-home--living #atlas-main .atlas-frontier .field-chart__window { min-height: 260px; height: auto; aspect-ratio: 1.5; }
.atlas-home--living #atlas-main .atlas-frontier .field-chart__strip { position: relative; inset: auto; padding: 12px; }
.atlas-home--living #atlas-main .atlas-frontier .field-chart__credit { color: var(--studio-muted); }
.atlas-home--living #atlas-main .atlas-frontier-doors {
  grid-area: doors;
  position: relative;
  inset: auto;
  width: 100%;
  margin: 40px 0 0;
  gap: 10px;
}
.atlas-home--living #atlas-main .atlas-frontier-doors > a,
.atlas-home--living #atlas-main .atlas-frontier-doors > a:last-child {
  min-height: 88px;
  padding: 10px;
  background: var(--studio-panel);
  border-color: var(--studio-line);
  color: var(--studio-paper);
}
.atlas-home--living #atlas-main .atlas-frontier-doors img {
  width: 49px;
  height: 59px;
  object-fit: cover;
}
.atlas-home--living #atlas-main .atlas-frontier-doors strong { font-size: clamp(16px, 1.45vw, 22px); }
.atlas-home--living #atlas-main .atlas-frontier > .atlas-triforce-stage {
  grid-area: compass;
  position: relative;
  inset: auto;
  width: 100%;
  height: clamp(220px, 24vw, 300px);
  min-height: 0;
  margin: 14px 0 0;
  border: 1px solid var(--studio-line);
  background: #0e1d15;
}
.atlas-home--living #atlas-main .atlas-triforce-stage .atlas-triforce-orbits { opacity: .4; }
.atlas-home--living #atlas-main .atlas-triforce-stage .atlas-triforce-controls { z-index: 4; }

.atlas-home--living #atlas-main .atlas-home-wrap,
.atlas-home--living #atlas-main .atlas-living-map { width: auto; max-width: 1440px; margin-inline: auto; padding-inline: var(--studio-gutter); }
.atlas-home--living #atlas-main .atlas-living-map__heading h2,
.atlas-home--living #atlas-main .atlas-home-section-heading h2,
.atlas-home--living #atlas-main .atlas-home-answers h2 {
  font-family: var(--studio-serif);
  letter-spacing: -.022em;
  text-wrap: balance;
}
.atlas-home--living #atlas-main .atlas-home-library { background: #efe7d3; color: #192d21; }
.atlas-home--living #atlas-main .atlas-game-shelf > a {
  min-height: 0;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid #aa9f83;
  background: transparent;
  color: #192d21;
}
.atlas-home--living #atlas-main .atlas-game-shelf__art { display: block; height: auto; min-height: 0; aspect-ratio: 1.45; overflow: hidden; }
.atlas-home--living #atlas-main .atlas-game-shelf__art img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform 220ms var(--studio-ease);
}
.atlas-home--living #atlas-main .atlas-game-shelf > a > small { display: block; margin-top: 13px; color: #4e5943; }
.atlas-home--living #atlas-main .atlas-game-shelf > a > h3 { margin: 4px 0 9px; }
.atlas-home--living #atlas-main .atlas-game-shelf > a > span { color: #354831; }

@media (hover: hover) {
  .atlas-home--living #atlas-main .studio-atlas-link:hover { background: #f2d7a3; transform: translateY(-2px); }
  .atlas-home--living #atlas-main .atlas-game-shelf > a:hover .atlas-game-shelf__art img { transform: scale(1.035); }
}
.atlas-home--living #atlas-main .studio-atlas-link:active { transform: scale(.98); }

@media (max-width: 760px) {
  .atlas-shell .atlas-navigation .atlas-header { min-height: 57px; padding-inline: 13px; gap: 8px; }
  .atlas-shell .atlas-navigation .atlas-navigation-actions { gap: 8px; }
  .atlas-shell .atlas-navigation .atlas-menu-toggle { padding-inline: 9px; }
  .atlas-shell .atlas-navigation~.archive-languages { min-height: 34px; padding-inline: 14px; }
  .atlas-shell .archive-languages a { padding-inline: 7px; }
  .atlas-home--living #atlas-main .atlas-frontier {
    --studio-hero-height: max(720px, calc(100svh - 91px));
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: var(--studio-hero-height) auto auto auto;
    grid-template-areas: "hero" "doors" "chart" "compass";
  }
  .atlas-home--living #atlas-main .atlas-frontier::before {
    background:
      linear-gradient(0deg, #08130f 2%, #08130fe8 26%, #08130f94 54%, #08130f16 96%),
      url("./atlas-valley-960.webp") 62% center / cover no-repeat;
  }
  .atlas-home--living #atlas-main .atlas-frontier-copy { width: 100%; align-self: end; padding: 0 0 28px; }
  .atlas-home--living #atlas-main .atlas-frontier-title h1 { max-width: 11em; font-size: clamp(42px, 11vw, 66px); }
  .atlas-home--living #atlas-main .atlas-frontier-title > p { margin-bottom: 18px; }
  .atlas-home--living #atlas-main .atlas-frontier-tools { margin-top: 18px; }
  .atlas-home--living #atlas-main .atlas-frontier-tools .atlas-navi__link { min-height: 54px; }
  .atlas-home--living #atlas-main .atlas-frontier .atlas-finder__form { display: grid; grid-template-columns: minmax(0,1fr) 51px; }
  .atlas-home--living #atlas-main .atlas-frontier .atlas-finder__submit {
    display: grid;
    place-items: center;
    width: 51px;
    max-width: none;
    min-height: 50px;
    padding: 0;
  }
  .atlas-home--living #atlas-main .atlas-frontier .atlas-finder__submit span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .atlas-home--living #atlas-main .atlas-frontier .atlas-finder__submit svg { display: block; width: 17px; }
  .atlas-home--living #atlas-main .atlas-quick-questions { gap: 2px 13px; }
  .atlas-home--living #atlas-main .atlas-frontier-doors,
  .atlas-home--living #atlas-main .atlas-frontier > .field-chart { margin-top: 16px; }
  .atlas-home--living #atlas-main .atlas-frontier-doors > a { align-items: center; flex-direction: row; }
  .atlas-home--living #atlas-main .atlas-frontier-doors img { width: 36px; height: 50px; }
  .atlas-home--living #atlas-main .atlas-frontier .field-chart__window { min-height: 225px; }
  .atlas-home--living #atlas-main .atlas-frontier > .atlas-triforce-stage { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-home--living #atlas-main .studio-atlas-link,
  .atlas-home--living #atlas-main .atlas-game-shelf__art img { transition: none; }
  .atlas-home--living #atlas-main .studio-atlas-link:hover,
  .atlas-home--living #atlas-main .atlas-game-shelf > a:hover .atlas-game-shelf__art img { transform: none; }
}
.archive-font-license {
  margin-block: 0.8rem;
  scroll-margin-block-start: 6rem;
}

.archive-font-license summary {
  cursor: pointer;
  color: inherit;
  font-weight: 600;
}

.archive-font-license summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.archive-font-license pre {
  margin: 0.7rem 0 1.25rem;
  padding-inline-start: 1rem;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Editorial and walkthrough pages share a linen reading surface and forest navigation. */
#atlas-main {
  --reading-paper: var(--studio-paper, #f0e8d3);
  --reading-ink: #233027;
  --reading-copy: #3a483b;
  --reading-brass: #755224;
  --reading-rule: #c5b89e;
  --reading-done: #e1e5d0;
  --reading-panel: var(--studio-panel, #101e17);
  --reading-line: var(--studio-line, #455340);
  --reading-gold: var(--studio-gold, #e6c384);
  --reading-muted: var(--studio-muted, #bec4ab);
  --reading-serif: var(--studio-serif, Marcellus, Georgia, serif);
}

#atlas-main > .atlas-content:has(> :is(.guide-bar, .series-walkthrough, .ed-comparisons)) {
  box-sizing: border-box;
  width: min(100%, 1440px);
  max-width: none;
  padding-inline: clamp(1.25rem, 5.5vw, 5.5rem);
  padding-block-start: clamp(1.65rem, 4vw, 3.5rem);
  margin-inline: auto;
}

#atlas-main > .atlas-content > :is(.alttp-search-links, .z64-breadcrumbs, .s2-shortcuts, .series-page-nav) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .65rem clamp(.95rem, 2.1vw, 1.75rem);
  padding: 0 0 .95rem;
  margin: 0 0 1.25rem;
  border-block-end: 1px solid var(--reading-line);
  color: var(--reading-muted);
  font-size: .875rem;
  line-height: 1.5;
}

#atlas-main > .atlas-content > :is(.alttp-search-links, .z64-breadcrumbs, .s2-shortcuts, .series-page-nav) a {
  color: var(--reading-gold);
  border: 0;
  padding: .4rem 0;
  text-decoration: underline;
  text-underline-offset: .27em;
  text-decoration-color: transparent;
  transition: text-decoration-color 160ms ease-out;
}

#atlas-main > .atlas-content > :is(.alttp-search-links, .z64-breadcrumbs, .s2-shortcuts, .series-page-nav) a:hover {
  text-decoration-color: currentColor;
}

#atlas-main .alttp-search-edition {
  color: var(--reading-muted);
  margin: 0 0 1rem;
  font-size: .88rem;
  line-height: 1.6;
}

#atlas-main .guide-bar {
  --guide-bar-ink: var(--reading-paper);
  --guide-bar-muted: var(--reading-muted);
  --guide-bar-gold: var(--reading-gold);
  --guide-bar-surface: var(--reading-panel);
  --guide-bar-line: var(--reading-line);
  margin-block: 0 clamp(1.65rem, 3vw, 2.5rem);
  border: 1px solid var(--reading-line);
  border-radius: .65rem;
  box-shadow: none;
}

#atlas-main .guide-bar :is(.guide-bar__next, .guide-bar__toggle, .guide-bar__top) {
  border-radius: .3rem;
  transition: background-color 160ms ease-out, transform 160ms ease-out;
}

#atlas-main .guide-bar :is(.guide-bar__next, .guide-bar__toggle, .guide-bar__top):active {
  transform: scale(.98);
}

#atlas-main .guide-bar .guide-bar__count {
  font-variant-numeric: tabular-nums;
}

#atlas-main :is(.z64-reader, .s2-reader) {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.6rem);
  margin-block-start: 0;
}

#atlas-main :is(.z64-reader__sidebar, .s2-sidebar) {
  color: var(--reading-muted);
  padding-block-start: .3rem;
}

#atlas-main :is(.z64-reader__article, .s2-article) {
  width: 100%;
  min-width: 0;
  max-width: none;
}

#atlas-main :is(.z64-reader__sidebar, .s2-sidebar) h2 {
  max-width: 15ch;
  color: var(--reading-paper);
  font: 400 1.7rem/1.2 var(--reading-serif);
  margin-block: 0 .7rem;
}

#atlas-main :is(.z64-toc, .s2-toc, .s2-backup) {
  color: var(--reading-paper);
  border-color: var(--reading-line);
}

#atlas-main :is(.z64-toc, .s2-toc, .s2-backup) summary {
  min-height: 2.75rem;
  align-content: center;
}

#atlas-main :is(.z64-reader-intro, .s2-description) {
  color: var(--reading-paper);
  max-width: 67ch;
  margin: 0 0 clamp(1.4rem, 3.1vw, 2.4rem);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.65;
}

#atlas-main :is(.alttp-search-answer, .alttp-search-toc, .z64-boss, .s2-boss, .s2-sources, .z64-notes) {
  background: var(--reading-panel);
  color: var(--reading-paper);
  border: 1px solid var(--reading-line);
  border-radius: .875rem;
  padding: clamp(1.25rem, 3.1vw, 2.4rem);
  margin-block: 1.65rem;
}

#atlas-main :is(.alttp-search-answer, .alttp-search-toc, .z64-boss, .s2-boss, .s2-sources, .z64-notes) h2 {
  color: var(--reading-paper);
  font: 400 clamp(1.6rem, 2.65vw, 2.35rem)/1.15 var(--reading-serif);
  margin: 0 0 .7rem;
  text-wrap: balance;
}

#atlas-main :is(.alttp-search-answer, .z64-boss, .s2-boss, .s2-sources, .z64-notes) p {
  max-width: 66ch;
  color: var(--reading-muted);
  line-height: 1.7;
}

#atlas-main .alttp-chapter-facts > p {
  border-color: var(--reading-line);
}

#atlas-main .alttp-chapter-facts strong,
#atlas-main :is(.z64-kicker, .z64-reward strong, .s2-sidebar strong) {
  color: var(--reading-gold);
}

#atlas-main .alttp-search-toc ol {
  column-gap: clamp(1.2rem, 3.8vw, 3rem);
}

#atlas-main .alttp-search-toc ol li {
  break-inside: avoid;
}

#atlas-main .alttp-search-toc a {
  display: inline-block;
  padding: .35rem 0;
  line-height: 1.45;
  color: var(--reading-gold);
  text-underline-offset: .23em;
}

#atlas-main :is(.alttp-search-steps, .z64-steps, .s2-steps) {
  color: var(--reading-ink);
  background: var(--reading-paper);
  border: 1px solid var(--reading-rule);
  border-radius: .9rem;
  scroll-margin-block-start: 4.5rem;
  padding: .3rem clamp(1rem, 3.2vw, 2.5rem);
  margin: clamp(1.6rem, 4.5vw, 3.1rem) 0;
  list-style: none;
  max-width: none;
}

#atlas-main :is(.z64-steps, .s2-steps) {
  margin-block-start: 0;
}

#atlas-main :is(.alttp-search-steps, .z64-steps, .s2-steps) > li {
  scroll-margin-block-start: 5.2rem;
  padding: clamp(1.25rem, 3vw, 2.1rem) 0;
  border: 0;
  border-block-start: 1px solid var(--reading-rule);
  border-radius: 0;
  background: transparent;
  margin: 0;
}

#atlas-main :is(.z64-steps, .s2-steps) > li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: clamp(.75rem, 2.4vw, 1.35rem);
}

#atlas-main :is(.alttp-search-steps, .z64-steps, .s2-steps) > li:first-child {
  border-block-start: 0;
}

#atlas-main :is(.alttp-search-steps, .z64-steps, .s2-steps) > li.is-done {
  background: var(--reading-done);
}

#atlas-main :is(.alttp-search-steps, .z64-steps, .s2-steps) > li:target {
  outline: 1px solid var(--reading-brass);
  outline-offset: .45rem;
  border-radius: .3rem;
}

#atlas-main :is(.alttp-search-steps, .z64-steps, .s2-steps) h2,
#atlas-main .alttp-search-step-heading h2 label {
  color: var(--reading-ink);
  font: 400 clamp(1.3rem, 2.1vw, 1.9rem)/1.2 var(--reading-serif);
  letter-spacing: -.015em;
  margin: 0 0 .45rem;
  text-wrap: pretty;
}

#atlas-main :is(.alttp-search-steps, .z64-steps, .s2-steps) li p {
  max-width: 67ch;
  color: var(--reading-copy);
  margin-block: 0;
  line-height: 1.68;
  font-size: clamp(.94rem, 1.35vw, 1.03rem);
}

#atlas-main .alttp-search-step-heading {
  display: grid;
  align-items: center;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: clamp(.75rem, 2.4vw, 1.35rem);
  margin-block-end: .25rem;
}

#atlas-main .alttp-search-steps > li > p {
  margin-inline-start: calc(2.5rem + clamp(.75rem, 2.4vw, 1.35rem));
}

#atlas-main :is(.z64-step-marker, .s2-check) {
  color: var(--reading-brass);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

#atlas-main :is(.alttp-search-steps, .z64-steps, .s2-steps) input[type="checkbox"] {
  width: 1.28rem;
  height: 1.28rem;
  accent-color: #365442;
  color-scheme: light;
  cursor: pointer;
}

#atlas-main :is(.z64-check, .s2-check, .alttp-search-step-heading label) {
  cursor: pointer;
}

#atlas-main :is(.z64-check, .s2-check) {
  min-block-size: 2.75rem;
}

#atlas-main :is(.alttp-search-steps, .z64-steps, .s2-steps) input[type="checkbox"]:disabled {
  cursor: default;
}

#atlas-main :is(.alttp-search-steps, .z64-steps, .s2-steps) input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--reading-brass);
  outline-offset: .25rem;
}

#atlas-main :is(.alttp-search-steps, .z64-steps, .s2-steps) ::selection,
#atlas-main .ed-comparisons ::selection {
  background: #d6be82;
  color: #18271d;
}

#atlas-main .atlas-content #floor-plans .alttp-plans {
  background: var(--reading-panel);
  border-color: var(--reading-line);
  border-radius: .875rem;
}

#atlas-main .atlas-content #floor-plans .alttp-floor {
  border-color: var(--reading-line);
  border-radius: .45rem;
}

#atlas-main .atlas-content #floor-plans .alttp-floor img {
  image-rendering: auto;
}

#atlas-main :is(.alttp-chapter-nav, .z64-chapter-nav, .s2-adjacent) {
  gap: .8rem 1.3rem;
  flex-wrap: wrap;
}

#atlas-main :is(.alttp-chapter-nav, .z64-chapter-nav, .s2-adjacent) a {
  color: var(--reading-gold);
  min-height: 2.75rem;
  text-underline-offset: .27em;
}

#atlas-main .series-introduction {
  gap: clamp(1.75rem, 5vw, 4.2rem);
  align-items: center;
  padding-block: clamp(1.1rem, 3vw, 2.4rem) clamp(3rem, 7vw, 6rem);
}

#atlas-main .series-hero-art {
  min-width: 0;
  background: var(--reading-panel);
  border-color: var(--reading-line);
  border-radius: .8rem;
  padding: clamp(.8rem, 2vw, 1.35rem);
}

#atlas-main .series-hero-art > a {
  display: block;
  padding: 0;
  min-block-size: 0;
}

#atlas-main .series-hero-art .source-panel {
  display: none;
}

#atlas-main .series-hero-art figcaption {
  padding: .85rem .15rem 0;
  margin-block-start: .85rem;
  border-color: var(--reading-line);
  color: var(--reading-muted);
  font-size: .72rem;
}

#atlas-main .series-hero-art img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: none;
  height: auto;
  margin: 0;
  transform: none;
  position: static;
}

#atlas-main :is(.series-start, .series-section-head) h2 {
  color: var(--reading-paper);
  font-family: var(--reading-serif);
  line-height: 1.13;
  letter-spacing: -.02em;
  text-wrap: balance;
}

#atlas-main :is(.series-start, .series-section-head) p:not(.atlas-eyebrow) {
  color: var(--reading-muted);
  max-width: 64ch;
  line-height: 1.7;
}

#atlas-main :is(.series-progress, .series-contents, .series-chapter) {
  background: var(--reading-panel);
  border-color: var(--reading-line);
  border-radius: .65rem;
}

#atlas-main .series-progress {
  padding: .85rem clamp(1rem, 2.5vw, 1.85rem);
  font-variant-numeric: tabular-nums;
}

#atlas-main .series-chapter > summary {
  min-height: 3.7rem;
}

#atlas-main .series-chapter > summary:focus-visible {
  outline: 2px solid var(--reading-gold);
  outline-offset: .2rem;
}

#atlas-main .series-chapter[open] {
  border-color: var(--reading-gold);
}

#atlas-main .series-chapter-body :is(.guide-passage, .guide-route, .series-objective, .series-tip) {
  max-width: 67ch;
}

#atlas-main .ed-intro-line {
  gap: 1rem 2rem;
  border-color: var(--reading-line);
  line-height: 1.65;
}

#atlas-main .ed-intro-line p {
  max-width: 68ch;
}

#atlas-main .ed-comparisons {
  display: grid;
  gap: 0;
  padding: clamp(1.25rem, 4vw, 3.8rem);
  margin-block: clamp(1.8rem, 4.5vw, 3.75rem);
  background: var(--reading-paper);
  border-radius: .9rem;
}

#atlas-main .ed-comparison {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: .8rem clamp(1.5rem, 5vw, 4.5rem);
  align-items: baseline;
  margin: 0;
  border: 0;
  border-block-start: 1px solid var(--reading-rule);
  padding-block: clamp(1.4rem, 3.7vw, 2.7rem);
}

#atlas-main .ed-comparison:first-child {
  border-block-start: 0;
}

#atlas-main .ed-comparison h2 {
  color: var(--reading-ink);
  font: 400 clamp(1.65rem, 3vw, 2.55rem)/1.17 var(--reading-serif);
  letter-spacing: -.02em;
}

#atlas-main .ed-comparison .ed-kicker,
#atlas-main .ed-comparison__notes a {
  color: var(--reading-brass);
}

#atlas-main .ed-comparison__notes {
  display: block;
}

#atlas-main .ed-comparison__notes p {
  color: var(--reading-copy);
  max-width: 65ch;
  line-height: 1.7;
  margin: 0;
}

#atlas-main .ed-comparison__notes p + p {
  margin-block-start: .7rem;
}

@media (max-width: 850px) {
  #atlas-main :is(.z64-reader, .s2-reader) {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  #atlas-main :is(.z64-reader__sidebar, .s2-sidebar) {
    position: static;
    padding-block-start: 0;
  }

  #atlas-main :is(.z64-reader__sidebar, .s2-sidebar) h2 {
    max-width: none;
  }
}

@media (max-width: 620px) {
  #atlas-main > .atlas-content > :is(.alttp-search-links, .z64-breadcrumbs, .s2-shortcuts, .series-page-nav) {
    gap: .25rem 1rem;
    margin-block-end: 1rem;
    padding-block-end: .65rem;
    font-size: .8rem;
  }

  #atlas-main :is(.z64-steps, .s2-steps) > li,
  #atlas-main .alttp-search-step-heading {
    grid-template-columns: 1.9rem minmax(0, 1fr);
    column-gap: .55rem;
  }

  #atlas-main .alttp-search-steps > li > p {
    margin-inline-start: 2.45rem;
  }

  #atlas-main .alttp-search-toc ol {
    columns: 1;
  }

  #atlas-main .ed-comparison {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  #atlas-main .guide-bar :is(.guide-bar__next, .guide-bar__toggle, .guide-bar__top),
  #atlas-main > .atlas-content > :is(.alttp-search-links, .z64-breadcrumbs, .s2-shortcuts, .series-page-nav) a {
    transition: none;
  }

  #atlas-main .guide-bar :is(.guide-bar__next, .guide-bar__toggle, .guide-bar__top):active {
    transform: none;
  }
}

.atlas-home--living #atlas-main .studio-landmarks__view {
  aspect-ratio: 3 / 2;
  background: var(--studio-ink);
}

.atlas-home--living #atlas-main .studio-landmarks__view > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atlas-home--living #atlas-main .studio-landmarks__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 14px;
  padding: 10px 12px;
}

.atlas-home--living #atlas-main .studio-landmarks__controls button,
.atlas-home--living #atlas-main .studio-landmarks__map {
  min-height: 44px;
}

.atlas-home--living #atlas-main .studio-landmarks__map,
.atlas-home--living #atlas-main .studio-compass__credit {
  display: inline-flex;
  align-items: center;
  padding-inline: 6px;
  color: var(--studio-gold);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.atlas-home--living #atlas-main .atlas-frontier > .studio-compass {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  overflow: clip;
  background: #101d16;
}

.atlas-home--living #atlas-main .studio-compass__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.atlas-home--living #atlas-main .studio-compass__credit {
  min-height: 44px;
  justify-self: end;
  margin-inline-end: 6px;
  font-size: 12px;
}

.atlas-home--living #atlas-main .studio-landmarks__controls button:active {
  transform: scale(.97);
}

@media (prefers-reduced-motion: reduce) {
  .atlas-home--living #atlas-main .studio-landmarks__controls button:active { transform: none; }
}
