:root {
  color-scheme: light;
  --paper: #f4f1eb;
  --panel: #e9e1d4;
  --ink: #242923;
  --muted: #55584e;
  --line: #d4cbbf;
  --accent: #374a3c;
  --forest: #28392f;
  --cream: #faf5e9;
  --serif: Georgia, "Times New Roman", serif;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
:is(a, button, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
p, dd { line-height: 1.65; }
.wrap { width: min(100% - 96px, 1360px); margin-inline: auto; }
.skip { position: fixed; z-index: 2; inset: 8px auto auto 8px; padding: 10px 16px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 79px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { font-family: var(--serif); font-size: 1.17rem; letter-spacing: .15em; font-weight: 600; text-decoration: none; }
.nav { display: flex; gap: clamp(14px, 3.6vw, 52px); align-items: center; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .94rem; }
.nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.38fr); margin-top: clamp(18px, 3vw, 44px); background: var(--forest); color: var(--cream); }
.hero-copy { align-self: center; padding: clamp(26px, 3.6vw, 66px); }
h1 { font-size: clamp(3rem, 4.8vw, 5.75rem); line-height: 1.01; letter-spacing: -.058em; text-wrap: balance; }
.hero-copy p { margin-top: 20px; max-width: 32ch; color: #e5ddcf; }
.hero-media { position: relative; display: grid; min-height: clamp(395px, 40vw, 615px); overflow: hidden; background: #d6c7b8; }
.hero-photo { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 55% 60%; }
.hero-controls {
  position: absolute; right: 18px; bottom: 16px; display: flex; align-items: center; flex-wrap: wrap;
  justify-content: space-between; max-width: calc(100% - 36px);
  background: var(--paper); color: var(--ink); font-size: .875rem;
}
.hero-room { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px; }
.hero-buttons { display: flex; }
.hero-buttons[hidden] { display: none; }
.button, .gallery-button, .dialog-close, .hero-buttons button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 16px; border: 1px solid var(--line);
  background: transparent; color: inherit; text-decoration: none; font: inherit;
  font-size: .9rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.button { min-height: 48px; margin-top: 27px; border-color: var(--accent); background: var(--accent); color: #fff; }
.hero .button { border-color: var(--cream); background: var(--cream); color: var(--forest); }
.hero .button:hover { background: #e3d5bd; border-color: #e3d5bd; }
.hero .button:focus-visible { outline-color: var(--cream); }
.hero-buttons button { border: 0; border-left: 1px solid var(--line); padding-inline: 12px; }
.gallery-button:hover:not(:disabled), .dialog-close:hover, .hero-buttons button:hover { border-color: var(--accent); background: var(--forest); color: #fff; }
.catalog, .room-catalog { padding-top: clamp(52px, 8vw, 110px); }
h2 { font-size: clamp(2.6rem, 5.1vw, 5.2rem); line-height: 1.05; letter-spacing: -.05em; }
.catalog-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.2vw, 28px); margin-top: 24px; }
.room-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2.2vw, 28px); margin-top: 24px; }
.collection-card { display: grid; align-content: start; gap: 9px; text-decoration: none; }
.collection-card span:last-child { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 2.35rem); letter-spacing: -.03em; }
.collection-card:hover span:last-child { text-decoration: underline; }
.photo-frame { display: block; overflow: hidden; background: #ece9e0; }
.photo-frame img { object-fit: cover; transition: transform .42s ease; }
.collection-card:hover img, .gallery-photo:hover img { transform: scale(1.035); }
.collection-card img { aspect-ratio: 1.48; }
.room-link { border-bottom: 2px solid transparent; padding-bottom: 9px; }
.room-link[aria-current="location"] { border-bottom-color: var(--accent); color: var(--accent); }
.room-link[aria-current="location"] > span:last-child { text-decoration: underline; }
.room, .collection { margin-top: clamp(32px, 5vw, 68px); padding-top: clamp(20px, 3vw, 40px); border-top: 1px solid var(--line); scroll-margin-top: 22px; }
.collection-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px 30px; margin-bottom: 19px; }
h3 { font-size: clamp(2.35rem, 4.5vw, 4.4rem); line-height: 1; letter-spacing: -.055em; }
.collection-heading p { margin-top: 9px; color: var(--muted); }
.gallery-buttons { display: flex; gap: 8px; }
.gallery-buttons[hidden] { display: none; }
.gallery-button:disabled { opacity: .47; cursor: default; }
.gallery-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px; overflow-x: auto; overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory; scrollbar-color: #aaa99e transparent; padding-bottom: 8px;
}
.gallery-track > figure { min-width: 0; scroll-snap-align: start; }
.gallery-photo img { aspect-ratio: 1.27; }
.gallery-photo.product img { object-fit: contain; mix-blend-mode: multiply; }
.gallery-photo:focus-visible { outline-offset: -4px; }
.gallery-track figcaption { margin-top: 9px; color: var(--muted); font-size: .94rem; }
.room .gallery-track figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 10px; }
.room .gallery-track figcaption a { color: var(--accent); }
.about { margin-top: clamp(65px, 9vw, 128px); background: var(--panel); }
.about-inner, .contact-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start; gap: clamp(24px, 6vw, 98px); padding-block: clamp(44px, 7vw, 100px);
}
.about h2, .contact h2 { font-size: clamp(2.45rem, 4.45vw, 4.7rem); }
.about p, .contact p { max-width: 42ch; color: var(--muted); }
.contact p { margin-top: 13px; }
.contact dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.contact dl div { border-top: 1px solid var(--line); padding-top: 9px; }
.contact dl .address { grid-column: 1 / -1; }
.contact dt { font-size: .875rem; color: var(--muted); }
.contact dd { margin-top: 4px; }
.contact dd a { overflow-wrap: anywhere; }
.contact .phone { font-variant-numeric: tabular-nums; }
.contact a:hover, footer a:hover { color: var(--accent); }
.footer-inner { display: flex; gap: 10px 24px; justify-content: space-between; flex-wrap: wrap; padding-block: 21px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.image-viewer { width: min(100% - 32px, 1120px); max-height: calc(100dvh - 32px); padding: 16px; border: 0; background: var(--paper); color: var(--ink); }
.image-viewer::backdrop { background: rgb(25 26 22 / 76%); }
.image-viewer-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 10px; }
.viewer-buttons { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.image-viewer img { max-height: min(67dvh, 760px); object-fit: contain; background: #eeeae0; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 58px); }
  h1 { font-size: clamp(2.2rem, 4.55vw, 3.5rem); }
  .gallery-track { grid-auto-columns: calc((100% - 18px) / 2.4); gap: 18px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 0; flex-wrap: wrap; gap: 5px; padding-block: 16px 5px; }
  .nav { width: 100%; border-top: 1px solid var(--line); margin-top: 6px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 30px 23px; }
  h1 { font-size: clamp(2.8rem, 10vw, 4.25rem); }
  .hero-copy p { margin-top: 13px; }
  .button { margin-top: 18px; }
  .hero-media { min-height: 0; aspect-ratio: 1.4; }
  .hero-controls { right: 10px; bottom: 10px; max-width: calc(100% - 20px); }
  .room-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-index { gap: 9px; }
  .collection-card img { aspect-ratio: 1.05; }
  .collection-heading { align-items: start; flex-direction: column; }
  .gallery-track { grid-auto-columns: 77%; gap: 12px; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .nav { gap: 14px; }
  .contact dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-frame img, .button, .gallery-button, .dialog-close, .hero-buttons button { transition: none; }
  .collection-card:hover img, .gallery-photo:hover img { transform: none; }
}
