/* HueWeddings glass and accent colour (owner's choice 2026-11-14: "Moments" and "Antique gold").
   Chosen from the preview in dev/glass-preview. These are code: they cannot be changed from the dashboard.

   Glass controls   what floats over the page: the phone tab bar, the header, the Packages menu, the sheets,
                    the photo controls on the hero, Tint and its tag, the photo viewer's buttons.
   Glass moments    four showpiece surfaces over soft fields of the brand colours ("hue light"): the Hue card,
                    the quiz, the estimate, the closing invitation.
   glass.js marks the elements (class "lg" and a kind); everything here keys off that, so with the script
   absent or the Studio editing, the page looks as it did before.

   Two kinds of glass, for a reason:
     real glass  (backdrop-filter) only on things that float over moving content, and they are small.
     quiet glass (no backdrop-filter) on things that scroll with the page. Over a soft colour field a
                 blurred backdrop and a translucent fill look the same, and the fill costs nothing.

   The cinematic gradients and overlay text on photographs are not touched, and no glass is placed
   behind text on a photograph. */

/* ------------------------------------------------------------------ material */
:root{
  --lg-tint:250 247 246; --lg-ink:46 40 44; --lg-shade:46 40 44;
  --lg-rim:255 255 255; --lg-rim-a:.86; --lg-edge-a:.4;
}
:root[data-theme="dark"]{--lg-tint:52 45 50; --lg-ink:242 236 234; --lg-shade:0 0 0; --lg-rim-a:.3; --lg-edge-a:.16}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--lg-tint:52 45 50; --lg-ink:242 236 234; --lg-shade:0 0 0; --lg-rim-a:.3; --lg-edge-a:.16}}

/* A piece the site has not positioned becomes the frame for its own highlight. :where() carries no weight, so any
   position the site gives the piece, at any screen width, still wins (the phone hero's sheet and handle are absolute
   only at phone width; pinning them from script broke the hero when a wide page was narrowed). */
:where(.lg){position:relative}
.lg{
  --a:.62; --blur:22px; --sat:1.8; --bri:1.04;
  isolation:isolate;
  background:
    linear-gradient(180deg, rgb(var(--lg-rim) / calc(var(--lg-rim-a) * .34)) 0%, rgb(var(--lg-rim) / .04) 44%, rgb(var(--lg-rim) / calc(var(--lg-rim-a) * .16)) 100%),
    rgb(var(--lg-tint) / var(--a)) !important;
  -webkit-backdrop-filter:blur(var(--blur)) saturate(var(--sat)) brightness(var(--bri)) !important;
  backdrop-filter:blur(var(--blur)) saturate(var(--sat)) brightness(var(--bri)) !important;
  border-color:transparent !important;
  box-shadow:
    inset 0 0 0 1px rgb(var(--lg-rim) / var(--lg-edge-a)),
    inset 0 1.5px 0 0 rgb(var(--lg-rim) / var(--lg-rim-a)),
    inset 0 -1px 0 0 rgb(var(--lg-rim) / calc(var(--lg-rim-a) * .3)),
    inset 0 -12px 20px -14px rgb(var(--lg-shade) / .16),
    0 16px 36px -18px rgb(var(--lg-shade) / .46),
    0 2px 8px -3px rgb(var(--lg-shade) / .14) !important;
}
/* the specular highlight: a soft light that sits on the glass, and follows the cursor on a computer */
.lg > .lg-s{position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;overflow:hidden;
  background:
    radial-gradient(60% 90% at var(--lx,18%) var(--ly,-10%), rgb(var(--lg-rim) / calc(var(--lg-rim-a) * .5)), transparent 62%),
    radial-gradient(40% 60% at 88% 118%, rgb(var(--lg-rim) / calc(var(--lg-rim-a) * .2)), transparent 70%);
  transition:opacity .4s}
/* quiet glass: scrolls with the page, so no backdrop filter at all */
.lg.lg-quiet{--a:.5; -webkit-backdrop-filter:none !important; backdrop-filter:none !important;
  background:
    linear-gradient(155deg, rgb(var(--lg-rim) / calc(var(--lg-rim-a) * .62)) 0%, rgb(var(--lg-rim) / calc(var(--lg-rim-a) * .2)) 46%, rgb(var(--lg-rim) / calc(var(--lg-rim-a) * .34)) 100%),
    rgb(var(--lg-tint) / var(--a)) !important}
