/* ============================================================
   Get Screened — MU Health Care web build
   Design tokens ported 1:1 from GetScreened/DesignSystem/Theme.swift
   (the #else / MU Health Care branch): black & gold with paper-cream
   surfaces, deep teal as the calm clinical accent, terracotta alerts.
   ============================================================ */

:root {
  /* Palette — exact hexes from Theme.swift (MU Health Care) */
  --ink:           #211D16;
  --ink-soft:      #6B6353;
  --accent:        #F1B82D; /* brand gold */
  --accent-deep:   #8A6300;
  --accent-soft:   #FBE9BD;
  --on-accent:     #211D16; /* dark text rides on gold */
  --canvas:        #FBF7EE; /* screen background */
  --card:          #FFFFFF;
  --wash:          #F0E8D8;
  --wash-deep:     #DCCFB5;
  --secondary:     #20655D; /* deep teal */
  --secondary-soft:#E0EBE7;
  --alert:         #B4552D; /* terracotta */
  --alert-soft:    #F7E5DA;

  /* Geometry — Theme.cornerRadius / cardPadding / screenPadding */
  --corner:        16px;
  --card-padding:  18px;
  --screen-padding:20px;
  --button-corner: 14px;

  /* Typography. New York (iOS serif display) → a warm serif stack.
     SF (body) → the system UI stack. */
  --font-serif: "New York", "Iowan Old Style", "Palatino Linotype", "Palatino", "Georgia", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Motion — Motion.spring (response .42, damping .82) / Motion.gentle */
  --spring: 420ms cubic-bezier(0.22, 1, 0.36, 1);
  --gentle: 300ms ease-out;

  /* Max content width: a phone column, centered on larger screens. */
  --content-max: 480px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

#app {
  min-height: 100%;
  position: relative;
}

/* Right-to-left mirroring for Arabic. The whole layout flips. */
html[dir="rtl"] body { direction: rtl; }

/* ---- Type scale (Dynamic Type analogues) ---- */
.t-display   { font-family: var(--font-serif); font-weight: 700; font-size: 2.05rem; line-height: 1.12; letter-spacing: -0.01em; }
.t-screen    { font-family: var(--font-serif); font-weight: 700; font-size: 1.62rem; line-height: 1.16; letter-spacing: -0.01em; }
.t-card      { font-weight: 600; font-size: 1.24rem; line-height: 1.25; }
.t-stat      { font-family: var(--font-serif); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.t-body      { font-size: 1.0rem; line-height: 1.45; }
.t-subhead   { font-size: 0.94rem; line-height: 1.4; }
.t-footnote  { font-size: 0.84rem; line-height: 1.4; }
.t-caption   { font-size: 0.78rem; line-height: 1.35; }
.t-caption2  { font-size: 0.72rem; line-height: 1.3; }
.t-footlabel { font-size: 0.84rem; font-weight: 500; }

.c-ink     { color: var(--ink); }
.c-inksoft { color: var(--ink-soft); }
.c-accent  { color: var(--accent-deep); }
.c-secondary { color: var(--secondary); }
.c-alert   { color: var(--alert); }

.weight-semibold { font-weight: 600; }
.weight-bold { font-weight: 700; }

/* ---- Reduce motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Respect the iOS safe areas (notch / home indicator). */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
