/* Huey website: shared colour theme for every page (home, press kit, dev log).
   One source of truth: change a colour here and all pages follow. Light is the default; dark follows the
   system unless the footer toggle set data-theme on <html>. Pages may add their own aliases on top
   (e.g. --card, --panel) but must not redefine these. */
:root{
  --gutter:20px;
  /* LIGHT (default): the Figma tans */
  --cream:#f3e6d9; --cream-dark:#ddccbc; --ink:#000; --grey:#626262; --grey-strong:#3c3c3c; --foot-head:#8f7b6a;
  --mb-bg:rgba(247,238,229,.78); --mb-bg-hover:rgba(250,244,238,.92); --mb-border:rgba(122,101,83,.28); --mb-ink:#6f5b4b;
  --mb-shadow:0 8px 20px -12px rgba(70,45,25,.45); --foot-icon:#6f5b4b; --foot-icon-hover:#4d3d31;
  --rule:var(--foot-head); --stroke-brown:#7a6553;
  --svg-ink:none; --mesh-boost:1; color-scheme:light; --theme:light;
  --display:'Baloo Bhai 2',system-ui,sans-serif;
  --num:'Baloo Bhai 2',system-ui,sans-serif;
  --body:'Andika',system-ui,sans-serif;
}
/* DARK: same warm family, roasted down. */
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){
  --cream:#1f1813; --cream-dark:#110c09; --ink:#efe3d6; --grey:#a59789; --grey-strong:#e3d6c8; --foot-head:#7c6f63;
  --mb-bg:rgba(30,22,36,.55); --mb-bg-hover:rgba(30,22,36,.72); --mb-border:rgba(255,255,255,.35); --mb-ink:#fff;
  --mb-shadow:0 8px 20px -10px rgba(0,0,0,.5); --foot-icon:var(--grey); --foot-icon-hover:var(--grey-strong);
  --rule:rgba(243,230,217,.16); --stroke-brown:#3e2d22; --svg-ink:invert(1) brightness(.88); --mesh-boost:1.6; color-scheme:dark; --theme:dark; } }
:root[data-theme="dark"]{
  --cream:#1f1813; --cream-dark:#110c09; --ink:#efe3d6; --grey:#a59789; --grey-strong:#e3d6c8; --foot-head:#7c6f63;
  --mb-bg:rgba(30,22,36,.55); --mb-bg-hover:rgba(30,22,36,.72); --mb-border:rgba(255,255,255,.35); --mb-ink:#fff;
  --mb-shadow:0 8px 20px -10px rgba(0,0,0,.5); --foot-icon:var(--grey); --foot-icon-hover:var(--grey-strong);
  --rule:rgba(243,230,217,.16); --stroke-brown:#3e2d22; --svg-ink:invert(1) brightness(.88); --mesh-boost:1.6; color-scheme:dark; --theme:dark; }

/* Shared panel look: the home page's frosted mesh card (page colour showing through a soft rainbow mesh). */
.theme-panel{position:relative;isolation:isolate;background:transparent}
.theme-panel::before{content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;
  background:url(mesh-gradient.webp) center/100% 100% no-repeat;opacity:min(1, calc(.2 * var(--mesh-boost)))}
/* Shared headline look: white letters with the solid brown outline. */
.theme-headline{color:#fff;font-family:var(--display);font-weight:400;paint-order:stroke fill;-webkit-text-stroke:var(--sw,.16em) var(--stroke-brown)}

/* Shared inner-page header (dev log, press kit): logo left linking home, title + intro right; stacked and centred on phones.
   The home page keeps its own hero. */
.page-head{box-sizing:border-box;width:min(1120px,calc(100% - 40px));margin:0 auto;padding:clamp(84px,9vw,108px) 0 clamp(20px,3vw,32px);
  display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(24px,4vw,48px);align-items:center;text-align:left}
.page-head .ph-logo{display:block;line-height:0;border-radius:16px}
.page-head .ph-logo img{display:block;width:clamp(317px,37.4vw,432px);height:auto;max-width:none}   /* 20% bigger, then 20% more (Mitch, Nov 25) */
.page-head .ph-logo:focus-visible{outline:3px solid var(--mb-ink);outline-offset:4px}
.ph-kicker{margin:0 0 6px;font:700 15px/1.3 var(--body);color:var(--grey)}
.ph-title{margin:0;font-family:var(--display);font-weight:400;font-size:clamp(44px,5.8vw,72px);line-height:1;color:#fff;
  paint-order:stroke fill;-webkit-text-stroke:.14em var(--stroke-brown)}
.ph-lede{margin:10px 0 0;max-width:58ch;font-size:19px;line-height:1.45;color:var(--grey)}
.ph-by{display:flex;align-items:center;gap:10px;margin-top:14px;font-size:15px;color:var(--grey)}
.ph-by img{width:34px;height:34px;border-radius:50%;image-rendering:pixelated}
.page-head .ph-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;justify-content:flex-start}
@media (max-width:760px){
  .page-head{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;gap:16px}
  .page-head .ph-logo img{width:min(260px,70vw)}
  .ph-lede{margin-left:auto;margin-right:auto}
  .ph-by,.page-head .ph-actions{justify-content:center}
}

/* Trailer: YouTube click-to-play facade (home + press kit) */
.yt-lite{position:absolute;inset:0;display:block;cursor:pointer;background:#000;overflow:hidden}
.yt-lite img{width:100%;height:100%;object-fit:cover;display:block}
.yt-lite iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.yt-lite{background:transparent}   /* the cover art has a transparent background: the card shows through; YouTube's player brings its own black */
.yt-play{position:absolute;left:50%;top:50%;width:92px;height:92px;margin:-46px 0 0 -46px;border-radius:50%;background:rgba(62,45,34,.82);box-shadow:0 0 0 4px #fff,0 8px 24px rgba(0,0,0,.35);transition:transform .2s,background .2s}
.yt-play::after{content:"";position:absolute;left:36px;top:27px;border-style:solid;border-width:19px 0 19px 30px;border-color:transparent transparent transparent #fff}
.yt-lite:hover .yt-play,.yt-lite:focus-visible .yt-play{transform:scale(1.08);background:rgba(62,45,34,.95)}
.yt-lite:focus-visible{outline:4px solid #fff;outline-offset:-4px}

/* Buttons and pills: their labels can't be selected or long-pressed into a text menu (Mitch, Nov 25).
   Form fields inside a pill stay selectable, so typing and pasting an email still works. */
button,[role="button"],.btn,a.pill,.pill:not(:has(input)),.cta-step,.cta-try,.cta-dl,.cta-enter,.hero-cta,
.site-menu-btn,.music-btn,.power-btn,.split-toggle,.demo-dl,.pin,.shot-tag,.swatches button{
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,select{-webkit-user-select:text;user-select:text}

/* Press effect: page buttons shrink a little while held down, like the map pins (Mitch, Nov 25). Uses the separate
   `scale` property so it never fights a button's own transform; each transition list keeps that button's existing ones. */
html :is(.btn,button.copy,button.more,.demo-dl,.power-btn){transition:scale .15s cubic-bezier(.34,1.56,.64,1)}
html :is(.site-menu-btn,.music-btn){transition:background .2s,color .2s,transform .15s,scale .15s cubic-bezier(.34,1.56,.64,1)}
html .cta-enter{transition:background .15s,transform .15s,scale .15s cubic-bezier(.34,1.56,.64,1)}
html :is(a.pill,.hero-cta){transition:box-shadow .35s ease,-webkit-backdrop-filter .35s ease,backdrop-filter .35s ease,filter .15s ease,scale .15s cubic-bezier(.34,1.56,.64,1),translate .15s}
html :is(.btn,button.copy,button.more,.demo-dl,.power-btn,.site-menu-btn,.music-btn,.cta-enter,a.pill):active{scale:.94;transition-duration:.06s}
/* the open site menu's page links: same press (longhands, so the menu's staggered open delays are kept) */
html .site-menu a{transition-property:transform,opacity,background,scale;transition-duration:.22s,.22s,.2s,.15s;transition-timing-function:ease,ease,ease,cubic-bezier(.34,1.56,.64,1)}
html .site-menu.open a:nth-child(n):active{scale:.94;transition-duration:.22s,.22s,.2s,.06s;transition-delay:0s}
/* the big hero button: the Music button's feel (lift 1px on hover, a press of a couple of pixels), not a big shrink (Mitch) */
html .hero-cta:is([data-step="try"],[data-step="dl"]):hover{translate:0 -1px}
html .hero-cta:is([data-step="try"],[data-step="dl"]):active{scale:.985;translate:0 0;transition-duration:.06s}
@media (prefers-reduced-motion:reduce){ html :is(.btn,button.copy,button.more,.demo-dl,.power-btn,.site-menu-btn,.music-btn,.cta-enter,a.pill,.site-menu a):active{scale:.97} }
@media (prefers-reduced-motion:reduce){ html .site-menu a{transition:none} }
