/* rmedia-barber — design tokens. One identity across app / book / admin.
   Grid: 8px. Type: Fraunces (display) + Inter (body). See web/DESIGN.md. */

:root {
  color-scheme: light;

  /* ---- ink + paper ---- */
  --ink-900: #14110e;
  --ink-800: #221d18;
  --ink-700: #3a322a;
  --ink-600: #564c41;
  --ink-500: #6b6156;
  --ink-400: #8c8175;

  --paper-0:   #fffdf9;
  --paper-50:  #f7f2ea;
  --paper-100: #efe8dc;
  --paper-200: #e6ddcd;

  --line:      #e2d9c9;
  --line-soft: #ede6da;
  --line-dark: rgba(255, 253, 249, 0.14);

  /* ---- the one accent (brass) ---- */
  --accent:      #b26b1b;
  --accent-ink:  #8a4f12;  /* accent as small text on paper — AA */
  --accent-weak: #f3e6d2;

  /* ---- states (never the accent, so the accent stays meaningful) ---- */
  --ok:    #2f6b46;
  --warn:  #9a6a10;
  --stop:  #96311f;
  --ok-weak:   #e4efe7;
  --warn-weak: #f6ecd6;
  --stop-weak: #f6e2dd;

  /* ---- space (8px grid; 4 is the only half-step) ---- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;

  /* ---- radius ---- */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;

  /* ---- type ---- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --t-11: 11px; --t-12: 12px; --t-13: 13px; --t-14: 14px; --t-16: 16px;
  --t-18: 18px; --t-20: 20px; --t-24: 24px; --t-32: 32px; --t-44: 44px;

  /* ---- elevation: paper doesn't float much ---- */
  --lift-1: 0 1px 2px rgba(20, 17, 14, 0.05);
  --lift-2: 0 6px 20px -8px rgba(20, 17, 14, 0.18);
  --lift-3: 0 -8px 40px -12px rgba(20, 17, 14, 0.28);

  /* ---- motion ---- */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --fast: 120ms;
  --med: 220ms;

  /* ---- layout ---- */
  --tap: 48px;          /* minimum tappable height */
  --max-w: 480px;       /* phone-first column */
  --max-w-wide: 1120px; /* admin */
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

/* hidden beats any display: rule of ours — the app toggles .hidden on flex/grid nodes */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--t-16);
  line-height: 1.5;
  font-feature-settings: "cv05" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 32;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: var(--t-32); }
h2 { font-size: var(--t-24); }
h3 { font-size: var(--t-20); }

p { margin: 0; }

/* Times, prices, counts — always tabular. */
.num, time, .price, input[type="time"] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Section label: the small caps rule that ties the three apps together. */
.eyebrow {
  font-size: var(--t-11);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);   /* --ink-400 is 3.4:1 at 11px on paper (QA-W5) */
}

.muted { color: var(--ink-500); }
.hair  { height: 1px; background: var(--line); border: 0; margin: 0; }

a { color: var(--accent-ink); text-underline-offset: 3px; }

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

.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;
}

@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;
  }
}
