:root {
  --ivory: #f4f0e7;
  --white: #fffdf8;
  --graphite: #191b1c;
  --red: #f03424;
  --red-dark: #a5211a;
  --aqua: #12bdb3;
  --rule: #c9c4b9;
  --measure: 72ch;
  --promenade: min(76rem, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--graphite);
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(25, 27, 28, .055) 9% calc(9% + 1px), transparent calc(9% + 1px) 91%, rgba(25, 27, 28, .055) 91% calc(91% + 1px), transparent calc(91% + 1px)),
    var(--ivory);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.72;
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  color: var(--white);
  background: var(--graphite);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.progress-riser {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 5px;
  height: 100vh;
  background: rgba(25, 27, 28, .12);
}

.progress-riser span {
  display: block;
  width: 100%;
  height: 0;
  background: var(--aqua);
}

.promenade-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 max(1rem, calc((100vw - 78rem) / 2));
  border-bottom: 1px solid var(--graphite);
  background: var(--white);
}

.promenade-header::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  width: 38%;
  height: 5px;
  content: "";
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%);
}

.promenade-brand,
.gallery-footer > a {
  display: inline-flex;
}

.promenade-brand img,
.gallery-footer img {
  display: block;
  width: 116px;
  height: 38px;
}

.plan-button,
.plan-close {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.plan-button {
  padding: .45rem .7rem;
  border-left: 4px solid var(--red);
  font-weight: 750;
}

.plan-button span {
  margin-right: .45rem;
  color: var(--aqua);
}

.plan-drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  width: min(28rem, 94vw);
  height: 100vh;
  padding: 1.25rem 1.5rem 2rem;
  color: var(--white);
  background: var(--graphite);
  border-left: 12px solid var(--red);
  overflow-y: auto;
}

.plan-drawer::before {
  position: absolute;
  top: 0;
  left: 11px;
  width: 2px;
  height: 100%;
  content: "";
  background: var(--aqua);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
}

.plan-head strong {
  color: var(--aqua);
  letter-spacing: .05em;
}

.plan-close {
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
}

.plan-drawer nav {
  display: grid;
  margin-top: 1.2rem;
}

.plan-drawer nav a {
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  text-decoration: none;
}

.plan-drawer nav a:hover {
  color: var(--aqua);
}

.drawer-veil {
  position: fixed;
  z-index: 85;
  inset: 0;
  background: rgba(25, 27, 28, .7);
}

main {
  position: relative;
  padding-bottom: 6rem;
  overflow: clip;
}

.gallery-spine {
  position: absolute;
  z-index: -1;
  top: 8rem;
  bottom: 2rem;
  left: 50%;
  width: 14px;
  border-inline: 1px solid var(--graphite);
  background: var(--white);
  transform: translateX(-50%);
}

.gallery-spine::after {
  position: absolute;
  top: 0;
  left: 5px;
  width: 4px;
  height: 100%;
  content: "";
  background: repeating-linear-gradient(var(--red) 0 58px, transparent 58px 71px, var(--aqua) 71px 76px, transparent 76px 134px);
}

.promenade-slab {
  position: relative;
  width: var(--promenade);
  margin-inline: auto;
}

.waypoint {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  color: var(--red);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .18em;
}

.waypoint::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: .55rem;
  border-radius: 50%;
  background: var(--aqua);
  content: "";
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, Cambria, serif;
  font-weight: 500;
  letter-spacing: -.025em;
}

h1 {
  max-width: 29ch;
  margin: 0 auto;
  font-size: clamp(1.8rem, 3.5vw, 3.25rem);
  line-height: 1.08;
}

h2 {
  max-width: 27ch;
  margin-bottom: clamp(1.4rem, 3vw, 2.5rem);
  font-size: clamp(1.65rem, 3.5vw, 2.85rem);
  line-height: 1.13;
}

p,
li {
  max-width: var(--measure);
}

p {
  margin-bottom: 1.35rem;
}

.lintel {
  width: min(68rem, calc(100vw - 2rem));
  margin-top: clamp(1.7rem, 5vw, 4rem);
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.2rem, 6vw, 5rem) clamp(2.4rem, 5vw, 4rem);
  border-top: 14px solid var(--graphite);
  border-inline: 1px solid var(--graphite);
  text-align: center;
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 96% 82%, 96% 100%, 4% 100%, 4% 82%, 0 82%);
}

