:root {
  color-scheme: light;
  --paper: #fbfaf8;
  --ink: #292421;
  --line: #dfdad4;
  --muted: #615b56;
  font: 100%/1.4 Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {box-sizing: border-box}
body {margin:0; min-width:280px}
button, a {font: inherit; -webkit-tap-highlight-color: transparent}
button {color:inherit}
[hidden] {display:none!important}
.masthead {
  max-width: 1380px; margin: 0 auto; width: calc(100% - clamp(36px, 8vw, 132px));
  display: flex; justify-content: space-between; align-items: center;
  min-height: clamp(60px,7.6vh,84px); border-bottom:1px solid var(--line);
}
.wordmark {font:500 clamp(22px,2.25vw,32px)/1 Georgia,'Times New Roman',serif;letter-spacing:.19em}
.section-name {font-size:.875rem;color:var(--muted);letter-spacing:.025em}
main {max-width:1200px; margin:0 auto; padding:0 clamp(14px,3.6vw,50px) clamp(20px,4vh,48px)}
.product-title {text-align:center;padding:clamp(15px,2.8vh,35px) 6px clamp(12px,2.2vh,24px)}
.product-title p {font-size:.78rem;letter-spacing:.145em;color:var(--muted);margin:0 0 4px;text-transform:uppercase}
h1 {font:400 clamp(34px,4.5vw,68px)/1.08 Georgia,'Times New Roman',serif;letter-spacing:-.045em;margin:0;text-wrap:balance}
.gallery {position:relative;isolation:isolate;background:#f1eeea;overflow:hidden}
.stage {
  width:100%;height:clamp(310px,53svh,580px);position:relative;overflow:hidden;
  user-select:none;touch-action:pan-y pinch-zoom; outline-offset:-3px;
  background: radial-gradient(ellipse at 50% 43%,#faf8f5 10%,#f1eeea 74%,#ede9e4);
}
.stage:focus-visible, button:focus-visible, a:focus-visible {outline:2px solid #713c38;outline-offset:3px}
.stage:focus-visible {outline-offset:-3px}
.figure {
  display:block;position:absolute;left:50%;top:50%;width:52%;height:94%;
  border:0;padding:0;background:none;cursor:pointer;
  transform-origin:center center; will-change:transform,opacity; user-select:none;
}
.figure.active {cursor:grab}
.stage.dragging,.stage.dragging .figure {cursor:grabbing}
.figure img {height:100%;width:100%;object-fit:contain;display:block;user-select:none;pointer-events:none}
.gallery.framed .figure img {object-fit:cover}
.gallery.framed .figure {width:auto;max-width:56%;aspect-ratio:var(--photo-ratio,.68);height:93%;box-shadow:0 4px 15px #49362412}
.hint {position:relative;text-align:center;margin:0;padding:8px 12px 11px;background:#f1eeea;color:#625a54;font-size:.82rem}
.controls {display:flex;align-items:center;flex-direction:column;gap:6px;padding:clamp(13px,2vh,25px) 0 0}
.selection {font-size:1rem;line-height:1.4;font-weight:600}
.swatch {display:inline-grid;place-items:center;width:44px;height:42px;padding:0;margin:0;border:0;background:transparent;cursor:pointer}
.disk {height:24px;width:24px;border-radius:50%;background:var(--swatch);border:1px solid #0002;box-shadow:0 0 0 3px var(--paper);transition:box-shadow .18s}
.swatch[aria-pressed="true"] .disk {box-shadow:0 0 0 3px var(--paper),0 0 0 4.5px var(--ink)}
.shop {display:inline-flex;justify-content:center;align-items:center;min-height:46px;min-width:210px;padding:10px 26px;margin-top:3px;background:var(--ink);color:white;text-decoration:none;font-size:.94rem}
.shop:hover {background:#4c3b34}
@media(max-width:600px) {
  main {padding-inline:0}
  .product-title {padding-inline:16px}
  .stage {height:clamp(300px,51svh,540px)}
  .figure {width:62%;height:92%}
  .gallery.framed .figure {max-width:61%;height:auto;max-height:93%;width:min(61%,calc(46svh * var(--photo-ratio,.68)))}
  .hint {padding-block:5px 9px}
}
@media(max-height:630px) and (min-width:601px){.stage{height:310px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.gallery:not(.framed) .figure {width:auto;aspect-ratio:var(--photo-ratio,.46);height:91%;max-width:45%}
.gallery:not(.framed) .figure::before {
  content:"";position:absolute;z-index:-1;left:18%;right:18%;bottom:.2%;height:2%;
  border-radius:50%;background:radial-gradient(ellipse,#5d51422e,transparent 72%);
}
@media(max-width:600px){
  .gallery:not(.framed) .figure {height:90%;max-width:44%}
}

.gallery-nav {display:flex;align-items:center;gap:20px}
.gallery-nav a {font-size:.875rem;color:var(--muted);text-decoration:none;padding:8px 0}
.gallery-nav a[aria-current="page"] {color:var(--ink);text-decoration:underline;text-underline-offset:5px}
.top-demo .stage {height:clamp(335px,49svh,540px)}
.top-demo .gallery:not(.framed) .figure {
  top:auto;bottom:0;transform-origin:center bottom;height:97%;width:auto;
  max-width:64%;aspect-ratio:var(--photo-ratio,.74);
}
.top-demo .figure img {object-position:bottom}
.top-demo .figure.active {cursor:zoom-in}
.top-demo .gallery:not(.framed) .figure::before {display:none}
.gallery-actions {display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap;background:#f1eeea;border-top:1px solid #e5dfd9;min-height:44px}
.gallery-actions .hint {padding:0;background:none}
.text-button,#close-detail {border:0;background:none;color:var(--ink);cursor:pointer;min-height:44px;font-size:.875rem;padding:0 4px;text-decoration:underline;text-underline-offset:4px}
.text-button:focus-visible,#close-detail:focus-visible {outline-offset:-1px}
#detail-dialog {width:min(92vw,550px);padding:0;max-height:92svh;border:0;background:var(--paper);color:var(--ink);box-shadow:0 18px 80px #241f1d40;overflow:auto}
#detail-dialog::backdrop {background:#201d1b99}
.detail-head {padding:13px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.detail-brand {font-size:.74rem;letter-spacing:.12em}
#detail-title {font:400 clamp(21px,3.6vw,30px)/1.2 Georgia,serif;margin:2px 0 0}
#detail-image {display:block;width:100%;height:auto;max-height:74svh;object-fit:contain}
body:has(dialog[open]) {overflow:hidden}
@media(max-width:600px) {
  .top-demo h1 {font-size:clamp(29px,7.8vw,38px);max-width:470px;margin-inline:auto}
  .top-demo .stage {height:clamp(280px,44svh,430px)}
  .top-demo .gallery:not(.framed) .figure {max-width:68%;height:96%}
}

.single-color .selection {display:flex;align-items:center;gap:9px}
.single-color .selection .disk {width:18px;height:18px;box-shadow:none}
.single-color #swatches {display:flex;justify-content:center;flex-wrap:wrap;gap:5px}
.view-choice {
  background:transparent;border:0;border-radius:0;min-height:44px;padding:6px 11px;
  font-size:.875rem;color:var(--muted);cursor:pointer;text-underline-offset:5px;
}
.view-choice[aria-pressed="true"] {text-decoration:underline;text-decoration-thickness:2px;color:var(--ink)}
.single-color .figure.active {cursor:zoom-in}
.single-demo .stage {height:clamp(340px,50svh,540px)}
.single-demo .gallery.framed .figure {
  height:92%;width:auto;max-width:62%;aspect-ratio:var(--photo-ratio,.75);
  overflow:hidden;background:var(--paper)
}
.single-demo .gallery.framed .figure img {object-fit:contain}
.detail-brand {text-transform:uppercase}
@media(max-width:600px) {
  .gallery-nav {gap:clamp(8px,3vw,17px)}
  .single-demo h1 {font-size:clamp(29px,7.8vw,38px)}
  .single-demo .stage {height:clamp(282px,44svh,430px)}
  .single-demo .gallery.framed .figure {
    width:min(62%,calc(40svh * var(--photo-ratio,.75)));height:auto;
    max-height:92%;max-width:62%
  }
}
@media(max-width:340px) {
  .masthead {width:calc(100% - 22px)}
  .wordmark {font-size:20px;letter-spacing:.13em}
  .gallery-nav a {font-size:.8rem}
}

/* The caption and the photograph share one edge-to-edge composition. */
main {max-width:none;padding:0 0 8px}
.gallery {
  display:grid;
  grid-template: max-content minmax(0,1fr) / minmax(0,1fr);
  height:clamp(330px,calc(100svh - clamp(60px,7.6vh,84px) - 152px),960px);
  background:radial-gradient(ellipse at 50% 43%,#faf8f5 10%,#f1eeea 74%,#ede9e4);
}
.single-color .gallery {height:clamp(330px,calc(100svh - clamp(60px,7.6vh,84px) - 104px),min(960px,164vw))}
.product-title {
  grid-area:1 / 1;
  z-index:2;
  justify-self:start;
  align-self:start;
  min-width:0;
  max-width:100%;
  text-align:left;
  pointer-events:none;
  padding:clamp(12px,1.9vh,21px) clamp(14px,3vw,48px) 5px;
}
.product-title p {font-size:.75rem;line-height:1.2;letter-spacing:.10em;margin:0 0 3px}
.product-title h1,.top-demo .product-title h1 {
  font:400 clamp(17px,2.1vw,26px)/1.1 Georgia,'Times New Roman',serif;
  letter-spacing:-.025em;
  margin:0;
  max-width:none;
  text-wrap:initial;
  overflow-wrap:break-word;
}
.gallery .stage {
  grid-area:1 / 1 / 3 / 2;
  position:relative;
  isolation:isolate;
  z-index:0;
  height:auto;
  min-height:0;
  background:transparent;
}
.gallery #stage {display:grid;grid-template-rows:4rem minmax(0,1fr);grid-template-rows:subgrid}
.figure-plane {
  grid-row:2;
  position:relative;
  min-height:0;
  margin-top:3px;
}
.gallery:not(.framed) .figure {height:98%;max-width:60%}
.top-demo .gallery:not(.framed) .figure {height:100%;max-width:82%}
.top-demo .figure.active {cursor:grab}
@media(max-width:600px) {
  .gallery:not(.framed) .figure {max-width:64%}
  .top-demo .gallery:not(.framed) .figure {max-width:82%}
}

.catalog-back {
  position:fixed;
  top:calc(16px + env(safe-area-inset-top, 0px));
  left:calc(16px + env(safe-area-inset-left, 0px));
  z-index:120;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#222;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(12px);
  box-shadow:0 4px 18px rgba(0,0,0,.08);
  font:300 34px/1 Arial,sans-serif;
  text-decoration:none;
  padding-bottom:4px;
}
.petal-demo main {padding:0}
.petal-demo .gallery {height:clamp(330px,calc(100svh - 155px),900px)}
.petal-demo .product-title {
  min-height:calc(68px + env(safe-area-inset-top, 0px));
  padding-top:calc(18px + env(safe-area-inset-top, 0px));
  padding-left:calc(74px + env(safe-area-inset-left, 0px));
}
