@font-face {
  font-family: 'Map Cormorant';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(cormorant-400-italic.ttf) format('truetype');
}
@font-face {
  font-family: 'Map Cormorant';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(cormorant-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Map DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(dm-sans-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Map DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(dm-sans-600.ttf) format('truetype');
}
#homesite-map, #homesite-viewer {
  color: #f3f0e9;
  font: 400 14px/1.6 'Map DM Sans', 'DM Sans', Arial, sans-serif;
}
#homesite-map { background: #18291f; padding: 52px 7% 60px; }
#homesite-map .wrap { max-width: 1320px; margin: auto; }
#homesite-map header { text-align: center; }
#homesite-map h2, #homesite-viewer h2 {
  font: 400 clamp(60px, 6vw, 94px)/.91 'Map Cormorant', 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.045em;
  margin: 17px 0 19px;
}
#homesite-map h2 em { font-weight: 400; }
#homesite-map header p { margin: 0; font-size: 15px; color: #d5d8cf; }
#homesite-map .kicker, #homesite-map .date {
  color: #d1b88b; font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
}
#homesite-map .atlas {
  /* The expanded plat fits the available height, even on a wide, short screen. */
  --preview-width: clamp(160px, calc(75svh - 90px), 590px);
  display: grid; grid-template-columns: 210px minmax(0, var(--preview-width));
  justify-content: center; align-items: start; gap: 32px; margin-top: 35px;
}
#homesite-map .mode { border-top: 1px solid #637065; padding-top: 11px; }
#homesite-map button, #homesite-viewer button { font: inherit; color: inherit; cursor: pointer; }
#homesite-map .mode button {
  display: block; width: 100%; text-align: left; padding: 14px 0;
  border: 0; border-bottom: 1px solid #637065; background: transparent; font-size: 13px;
}
#homesite-map .mode button[aria-pressed=true] { border-color: #d1b88b; font-weight: 600; }
#homesite-map .mode button[aria-pressed=true]::after { content: '•'; float: right; color: #d1b88b; }
#homesite-map .date { margin: 32px 0 4px; letter-spacing: .16em; }
#homesite-map .dated { font: 400 23px/1.2 'Map Cormorant', 'Cormorant Garamond', Georgia, serif; }
#homesite-map figure { margin: 0; }
#homesite-map .plate { display: block; width: 100%; background: white; border: 7px solid white; padding: 0; cursor: zoom-in; }
#homesite-map .plate img { display: block; width: 100%; height: auto; }
#homesite-map .cap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding-top: 12px; border-top: 1px solid #637065;
}
#homesite-map .cap span { font-size: 12px; color: #d5d8cf; }
#homesite-map .expand {
  border: 0; background: transparent; padding: 6px 0; color: #d1b88b;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
#homesite-map .expand svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.45; fill: none; }
#homesite-map button:focus-visible, #homesite-viewer :focus-visible { outline: 3px solid #a88346; outline-offset: 3px; }
#homesite-viewer {
  position: fixed; inset: 0; margin: 0; width: 100vw; max-width: 100vw;
  height: 100dvh; max-height: 100dvh; padding: 0; border: 0; background: rgba(11,22,15,.99);
}
#homesite-viewer[open] { display: flex; flex-direction: column; }
#homesite-viewer::backdrop { background: #0c1b12; }
#homesite-viewer .dbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 4%; border-bottom: 1px solid #495749;
}
#homesite-viewer h2 { font-size: 31px; letter-spacing: 0; margin: 0; }
#homesite-viewer .tools { display: flex; align-items: center; gap: 7px; }
#homesite-viewer .tools button { background: transparent; border: 1px solid #7c887b; color: white; min-width: 39px; min-height: 39px; padding: 2px 10px; }
#homesite-viewer button:disabled { opacity: .4; cursor: default; }
#homesite-viewer output { min-width: 46px; text-align: center; }
#homesite-viewer .viewport { overflow: auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
#homesite-viewer .surface { min-width: 100%; min-height: 100%; width: max-content; display: grid; place-items: center; padding: 16px; }
#homesite-viewer img { display: block; max-width: none; height: auto; }
#homesite-viewer .dfoot { font-size: 12px; text-align: center; padding: 8px; }
@media(max-width:760px) {
  #homesite-map { padding: 38px 6%; }
  #homesite-map .atlas { grid-template-columns: minmax(0, min(64vw, var(--preview-width))); gap: 24px; margin-top: 20px; }
  #homesite-map .mode { display: flex; gap: 18px; }
  #homesite-map .mode button { width: auto; }
  #homesite-map .mode button[aria-pressed=true]::after { content: ''; }
  #homesite-map .date, #homesite-map .dated { display: none; }
  #homesite-map .cap { align-items: flex-start; }
  #homesite-map .cap span { max-width: 56%; }
  #homesite-map .expand { letter-spacing: .06em; }
  #homesite-viewer .dbar { flex-wrap: wrap; }
  #homesite-viewer h2 { font-size: 26px; }
}
