/* Audora site-v8: tokens, base, shared components. Page-specific styles live in css/pages/<name>.css. */
:root {
  --ink: #0B1726; --cream: #FFFBF5; --paper: #FFFDF8;
  --gold: #FFC944; --gold-soft: #FFD66F; --gold-deep: #EBA800; --gold-ink: #855F00;
  --purple: #5C0EFF; --purple-fill: #7C3DFF; --purple-soft: #B795FF; --purple-pale: #CFB7FF;
  --navy: #3F61B8; --navy-deep: #2A4BA0; --navy-soft: #8EAAF2; --navy-pale: #B5C9FE;
  --ink-80: rgba(11,23,38,.8); --ink-75: rgba(11,23,38,.75); --ink-65: rgba(11,23,38,.65); --ink-12: rgba(11,23,38,.12);
  --cream-78: rgba(255,251,245,.78); --cream-16: rgba(255,251,245,.16);
  --serif: 'Fraunces', 'Noto Sans Devanagari', Georgia, serif;
  --sans: 'Inter', 'Noto Sans Devanagari', 'Noto Sans Tamil', 'Noto Sans Bengali', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Arabic', 'Noto Sans Malayalam', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
  --gutter: clamp(20px, 4.45vw, 64px);
  --maxw: 1440px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow-card: inset 0 1px 0 rgba(255,255,255,.9), 0 24px 60px -28px rgba(60,40,90,.28);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; position: relative; min-height: 100vh; font-family: var(--sans); font-size: 15px; line-height: 23px; color: var(--ink); background: transparent;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-synthesis: none; overflow-x: clip; }
/* Decorations (stickers) may hang past the right edge; the page itself must never scroll sideways. */
html { background: var(--cream); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--purple-fill); outline-offset: 3px; border-radius: 6px; }

/* Skip link: off screen until it takes keyboard focus. */
.skip-link { position: fixed; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 15px; font-weight: 500; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }
.noscript { max-width: 640px; margin: 80px auto; padding: 0 var(--gutter); font-size: 18px; line-height: 28px; }
.noscript a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- the sky ---- */
/* The canvas is a window a little taller than the screen that js/sky.js lays over the part of the page on screen. It is
   part of the page (absolute, not fixed), so the browser scrolls it with the content and the sky never trails a scroll. */
#sky-wrap { position: absolute; inset: 0; z-index: -2; overflow: hidden; overflow: clip; pointer-events: none; }
/* No transition on the canvas, ever: its move and its repaint must land in the same frame. (The reduced-motion rule at the
   foot of this file gives everything a .01ms transition, which would start the move one frame after the repaint.) */
#sky { position: absolute; left: 0; top: 0; width: 100%; height: 100vh; display: block; will-change: transform; transition-property: none; }
/* The paper grain is part of the page, not the screen: it scrolls with the sky. */
#grain { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none; opacity: .5; background: url(../assets/texture/grain-neutral.png) 0 0 / 256px 256px; }
.no-webgl #sky { display: none; }
.no-webgl body { background: var(--cream) url(../assets/texture/sky-dusk-to-night.jpg) 0 0 / 100% 175% no-repeat; }
.no-webgl body[data-sky="home"] { background-size: 100% 100%; }

/* ---- layout ---- */
#view { display: block; max-width: var(--maxw); margin: 0 auto; min-height: 70vh; transition: opacity .25s var(--ease); outline: none; }
#view.is-leaving { opacity: 0; }
.page { display: flex; flex-direction: column; }
.section { display: flex; flex-direction: column; gap: 14px; padding: 24px var(--gutter) 110px; position: relative; }
.row { display: flex; gap: 20px; }
.stack { display: flex; flex-direction: column; }

