:root {
  --ink: #111;
  --muted: #777;
  --line: #e5e5e5;
  --paper: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  width: 100%;
  background: #f2f2f2;
}

.site-frame {
  width: min(1180px, calc(100% - 160px));
  margin: 0 auto;
}

.site-header {
  background: #fff;
}

.header-frame {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 16px 0 22px;
}

.brand {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.menu-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
}

.rooms {
  padding-bottom: 44px;
}

.room {
  margin-bottom: 38px;
}

.first-room {
  margin-bottom: 44px;
}

.project-start {
  margin-top: 96px;
}

h1,
h2,
h3,
p,
  figure,
  dl {
  margin: 0;
}

h1 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.room-figure {
  position: relative;
  overflow: hidden;
  background: #f2f2f2;
}

.room-figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-caption {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  margin-top: 6px;
  color: #111;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.32;
  text-transform: uppercase;
}

.image-caption span:nth-child(2) {
  text-align: center;
}

.image-caption span:nth-child(3) {
  text-align: right;
}

.hotspot {
  position: absolute;
  z-index: 4;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(17, 17, 17, 0.78);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  cursor: pointer;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  padding: 0;
  transform: translate(-50%, -50%);
  transition: background 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

.hotspot:focus {
  outline: none;
}

.hotspot:focus-visible {
  outline: 1px solid #111;
  outline-offset: 3px;
}

.hotspot:hover,
.hotspot:focus,
.hotspot.active {
  background: #111;
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.18), 0 0 42px 22px rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.08);
}

.object-popover {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: min(270px, calc(100% - 40px));
  padding: 15px 16px 14px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 16px));
  transition: opacity 160ms ease, transform 160ms ease;
}

.object-popover.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, calc(-100% - 10px));
}

.object-popover .label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.object-popover h3 {
  margin-top: 7px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.08;
}

.object-popover p {
  margin-top: 8px;
  color: #333;
  font-size: 11px;
  line-height: 1.42;
}

.object-popover dl {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 6px 12px;
  margin: 13px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.object-popover dt {
  color: var(--muted);
  text-transform: uppercase;
}

.object-popover dd {
  margin: 0;
}

.object-popover a {
  display: inline-block;
  margin-top: 13px;
  padding-bottom: 2px;
  border-bottom: 1px solid #111;
  font-size: 11px;
  font-weight: 400;
}

.object-list,
.notes {
  display: grid;
  grid-template-columns: 260px minmax(0, 520px);
  gap: 48px;
  justify-content: end;
  padding: 26px 0 52px;
}

.object-list {
  border-top: 1px solid var(--line);
}

.object-list p,
.notes p {
  color: #333;
  font-size: 12px;
  line-height: 1.55;
}

.object-list div p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-transform: uppercase;
}

.object-list div p:first-of-type {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .site-frame {
    width: min(100% - 48px, 1180px);
  }

  .header-frame {
    gap: 20px;
  }

  .image-caption {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .image-caption span,
  .image-caption span:nth-child(2),
  .image-caption span:nth-child(3) {
    text-align: left;
  }

  .object-list,
  .notes {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .site-frame {
    width: calc(100% - 24px);
  }

  .header-frame {
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .brand {
    font-size: 17px;
  }

  .menu-button {
    font-size: 11px;
  }

  .image-caption {
    font-size: 10px;
  }

  .object-popover {
    width: min(260px, calc(100% - 28px));
  }
}
