:root {
  color-scheme: dark;
  --bg: #111110;
  --panel: #1b1a18;
  --band: #161513;
  --hero-surface: #11100f;
  --ivory-surface: #f4efe5;
  --section-slope: clamp(24px, 6.4vw, 104px);
  --line: #383329;
  --text: #f7f2e9;
  --muted: #c1b9ab;
  --accent: #e9c284;
  --button: #efcc95;
  --gold: #f0c275;
  --ink: #1d150b;
  --wrap: 1260px;
  --heading-font: Baskerville, "Iowan Old Style", Georgia, serif;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.06; text-wrap: balance; }
h1, h2 { font-family: var(--heading-font); font-weight: 600; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); letter-spacing: -.044em; }
h3 { font-size: 1.18rem; letter-spacing: -.018em; }
p { color: var(--muted); }
button, select, summary { cursor: pointer; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
:is(a, button, select, summary, canvas):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.angled-section {
  --angle-depth: var(--section-slope);
  position: relative;
  isolation: isolate;
  padding-top: var(--angle-depth);
  background: var(--previous-surface);
}
.angled-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--section-surface);
  clip-path: polygon(0 var(--angle-depth), 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
/* Overlap the upper edge so fractional layout pixels cannot expose the page background. */
.angled-section::after {
  content: "";
  position: absolute;
  inset: -2px 0 auto;
  z-index: -2;
  height: 4px;
  background: var(--previous-surface);
  pointer-events: none;
}
.angled-section > .section { padding-top: clamp(1.15rem, 3vw, 2.7rem); }
.light-section {
  --section-surface: var(--ivory-surface);
  --text: #251d16;
  --muted: #62574b;
  --accent: #754617;
  --line: #d7cabc;
  --panel: #e4d9cb;
  color: var(--text);
  color-scheme: light;
}
.gallery-section { --previous-surface: var(--hero-surface); }
.reviews-section {
  --previous-surface: var(--ivory-surface);
  --section-surface: var(--band);
  --angle-depth: calc(var(--section-slope) * .73);
}
.reviews-section::before { clip-path: polygon(0 0, 100% var(--angle-depth), 100% 100%, 0 100%); }
.visit-section {
  --previous-surface: var(--band);
  --angle-depth: calc(var(--section-slope) * .62);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 4;
  padding: .65rem 1rem;
  background: var(--button);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 2; background: var(--hero-surface); }
.header-inner { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--button);
  color: var(--bg);
  font-size: .85rem;
  font-weight: 850;
  letter-spacing: -.04em;
  border-radius: 4px;
}
.brand strong, .brand small { display: block; line-height: 1.18; }
.brand strong { font-size: 1rem; }
.brand small { color: var(--muted); font-size: .72rem; margin-top: .16rem; }

