:root { --cream: #FBFDF7; --cream-veil: #FBFDF7b3; --ink: #121A13; --ink-hair: #121A1326; --ink-soft: #121A131f; --muted: #666D62; --white: #FFFFFF; --hair: #CFD8BE; --coral: #FF6B57; --cream-d: #E4EBD9; --font: 'Outfit', 'Helvetica Neue', sans-serif; --r-key: 6px; --r-sheet: 12px; }
/* humelodica.app home — the soundwave as the page (Ness 7 Oct). Colours, radii and type come ONLY from the app's tokens:
   tools/build-site-hero.mjs writes the :root block above this file from site-src/vendor/tokens.js (copied verbatim). */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500-latin.woff2) format('woff2'); }

html, body { margin: 0; min-height: 100%; background: var(--cream); color: var(--ink); font-family: var(--font); -webkit-text-size-adjust: 100%; }
body { overscroll-behavior: none; }
.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* top: the app icon and name (top left), the App Store (top right) */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) max(16px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px)); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 9px; display: block; flex-shrink: 0; }
.brand h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.1; }
.brand p { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.2; }
.store { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; border: 1.5px solid var(--ink); border-radius: var(--r-key); padding: 5px 11px 6px; line-height: 1.1; }
.store span:first-child { font-size: 10.5px; color: var(--muted); }
.store span:last-child { font-size: 15px; font-weight: 600; letter-spacing: -0.1px; }

/* the stage: the whole song across the page, nothing behind it */
.hero { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.stage { position: relative; flex: 1; min-height: 240px; cursor: pointer; outline: none; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.stage:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); border-radius: var(--r-sheet); }
.wave { position: absolute; z-index: 1; }
.glow { position: absolute; top: 8%; bottom: 8%; left: 0; width: 340px; opacity: 0; border-radius: 50%; filter: blur(18px); will-change: transform, opacity; pointer-events: none; }
.line-wrap { position: absolute; inset: 0; z-index: 3; pointer-events: none; transition: opacity .3s ease; }
.line { position: absolute; left: 0; top: 0; width: 3px; height: 0; border-radius: 1.5px; pointer-events: none; will-change: transform, height, opacity; }
/* the six line characters (?line=) — the default .line is the 3 px ink line */
.line-hair { width: 1px; }
.line-pin { width: 2px; border-radius: 1px; overflow: visible; }
.line-pin::before, .line-pin::after { content: ''; position: absolute; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: inherit; }
.line-pin::before { top: -3px; } .line-pin::after { bottom: -3px; }
.line-soft { width: 3px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28%, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 28%, #000 72%, transparent 100%); }
.line-light { width: 4px; border-radius: 2px; box-shadow: 0 0 0 1px var(--ink-hair), 0 0 10px 1px var(--ink-soft); }
.line-coral { width: 3px; }
.line-halo { width: 2px; box-shadow: 0 0 0 2px var(--cream); }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.spot { position: absolute; inset: 0; background: var(--cream); opacity: 0.62; pointer-events: none; }
.beam { position: absolute; left: 0; top: 0; width: 60px; pointer-events: none; border-radius: 30px; filter: blur(6px); will-change: transform, opacity, height;
  background: linear-gradient(to right, transparent 0, var(--white) 50%, transparent 100%); }
.bead { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--white); pointer-events: none; will-change: transform; }
.np { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.15; }
.np-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-time { font: 500 11px/1 'IBM Plex Mono', ui-monospace, monospace; color: var(--muted); }
.np-bar { padding: 0 6px 0 2px; min-width: 96px; }
.np-fixed { width: 150px; min-width: 150px; flex-shrink: 0; }   /* a name of any length takes the same room, so nothing beside it moves */
.np-above { display: flex; align-items: baseline; gap: 10px; padding-left: 4px; min-width: 0; max-width: 100%; margin-bottom: -2px; }
.np-above .np-name { font-size: 13px; }
.np-line { position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; will-change: transform; }


/* the bar: a small supplementary menu grouped by type — play | genres | randomiser (and Energy | Mood | Lead above it,
   once those songs exist) — bottom LEFT, the links bottom RIGHT (Ness 7 Oct) */
