@import url('./assets/fonts.css');

:root {
  color-scheme: light;
  font-family: Manrope, system-ui, sans-serif;
  color: #272d29;
  background: #f7f5ef;
  --ink-muted: #505b53;
  --edge: #d9dbd1;
  --accent: #315244;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.experience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(40%, 360px));
  grid-template-areas: "header header" "story preview";
  align-items: center;
  column-gap: clamp(32px, 8vw, 112px);
  row-gap: clamp(22px, 4.5vh, 44px);
  max-width: 1030px;
  margin-inline: auto;
  padding: 20px clamp(24px, 6vw, 72px) 32px;
}

.page-header { grid-area: header; display: flex; align-items: center; justify-content: space-between; }
.back, .close { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font-size: 13px; }
.back:hover { text-decoration: underline; text-underline-offset: 4px; }
.close { background: none; border: 0; padding: 0 6px; }
.close span { font-size: 23px; line-height: 1; }
.embedded .page-header { justify-content: flex-end; padding-right: 48px; }

.story { grid-area: story; }
h1, h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; }
h1 { font-size: clamp(46px, 6.4vw, 76px); line-height: .94; letter-spacing: -.035em; margin: 0; }
.intro, #note { color: var(--ink-muted); line-height: 1.65; }
.intro { font-size: 15px; margin: 16px 0 22px; max-width: 32ch; }

.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 360px; }
.themes button, .motion {
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: transparent;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 160ms, border-color 160ms;
}
.themes button:hover, .motion:hover { background-color: #eaece4; border-color: #a4aea0; }
.themes button[aria-pressed="true"] { color: white; background: var(--accent); border-color: var(--accent); }

.description { border-top: 1px solid var(--edge); margin-top: 25px; padding-top: 16px; }
h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.06; margin: 0; }
#note { font-size: 14px; margin: 7px 0 0; }

.preview {
  grid-area: preview;
  width: min(100%, clamp(245px, calc((100svh - 170px) * .5625), 360px));
  margin: 0;
  justify-self: center;
}
.scene {
  position: relative;
  isolation: isolate;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 10px;
  background: #262927;
}
.backdrop { position: absolute; inset: 0; width: 100%; height: 100%; }
.backdrop { object-fit: contain; }
.controls { margin-top: 10px; }
.motion { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; }
.motion-icon { width: 10px; height: 12px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.motion[aria-busy="true"] .motion-icon {
  clip-path: none; background: none; border: 1px solid currentColor; border-radius: 50%; opacity: .5;
}
.motion[data-playing="true"] .motion-icon {
  clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0);
}
#status { margin: 7px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 1.5; }

@media (max-width: 660px) {
  .experience {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "header" "story" "preview";
    gap: 16px;
    max-width: 440px;
    padding: 8px 20px 24px;
  }
  h1 { font-size: clamp(38px, 11vw, 50px); }
  .intro { margin: 9px 0 13px; }
  .themes { max-width: none; }
  .description { margin-top: 16px; padding-top: 11px; }
  .preview { width: min(100%, 250px); }
}

@media (prefers-reduced-motion: reduce) {
  .themes button, .motion { transition: none; }
}

video.backdrop{opacity:0;pointer-events:none}
video.backdrop.is-playing{opacity:1}

.gallery-jump { min-height:44px; margin:0 0 14px; color:var(--accent); font-size:.85rem; }
.opening-gallery { grid-column:1/-1; border-top:1px solid var(--edge); padding:30px 0 16px; scroll-margin-top:16px; }
.opening-gallery h2 { font-size:clamp(32px,5vw,53px); }
.opening-gallery > p { color:var(--ink-muted); line-height:1.6; margin:10px 0 22px; }
.opening-samples { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.opening-samples a { display:grid; align-content:start; gap:5px; min-width:0; }
.opening-samples strong { font-size:.94rem; }
.opening-samples small { color:var(--ink-muted); line-height:1.4; }
.opening-swatch { display:block; min-height:95px; margin-bottom:6px; border:1px solid #5d4b2820; border-radius:7px; }
.swatch-curtain { background:repeating-linear-gradient(90deg,#35222d,#733b49 12%,#38232f 22%); }
.swatch-petals { background:radial-gradient(ellipse at 22% 30%,#fce2d6 0 10%,transparent 11%),radial-gradient(ellipse at 70% 68%,#e1a8a5 0 13%,transparent 14%),#eed5cc; }
.swatch-iris { background:radial-gradient(circle,#f4e9cf 0 18%,#c2ac88 37%,#4b4b48 75%); }
.swatch-letter { background:linear-gradient(158deg,#e6d6c0 47%,#baaa946d 48% 49%,#f5eadb 50%); }
@media(max-width:660px) { .opening-samples { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.swatch-conservatory {
  background: #394232 url("../templates/1.5.19/assets/preview-conservatory.webp") center 48% / cover no-repeat;
}

.swatch-lamp { background: #281b18 url('premium/ballroom/poster.webp') center 63% / cover; }
@media(min-width:661px) { .opening-samples { grid-template-columns:repeat(3,minmax(0,1fr)); } }