.dropdown { position: relative; }
.dropdown > summary, .disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: .7rem; min-height: 44px; }
.dropdown > summary { font-size: .85rem; font-weight: 700; padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; }
.dropdown > summary:hover, .dropdown[open] > summary { border-color: var(--accent); color: var(--accent); }
.dropdown > summary::after, .disclosure > summary::after {
  content: "";
  width: .48rem;
  height: .48rem;
  flex: none;
  margin: -.2rem .12rem 0 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
:is(.dropdown, .disclosure)[open] > summary::after { transform: rotate(225deg); margin-top: .2rem; }
.dropdown-panel {
  position: absolute;
  z-index: 1;
  top: calc(100% + .45rem);
  right: 0;
  max-height: min(62vh, 28rem);
  overflow-y: auto;
  padding: .45rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #201c17;
  box-shadow: 0 12px 32px #0009;
}
.dropdown:not([open]) > .dropdown-panel { display: none; }
.site-menu .dropdown-panel { width: min(14rem, calc(100vw - 2rem)); }
.dropdown-panel a { display: flex; align-items: center; min-height: 44px; padding-inline: .6rem; border-radius: 5px; font-size: .88rem; font-weight: 650; }
.dropdown-panel a:hover { background: #342b20; color: var(--accent); }
.site-menu .menu-quote { color: var(--accent); }

.hero { background: radial-gradient(ellipse at 75% 18%, #2b2117 0, transparent 55%), var(--hero-surface); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.33fr);
  grid-template-areas: "intro viewer" "services viewer";
  align-items: start;
  column-gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2rem, 5.8vw, 5.3rem) clamp(1.5rem, 2.8vw, 3.25rem);
}
.hero-intro { grid-area: intro; margin-top: clamp(.75rem, 3vw, 2rem); }
.hero-services { grid-area: services; margin-top: clamp(5rem, 10vw, 8rem); }
.hero-services h2 { margin-bottom: 1rem; }
.eyebrow { color: var(--accent); font-weight: 750; font-size: .75rem; letter-spacing: .095em; text-transform: uppercase; }
h1 {
  margin: .7rem 0 0;
  font-size: clamp(3rem, 5.65vw, 5.15rem);
  letter-spacing: -.058em;
  line-height: .94;
}

.hero-viewer {
  grid-area: viewer;
  position: sticky;
  top: 1rem;
  min-width: 0;
}
.viewer-heading {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.viewer-menu { pointer-events: auto; }
.viewer-menu > summary { background: #171410; }
.viewer-menu .dropdown-panel { width: min(17.5rem, calc(100vw - 2.75rem)); padding: .55rem; }
.viewer-category, .viewer-tour, .viewer-tools button, .tint-swatch {
  min-height: 44px;
  padding: .35rem .55rem;
  border: 1px solid #6b5740;
  border-radius: 5px;
  background: #282116;
  color: var(--text);
  font: 650 .84rem/1.2 "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
.viewer-category { width: 100%; }
.viewer-tools { display: flex; flex-wrap: wrap; gap: .35rem; margin-block: .65rem .35rem; }
.viewer-tools[hidden] { display: none; }
.viewer-tools button { width: 44px; font-size: 1.02rem; }
.viewer-tour { width: 100%; text-align: left; margin-block: .18rem; }
.viewer-tour[aria-pressed="true"] { color: var(--ink); background: var(--button); border-color: var(--button); }
:is(.viewer-category, .viewer-tour, .viewer-tools button, .tint-swatch):hover { border-color: var(--accent); }
.viewer-fullscreen { justify-content: space-between; }
.viewer-canvas {
  position: relative;
  height: clamp(300px, 36vw, 460px);
  overflow: hidden;
}
.viewer-canvas :is(canvas, .viewer-poster) {
  --fade-x: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent);
  --fade-y: linear-gradient(transparent, #000 16%, #000 79%, transparent);
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade-x), var(--fade-y);
  mask-composite: intersect;
}
.viewer-canvas canvas { position: absolute; inset: 0; display: block; visibility: hidden; cursor: grab; touch-action: pan-y; }
.viewer-canvas canvas:active { cursor: grabbing; }
.viewer-canvas:has(canvas:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.viewer-canvas canvas:focus-visible { outline: none; }
.viewer-poster { width: 100%; height: 100%; object-fit: contain; }
.hero-viewer[data-ready] .viewer-canvas canvas { visibility: visible; }
.hero-viewer[data-ready] .viewer-poster { visibility: hidden; }
.viewer-help, .viewer-status {
  position: absolute;
  left: .75rem;
  bottom: .65rem;
  max-width: calc(100% - 1.5rem);
  font-size: .78rem;
  text-shadow: 0 1px 4px #000;
}
.viewer-help { visibility: hidden; pointer-events: none; }
.hero-viewer[data-ready] .viewer-help { visibility: visible; }
.viewer-status:empty { display: none; }
.hero-viewer .palette-content ul { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: .45rem 0 0; list-style: none; }
.hero-viewer :is(.color-swatch, .texture-swatch) {
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid #85755e;
  border-radius: 5px;
  background-position: center;
  background-size: cover;
}
.hero-viewer .color-swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #16120d, inset 0 0 0 4px var(--accent); }
.tint-swatch[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.tint-caption { margin-top: .55rem; font-size: .77rem; }
.hero-viewer :is(.color-swatch, .texture-swatch) span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.hero-viewer::after {
  content: "";
  display: block;
  position: absolute;
  inset: auto 13% 0;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--tour-progress, 0));
  pointer-events: none;
}

.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .45rem 1rem; margin-bottom: 1.25rem; }
.text-link { color: var(--accent); font-size: .88rem; font-weight: 650; text-underline-offset: .25em; }
.text-link:hover { text-decoration: underline; }
.disclosure > summary { padding: .5rem .1rem; font-size: .96rem; font-weight: 650; }
.disclosure > summary:hover, .disclosure[open] > summary { color: var(--accent); }
.disclosure > :is(p, ul) { margin: .15rem 0 .85rem; max-width: 62ch; }
.disclosure > a { display: inline-block; margin-bottom: .85rem; }
.gallery-label { font-size: .85rem; }
.photo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  aspect-ratio: 2 / 1;
}
.photo-grid figure { position: relative; overflow: hidden; border-radius: 8px; background: var(--panel); }
.photo-grid figure:first-child { grid-row: span 2; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.6rem .95rem .8rem;
  background: linear-gradient(transparent, #000b);
  color: #fff8ef;
  font-size: .85rem;
  font-weight: 700;
}
.gallery-meta { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1.25rem; margin-top: .45rem; }
.gallery-meta > .text-link, .gallery-credits > summary { display: inline-flex; align-items: center; min-height: 44px; gap: .45rem; }
.gallery-credits { color: var(--muted); font-size: .82rem; }
.gallery-credits summary::after { content: "+"; }
.gallery-credits[open] summary::after { content: "−"; }
.gallery-credits ul { padding-left: 1.15rem; margin: 0 0 .45rem; }
.gallery-credits a { text-decoration: underline; text-underline-offset: .2em; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.card p { margin-top: .55rem; }
.review-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .65rem; font-size: .82rem; color: var(--muted); margin-bottom: .55rem; }
.score { color: var(--gold); font-weight: 750; }
.review-stars { font-size: 1.06rem; letter-spacing: .11em; line-height: 1; }
.visit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; max-width: 38rem; }
address { font-style: normal; color: var(--muted); }
address strong { color: var(--text); }
.visit-grid a { display: inline-block; margin-top: .25rem; }
.shop-map {
  display: block;
  width: 100%;
  height: clamp(285px, 34vw, 395px);
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color-scheme: light;
}
.amenities { padding-left: 1.2rem; color: var(--muted); }
.amenities li::marker { color: var(--accent); }
.shop-details { margin-top: 1.5rem; max-width: 48rem; }
.site-footer {
  --previous-surface: var(--ivory-surface);
  --section-surface: var(--bg);
  --angle-depth: calc(var(--section-slope) * .42);
  padding-block: calc(var(--angle-depth) + 1.4rem) 1.4rem;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .4rem 1.25rem; flex-wrap: wrap; font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; column-gap: 1rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; gap: .45rem; color: var(--muted); font-weight: 650; }
.footer-links a:hover { color: var(--accent); }
.footer-links img { flex: none; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .viewer-canvas { height: clamp(270px, 37vw, 320px); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 62px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "viewer" "services";
    row-gap: 1.15rem;
    padding-block: 1.35rem 2rem;
  }
  .hero-intro { margin-top: 0; }
  h1 { font-size: clamp(2.5rem, 8.7vw, 4.2rem); }
  h1 br:last-child { display: none; }
  .hero-viewer { position: relative; top: auto; }
  .viewer-canvas { height: clamp(210px, 56vw, 355px); }
  .hero-services { margin-top: .7rem; }
  .review-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: .55rem; aspect-ratio: auto; }
  .photo-grid figure, .photo-grid figure:first-child { grid-row: auto; aspect-ratio: 3 / 2; }
}
@media (max-height: 470px) {
  .hero-viewer { position: relative; top: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .section-entering { animation: section-enter 450ms ease-out both; }
}
@keyframes section-enter {
  from { opacity: .72; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}
