:root {
  --paper: #e6b4d7;
  --ink: #2a243b;
  --primary: #27165a;
  --accent: #072624;
  --surface: #faeaf4;
  --tint: #f2d4e8;
  --light: #fff5fb;
  --radius: 8px;
  --lift: 0 3px 12px rgba(39, 22, 90, 0.12);
  --duration: 400ms;
  --start-delay: 0ms;
  --stagger: 50ms;
}

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

html:has(dialog:modal) {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

button {
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
}

a {
  color: var(--primary);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.atlas-name, .atlas-contents-links a, .place-entry-action, .slide-pick, .atlas-contents-toggle, .atlas-contents-close, .place-entry {
  transition: background-color var(--duration) ease, color var(--duration) ease;
}

.atlas-name-row, .atlas-contents-row, .local-atlas, .atlas-signoff-line {
  width: calc(100% - 40px);
  max-width: 1016px;
  margin-inline: auto;
  padding-inline: 0;
}

.local-atlas-skip, .local-atlas-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.local-atlas-skip {
  position: fixed;
  z-index: 20;
  inset-block-start: 8px;
  inset-inline-start: 12px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--light);
  font-weight: 600;
}

.local-atlas-skip:focus {
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip-path: none;
}

.atlas-banner {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  box-shadow: var(--lift);
}

.atlas-name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 70px;
}

.atlas-name {
  padding-block: 8px;
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-align: center;
  text-decoration: none;
}

.atlas-name:hover {
  color: var(--accent);
}

.atlas-contents-row {
  position: relative;
}

.atlas-contents-slot {
  position: absolute;
  inset-block-start: 34px;
  inset-inline-end: 0;
  width: 222px;
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  padding: 16px;
  overflow: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--lift);
}

.nav-label {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

.atlas-contents-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#local-sections .atlas-contents-links {
  display: grid;
}

.atlas-contents-links a, .place-entry-action, .atlas-contents-close {
  display: block;
  max-width: 100%;
  padding: 9px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: var(--light);
  font-weight: 600;
  text-decoration: none;
}

.atlas-contents-links a:hover, .atlas-contents-close:hover, a.place-entry-action:hover {
  background: var(--accent);
  color: var(--light);
}

.atlas-contents-links a[aria-current="page"] {
  padding-inline-start: 18px;
  background: var(--accent);
  box-shadow: inset 4px 0 var(--paper);
}

.atlas-contents-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: var(--light);
}

.atlas-contents-toggle:hover {
  background: var(--accent);
}

.drawer-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 340px);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  pointer-events: auto;
}

.drawer-menu::backdrop {
  background: rgba(28, 15, 49, 0.56);
}

.drawer-body {
  min-height: 100%;
  padding: 20px 16px;
  background: var(--surface);
}

.drawer-menu[open] .drawer-body {
  animation: unfold-menu var(--duration) ease-out;
}

.atlas-drawer-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 20px;
}

.atlas-drawer-header h2 {
  margin: 0;
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
}

.drawer-menu .nav-label {
  display: none;
}

.local-atlas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 222px;
  column-gap: 18px;
  padding-block: 34px;
  scroll-margin-block-start: 82px;
}

.front-page, .reading-column {
  display: grid;
  grid-column: 1;
  align-content: start;
  gap: 34px;
  min-width: 0;
}

.atlas-preface h1, .local-sketch-heading h1 {
  margin-block: 0;
  color: var(--primary);
  font-size: 62px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.local-atlas-appear {
  width: calc(100% - 32px);
  margin-inline: auto;
  animation: reveal-items var(--duration) ease-out calc(var(--start-delay) + var(--order, 0) * var(--stagger)) both;
}

.local-atlas-appear:focus-within {
  animation: none;
}

.landmark-choice {
  --order: 1;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--lift);
}

.feature-tools {
  display: grid;
  gap: 12px;
  padding-block: 16px;
}

.feature-line, .map-sections-line, .local-sketch-reading-time {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-line {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}

.map-sections-line svg, .local-sketch-reading-time svg {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--primary);
  color: var(--light);
}