/* ---- type ---- */
.h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5.6vw, 80px); line-height: 1.06; letter-spacing: -.03em; font-variation-settings: 'opsz' 144, 'SOFT' 50; margin: 0; }
.h2 { font-family: var(--serif); font-weight: 340; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.15; font-variation-settings: 'opsz' 96; margin: 0; }
.h3 { font-family: var(--serif); font-weight: 340; font-size: 24px; line-height: 30px; margin: 0; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-80); margin: 0; max-width: 860px; }
.body { color: var(--ink-75); margin: 0; }
.meta { font-size: 13px; line-height: 18px; color: var(--ink-65); }
.kicker { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.big-number { font-family: var(--serif); font-weight: 300; font-size: clamp(84px, 9.6vw, 138px); line-height: .96; letter-spacing: -.04em; }
.on-dark { color: var(--cream); }
.on-dark .lead, .on-dark .body { color: var(--cream-78); }
.on-dark .kicker { color: var(--purple-pale); }

/* ---- buttons, links, chips ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 16px; line-height: 20px; font-weight: 500; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { height: 38px; padding: 0 18px; font-size: 15px; }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 10px 22px -10px rgba(235,168,0,.9); }
.btn--gold:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 14px 28px -10px rgba(235,168,0,1); }
.on-dark .btn--gold { background: var(--gold-soft); }
.btn--outline { border: 1px solid rgba(11,23,38,.28); color: var(--ink); }
.btn--outline:hover { background: rgba(255,255,255,.6); }
.on-dark .btn--outline { border-color: rgba(255,251,245,.55); color: var(--cream); background: rgba(255,251,245,.08); }
.btn--ink { background: var(--ink); color: var(--cream); }
.link { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.on-dark .link { color: var(--gold-soft); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.78);
  border: 1px solid rgba(11,23,38,.1); font-size: 15px; line-height: 20px; white-space: nowrap; transition: background-color .2s, border-color .2s, transform .2s var(--ease); }
button.chip:hover, a.chip:hover { transform: translateY(-1px); background: #fff; }
.chip--play { padding-left: 6px; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(124,61,255,.1); color: var(--purple); border: 1px solid rgba(124,61,255,.28); }

/* play disc: the standard play control. Add .is-playing (or body.is-playing with data-play) for the pause state. */
.play-disc { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); flex-shrink: 0; position: relative;
  transition: transform .2s var(--ease), box-shadow .2s; }
