@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
.ma-atlas, .ma-atlas * { box-sizing: border-box; }
.ma-atlas {
  --ma-text: #302c23;
  --ma-muted: #645947;
  --ma-accent: #5b4935;
  --ma-rule: #a69a84;
  --ma-panel: #fcf8ef;
  --ma-script: "EB Garamond", Garamond, "Times New Roman", serif;
  container: ma-atlas / inline-size;
  width: 100%;
  max-width: 1600px;
  min-width: 0;
  margin: 2rem auto;
  padding: clamp(12px, 2.4vw, 30px);
  background: #f6f1e7;
  color: var(--ma-text);
  font: 18px/1.42 var(--ma-script);
}
.ma-atlas .ma-atlas__info h3 { font-family: var(--ma-script); font-weight: 500; line-height: 1.07; }
.ma-atlas .ma-atlas__header { scroll-margin-block-start: 64px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 14px; }
.ma-atlas .ma-atlas__header p { margin: 0; color: var(--ma-muted); }
.ma-atlas__zoom { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.ma-atlas [hidden] { display: none !important; }
.ma-atlas__zoom button {
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border: 1px solid var(--ma-rule);
  border-radius: 2px;
  background: transparent;
  color: var(--ma-text);
  font: inherit;
  cursor: pointer;
}
.ma-atlas__zoom button:hover:not([aria-disabled="true"]) { background: #eee6d8; }
.ma-atlas button[aria-disabled="true"] { opacity: 0.61; cursor: default; }
.ma-atlas__zoom-status { min-width: 6ch; margin-inline: 3px; text-align: center; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.ma-atlas__view {
  position: relative;
  display: grid;
  gap: 15px;
  grid-template-columns: minmax(0, 1fr);
}
@container ma-atlas (min-width: 610px) {
  .ma-atlas__view--place {
    grid-template-columns: minmax(0, 2.25fr) minmax(220px, 1fr);
    align-items: start;
    gap: clamp(16px, 2cqw, 28px);
  }
  .ma-atlas .ma-atlas__view--place .ma-atlas__info {
    padding: 0 0 0 clamp(16px, 2cqw, 28px);
    border-block-start: 0;
    border-inline-start: 1px solid var(--ma-rule);
  }
}
.ma-atlas .ma-atlas__heading,
.ma-atlas[data-place-open] .ma-atlas__guide {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ma-atlas__frame {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--ma-rule);
  background: #ecdfca;
}
.ma-atlas__viewport { aspect-ratio: 16 / 9; overflow: auto; scrollbar-width: none; }
.ma-atlas__viewport[data-zoomed] { overscroll-behavior-inline: contain; }
.ma-atlas__viewport[data-zoomed] img { cursor: grab; }
.ma-atlas__viewport[data-dragging] img { cursor: grabbing; }
.ma-atlas__map, .ma-atlas__detail { position: relative; user-select: none; }
.ma-atlas__map { width: calc(100% * var(--zoom, 1)); }
.ma-atlas__detail {
  display: grid;
  place-items: center;
  width: min(calc(100% * var(--zoom, 1)), var(--detail-width, 100%));
  min-height: 100%;
  margin-inline: auto;
}
.ma-atlas .ma-atlas__map > img, .ma-atlas .ma-atlas__detail > img { display: block; width: 100%; height: auto; max-width: none; margin: 0; }
.ma-atlas__detail > p { margin: 1rem; padding: 1rem; }
.ma-atlas__dissolve { position: absolute; z-index: 4; pointer-events: none; overflow: hidden; }
.ma-atlas__dissolve > * { pointer-events: none !important; }
.ma-atlas__sanctuary-glow {
  position: absolute;
  left: var(--glow-x, 59.7%);
  top: var(--glow-y, 36.5%);
  width: 24%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(circle, #fff9e8 0%, #f7e2b987 37%, transparent 70%);
  opacity: 0.13;
}
@media (prefers-reduced-motion: no-preference) {
  .ma-atlas__sanctuary-glow { animation: ma-bruno-glow 6s ease-in-out infinite alternate; }
}
@keyframes ma-bruno-glow { from { opacity: 0.03; } to { opacity: 0.22; } }
.ma-atlas .ma-atlas__marker {
  position: absolute;
  z-index: 1;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 7px;
  color: var(--ma-text);
  text-decoration: none;
}
.ma-atlas__marker::before {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background: radial-gradient(ellipse, #fcf8efe0 17%, #fcf8ef8c 49%, transparent 72%);
}
.ma-atlas .ma-atlas__landmark {
  position: relative;
  display: block;
  width: clamp(27px, 3.1vw, 42px);
  height: clamp(27px, 3.1vw, 42px);
  object-fit: contain;
  margin: 0;
  filter: drop-shadow(0 0 2px #fff8e8);
  pointer-events: none;
}
.ma-atlas__number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 1.45rem;
  width: max-content;
  height: 1.45rem;
  padding: 0 .17rem;
  border: 1px solid #8d7b64;
  border-radius: 50%;
  background: var(--ma-panel);
  color: var(--ma-text);
  font: 650 .87rem/1 var(--ma-script);
  font-variant-numeric: tabular-nums;
}
.ma-atlas__marker .ma-atlas__number {
  position: absolute;
  top: 66%;
  left: calc(50% + 17px);
  z-index: 1;
  transform: translateY(-50%);
  box-shadow: 0 1px 2px #342b2140;
  pointer-events: none;
}
.ma-atlas .ma-atlas__marker:hover,
.ma-atlas .ma-atlas__marker:focus-visible { z-index: 2; }
.ma-atlas__marker:hover .ma-atlas__number,
.ma-atlas__marker:focus-visible .ma-atlas__number {
  background: #562f20;
  color: #fff8e8;
}
.ma-atlas .ma-atlas__marker:hover .ma-atlas__landmark,
.ma-atlas .ma-atlas__marker:focus-visible .ma-atlas__landmark {
  filter: contrast(1.12) drop-shadow(0 0 3px #fff8e8);
}
.ma-atlas .ma-atlas__marker:focus-visible { outline-color: #3e2c20; }
.ma-atlas .ma-atlas__info {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 15px 0 0;
  border-block-start: 1px solid var(--ma-rule);
}
.ma-atlas .ma-atlas__place-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}
.ma-atlas .ma-atlas__place-icon {
  display: block;
  width: clamp(48px, 7cqw, 72px);
  height: clamp(48px, 7cqw, 72px);
  object-fit: contain;
  margin: 0;
  filter: drop-shadow(0 2px 1px #5943213d);
}
.ma-atlas .ma-atlas__description {
  margin: 14px 0;
  white-space: pre-line;
}
.ma-atlas .ma-atlas__theme { margin: 0 0 4px; color: var(--ma-accent); font-size: .91rem; font-weight: 500; }
.ma-atlas .ma-atlas__info h3 { margin: 0; font-size: clamp(1.45rem, 3cqw, 2.2rem); }
.ma-atlas__info a { color: var(--ma-text); text-underline-offset: 0.23em; }
.ma-atlas .ma-atlas__visit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ma-text);
  text-decoration: underline;
  text-underline-offset: .24em;
}
.ma-atlas__visit:hover { color: #6f4d30; }
.ma-atlas .ma-atlas__index {
  --ma-index-columns: 4;
  --ma-index-gap: clamp(8px, 2cqw, 28px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 2.4cqw, 30px) var(--ma-index-gap);
  list-style: none;
  padding: clamp(14px, 2cqw, 24px) 0 0;
  margin: 18px 0 0;
  border-block-start: 1px solid var(--ma-rule);
}
.ma-atlas .ma-atlas__index > li {
  flex: 0 0 calc((100% + var(--ma-index-gap)) / var(--ma-index-columns) - var(--ma-index-gap));
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ma-atlas .ma-atlas__index a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  height: 100%;
  padding: 5px 4px;
  color: var(--ma-text);
  font: 500 clamp(1.06rem, 1.85cqw, 1.28rem)/1.22 var(--ma-script);
  text-align: center;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.ma-atlas .ma-atlas__index-art {
  --ma-index-icon: clamp(68px, 13cqw, 94px);
  position: relative;
  display: block;
  flex: none;
  width: var(--ma-index-icon);
  height: var(--ma-index-icon);
}
.ma-atlas .ma-atlas__index-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
}
.ma-atlas .ma-atlas__index-art .ma-atlas__number {
  position: absolute;
  inset-inline-start: calc(100% + 4px);
  inset-block-end: 4px;
}
.ma-atlas .ma-atlas__index a:hover,
.ma-atlas .ma-atlas__index a[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.ma-atlas .ma-atlas__index a[aria-current="true"] { font-weight: 700; }
@container ma-atlas (max-width: 600px) {
  .ma-atlas .ma-atlas__index { --ma-index-columns: 3; }
}
@container ma-atlas (max-width: 510px) {
  .ma-atlas .ma-atlas__index { --ma-index-columns: 2; }
}
@container ma-atlas (max-width: 255px) {
  .ma-atlas .ma-atlas__index { --ma-index-columns: 1; }
}
.ma-atlas :is(a, button, .ma-atlas__viewport):focus-visible { outline: 3px solid #76501c; outline-offset: 2px; }
.ma-atlas .ma-atlas__viewport:focus-visible { outline-offset: -4px; }
@media (max-width: 760px) {
  .ma-atlas .ma-atlas__marker { width: 40px; height: 40px; }
  .ma-atlas .ma-atlas__landmark { width: 27px; height: 27px; }
  .ma-atlas__marker .ma-atlas__number {
    left: calc(50% + 8px);
    top: 75%;
    min-width: 1.1rem;
    height: 1.1rem;
    font-size: .69rem;
  }
}
