/* ==========================================================================
   Mochi Dashboard - Foundation
   Design tokens, reset, typography, base elements, utilities.
   ========================================================================== */

@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;

  --page:#25262e; --panel:#1e1f26; --raised:#2b2c35; --raised-2:#33343e; --inset:#16171c; --line:rgba(255,255,255,.07); --line-strong:rgba(255,255,255,.12);
  --brand:#f2abc0; --brand-hover:#ffc4d5; --accent-fill:#e993ae; --accent-fill-hover:#f0a3bb; --on-accent:#2a1720; --accent-text:#ffc4d5; --sel-fill:rgba(242,171,192,.16); --sel-ink:#ffd9e4; --hover-fill:rgba(242,171,192,.07); --brand-10:rgba(242,171,192,.10); --brand-20:rgba(242,171,192,.20); --brand-30:rgba(242,171,192,.30); --brand-40:rgba(242,171,192,.40); --focus:#ffc4d5;
  --p-coral:#ec7a70; --p-peach:#e8955c; --p-amber:#ddb04e; --p-lime:#9ccc5a; --p-mint:#55c99a; --p-teal:#4cc3cf; --p-sky:#5eaaf0; --p-blue:#7f9cf5; --p-orchid:#d98ad0; --p-rose:#ee86a6; --p-slate:#93a0bd;
  --r-sm:6px; --r:8px; --r-lg:12px; --pad:32px; --gap:24px; --card-pad:22px; --ctl-h:40px; --btn-h:38px; --row-h:36px; --tile:52px; --tile-icon:26px;
  --ease:cubic-bezier(.23,1,.32,1); --ease-lift:cubic-bezier(.22,1,.36,1); --ease-pop:cubic-bezier(.34,1.56,.64,1); --t-hover:220ms; --dur-collapse:240ms; --dur-pop-in:160ms; --dur-pop-out:110ms; --dur-modal:180ms;
  --w-narrow:800px; --w-standard:1040px; --w-wide:1280px;

  --bg-page: #25262e;
  --bg-sidebar: #1e1f26;
  --bg-surface: #18191f;
  --bg-surface-hover: #292a33;
  --bg-elevated: #30313b;
  --bg-input: #16171c;

  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);

  --text-primary: #f2f4fb;
  --text-secondary: #c4c7d4;
  --text-muted: #9a9eb0;

  --accent: #f2abc0;
  --accent-hover: #ffc4d5;
  --accent-soft: rgba(242, 171, 192, 0.12);
  --accent-border: rgba(242, 171, 192, 0.28);

  --success: #3ba55d;
  --warning: #d9a441;
  --danger: #d9534f;
  --danger-soft: rgba(217, 83, 79, 0.12);
  --info: #5865f2;
  --text-on-accent: #2a1720;
  --danger-hover: #c74440;
  --success-text: #57b87a;
  --warning-text: #d9a441;
  --danger-text: #e06964;
  --info-text: #8b94ff;
  --honeypot-bg: #1a1b1d;
  --honeypot-border: #383a3d;
  --honeypot-title: #f0f0f1;
  --honeypot-copy: #b5b7ba;
  --honeypot-pill: #2b2d30;
  --honeypot-pill-border: #45474b;
  --honeypot-pill-text: #d8d9db;

  --radius-sm: var(--r-sm);
  --radius-md: var(--r);
  --radius-lg: var(--r-lg);

  --sidebar-width: 280px;
  --topbar-height: 72px;

  --content-width: 1120px;

  --shadow-menu: 0 12px 32px rgba(0, 0, 0, 0.36);
  --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.52);

  --bg-page:var(--page); --bg-sidebar:var(--panel); --bg-surface:var(--panel); --bg-surface-hover:var(--raised); --bg-elevated:var(--raised-2); --bg-input:var(--inset); --border:var(--line-strong);
}

.tone-red{--hue:var(--p-coral)} .tone-green{--hue:var(--p-mint)} .tone-yellow{--hue:var(--p-amber)} .tone-blue{--hue:var(--p-sky)} .tone-cyan{--hue:var(--p-teal)} .tone-pink{--hue:var(--p-rose)} .tone-orange{--hue:var(--p-peach)} .tone-purple{--hue:var(--p-orchid)} .tone-slate{--hue:var(--p-slate)} .tone-lime{--hue:var(--p-lime)} .tone-blurple{--hue:var(--p-blue)}

/* ------------------------------------------------------------------ reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: var(--ease);
}

@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ------------------------------------------------------------- typography */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

code, kbd, pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

code {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1px 5px;
  color: var(--text-primary);
}

pre {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  overflow-x: auto;
}

/* ---------------------------------------------------------------- links */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* --------------------------------------------------------- focus-visible */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- utils */
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------ scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