.map-sections-line h2, .atlas-notes-related h2 {
  margin: 0;
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.atlas-plates-count {
  margin: 0;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--tint);
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

.atlas-plates-choices {
  margin: 0;
  padding: 0;
  list-style: none;
}

.atlas-plates-choices:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.slide-pick {
  width: 100%;
  height: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: var(--tint);
  color: var(--primary);
  font-weight: 600;
  text-align: start;
  overflow-wrap: anywhere;
}

.slide-pick:hover {
  background: var(--paper);
}

.slide-pick[aria-pressed="true"] {
  padding-inline-start: 16px;
  background: var(--primary);
  color: var(--light);
  box-shadow: inset 4px 0 var(--paper);
}

.banner-slide.atlas-plates-changing {
  animation: slide-fade var(--duration) ease-out;
}

.banner-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--tint);
}

.atlas-plates-copy {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--primary);
  color: var(--light);
}

.atlas-plates-copy h3, .atlas-plates-copy p {
  margin: 0;
}

.atlas-plates-copy h3 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.atlas-plates-copy .place-entry-action, .atlas-signoff .atlas-contents-links a {
  background: var(--light);
  color: var(--primary);
}

.atlas-plates-copy .place-entry-action:hover, .atlas-signoff .atlas-contents-links a:hover {
  background: var(--tint);
  color: var(--accent);
}

.atlas-plates-copy :focus-visible, .atlas-signoff :focus-visible {
  outline-color: var(--light);
}

.place-list, .map-sections {
  display: grid;
  gap: 16px;
}

.place-list {
  --order: 2;
}

.place-list-post-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.place-list-post-list > li:nth-child(1) {
  --order: 3;
}

.place-list-post-list > li:nth-child(2) {
  --order: 4;
}

.place-list-post-list > li:nth-child(3) {
  --order: 5;
}

.place-entry {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--lift);
  text-align: center;
  text-decoration: none;
}

.place-entry:hover {
  background: var(--light);
}

.place-entry .place-entry-copy {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-inline: 0;
}

.place-entry h3 {
  margin: 0;
  overflow: hidden;
  color: var(--primary);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-entry-details {
  display: flex;
  justify-content: center;
  margin: 0;
}

.local-sketch-reading-time {
  font-weight: 500;
}

.local-sketch-reading-time svg {
  background: var(--tint);
  color: var(--primary);
}

.place-entry-summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.place-entry .place-entry-action {
  align-self: flex-start;
  margin-block-start: auto;
  text-align: start;
}

.place-entry:hover .place-entry-action {
  background: var(--accent);
}

.map-sections {
  --order: 6;
}

.map-sections-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 0;
  padding: 0;
  list-style: none;
}

.place-entry-section {
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--tint);
  color: var(--accent);
  font-weight: 600;
}

.local-sketch {
  min-width: 0;
  max-width: 626px;
  margin-left: 0;
  margin-right: auto;
}

.local-sketch-heading {
  display: grid;
  gap: 12px;
  margin-block-end: 24px;
}

.atlas-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.atlas-breadcrumb a {
  font-weight: 600;
}

.atlas-breadcrumb a:hover, .local-sketch p a:hover {
  color: var(--accent);
}

.local-sketch .place-entry-story-meta {
  margin: 0;
}

.place-entry-story-meta .local-sketch-reading-time {
  width: fit-content;
}

.local-sketch p, .local-sketch ul, .local-sketch ol {
  margin-block: 0 1em;
}

.local-sketch h2, .local-sketch h3 {
  margin-block: 1.1em 0.45em;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

.local-sketch h2 {
  font-size: 30px;
}

.local-sketch h3 {
  font-size: 23px;
}

.local-sketch ul, .local-sketch ol {
  padding-inline-start: 1.5em;
}

.local-sketch ul {
  list-style: disc;
}

.local-sketch ol {
  list-style: decimal;
}

.local-sketch li + li {
  margin-block-start: 0.35em;
}

.local-sketch li::marker {
  color: var(--primary);
}

.local-sketch blockquote {
  margin: 1.25em 0;
  padding: 14px 16px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--surface);
}

.local-sketch blockquote p:last-child, .local-sketch > :last-child {
  margin-block-end: 0;
}

.local-sketch cite {
  color: var(--primary);
  font-style: italic;
  font-weight: 500;
}