.bar { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px;
  padding: 8px max(20px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
.controls { min-width: 0; }
.ctl { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ctl-line { display: flex; align-items: center; gap: 14px; min-width: 0; max-width: 100%; }
.hero-bar button.bare, .bar button.bare { appearance: none; -webkit-appearance: none; margin: 0; font: inherit; -webkit-tap-highlight-color: transparent; }
.bar button.bare:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.playkey { position: relative; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 1px solid; background: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-sizing: border-box; }
.playkey .ring { position: absolute; inset: -1px; width: 44px; height: 44px; pointer-events: none; }
.playkey .ring circle { transition: stroke-dashoffset .25s linear; }
.seg { min-width: 0; }
.seg button { filter: none !important; }   /* no drop shadow on the chosen segment (Ness 7 Oct) — SegRow sets it inline */
.newkey { white-space: nowrap; transition: transform .14s cubic-bezier(.22,1,.36,1), box-shadow .14s cubic-bezier(.22,1,.36,1); }
.newkey:active { transform: translateY(2px); box-shadow: 0 0 0 var(--ink) !important; }   /* the key presses down onto its shadow (the app's tkey press) */
.seg-genre { width: 600px; }
.seg-energy { width: 176px; } .seg-mood { width: 156px; } .seg-lead { width: 360px; }
.glabel { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.corner { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; font-size: 12px; line-height: 1.4; color: var(--muted); padding-bottom: 12px; text-align: right; }   /* margin-left auto: when the bar wraps, the links stay bottom RIGHT */
.corner .links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
.corner a { color: inherit; text-decoration: none; }
.corner a:hover, .corner a:focus-visible { color: var(--ink); text-decoration: underline; }
.corner .mail { user-select: all; }

/* the 'no AI' line (Ness 8 Oct: 'we DO need a line… to say not ai'; of four spots she chose this one and the making screen's;
   then 'remove … Hum a tune, hear it become a song … just the AI line'): above the links, in the flow (out of it, it hung over
   the buttons wherever the bar wraps, 760–1366 px) */
.ai-line { margin: 0; }
@media (max-width: 1099px) { .seg-genre { width: 520px; } .seg-lead { width: 320px; } }
/* phones and small windows: the menu takes the width, the genres show their glyphs (the words stay their names), links below */
@media (max-width: 759px) {
  .bar { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 4px; }
  .ctl, .ctl-line { width: 100%; }
  .ctl-line { gap: 10px 8px; flex-wrap: wrap; }   /* play + the genres share a line; New melody takes the next when there's no room */
  .seg-genre { width: auto; flex: 1 1 200px; }
  .gword { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .seg-energy, .seg-mood { width: auto; flex: 1; } .seg-lead { width: 100%; }
  .ctl-line:first-child:has(.seg-lead) { flex-wrap: wrap; }
  .corner { margin-left: 0; align-items: flex-start; text-align: left; padding-bottom: 0; } .corner .links { justify-content: flex-start; }
}
@media (max-width: 359px) { .brand p { display: none; } }
@media (prefers-reduced-motion: reduce) { .playkey .ring circle, .line-wrap { transition: none; } }

/* HUM A SONG — the app's own record page, full screen (site-src/hum.jsx; the app's screen at H:15384). Opaque from its first
   frame; cream while it waits, the app's record coral while it records, its render screen while the song is made. */
.hum { position: fixed; inset: 0; z-index: 1000; box-sizing: border-box; color: var(--ink); font-family: var(--font); transition: background-color .3s ease; }
.hum button.bare { appearance: none; -webkit-appearance: none; margin: 0; font: inherit; -webkit-tap-highlight-color: transparent; }
.hum button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 50%; }
.hum-page { display: flex; flex-direction: column; overflow: hidden; padding: calc(14px + env(safe-area-inset-top, 0px)) 24px calc(env(safe-area-inset-bottom, 0px)); }
.hum-page canvas { margin: 0 -24px; width: calc(100% + 48px) !important; }   /* the pitch line runs edge to edge, as in the app */
.hum-top { min-height: 48px; display: flex; align-items: center; justify-content: space-between; }
.hum-back { width: 40px; height: 40px; margin-left: -8px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hum-making { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; background: var(--cream); }
@keyframes haloRipple { 0% { transform: scale(0.5); opacity: 0.55 } 100% { transform: scale(2); opacity: 0 } }   /* the app's: the record button's soft rings */
@keyframes countPop { from { transform: scale(1.5); opacity: 0.2; } to { transform: scale(1); opacity: 1; } }   /* the app's count-in pop (H, the global keyframes) */
@keyframes recBlink { 0%, 100% { opacity: 1 } 50% { opacity: 0.25 } }   /* the app's: the ● Recording dot */
@keyframes blobGrow { 0% { transform: scaleY(0.05); opacity: 0 } 55% { opacity: 1 } 100% { transform: scaleY(1); opacity: 1 } }   /* the app's: its build blobs grow in */
@media (prefers-reduced-motion: reduce) { .hum { transition: none; } }
