@layer interface, accessibility;

@layer interface {
@font-face {font-family:InterTight;src:url('../assets/fonts/inter-tight-variable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}

@font-face {font-family:CabinetGrotesk;src:url('../assets/fonts/cabinet-grotesk-700.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}

@font-face {
  font-family: RitmMontserrat;
  src: url('../assets/fonts/montserrat-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: RitmOpenSans;
  src: url('../assets/fonts/open-sans-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  font-family: RitmOpenSans, 'Segoe UI', sans-serif;
  font-synthesis: none;
  --font-body: RitmOpenSans, 'Segoe UI', sans-serif;
  --font-display: RitmMontserrat, RitmOpenSans, sans-serif;
  --radius: 12px;
  --work-radius: var(--radius);
  --work-surface: var(--paper);
  --work-raised: var(--soft);
  --work-ink: var(--ink);
  --work-muted: var(--muted);
  --work-accent: var(--coral);
  --action-ink: var(--ink);
  --action-bg: var(--soft);
  --action-border: var(--control-border);
  --state-focus: var(--work-focus);
  --state-error: var(--error);
  --sphere-religion: #38bdf8;
  --sphere-education: #818cf8;
  --sphere-sport: #34d399;
  --sphere-finance: #fbbf24;
  --sphere-skills: #a78bfa;
  --sphere-health: #2dd4bf;
  --sphere-family: #f472b6;
  --kinetic-edge: clamp(15px,5vw,84px);
  --kinetic-radius: clamp(14px,1.4vw,24px);
  --kinetic-blue: #1f45ff;
  --kinetic-lime: #c7ff38;
  --kinetic-surface: #080a0f;
  --kinetic-line: #ffffff24;
  --kinetic-ease: cubic-bezier(.16,1,.3,1);
  --motion-ease: var(--kinetic-ease);
  --motion-direction: 1;
  --motion-press: 120ms;
  --motion-color: 200ms;
  --motion-arrow: 240ms;
  --motion-label: 320ms;
  --motion-content: 560ms;
  --motion-stagger: 60ms;
  --motion-menu: 520ms;
  color: var(--ink);
  background: var(--bg);
}

html[data-theme="twilight"] {
  color-scheme: dark;
  --bg: #151a24;
  --paper: #1e2636;
  --card-surface: #232d40;
  --sidebar-surface: #1a2130;
  --fold-surface: #1a2232;
  --topbar-surface: #151a24;
  --ink: #f1f5f9;
  --forest: var(--ink);
  --forest-light: #8eb6ff;
  --muted: #a6b5cc;
  --line: #2d384e;
  --work-line: #33415a;
  --sage: #6c82a3;
  --mint: #213252;
  --soft: #252f42;
  --coral: #f4a27d;
  --error: #ffa39b;
  --work-focus: #8eb6ff;
  --state-success: #9be7c3;
  --control-border: #71839d;
  --control-border-strong: #879bb9;
  --border-subtle: rgba(186,203,229,.16);
  --border-hover: rgba(186,203,229,.34);
}

html[data-theme="oled"] {
  color-scheme: dark;
  --bg: #050607;
  --paper: #111318;
  --card-surface: #171b22;
  --sidebar-surface: #090b0e;
  --fold-surface: #101318;
  --topbar-surface: #050607;
  --ink: #f3f4f6;
  --forest: var(--ink);
  --forest-light: #bbd7ff;
  --muted: #acb5c3;
  --line: #30343d;
  --work-line: #455268;
  --sage: #8a99af;
  --mint: #1c222d;
  --soft: #20242d;
  --coral: #ff936f;
  --error: #ffb39a;
  --work-focus: #bdd7ff;
  --state-success: #9be7c3;
  --control-border: #667894;
  --control-border-strong: #7084a3;
  --border-subtle: #313942;
  --border-hover: #546171;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f3ee;
  --paper: #ffffff;
  --card-surface: #ffffff;
  --sidebar-surface: #173e37;
  --fold-surface: #f7f9f5;
  --topbar-surface: #f4f3ee;
  --ink: #1b342e;
  --forest: #173e37;
  --forest-light: #226355;
  --muted: #52655f;
  --line: #d6dfd6;
  --work-line: #a7b7ad;
  --sage: #617b6b;
  --mint: #d9e7d9;
  --soft: #ebf0e8;
  --coral: #80452d;
  --error: #913f35;
  --work-focus: #226355;
  --state-success: #226355;
  --control-border: #718278;
  --control-border-strong: #61746a;
  --border-subtle: #d6dfd6;
  --border-hover: #839b90;
}

html[data-surface-mode="standard"] { --surface-gap: 12px; --surface-inset: 14px; }
html[data-surface-mode="quiet"] { --surface-gap: 18px; --surface-inset: 18px; }
html[data-surface-mode="tunnel"] { --surface-gap: 22px; --surface-inset: 20px; }
html[data-motion-direction="back"] { --motion-direction: -1; }
}
