/* Shared visual layer for the separate local site preview. */
:root { --preview-art-width:min(90vw,calc(clamp(540px,84svh,840px) * 1.55)); }
body { isolation:isolate; }
.background-art {
  position:fixed;
  z-index:-1;
  inset:0;
  height:100lvh;
  pointer-events:none;
  background:#f4efe3;
}
.background-art::before {
  --art-width:var(--preview-art-width);
  --art-height:calc(var(--art-width) * 1402 / 1122);
  content:"";
  position:absolute;
  inset:50px 0 0;
  /* Keep the bloom within the hero at wide sizes, as in the option-one reference. */
  background:url('assets/flower-smoke-background.png') right top / var(--art-width) auto no-repeat;
  /* Blend the artwork's paper edge into the cream after reducing its size. */
  mask-image:linear-gradient(to right,transparent calc(100% - var(--art-width)),#000 calc(100% - var(--art-width) + 160px)),
    linear-gradient(to bottom,transparent,#000 24px,#000 calc(var(--art-height) - 120px),transparent var(--art-height));
  mask-composite:intersect;
}
.hero { background:transparent; align-items:center; }
.hero .pic { visibility:hidden; }
.pcols { background:rgba(244,239,227,.84); }
.offer { --preview-veil:rgba(244,239,227,.77); background:rgba(23,48,42,.86); color:var(--cream); border-top-color:var(--brass); }
.offer .box { border-color:rgba(244,239,227,.24); }
.offer .box .label { color:#d8c198; }
.offer .box p { color:var(--cream); }
.duo { --preview-veil:rgba(244,239,227,.77); background:var(--preview-veil); }
.duo > img[data-replaced-art] { display:none !important; }
.duo p.keep { width:100%; max-width:none; text-align:center; margin:38px auto; }
/* Keep original decorative elements' flow dimensions, but replace their pixels. */
img[data-replaced-art] { visibility:hidden; }
.water { background:transparent; }
.water > img { visibility:hidden; }
.water::after { display:none; }
.water .say { text-shadow:0 1px 12px rgba(244,239,227,.75); }
.preview-inner .phead { background:transparent; }
.preview-inner .phead .pic { visibility:hidden; }
.preview-inner .phead .in { background:rgba(244,239,227,.66); }
.preview-inner :is(.open,.facts,.pair,.note,.ask,.session-lead,.copy) {
  --preview-veil:rgba(244,239,227,.84);
  background:var(--preview-veil);
}
/* Carry the veil through the page gutters so exposed leaf tips stay equally soft.
   Shadows extend only the paint; text, cards and section borders keep their layout. */
.duo, .offer, .preview-inner :is(.open,.facts,.pair,.note,.ask,.session-lead,.copy) {
  box-shadow:var(--gutter) 0 var(--preview-veil),
    calc(-1 * var(--gutter)) 0 var(--preview-veil);
}
.preview-inner .offer .price small { color:var(--cream); }
@media(min-width:860px) {
  .duo { min-height:0; padding-bottom:112px; }
  .duo .ph.a {
    width:min(1440px,calc(100% - 2 * var(--gutter)));
    height:auto;
    aspect-ratio:2/1;
    margin-inline:auto;
  }
  .duo .ph.a img { transform:none; }
  .duo .lead {
    width:min(1440px,calc(100% - 2 * var(--gutter)));
    margin-inline:auto;
  }
  .duo .lead :is(.label,h2) { justify-self:center; text-align:center; }
  .duo p.keep { margin:80px auto; padding-inline:var(--gutter); }
  .duo .whyb {
    position:relative;
    left:auto;
    top:auto;
    /* Keep the block intact, with a small rightward nudge in the open space. */
    --quiet-width:calc(100vw - var(--preview-art-width) * .64);
    margin-left:calc((var(--quiet-width) - min(540px,33vw)) / 2 - var(--gutter) + 32px);
    margin-right:0;
  }
  .water .say {
    /* Center the complete paragraph/button group in the space left of the artwork. */
    --quiet-width:calc(100vw - var(--preview-art-width) * .64);
    --sayw:min(38vw,700px,calc(var(--quiet-width) - 2 * var(--gutter)));
    width:var(--sayw);
    margin-left:calc((var(--quiet-width) - var(--sayw)) / 2);
    margin-right:0;
  }
}
@media(max-width:859px) {
  .duo .ph.a { aspect-ratio:3/2; }
  .background-art::before {
    --art-height:94lvh;
    top:90px;
    background-size:auto var(--art-height);
    mask-image:linear-gradient(to bottom,transparent,#000 24px,#000 calc(var(--art-height) - 120px),transparent var(--art-height));
  }
  .hero { align-items:end; }
  .hero .in { background:rgba(244,239,227,.76); margin-bottom:64px; }
  .water .say { margin-inline:auto; }
}

/* Readable running copy and controls across all four pages.
   Keep the existing display headings, quotations and large introductions. */
body { font-size:1.125rem; }
.box p, .duo .lead p, .duo .whyb p,
.pair p, .fact p, .ask p, .note p, .close .ask p {
  font-size:1.125rem;
  line-height:1.6;
}
.label, .phead .label, .mast .where,
.mast nav, .footbar nav, .footbar .fine, .foot,
.box .price small {
  font-size:.8125rem;
}
.btn, .quiet, .field label, .field legend { font-size:.875rem; }
.choices label { font-size:1rem; }
input[type=text], input[type=email], textarea { font-size:1.125rem; }
@media(max-width:380px) {
  .mast nav, .footbar nav { column-gap:12px; }
}

/* Phone navigation opens below the mark and its generously sized menu button. */
.menu-toggle { display:none; }
@media(max-width:859px) {
  .mast.menu-ready { grid-template-columns:minmax(0,1fr) auto; }
  .mast.menu-ready .menu-toggle {
    display:grid;
    place-items:center;
    width:48px;
    height:44px;
    justify-self:end;
    padding:0;
    border:1px solid rgba(156,127,69,.65);
    border-radius:0;
    background:transparent;
    color:var(--cream);
    cursor:pointer;
  }
  .mast.menu-ready .menu-toggle:hover { background:rgba(244,239,227,.08); }
  .menu-toggle path { transform-origin:center; transition:transform .18s ease,opacity .18s ease; }
  .menu-toggle .menu-top { transform-origin:12px 5px; }
  .menu-toggle .menu-bottom { transform-origin:12px 19px; }
  .menu-open .menu-top { transform:translateY(7px) rotate(45deg); }
  .menu-open .menu-middle { opacity:0; }
  .menu-open .menu-bottom { transform:translateY(-7px) rotate(-45deg); }
  .mast.menu-ready nav { display:none; }
  .mast.menu-open nav {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding:12px 0 6px;
    border-top:1px solid rgba(244,239,227,.2);
  }
  .mast.menu-open nav a {
    display:flex;
    align-items:center;
    min-height:48px;
    padding:10px 14px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .menu-toggle path { transition:none; }
}
