/* Divyavyoma design tokens — one :root block, reused site-wide.
   Values come from the Obsidian colour system (artifact X1yWE2Z5jELrKYSbVPnVv9),
   which is final. Prefixed --dv- because the site already owns bare names like
   --muted and --ink; the values now agree with those, so the header and hero no
   longer sit on a second palette.

   Rules the system sets, enforced below:
   · No violet, blue, green or neon anywhere.
   · Core magenta #A91D68 on obsidian is 2.93:1, so a magenta fill on dark
     always carries a #C94B87 ring — the ring is what holds the shape.
   · Copper is not a text colour on light (#C45A25 = 4.14:1). Copper text is
     #8C3F18 (7.05:1); copper on light appears as a shape or a surface only.
   · Ratio target 60 foundation / 30 supporting / 7 magenta / 3 copper. */
:root {
  /* foundation (60) */
  --dv-page: #faf9fb;
  --dv-surface: #f1eef3;
  --dv-soft: #eae5ed;
  /* the product screen — the same in both themes, as the system specifies */
  --dv-screen: #0d0a10;
  --dv-screen-2: #151119;
  --dv-screen-line: #2b222f;
  /* the dark page's top glow, and the ground under the screen's metal edge */
  --dv-ambient: #160c16;
  --dv-surface-dark-2: #1d1720;

  /* supporting (30) + text */
  --dv-text: #17131a;
  --dv-muted: #5f5763;
  --dv-rule: #e2dce5;
  --dv-edge: #8c8290;
  /* the lit top edge of a raised surface — a reflection, never an area */
  --dv-tile-bg: #ffffff;
  --dv-tile-hi: #ffffff;
  --dv-tile-lift: 0 22px 44px -22px rgb(23 19 26 / 0.38);

  /* magenta (7) */
  --dv-magenta: #a91d68;
  --dv-magenta-hov: #8a164f;
  --dv-magenta-ring: #7a154c;
  --dv-magenta-deep: #5f103b;
  --dv-magenta-lite: #c94b87;
  --dv-magenta-hi: #e86baa;
  --dv-magenta-soft: #f5d6e7;
  /* metal stops — the system's "metal rule": dark → mid → highlight → mid → dark */
  --dv-magenta-metal-dark: #65113f;
  --dv-magenta-metal-mid: #8a164f;

  /* copper (3) */
  --dv-copper: #c45a25;
  --dv-copper-text: #8c3f18;
  --dv-copper-hi: #f2a06a;
  --dv-copper-lite: #ffd0ad;
  --dv-copper-metal: #9b421a;
  --dv-copper-deep: #7a3214;

  /* on-screen ink */
  --dv-screen-ink: #f7f3f7;
  --dv-screen-muted: #aaa1ae;

  --dv-focus: #a91d68;

  /* derived from the values above — not new colours */
  --dv-glass: rgb(250 249 251 / 0.72);
  --dv-scrim: rgb(23 19 26 / 0.34);
  --dv-shadow: 0 10px 30px -12px rgb(23 19 26 / 0.22);

  /* type and motion */
  --dv-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* The system sets h1/h2/h3 in the serif at weight 500. Same stack the rest
     of the page already uses, so the hero stops being the one sans heading. */
  --dv-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --dv-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --dv-ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* the island's morph: a short overshoot, not a bounce */
  --dv-island: cubic-bezier(0.32, 1.28, 0.5, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --dv-page: #08070a;
    --dv-surface: #151119;
    --dv-soft: #1d1720;
    --dv-text: #f7f3f7;
    --dv-muted: #aaa1ae;
    --dv-rule: #2b222f;
    --dv-edge: #6e6572;
    --dv-tile-bg: #1d1720;
    --dv-tile-hi: rgb(255 255 255 / 0.07);
    --dv-tile-lift: 0 22px 44px -22px rgb(0 0 0 / 0.72);
    --dv-magenta-hov: #c52b7b;
    --dv-magenta-ring: #c94b87;
    --dv-magenta-soft: #5f103b;
    --dv-copper: #f2a06a;
    --dv-copper-text: #f2a06a;
    --dv-focus: #e86baa;
    --dv-glass: rgb(21 17 25 / 0.72);
    --dv-scrim: rgb(8 7 10 / 0.52);
    --dv-shadow: 0 10px 30px -12px rgb(8 7 10 / 0.6);
  }
}
:root[data-theme="dark"] {
  --dv-page: #08070a;
  --dv-surface: #151119;
  --dv-soft: #1d1720;
  --dv-text: #f7f3f7;
  --dv-muted: #aaa1ae;
  --dv-rule: #2b222f;
  --dv-edge: #6e6572;
  --dv-tile-bg: #1d1720;
  --dv-tile-hi: rgb(255 255 255 / 0.07);
  --dv-tile-lift: 0 22px 44px -22px rgb(0 0 0 / 0.72);
  --dv-magenta-hov: #c52b7b;
  --dv-magenta-ring: #c94b87;
  --dv-magenta-soft: #5f103b;
  --dv-copper: #f2a06a;
  --dv-copper-text: #f2a06a;
  --dv-focus: #e86baa;
  --dv-glass: rgb(21 17 25 / 0.72);
  --dv-scrim: rgb(8 7 10 / 0.52);
  --dv-shadow: 0 10px 30px -12px rgb(8 7 10 / 0.6);
}
