:root {
  color-scheme: light;
  --room-ink: #11110f;
  --room-paper: #f2efe8;
  --room-white: #fcfbf8;
  --room-muted: #57534c;
  --room-line: #bcb6aa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--room-paper);
  color: var(--room-ink);
  font: 1rem/1.55 system-ui, -apple-system, sans-serif;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, main:focus-visible { outline: 2px solid #7c5729; outline-offset: 4px; }

.room-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10001;
  padding: 12px;
  background: var(--room-white);
  transform: translateY(-150%);
}
.room-skip:focus { transform: none; }

.room-main, .room-footer {
  width: min(calc(100% - 36px), 1100px);
  margin-inline: auto;
}

.room-breadcrumb {
  margin-block: 4px 14px;
  color: var(--room-muted);
  font-size: .875rem;
}
.room-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.room-breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.room-breadcrumb li + li::before { content: "/" / ""; }
.room-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 4px;
}
.room-breadcrumb [aria-current] { color: var(--room-ink); font-weight: 650; }

.room-product { display: grid; gap: 18px; }
.room-product__title, .room-product__media, .room-product__details { min-width: 0; }
.room-product h1, .room-section h2, .room-finish-picker h2 {
  margin: 0;
  font-weight: 570;
  line-height: 1.1;
  letter-spacing: -.04em;
}
.room-product h1 { font-size: clamp(2rem, 7.4vw, 3.5rem); }
.room-section h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
.room-finish-picker { margin-top: 20px; }
.room-finish-picker h2 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.02em; }
.room-product__details > .room-lead:first-child { margin-top: 0; }
.room-status {
  margin: 0 0 9px;
  color: #654721;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.room-lead {
  max-width: 45ch;
  margin: 12px 0 0;
  color: var(--room-muted);
}

.room-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.room-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--room-ink);
  font-size: .875rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.room-action--primary { background: var(--room-ink); color: var(--room-white); }
.room-action:hover { box-shadow: inset 0 0 0 1px currentColor; }

.room-section { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--room-line); }
.room-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding-block: 6px;
  cursor: pointer;
  list-style: none;
}
.room-details summary::-webkit-details-marker { display: none; }
.room-details summary:focus-visible { outline: 2px solid #7c5729; outline-offset: 4px; }
.room-details summary::after {
  content: "";
  flex: 0 0 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.room-details[open] summary::after { transform: rotate(225deg); }
.room-details .room-lead { margin-top: 4px; }
.room-installation ol {
  display: grid;
  gap: 18px;
  margin: 14px 0 0;
  padding-left: 1.3rem;
}
.room-installation ol p { margin: 0; }
.room-installation li {
  padding-left: 4px;
  color: var(--room-muted);
}
.room-installation strong { color: var(--room-ink); }
.room-installation img {
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-top: 10px;
  border: 1px solid var(--room-line);
  border-radius: 4px;
}
.room-installation-video {
  width: min(100%, 360px);
  margin: 18px 0 0;
}
.room-installation-video .room-media__stage { aspect-ratio: 9 / 16; }
.room-installation-video figcaption {
  margin-top: 6px;
  color: var(--room-muted);
  font-size: .875rem;
}
.room-media { scroll-margin-top: 80px; }
.room-media__stage {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--room-line);
  border-radius: 4px;
  background: var(--room-ink);
}
.room-media__stage video, .room-media__stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.room-media__stage img { object-fit: cover; }
.room-media__stage--profile { background: #d9dad0; }
.room-media__stage--profile img { object-fit: contain; }
.room-video-toggle {
  position: absolute;
  inset: 0;
  place-items: center;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.room-video-toggle:not([hidden]) { display: grid; }
.room-video-toggle:focus-visible { outline-offset: -4px; outline-color: #fff; }
.room-video-toggle[data-paused] span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(17, 17, 15, .8);
}
.room-video-toggle[data-paused] span::before {
  content: "";
  margin-left: 3px;
  border: 8px solid transparent;
  border-left: 13px solid #fff;
  border-right: 0;
}
.room-media__fallback { width: min(100%, 200px); height: auto; margin-top: 12px; }
.room-thumbs:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.room-thumbs button {
  width: 74px;
  padding: 3px;
  border: 1px solid var(--room-line);
  border-radius: 4px;
  background: var(--room-white);
  color: var(--room-ink);
  font: 650 .6875rem/1.35 system-ui, sans-serif;
  cursor: pointer;
}
.room-thumbs button[aria-pressed="true"] { border-color: var(--room-ink); box-shadow: inset 0 0 0 1px var(--room-ink); }
.room-thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}
.room-thumbs span { display: block; padding-block: 3px; }
.room-thumbs [data-gallery-select="finish"] img {
  object-fit: contain;
  background: #d9dad0;
}
.room-cards, .room-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.room-cards, .room-options { margin-top: 12px; }
.room-card {
  display: block;
  min-width: 0;
  background: var(--room-white);
  border: 1px solid var(--room-line);
  text-decoration: none;
}
.room-card:hover strong { text-decoration: underline; }
.room-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #d9dad0; }
.room-card__label { display: block; padding: 10px; }
.room-card__label strong { line-height: 1.2; }
.room-options a[aria-current] { border-width: 2px; background: var(--room-white); }

.room-inspiration {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 10px;
  margin-top: 16px;
}
.room-inspiration figure { min-width: 0; margin: 0; }
.room-inspiration img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}
.room-inspiration .room-inspiration__entryway { object-position: 18% center; }
.room-inspiration figcaption { margin-top: 6px; font-size: .875rem; font-weight: 650; }

.room-specs { margin: 12px 0 0; }
.room-specs div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--room-line);
}
.room-specs dt { color: var(--room-muted); }
.room-specs dd { margin: 0; font-weight: 650; }

.room-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 42px;
  padding: 14px 0 calc(80px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--room-line);
  color: var(--room-muted);
  font-size: .875rem;
}
.room-footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 760px) {
  .room-main, .room-footer { width: min(calc(100% - 72px), 1100px); }
  .room-product {
    grid-template: "media title" auto "media details" 1fr / minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 20px 44px;
    align-items: start;
  }
  .room-product__media { grid-area: media; }
  .room-product__title { grid-area: title; }
  .room-product__details { grid-area: details; }
  .room-actions, .room-options { max-width: 390px; }
  .room-section { margin-top: 44px; }
  .room-installation ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
  .room-installation li { display: list-item; }
  .room-installation ol p { min-height: 6.2em; }
  .room-inspiration { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
  .room-cards { max-width: 680px; gap: 20px; }
  .room-card__label { padding: 14px; }
}