.lintel::before,
.lintel::after {
  position: absolute;
  top: 1.25rem;
  width: 20%;
  height: 4px;
  content: "";
  background: var(--red);
}

.lintel::before {
  left: 0;
}

.lintel::after {
  right: 0;
}

.lobby-plaque {
  margin-top: 2rem;
  padding: clamp(2.2rem, 5vw, 4.5rem) clamp(1.4rem, 8vw, 7rem);
  color: var(--white);
  background: var(--graphite);
}

.lobby-plaque::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: clamp(10px, 2vw, 24px);
  content: "";
  background: var(--red);
}

.lobby-plaque p {
  max-width: 88ch;
  margin: 0 auto;
  font-family: Georgia, Cambria, serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.threshold-image {
  position: relative;
  width: 100%;
  margin: clamp(2.5rem, 6vw, 5.5rem) 0;
  padding: 8px 0 15px;
  background: var(--red);
  clip-path: polygon(0 14%, 7% 14%, 7% 8%, 16% 8%, 16% 3%, 100% 3%, 100% 86%, 92% 86%, 92% 91%, 82% 91%, 82% 97%, 0 97%);
}

.threshold-image img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: polygon(0 10%, 8% 10%, 8% 6%, 18% 6%, 18% 2%, 100% 2%, 100% 88%, 91% 88%, 91% 93%, 80% 93%, 80% 98%, 0 98%);
}

.gallery-landing {
  margin-top: clamp(4rem, 8vw, 8rem);
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 7vw, 6rem);
  border: 1px solid var(--rule);
  border-top: 8px solid var(--graphite);
  background: var(--white);
}

.gallery-landing::before {
  position: absolute;
  top: -22px;
  width: 36%;
  height: 18px;
  content: "";
  background:
    linear-gradient(90deg, var(--red) 0 22%, transparent 22% 28%, var(--red) 28% 51%, transparent 51% 58%, var(--red) 58% 100%);
}

.gallery-landing::after {
  position: absolute;
  bottom: -7px;
  width: 55%;
  height: 7px;
  content: "";
  background: var(--aqua);
}

.step-left {
  width: min(68rem, calc(100vw - 2rem));
  margin-right: auto;
  margin-left: max(1rem, calc((100vw - 80rem) / 2));
  clip-path: polygon(0 0, 100% 0, 100% 94%, 92% 94%, 92% 100%, 0 100%);
}

.step-left::before,
.step-left::after {
  left: 0;
}

.step-right {
  width: min(68rem, calc(100vw - 2rem));
  margin-right: max(1rem, calc((100vw - 80rem) / 2));
  margin-left: auto;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%, 8% 94%, 0 94%);
}

.step-right::before,
.step-right::after {
  right: 0;
}

.step-wide {
  width: min(76rem, calc(100vw - 2rem));
  clip-path: polygon(0 0, 100% 0, 100% 96%, 67% 96%, 67% 100%, 0 100%);
}

.step-wide::before {
  left: 32%;
}

.step-wide::after {
  left: 12%;
}

.step-narrow {
  width: min(62rem, calc(100vw - 2rem));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%, 14% 95%, 0 95%);
}

.step-narrow::before {
  right: 8%;
}

.step-narrow::after {
  right: 0;
}

.directory-list ul,
.directory-list ol {
  max-width: 67rem;
  margin: 1.5rem 0 2.25rem;
  padding: 0;
  list-style: none;
  counter-reset: directory;
}

.directory-list li {
  position: relative;
  margin-top: -1px;
  padding: 1rem 1.15rem 1rem 4.15rem;
  border: 1px solid var(--graphite);
  background: var(--ivory);
  counter-increment: directory;
}

.directory-list li:nth-child(even) {
  width: calc(100% - min(3rem, 7vw));
  margin-left: min(3rem, 7vw);
  border-left: 8px solid var(--aqua);
}

.directory-list li:nth-child(odd) {
  width: calc(100% - min(1.5rem, 3vw));
  border-left: 8px solid var(--red);
}

.directory-list li::before {
  position: absolute;
  top: .9rem;
  left: 1rem;
  width: 2.15rem;
  padding-bottom: .15rem;
  border-bottom: 2px solid var(--red);
  color: var(--graphite);
  content: counter(directory, decimal-leading-zero);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
}

figure {
  margin: clamp(2.25rem, 5vw, 4.75rem) calc(50% - 50vw);
}