/* smoked glass for white icons and labels over photographs */
.lg.lg-smoke{--a:.46; --lg-tint:36 30 34; --lg-rim-a:.5; --lg-edge-a:.3; color:#fff}
/* clear glass on an already dark surface (the photo viewer) */
.lg.lg-clear{--a:.16; --lg-tint:255 255 255; --lg-rim-a:.5; --lg-edge-a:.28; --blur:14px}
/* press: glass gives a little, like a drop of water */
.lg.ux-press,.lg:active{filter:brightness(1.04)}

/* true refraction at the rim, where the browser can bend the backdrop (Chromium on a computer) */
html.lg-refract .lg[data-lgf]{-webkit-backdrop-filter:var(--lgf) blur(calc(var(--blur) * .35)) saturate(var(--sat)) brightness(var(--bri)) !important;
  backdrop-filter:var(--lgf) blur(calc(var(--blur) * .35)) saturate(var(--sat)) brightness(var(--bri)) !important}

/* ------------------------------------------------------------------ level 1: glass controls */
/* phone tab bar: a floating glass capsule with ink labels (62% tint keeps labels readable over any photo) */
.tabbar.lg{--a:.8; border-radius:26px}
.tabbar.lg a,.tabbar.lg button{color:rgb(var(--lg-ink) / .8)}
.tabbar.lg .on{color:rgb(var(--lg-ink))}
.tabbar.lg .pillx{background:rgb(var(--lg-rim) / calc(var(--lg-rim-a) * .62));
  box-shadow:inset 0 1px 0 rgb(var(--lg-rim) / var(--lg-rim-a)),inset 0 0 0 1px rgb(var(--lg-rim) / .4),0 6px 14px -8px rgb(var(--lg-shade) / .4)}
/* header: the same material, edge to edge */
header.site.lg{--a:.86; border-bottom:0 !important;
  box-shadow:inset 0 -1px 0 rgb(var(--lg-rim) / calc(var(--lg-rim-a) * .7)),0 12px 30px -24px rgb(var(--lg-shade) / .5) !important}
header.site.lg > .lg-s{display:none}
/* sheets */
.mega.lg{--a:.86; --blur:28px; box-shadow:inset 0 -1px 0 rgb(var(--lg-rim) / .6),0 40px 60px -44px rgb(var(--lg-shade) / .5) !important}
.mega.lg > .lg-s,.morepanel.lg > .lg-s{display:none}
.morepanel.lg{--a:.86; --blur:26px}
.ps .sheet.lg{--a:.86; --blur:26px}
.ps .sheet.lg > .lg-s{display:none}
/* the Explore pill on the phone hero */
.ps-handle.lg{--a:.64; overflow:visible}
/* photo controls on the computer hero: smoked glass, white icons */
.sbtn.lg{border:0 !important}
.sbtn.lg:hover{--a:.6}
/* Tint */
#tbInvite.lg{--a:.92}
.tb-launch.lg{--a:.56; border:0 !important}
/* small things */
.toast.lg{--a:.74; --lg-tint:36 30 34; --lg-rim-a:.4; color:#FAF7F6}
.lightbox button.lg{color:#fff}

/* ------------------------------------------------------------------ level 2: glass moments */
/* hue light: soft fields of the brand's own colours, painted once behind a section */
section.lg-light{position:relative;isolation:isolate;overflow:clip}
section.lg-light::before{content:"";position:absolute;inset:0 -4%;z-index:-1;pointer-events:none;
  background:
    radial-gradient(42% 56% at 16% 28%, color-mix(in srgb,var(--blush) 92%,transparent), transparent 72%),
    radial-gradient(38% 52% at 84% 22%, color-mix(in srgb,var(--lilac) 88%,transparent), transparent 72%),
    radial-gradient(46% 58% at 62% 88%, color-mix(in srgb,var(--sage) 88%,transparent), transparent 72%),
    radial-gradient(30% 42% at 30% 84%, color-mix(in srgb,var(--acc,var(--champ)) 26%,transparent), transparent 72%)}
section.lg-light.lg-light-b::before{background:
    radial-gradient(44% 58% at 80% 30%, color-mix(in srgb,var(--blush) 92%,transparent), transparent 72%),
    radial-gradient(40% 54% at 14% 70%, color-mix(in srgb,var(--sage) 88%,transparent), transparent 72%),
    radial-gradient(36% 48% at 50% 8%, color-mix(in srgb,var(--lilac) 84%,transparent), transparent 72%),
    radial-gradient(28% 40% at 70% 92%, color-mix(in srgb,var(--acc,var(--champ)) 24%,transparent), transparent 72%)}
section.lg-light{background:transparent !important}
.huecard.lg{--a:.56}
.lg.lg-slab{border-radius:28px;padding:clamp(28px,5vw,56px) clamp(20px,5vw,56px)}

/* ------------------------------------------------------------------ accent colour: antique gold */
/* The accent is for action and for small signals. Champagne stays for quiet detail.
   --acc text and fills, --acc-h hover, --acc-on text on a fill, --acc-soft a wash.
   White on #84652F is 5.4 to 1; #84652F on porcelain is 5.1 to 1. Evening mode uses the pale form with ink text. */
html.acc-gold{--acc:#84652F;--acc-h:#735727;--acc-on:#FFFFFF;--acc-soft:#F1E8D6}
html.acc-gold[data-theme="dark"]{--acc:#DDBE85;--acc-h:#E8CFA3;--acc-on:#2E282C;--acc-soft:#453A25}
@media (prefers-color-scheme: dark){html.acc-gold:not([data-theme="light"]){--acc:#DDBE85;--acc-h:#E8CFA3;--acc-on:#2E282C;--acc-soft:#453A25}}
/* the one action that matters: every "Check your date" button */
html.acc-gold a.btn[href="#enquire"]:not(.ghost):not(.soft),
html.acc-gold .sticky-cta,
html.acc-gold .ps .acts a[href="#enquire"]{background:var(--acc) !important;border-color:var(--acc) !important;color:var(--acc-on) !important;
  box-shadow:0 10px 24px -14px color-mix(in srgb,var(--acc) 80%,transparent)}
html.acc-gold a.btn[href="#enquire"]:not(.ghost):not(.soft)::before{display:none}
html.acc-gold a.btn[href="#enquire"]:not(.ghost):not(.soft):hover{background:var(--acc-h) !important;border-color:var(--acc-h) !important;color:var(--acc-on) !important}
/* small signals */
html.acc-gold .link{text-decoration-color:var(--acc)}
html.acc-gold .link:hover{color:var(--acc)}
html.acc-gold nav.main a.on{border-bottom-color:var(--acc)}
html.acc-gold .ux-navline{background:var(--acc)}
html.acc-gold :focus-visible{outline-color:var(--acc)}
html.acc-gold ::selection{background:var(--acc-soft);color:var(--ink)}
html.acc-gold .chip[aria-pressed="true"]{background:var(--acc);border-color:var(--acc);color:var(--acc-on)}
html.acc-gold details.qa summary::after{color:var(--acc)}
html.acc-gold details.qa summary:hover{color:var(--acc)}
html.acc-gold label.f:focus-within{color:var(--acc)}
html.acc-gold label.f :is(input,select,textarea):focus{border-color:var(--acc);box-shadow:0 0 0 4px color-mix(in srgb,var(--acc) 18%,transparent)}
html.acc-gold .tabbar a[href="#enquire"] svg,html.acc-gold .tabbar [data-t="book"] svg{color:var(--acc)}
html.acc-gold .ux-thread{background:linear-gradient(90deg,#DDB9B2,#A9BDA6 34%,#B5ABCF 64%,var(--acc))}
html.acc-gold .story-card:hover h3{color:var(--acc)}
html.acc-gold .promise.rv::after{background:var(--acc)}
html.acc-gold .kicker{color:var(--acc)}

/* the highlight exists only on glass */
.lg-s{display:none}
.lg > .lg-s{display:block}

/* ---- details ---- */
/* tab bar labels and icons are ink on light glass in every state (the More tab's close mark was white) */
.tabbar.lg a,.tabbar.lg button,.tabbar.lg a *,.tabbar.lg button *{color:rgb(var(--lg-ink) / .8) !important}
.tabbar.lg .on,.tabbar.lg .on *,.tabbar.lg [aria-expanded="true"],.tabbar.lg [aria-expanded="true"] *{color:rgb(var(--lg-ink)) !important}
/* Tint's tag and button keep light glass in evening mode too: their own text is always dark */
#tbInvite.lg,.tb-launch.lg{--lg-tint:250 247 246; --lg-rim-a:.86; --lg-edge-a:.4; --lg-shade:46 40 44}
:root[data-theme="dark"] #tbInvite.lg,:root[data-theme="dark"] .tb-launch.lg{--a:.92}
/* the tag's little pointer was a solid white diamond: on glass it is not needed */
#tbInvite.lg::after,#tbInvite.lg::before{display:none !important}
body.more-open .tabbar.lg #tabMore,body.more-open .tabbar.lg #tabMore *{color:rgb(var(--lg-ink)) !important}
html.acc-gold .tabbar a[href="#enquire"] svg,html.acc-gold .tabbar.lg a[href="#enquire"] svg,html.acc-gold .tabbar.lg a[href="#enquire"] svg *{color:var(--acc) !important}
/* hue light fades in and out at the section's top and bottom, so it never ends in a hard line */
section.lg-light::before{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 16%,#000 84%,transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 16%,#000 84%,transparent 100%)}
/* smoked glass, second pass: clearer, with a droplet's top light and under-shadow, so it reads as glass and not a grey disc */
.lg.lg-smoke{--a:.58; --lg-tint:28 24 26; --sat:1.5; --bri:.8; --blur:14px;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / .42),
    inset 0 2px 1px -1px rgb(255 255 255 / .9),
    inset 0 7px 12px -7px rgb(255 255 255 / .5),
    inset 0 -7px 12px -6px rgb(0 0 0 / .3),
    0 8px 18px -8px rgb(0 0 0 / .45) !important}
.lg.lg-smoke svg,.lg.lg-smoke{filter:none}
.lg.lg-smoke > :not(.lg-s){filter:drop-shadow(0 1px 1.5px rgb(0 0 0 / .5))}
.sbtn.lg{text-shadow:0 1px 2px rgb(0 0 0 / .5)}

/* Touch devices get "lite" glass (measured 2026-11-14 in mobile Safari, same slow drag and three flicks:
   the site without glass 2 late frames, full recipe 6, lite 3). One small plain blur behind the bars and
   sheets, nothing live behind Tint. The page head sets lg-lite on touch screens. */
html.lg-lite .lg:not(.lg-quiet){-webkit-backdrop-filter:blur(10px) !important;backdrop-filter:blur(10px) !important}
html.lg-lite :is(#tbInvite,.tb-launch,.ps-handle).lg{-webkit-backdrop-filter:none !important;backdrop-filter:none !important;--a:1 !important}

/* reduce motion: the highlight stays where it is */
@media (prefers-reduced-motion: reduce){.lg > .lg-s{transition:none !important}}

/* Old browsers that cannot blur what is behind an element (Chrome before 2019, Firefox on Android before mid-2022):
   the glass becomes a solid surface, so page text never shows through a bar, a sheet or Tint's tag. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .lg:not(.lg-quiet):not(.lg-smoke):not(.lg-clear){--a:.97 !important}
  .lg.lg-smoke{--a:.62 !important}
  .lg.lg-clear{--a:.3 !important}
}

/* ---- from the staging audit (2026-11-14): measured with dev/phone-audit/contrast.js ---- */
/* evening mode: dark glass under the bars is more solid, so light labels hold over a white photograph */
:root[data-theme="dark"] :is(.tabbar,header.site,.mega,.morepanel,.ps .sheet).lg{--a:.94}
:root[data-theme="dark"] .tabbar.lg .pillx{background:rgb(255 255 255 / .1)}
/* quiet glass in evening mode carries less white, so the page's muted grey text keeps its contrast on it */
:root[data-theme="dark"] .lg.lg-quiet:not(.huecard){--lg-rim-a:.1; --lg-tint:42 36 40}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) :is(.tabbar,header.site,.mega,.morepanel,.ps .sheet).lg{--a:.94}
  :root:not([data-theme="light"]) .tabbar.lg .pillx{background:rgb(255 255 255 / .1)}
  :root:not([data-theme="light"]) .lg.lg-quiet:not(.huecard){--lg-rim-a:.1; --lg-tint:42 36 40}
}
/* the Hue card's own text is always dark (it is a printed card), so the card stays light in evening mode */
.huecard.lg{--lg-tint:255 253 252; --lg-rim:255 255 255; --lg-rim-a:.86; --lg-edge-a:.4; --lg-shade:46 40 44; --lg-ink:46 40 44}
:root[data-theme="dark"] .huecard.lg{--a:.95}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .huecard.lg{--a:.95}}
/* the small gold label keeps 4.5 to 1 over the colour fields */
html.acc-gold section.lg-light .kicker{color:var(--acc-h)}
/* the highlight on the photo controls is gentler, so it does not wash out the icon */
.lg.lg-smoke > .lg-s{opacity:.45}
