/* Shared design tokens for the public site, auth, customer portal, and admin console. */
:root {
  --studio-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --studio-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Neutral inks */
  --studio-ink: #111315;
  --studio-ink-2: #2d3139;
  --studio-muted: #5a616c;
  --studio-subtle: #78808a;

  /* Signature WP Raiser orange accent */
  --studio-brand: #E85F00;
  --studio-brand-bright: #ff7a1f;
  --studio-on-brand: #ffffff;
  --studio-control: var(--studio-brand);
  --studio-hover: #d15300;
  --studio-pressed: #b34600;
  --studio-link: #d45500;
  --studio-link-hover: #a84200;
  --studio-focus: var(--studio-brand);
  --studio-focus-ring: rgb(232 95 0 / 0.16);
  --studio-brand-faint: #fff9f5;
  --studio-brand-soft: #fff2e8;
  --studio-brand-line: #fbd0b1;
  --studio-brand-mid: #f29d61;

  /* Surfaces & borders */
  --studio-surface: #ffffff;
  --studio-canvas: #f7f8fa;
  --studio-canvas-2: #eef0f4;
  --studio-line: #e4e7ec;
  --studio-line-strong: #cfd5df;
  --studio-input-line: #d4d9e2;

  /* Dark editorial & technical bands */
  --studio-deep: #0f1115;
  --studio-deep-2: #171a21;
  --studio-deep-3: #1f232c;
  --studio-deep-line: rgb(255 255 255 / 0.11);
  --studio-on-deep: #f8f9fa;
  --studio-on-deep-muted: #a4acb8;
  --studio-on-deep-link: #ff8533;

  /* Semantic feedback */
  --studio-error: #b91c1c;
  --studio-error-bg: #fef2f2;
  --studio-error-line: #fecaca;
  --studio-success: #047857;
  --studio-success-bg: #ecfdf5;
  --studio-success-line: #a7f3d0;
  --studio-warning: #b45309;
  --studio-warning-bg: #fffbeb;

  /* Radii & scale */
  --studio-radius: 0.625rem;
  --studio-panel: 1rem;
  --studio-frame: 1.25rem;
  --studio-pill: 9999px;
  --studio-width: 1360px;
  --studio-gutter: clamp(1.125rem, 4vw, 3rem);
  --studio-section: clamp(3.25rem, 6vw, 5.25rem);
  --studio-display: clamp(2.65rem, 5.2vw, 4.35rem);
  --studio-title: clamp(2rem, 3.5vw, 2.85rem);

  /* Layered shadows */
  --studio-shadow-xs: 0 1px 2px rgb(17 19 21 / 0.05);
  --studio-shadow-sm: 0 1px 2px rgb(17 19 21 / 0.05), 0 6px 18px -6px rgb(17 19 21 / 0.07);
  --studio-shadow: 0 4px 12px -2px rgb(17 19 21 / 0.06), 0 18px 36px -12px rgb(17 19 21 / 0.12);
  --studio-shadow-lg: 0 12px 28px -8px rgb(17 19 21 / 0.1), 0 32px 64px -20px rgb(17 19 21 / 0.18);
  --studio-shadow-brand: 0 6px 20px -4px rgb(232 95 0 / 0.36);

  /* Motion */
  --studio-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --studio-fast: 150ms;
  --studio-med: 240ms;
}

.studio-frontend {
  --studio-hover: #d15300;
  --studio-pressed: #b34600;
}

/* Themed browser surfaces */
::selection {
  background: rgb(232 95 0 / 0.16);
  color: var(--studio-ink);
}
input, textarea {
  caret-color: var(--studio-brand);
}
a {
  text-underline-offset: 0.2em;
}

/* Crisp modern inputs across public, auth, portal, and admin */
@media (forced-colors: none) {
  :is(
    textarea, select, input:not([type]),
    input:where([type="text"], [type="email"], [type="password"], [type="search"],
      [type="tel"], [type="url"], [type="number"], [type="date"],
      [type="datetime-local"], [type="time"], [type="month"], [type="week"])
  ) {
    border-color: var(--studio-input-line);
    transition: border-color var(--studio-fast) var(--studio-ease),
                box-shadow var(--studio-fast) var(--studio-ease),
                background-color var(--studio-fast) var(--studio-ease);
  }
  :is(
    textarea, select, input:not([type]),
    input:where([type="text"], [type="email"], [type="password"], [type="search"],
      [type="tel"], [type="url"], [type="number"], [type="date"],
      [type="datetime-local"], [type="time"], [type="month"], [type="week"])
  ):hover:not(:disabled):not(:focus) {
    border-color: var(--studio-line-strong);
  }
  :is(
    textarea, select, input:not([type]),
    input:where([type="text"], [type="email"], [type="password"], [type="search"],
      [type="tel"], [type="url"], [type="number"], [type="date"],
      [type="datetime-local"], [type="time"], [type="month"], [type="week"])
  ):focus {
    outline: none;
    border-color: var(--studio-brand);
    box-shadow: 0 0 0 3px var(--studio-focus-ring);
  }
}

/* Self-hosted JetBrains Mono variable font for technical paths, code, and metrics */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-wght.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Google Fonts Inter v20. Each unicode range loads only when the page uses it. */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-v20/cyrillic-ext-italic.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-v20/cyrillic-italic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-v20/greek-ext-italic.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-v20/greek-italic.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-v20/vietnamese-italic.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-v20/latin-ext-italic.woff2") format('woff2');
  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;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-v20/latin-italic.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-v20/cyrillic-ext-normal.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-v20/cyrillic-normal.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-v20/greek-ext-normal.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-v20/greek-normal.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-v20/vietnamese-normal.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-v20/latin-ext-normal.woff2") format('woff2');
  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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