.local-sketch table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.local-sketch th, .local-sketch td {
  padding: 8px 10px;
  border: 1px solid var(--primary);
  text-align: start;
  vertical-align: top;
}

.local-sketch th {
  background: var(--tint);
  color: var(--primary);
  font-weight: 700;
}

.local-sketch caption {
  padding-block: 8px;
  color: var(--primary);
  font-weight: 600;
  text-align: start;
}

.local-sketch img, .local-sketch video {
  max-width: 100%;
  height: auto;
}

.atlas-notes-related {
  --order: 1;
  display: grid;
  gap: 12px;
}

.atlas-signoff {
  background: var(--primary);
  color: var(--light);
}

.atlas-signoff-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
}

.atlas-signoff-line p {
  margin: 0;
  font-weight: 600;
}

.atlas-signoff .atlas-contents-links a[aria-current="page"] {
  background: var(--tint);
  box-shadow: inset 4px 0 var(--accent);
}

@keyframes reveal-items {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes unfold-menu {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@media (max-width: 892px) {
  body {
    font-size: 16px;
  }

  .atlas-name-row {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    min-height: 64px;
  }

  .atlas-name {
    grid-column: 2;
    font-size: 22px;
  }

  .dialog-ready .atlas-contents-row {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
  }

  .atlas-contents-toggle:not([hidden]) {
    display: grid;
    place-items: center;
    pointer-events: auto;
  }

  .atlas-contents-slot {
    position: static;
    width: 100%;
    max-height: none;
    padding: 0 0 12px;
    overflow: visible;
    box-shadow: none;
  }

  .atlas-contents-slot .nav-label {
    display: none;
  }

  .atlas-contents-slot #local-sections .atlas-contents-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .local-atlas {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 28px;
  }

  .atlas-banner:not(.dialog-ready) + .local-atlas {
    scroll-margin-block-start: 172px;
  }

  .front-page, .reading-column {
    gap: 28px;
  }

  .atlas-preface h1, .local-sketch-heading h1 {
    font-size: clamp(28px, 7vw, 40px);
  }

  .map-sections-line h2, .atlas-notes-related h2, .local-sketch h2 {
    font-size: 24px;
  }

  .place-entry h3, .atlas-plates-copy h3 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .atlas-name-row, .atlas-contents-row, .local-atlas, .atlas-signoff-line {
    width: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .local-atlas-appear, .banner-slide.atlas-plates-changing, .drawer-menu[open] .drawer-body {
    animation: none;
  }

  .atlas-name, .atlas-contents-links a, .place-entry-action, .slide-pick, .atlas-contents-toggle, .atlas-contents-close, .place-entry {
    transition: none;
  }
}

.local-sketch .local-sketch-cover {width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block;border-radius:var(--radius);margin:18px 0 24px;}
.local-sketch .content-body {min-width:0;}
.place-entry-story-meta.editorial-meta {display:flex;flex-wrap:wrap;gap:8px 20px;margin:9px 0 14px;opacity:.86;font-size:.96rem;}
.local-sketch .editorial-note {font-size:.9rem;opacity:.82;}
.content-body a {text-decoration-thickness:1px;text-underline-offset:2px;}
.post-cover-small {flex:0 0 180px;width:180px;height:120px;object-fit:cover;border-radius:7px;align-self:center;}
.place-list-post-list .place-entry {gap:22px;align-items:center;}
.place-list-post-list .place-entry-copy {min-width:0;flex:1;}
.place-list-post-list .place-entry-details {margin:7px 0;}
.place-list-post-list .place-entry-summary {margin-block:8px;}
.place-list-post-list .place-entry-action {white-space:nowrap;}
.map-sections-intro {max-width:760px;margin:12px 0 28px;}
.category-link {font-size:1rem;}
.local-sketch .source-info {font-size:.92rem;margin-top:12px;}
.related-info {border-top:1px solid currentColor;margin-top:30px;padding-top:16px;}
@media(max-width:650px){.post-cover-small {width:100%;height:auto;aspect-ratio:3/2;flex:auto;order:-1;}.place-list-post-list .place-entry{display:flex;flex-direction:column;align-items:stretch;}.place-list-post-list .place-entry .place-entry-action{align-self:flex-start;} }
