:root {
  --atlas-nav-gutter: clamp(16px, 4.4vw, 48px);
}

/* Navigation used on Explore and the information pages. */
.atlas-site-nav {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 46px;
  padding: 1px var(--atlas-nav-gutter);
  gap: 12px;
  color: #413629;
  font: 15px/1.3 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
}

.atlas-site-nav .atlas-wayfinding {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 29px);
}

.atlas-wayfinding { min-width: 0; flex-wrap: wrap; }
.atlas-site-nav .atlas-about-link { flex: none; margin-left: auto; }

.atlas-site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  text-underline-offset: .24em;
  white-space: nowrap;
}

.atlas-site-nav a:is(:hover, :focus-visible, [aria-current="page"]) {
  text-decoration: underline;
}

.explore-page > .atlas-site-nav { color: #eee1c9; }
.explore-page .atlas-site-nav a:focus-visible { outline-color: #d9a55f; }
.explore-page #explore,
.explore-page #explore .explore-stage { min-height: calc(100svh - 46px); }
.explore-page #explore .explore-stage { padding-top: 6px; }

.atlas-reader .book-page-information {
  left: auto;
  right: var(--atlas-nav-gutter);
  top: env(safe-area-inset-top, 0px);
  bottom: auto;
  min-height: 46px;
  display: flex;
  align-items: center;
}
.atlas-reader .source-open { min-height: 44px; }

#folio-about {
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font: italic 15px/1.4 var(--serif);
}
#folio-about a { display: inline-block; padding-block: 10px; color: var(--muted); text-underline-offset: .2em; }
#folio-about a:hover { color: var(--ink); }

@media (max-width: 880px) {
  .atlas-reader .reader-navigation { max-width: calc(100% - 86px); }
  .atlas-reader .library-return { padding-right: 6px; }
  .atlas-reader .reader-scope-link:not([hidden]) { display: inline-flex; white-space: nowrap; }
}

@media (max-width: 420px) {
  .atlas-site-nav { font-size: 14px; }
}

@media (max-width: 360px) {
  .atlas-site-nav { gap: 6px; font-size: 13px; }
  .atlas-site-nav .atlas-wayfinding { gap: 6px; }
}
