/* VYRO site theme. Values come from the VYRO Design System tokens (light, and the derived dark theme).
   Light is the default; theme.js adds the `dark` class to <html> from the visitor's choice or their system setting. */
:root {
  color-scheme: light;
  --primary: #3360F0;
  --primary-dark: #1D46D1;
  --primary-ink: #1D46D1;
  --primary-container: #E5ECFF;
  --on-primary-container: #14329A;
  --primary-border: #C9D6FF;
  --primary-tint: #F2F5FF;
  --nav-indicator: #DCE4FF;
  --accent: #FF5A36;
  --on-accent: #0B1B33;
  --accent-ink: #B83A1C;
  --accent-container: #FFF0EB;
  --accent-border: #FFD9CC;
  --success: #12795A;
  --success-container: #DDF5E8;
  --on-success-container: #11643F;
  --success-border: #BDEBD0;
  --warning-ink: #8A5A00;
  --warning-container: #FFF4DB;
  --warning-border: #F2DCA6;
  --error: #B42318;
  --error-container: #FFF1F0;
  --error-border: #F3C7C2;
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --surface-highest: #EEF1F5;
  --on-surface: #0B1B33;
  --ink-soft: #3A4556;
  --muted: #5A6577;
  --subtle: #6B7686;
  --disabled: #8A94A6;
  --outline: #DDE2EA;
  --border: #E6EAF0;
  --border-faint: #EEF1F5;
  --disabled-bg: #E3E7EE;
  --avatar-sun: #FFD23F;
  --avatar-mint: #C9F0DE;
  --avatar-lilac: #DCD3FF;
  --on-avatar: #0B1B33;
  --scrim: rgba(11,27,51,.48);
  --elev-1: 0 1px 2px rgba(11,27,51,.06), 0 6px 16px rgba(11,27,51,.06);
  --elev-control: 0 1px 2px rgba(11,27,51,.08);
  --elev-primary: 0 4px 12px rgba(51,96,240,.28);
  --elev-up: 0 -6px 20px rgba(11,27,51,.06);
}

html.dark {
  color-scheme: dark;
  --primary-dark: #2A55E3;
  --primary-ink: #9DB0EE;
  --primary-container: #1B2A55;
  --on-primary-container: #C9D6FF;
  --primary-border: #2D4180;
  --primary-tint: #14213F;
  --nav-indicator: #24365C;
  --accent: #FF7A5C;
  --on-accent: #08111F;
  --accent-ink: #FF8F75;
  --accent-container: #3A1D16;
  --accent-border: #5C2C20;
  --success: #4FCB9A;
  --success-container: #10301F;
  --on-success-container: #8FE3BE;
  --success-border: #1D4A33;
  --warning-ink: #F2B640;
  --warning-container: #33270C;
  --warning-border: #57421A;
  --error: #FF7A6E;
  --error-container: #3A1614;
  --error-border: #5E2622;
  --bg: #08111F;
  --surface: #0E1A2E;
  --surface-highest: #1C2C45;
  --on-surface: #EEF2F8;
  --ink-soft: #C9D1DE;
  --muted: #A9B4C6;
  --subtle: #8893A8;
  --disabled: #56647C;
  --outline: #5E6D86;
  --border: #24344D;
  --border-faint: #18263C;
  --disabled-bg: rgba(238,242,248,.08);
  --avatar-sun: #E6BC2F;
  --avatar-mint: #9ED9BF;
  --avatar-lilac: #BBAEF2;
  --on-avatar: #08111F;
  --scrim: rgba(0,0,0,.6);
  --elev-1: 0 1px 2px rgba(0,0,0,.30), 0 6px 16px rgba(0,0,0,.28);
  --elev-control: 0 1px 2px rgba(0,0,0,.35);
  --elev-primary: 0 4px 12px rgba(51,96,240,.35);
  --elev-up: 0 -6px 20px rgba(0,0,0,.35);
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { background: var(--surface); color: var(--on-surface); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: #fff; }
html.dark :focus-visible { outline-color: #9DB0EE; }
html.dark .on-dark :focus-visible { outline-color: #fff; }

.site-header { background: color-mix(in srgb, var(--surface) 90%, transparent); }

/* Artwork that has a light and a dark version: show the one that matches the theme. */
.theme-dark-only { display: none !important; }
html.dark .theme-dark-only { display: block !important; }
html.dark .theme-light-only { display: none !important; }

/* The toggle shows the mode you would switch to. */
.theme-icon-sun { display: none; }
html.dark .theme-icon-sun { display: block; }
html.dark .theme-icon-moon { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