.panorama-frame,
.atrium-frame {
  padding: 12px 0 0;
  border-top: 12px solid var(--graphite);
  border-bottom: 10px solid var(--red);
  background: var(--graphite);
}

.panorama-frame img,
.salon-frame img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  padding: .8rem max(1rem, calc((100vw - 68rem) / 2));
  color: var(--white);
  background: var(--graphite);
  font-size: .9rem;
}

.salon-frame {
  width: 100vw;
  margin: clamp(2.25rem, 5vw, 4.75rem) calc(50% - 50vw);
  padding: 12px clamp(10px, 4vw, 52px);
  border-block: 8px solid var(--graphite);
  background: var(--aqua);
  clip-path: polygon(0 0, 88% 0, 88% 5%, 100% 5%, 100% 100%, 12% 100%, 12% 95%, 0 95%);
}

.brochure-stop {
  width: min(72rem, calc(100vw - 2rem));
  margin-top: clamp(4rem, 8vw, 8rem);
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 7vw, 6rem);
  color: var(--white);
  background: var(--graphite);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 9% 100%, 9% 96%, 0 96%);
}

.brochure-stop h2 {
  color: var(--white);
}

.brochure-leaves details {
  border-top: 1px solid rgba(255, 255, 255, .5);
}

.brochure-leaves details:nth-child(2) {
  margin-left: 2%;
}

.brochure-leaves details:nth-child(3) {
  margin-left: 4%;
}

.brochure-leaves details:nth-child(4) {
  margin-left: 6%;
}

.brochure-leaves details:nth-child(5) {
  margin-left: 8%;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
}

.brochure-leaves summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1rem;
  cursor: pointer;
  list-style: none;
}

.brochure-leaves summary::-webkit-details-marker {
  display: none;
}

.brochure-leaves summary::after {
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  color: var(--graphite);
  background: var(--aqua);
  content: "+";
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.65rem;
  text-align: center;
}

.brochure-leaves details[open] summary::after {
  color: var(--white);
  background: var(--red);
  content: "−";
}

.brochure-leaves h3 {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  line-height: 1.35;
}

.brochure-leaves p {
  max-width: 67ch;
  margin: 0;
  padding: 0 3.5rem 1.5rem 1rem;
  color: #e0e1dd;
}

.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem max(1rem, calc((100vw - 76rem) / 2));
  border-top: 10px solid var(--red);
  color: var(--white);
  background: var(--graphite);
}

.gallery-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem 1.25rem;
}

.gallery-footer nav a {
  color: var(--white);
  text-decoration-color: var(--aqua);
  text-underline-offset: .3rem;
}

@media (max-width: 720px) {
  body {
    background:
      linear-gradient(90deg, transparent 0 20px, rgba(25, 27, 28, .08) 20px 21px, transparent 21px),
      var(--ivory);
  }

  .promenade-header {
    height: 58px;
  }

  .promenade-brand img {
    width: 98px;
    height: auto;
  }

  .plan-button {
    font-size: .9rem;
  }

  .gallery-spine {
    left: 18px;
    width: 9px;
  }

  .gallery-landing {
    padding: 2.75rem 1.2rem;
  }

  .step-left,
  .step-right,
  .step-wide,
  .step-narrow {
    width: calc(100vw - 1rem);
    margin-right: auto;
    margin-left: auto;
  }

  .directory-list li {
    padding-left: 3.5rem;
  }

  .brochure-leaves details:nth-child(n) {
    margin-left: 0;
  }

  .gallery-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-footer nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Legal pages */
.legal-page {
  padding-top: clamp(2rem, 5vw, 4.5rem);
}

.legal-sheet {
  width: min(68rem, calc(100vw - 2rem));
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--graphite);
  border-top: 14px solid var(--graphite);
  background: var(--white);
}

.legal-sheet + .legal-sheet {
  margin-top: clamp(2rem, 5vw, 4rem);
}

.legal-sheet:first-child {
  text-align: center;
}

.legal-sheet:first-child h1 {
  margin-bottom: 1.4rem;
}

.legal-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--red-dark);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legal-sheet h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.legal-sheet p:last-child,
.legal-sheet ul:last-child {
  margin-bottom: 0;
}

.legal-sheet ul {
  padding-left: 1.25rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 1.25rem;
  margin-top: 1.5rem;
}

.legal-links a {
  color: var(--red-dark);
  font-weight: 750;
  text-underline-offset: .25rem;
}