.play-disc:hover { transform: scale(1.06); box-shadow: 0 10px 24px -8px rgba(11,23,38,.6); }
.play-disc::before { content: ''; width: 0; height: 0; border-left: 11px solid var(--gold-soft); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.play-disc.is-playing::before { width: 12px; height: 14px; margin: 0; border: 0; border-left: 4px solid var(--gold-soft); border-right: 4px solid var(--gold-soft); }
.play-disc--sm { width: 26px; height: 26px; }
.play-disc--sm::before { border-left-width: 7px; border-top-width: 4.5px; border-bottom-width: 4.5px; margin-left: 2px; }
.play-disc--sm.is-playing::before { width: 8px; height: 9px; border-left-width: 3px; border-right-width: 3px; margin: 0; }
.play-disc--lg { width: 64px; height: 64px; }
.play-disc--gold { background: var(--gold-soft); }
.play-disc--gold::before { border-left-color: var(--ink); }
.play-disc--gold.is-playing::before { border-left-color: var(--ink); border-right-color: var(--ink); }

/* ---- cards ---- */
.card { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 20px; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-card); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.card--dark { background: var(--ink); border: 0; color: var(--cream); border-radius: 24px; padding: 56px 64px; box-shadow: 0 30px 80px -30px rgba(11,23,38,.65); backdrop-filter: none; }
.card--night { background: rgba(255,251,245,.07); border: 1px solid rgba(255,251,245,.16); color: var(--cream); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 24px 60px -30px rgba(0,0,0,.7); }
.hairline { height: 1px; background: var(--ink-12); border: 0; margin: 0; }
.cover { aspect-ratio: 2 / 3; border-radius: 10px; background: #1b2540 center / cover no-repeat; box-shadow: 0 18px 36px -18px rgba(11,23,38,.6); }
.track { height: 6px; border-radius: 3px; background: rgba(11,23,38,.1); overflow: hidden; }
.track > i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--purple-fill); }
.field { height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(11,23,38,.18); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.field:focus { border-color: var(--purple-fill); box-shadow: 0 0 0 4px rgba(124,61,255,.14); }
.switch { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(11,23,38,.07); }
.switch > button { padding: 9px 18px; border-radius: 999px; font-size: 15px; line-height: 20px; color: var(--ink-75); transition: background-color .25s var(--ease), color .25s; }
.switch > button.is-on { background: var(--ink); color: var(--cream); font-weight: 500; }

/* ---- nav + footer ---- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter); position: relative; z-index: 5; }
/* The Audora logo (lowercase, star in the o), drawn as a mask so it takes the text colour on paper and on night.
   The link keeps its text "audora" for assistive technology; it is not painted. */
.nav__logo, .footer__logo { display: inline-block; width: 124px; aspect-ratio: 1800 / 487; font-size: 0; line-height: 0; color: inherit;
  background-color: currentColor; -webkit-mask: url(../assets/brand/audora-logo.png) center / contain no-repeat; mask: url(../assets/brand/audora-logo.png) center / contain no-repeat; }
.footer__logo { width: 132px; }
.nav__links { display: flex; gap: 34px; font-size: 15px; }
.nav__links a { white-space: nowrap; padding: 6px 0; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.nav__links a:hover, .nav__links a.is-active { border-bottom-color: currentColor; }
.nav__links a.is-active { font-weight: 600; }
.nav__actions { display: flex; gap: 10px; align-items: center; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; max-width: var(--maxw); margin: 0 auto; padding: 40px var(--gutter) 64px; border-top: 1px solid rgba(11,23,38,.14); }
.footer__note { font-size: 14px; color: var(--ink-80); }
.footer__legal { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; line-height: 18px; color: var(--ink-65); }
.footer__legal a { padding: 4px 0; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.footer__legal a:hover { text-decoration-color: currentColor; }
.footer--night .footer__legal { color: var(--cream-78); }
.footer--night { color: var(--cream); border-top-color: rgba(255,251,245,.16); }
.footer--night .footer__note { color: rgba(255,251,245,.82); }
.footer--night .link { color: var(--gold-soft); }
body.has-dock .footer { padding-bottom: 132px; }

/* ---- scroll reveal ---- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.96); }
[data-reveal].is-in, .dev-reveal [data-reveal] { opacity: 1; transform: none; }

/* ---- dock ---- */
.dock { position: fixed; left: 50%; bottom: 18px; translate: -50% 0; z-index: 40; width: min(720px, calc(100vw - 24px)); display: flex; align-items: center; gap: 14px;
  padding: 10px 14px 10px 10px; border-radius: 22px; background: rgba(11,23,38,.92); color: var(--cream); box-shadow: 0 24px 60px -20px rgba(11,23,38,.8), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow: hidden; animation: dock-in .5s var(--ease); }
.dock { transition: translate .45s var(--ease), opacity .3s; }
.dock-away .dock { translate: -50% 140%; opacity: 0; pointer-events: none; }
@keyframes dock-in { from { translate: -50% 120%; } }
.dock__cover { width: 40px; height: 56px; border-radius: 6px; background: #223 center / cover; flex-shrink: 0; }
.dock__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; cursor: pointer; }
.dock__title { font-family: var(--serif); font-size: 17px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__line { display: flex; align-items: center; gap: 7px; font-size: 13px; line-height: 18px; color: var(--cream-78); min-width: 0; }
.dock__dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dock__speaker { font-weight: 600; color: var(--cream); white-space: nowrap; }
.dock__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .play-disc { background: var(--gold-soft); width: 40px; height: 40px; }
.dock .play-disc::before { border-left-color: var(--ink); border-left-width: 10px; border-top-width: 6.5px; border-bottom-width: 6.5px; margin-left: 3px; }
body.is-playing .dock .play-disc::before { width: 11px; height: 13px; margin: 0; border: 0; border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); }
.dock__icon { width: 32px; height: 32px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--cream-78); }
.dock__icon:hover { background: rgba(255,251,245,.12); color: var(--cream); }
.dock__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,251,245,.14); }
.dock__bar i { display: block; height: 100%; width: 0; background: var(--gold-soft); }

/* ---- full player overlay (content styled by css/pages/player.css) ---- */
.player { position: fixed; inset: 0; z-index: 60; background: #040818; color: var(--cream); overflow: auto; animation: player-in .5s var(--ease); }
@keyframes player-in { from { opacity: 0; transform: translateY(24px); } }
.player-open { overflow: hidden; }

/* ---- mounts for shared modules: the Turnstile widget (js/intake.js) sits above the dock; the consent banner styles itself (css/consent.css) ---- */
.turnstile-mount { position: fixed; right: 16px; bottom: 16px; z-index: 70; }
.turnstile-mount:empty { display: none; }

/* ---- toast ---- */
.toast { position: fixed; left: 50%; bottom: 96px; translate: -50% 12px; z-index: 80; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 14px;
  opacity: 0; transition: opacity .3s, translate .3s var(--ease); pointer-events: none; box-shadow: 0 16px 40px -16px rgba(11,23,38,.8); }
.toast.is-on { opacity: 1; translate: -50% 0; }

@media (max-width: 900px) {
  .nav { flex-wrap: wrap; }
  .nav__links { order: 3; width: 100%; gap: 20px; overflow-x: auto; padding-bottom: 4px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .card--dark { padding: 32px 24px; }
  .section { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
