/* Application Base Styles - Shared across the application */

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

/* Box-sizing reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Basic reset */
* {
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

html {
  -webkit-text-decoration-skip: ink;
  text-decoration-skip-ink: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  /* Baseline font sizing - responsive (single source of truth for HTML font sizing) */
  font-size: 1.368em; /* fallback: 1.14 * 1.2 */
  font-size: calc(1.14em + (0.2 * 1vw) + (0.2 * 1vh) + (0.1 * 1vmin));
  /* Clamp to reasonable bounds to prevent excessive scaling */
  font-size: clamp(1.14em, calc(1.14em + (0.2 * 1vw) + (0.2 * 1vh) + (0.1 * 1vmin)), 1.4em);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  height: 100%;
}

body {
  position: relative;
  font-size: 0.67rem;
  line-height: 1rem;
  font-weight: normal;
  font-family: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--gray-dark);
  background-color: var(--blue-lightest);
  overflow-x: hidden;
}

/* Ensure .visible class overrides any inline styles for FOUC prevention */
body.visible {
  visibility: visible !important;
}

#root {
  height: 100%;
}

/* Typography elements */
strong,
b {
  font-weight: bold;
}

em,
i {
  font-style: italic;
}

/* Links */
a {
  background-color: transparent;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Buttons and forms */
button,
[type="button"],
[type="submit"],
[type="reset"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  white-space: normal;
}

::-webkit-input-placeholder,
::-moz-placeholder,
:-ms-input-placeholder,
::placeholder {
  opacity: 0.618;
  color: inherit;
}

:disabled {
  opacity: 0.618;
  cursor: not-allowed;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input[type="search"] {
  -webkit-appearance: textfield;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

textarea {
  resize: vertical;
  display: block;
}

/* Touch action optimization */
a,
button,
input,
textarea,
select,
label,
canvas {
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}

/* ============================================
   FONT FACE DECLARATIONS
   ============================================ */


/* ============================================
   CSS VARIABLES (DESIGN SYSTEM)
   ============================================ */

:root {
  /* Color Values - Design System */
  --purple-light: #67318e;
  --purple-base: #39235d;
  --blue-lightest: #f3f7fb;
  --blue-lighter: #e2ecf6;
  --blue-light: #8ab4db;
  --blue-base: #6e9fd5;
  --blue-dark: #3e7cb2;
  --gray-lightest: #e0e2e9;
  --gray-light: #a1a7bb;
  --gray-base: #626e8e;
  --gray-dark: #1c1f28;
  --dark: #646464;
  --orange: #fc8020;
  --green: #43c45f;
  --red: #ef686f;
  --yellow: #ffd44f;
  --white: #ffffff;
  --black: #000000;

  /* Animation easing */
  --animation-easing: cubic-bezier(0.236, 0, 0.236, 1);
  --animation-time: 200ms;
  --animation-short-time: 100ms;

  /* Typography */
  --font-family-sans: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  /* Spacing */
  --side-padding: 0.5rem;
  --max-width: 1200px;
  --spacing: 0.2rem;
}

/* ============================================
   TYPOGRAPHY UTILITY CLASSES
   ============================================
   Typography utilities have been consolidated in phlex_utilities.css
   */
