/* Glaze Prime: shared styles for /prime and the site-wide touchpoints (touch.js).
   Porcelain and cream, plum ink, gold glow. Transform and opacity only for motion. */
@font-face { font-family: "Glaze Fraunces"; src: url(/fonts/glaze-fraunces.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Glaze Fraunces"; font-style: italic; src: url(/fonts/glaze-fraunces-italic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Glaze DM Sans"; src: url(/fonts/glaze-dmsans.woff2) format("woff2"); font-display: swap; font-weight: 100 900; }

:root {
  --gp-cream: #FDF8F0;
  --gp-porcelain: #FFFDF9;
  --gp-ink: #2D1928;
  --gp-plum: #4A1942;
  --gp-plum-2: #5B2A4A;
  --gp-muted: #6E5A66;
  --gp-gold: #C99A2E;
  --gp-gold-soft: #F6EAD0;
  --gp-line: rgba(74, 25, 66, .10);
  --gp-shadow: 0 1px 2px rgba(45, 25, 40, .06), 0 14px 32px -16px rgba(45, 25, 40, .28);
  --gp-ease: cubic-bezier(.2, .8, .2, 1);
  --gp-serif: "Glaze Fraunces", "Fraunces", Georgia, serif;
  --gp-sans: "Glaze DM Sans", "DM Sans", system-ui, -apple-system, sans-serif;
}

/* ---------- BonBon narrator (same look as the site's glz-nar, self-contained) ---------- */
.gp-nar { --m: 60px; display: flex; align-items: flex-end; gap: .55rem; width: fit-content; max-width: min(23rem, 100%); margin: 0 0 1rem; }
.gp-nar-btn { flex: none; width: var(--m); height: calc(var(--m) * 1.12); padding: 0; border: 0; background: none; cursor: pointer; animation: gp-bob 3.2s ease-in-out infinite; }
.gp-nar-btn img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(58, 42, 34, .22)); }
.gp-nar-bubble { position: relative; background: #fffaf3; color: var(--gp-plum); border: 1px solid rgba(91, 42, 74, .12); border-radius: 22px; padding: .62rem 1.7rem .62rem .95rem; box-shadow: 0 10px 22px -14px rgba(91, 42, 74, .45); font: 650 .88rem/1.35 var(--gp-sans); min-height: 2.4rem; transform-origin: 0 80%; opacity: 0; }
.gp-nar-bubble::before { content: ""; position: absolute; left: -6px; bottom: 14px; width: 12px; height: 12px; background: #fffaf3; border-left: 1px solid rgba(91, 42, 74, .12); border-bottom: 1px solid rgba(91, 42, 74, .12); transform: rotate(45deg); }
.gp-nar-text { margin: 0; }
.gp-nar-dots { display: none; gap: 5px; height: 1.2em; align-items: center; }
.gp-nar-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gp-plum); opacity: .35; animation: gp-dots 1.1s ease-in-out infinite; }
.gp-nar-dots i:nth-child(2) { animation-delay: .15s; } .gp-nar-dots i:nth-child(3) { animation-delay: .3s; }
.gp-nar.is-typing .gp-nar-bubble { opacity: 1; }
.gp-nar.is-typing .gp-nar-dots { display: inline-flex; }
.gp-nar.is-typing .gp-nar-text { display: none; }
.gp-nar.is-in .gp-nar-bubble { opacity: 1; animation: gp-pop .38s var(--gp-ease) both; }
.gp-nar-x { position: absolute; top: 4px; right: 6px; width: 22px; height: 22px; border: 0; background: none; color: rgba(91, 42, 74, .5); cursor: pointer; font-size: 1rem; line-height: 1; }
.gp-nar.is-away { display: none; }
.gp-nar.on-dark .gp-nar-bubble { box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .55); }
@keyframes gp-bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -4px, 0); } }
@keyframes gp-dots { 0%, 80%, 100% { transform: translateY(0); opacity: .3; } 40% { transform: translateY(-3px); opacity: 1; } }
@keyframes gp-pop { from { transform: scale(.92) translate3d(0, 6px, 0); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- shared bits ---------- */
.gp-pend { display: inline-block; font: 700 .62rem/1 var(--gp-sans); letter-spacing: .06em; text-transform: uppercase; color: #8a5a00; background: #fff1cf; border: 1px solid #f0d58f; border-radius: 99px; padding: 3px 7px; vertical-align: middle; }
.gp-glow { position: relative; isolation: isolate; }
.gp-glow::after { content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: 999px; background: radial-gradient(closest-side, rgba(201, 154, 46, .45), rgba(201, 154, 46, 0)); animation: gp-breathe 3.6s ease-in-out infinite; }
@keyframes gp-breathe { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }

/* ---------- site-wide touchpoints (touch.js) ---------- */
.gp-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .8rem .42rem .5rem; border-radius: 999px; background: linear-gradient(180deg, #fff, var(--gp-cream)); border: 1px solid rgba(201, 154, 46, .55); color: var(--gp-plum) !important; font: 700 .8rem/1 var(--gp-sans); text-decoration: none !important; box-shadow: 0 0 0 0 rgba(201, 154, 46, .5); animation: gp-ring 3.2s ease-out infinite; white-space: nowrap; }
.gp-pill i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6dc, var(--gp-gold)); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .12); }
.gp-pill b { color: var(--gp-gold); font-weight: 800; }
@keyframes gp-ring { 0% { box-shadow: 0 0 0 0 rgba(201, 154, 46, .45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(201, 154, 46, 0); } }

.gp-peek { position: fixed; left: 50%; bottom: calc(var(--gp-peek-lift, 0px) + max(12px, env(safe-area-inset-bottom))); z-index: 2147483000; text-align: left; margin: 0; box-sizing: border-box; width: min(420px, calc(100vw - 24px)); transform: translate3d(-50%, 140%, 0); opacity: 0; transition: transform .5s var(--gp-ease), opacity .3s; background: var(--gp-porcelain); border: 1px solid var(--gp-line); border-radius: 22px; box-shadow: 0 24px 48px -20px rgba(45, 25, 40, .45); padding: .8rem .9rem .9rem; display: grid; grid-template-columns: 52px 1fr; gap: .2rem .7rem; font-family: var(--gp-sans); color: var(--gp-ink); }
.gp-peek.is-up { transform: translate3d(-50%, 0, 0); opacity: 1; }
.gp-peek > img { grid-row: 1 / span 3; grid-column: 1; width: 52px; height: 58px; object-fit: contain; align-self: end; }
.gp-peek > *:not(img):not(.gp-x) { grid-column: 2; }
.gp-peek p { text-align: left; margin: 0; font-size: .86rem; line-height: 1.35; }
.gp-peek .gp-peek-h { font: 700 .95rem/1.25 var(--gp-sans); color: var(--gp-plum); padding-right: 1.4rem; }
.gp-peek .gp-peek-row { display: flex; gap: .5rem; align-items: center; margin-top: .45rem; flex-wrap: wrap; }
.gp-peek a.gp-go { background: var(--gp-plum); color: #fffaf3; border-radius: 999px; padding: .55rem .95rem; font-weight: 700; font-size: .84rem; text-decoration: none; }
.gp-peek button.gp-later { background: none; border: 0; color: var(--gp-muted); font: 600 .8rem var(--gp-sans); cursor: pointer; padding: .4rem; }
.gp-peek .gp-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.1rem; color: var(--gp-muted); cursor: pointer; width: 28px; height: 28px; }

.gp-card { font-family: var(--gp-sans); background: var(--gp-porcelain); border: 1px solid var(--gp-line); border-radius: 20px; padding: 1rem 1.1rem; box-shadow: var(--gp-shadow); color: var(--gp-ink); display: grid; gap: .35rem; margin: 1rem 0; }
.gp-card h4 { margin: 0; font: 600 1.15rem/1.2 var(--gp-serif); color: var(--gp-plum); }
.gp-card p { margin: 0; font-size: .9rem; line-height: 1.45; }
.gp-card a { color: var(--gp-plum); font-weight: 700; }
.gp-card .gp-k { font: 700 .68rem/1 var(--gp-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gp-gold); }

@media (prefers-reduced-motion: reduce) {
  .gp-nar-btn, .gp-glow::after, .gp-pill, .gp-nar-dots i { animation: none !important; }
  .gp-peek { transition: opacity .2s; }
}

/* Peek "Build my week": sparks, BonBon hop, card lifts away, plum fills from the button */
.gp-peek .gp-go { position: relative; overflow: visible; }
.gp-peek .gp-go:active { transform: scale(.96); }
.gp-spark { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: #f2c76b; transform: rotate(var(--a)); animation: gp-spark-out .6s cubic-bezier(.2,.8,.2,1) forwards; pointer-events: none; }
@keyframes gp-spark-out { to { transform: rotate(var(--a)) translateX(64px) scale(.3); opacity: 0; } }
.gp-peek.is-going > img { animation: gp-hop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes gp-hop { 40% { transform: translateY(-16px) rotate(-8deg); } }
.gp-peek.is-going { transition: transform .5s cubic-bezier(.6,0,.4,1) .15s, opacity .4s ease .25s; transform: translate3d(0, -24px, 0) scale(1.03) !important; opacity: 0 !important; }
.gp-fill { position: fixed; z-index: 2147483600; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #4A1942; transform: scale(0); transition: transform .55s cubic-bezier(.7,0,.3,1); pointer-events: none; }
.gp-fill.is-on { transform: scale(220); }
