/* ══════════════════════════════════════════════════════════════════════════
   PRASIDDHI — SHARED FEEL   (served as /assets/ph-feel.css on every page)
   3 Dec 2026. Small and safe on purpose: everything here is either inside
   :where() (zero specificity, so a page's own rules always win) or only
   touches opacity / the `scale` property (never `transform`, which pages
   use for their own positioning and animation).
   ══════════════════════════════════════════════════════════════════════════ */

/* 1 ─ phone reading text: a little darker and a touch heavier.
       Light mode only — night mode (body.dark / body.magic) is untouched. */
@media (max-width: 760px) {
  body:not(.dark):not(.magic) {
    --inkm: #3a2a12;
    --inks: #5c4828;
    --muted: rgba(30, 16, 4, .94);
  }
  body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
  :where(p, li, dd, summary, label, blockquote, figcaption) { font-weight: 500; }
}

/* 2 ─ buttons answer the finger: a soft press and smooth colour changes */
:where(button, a[class*="btn"], [role="button"]) {
  transition: scale .2s cubic-bezier(.3, .7, .4, 1), filter .25s ease, box-shadow .3s ease,
              background-color .3s ease, color .3s ease, border-color .3s ease;
}
:where(button, a[class*="btn"], [role="button"]):active { scale: .96; }
@media (hover: hover) {
  :where(button, a[class*="btn"]):hover { filter: brightness(1.05); }
}
:where(a) { transition: color .25s ease, opacity .25s ease; }

/* 3 ─ sections fade in as they scroll into view (opacity only) */
.ph-rv { opacity: 0; transition: opacity .8s ease; }
.ph-rv.ph-in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .ph-rv { opacity: 1 !important; transition: none !important; }
  :where(button, a[class*="btn"], [role="button"]):active { scale: none; }
}
html.ph-lite .ph-rv { opacity: 1 !important; transition: none !important; }
