/* Rainbow's shared visual controls. Change these values to retheme every screen. */
:root {
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --type-scale: 1.1;
  --body-leading: 1.6;
  --heading-leading: 1.16;
  --red: #8f1520;
  --red-dark: #5e0c14;
  --gold: #c89a3c;
  --gold-ink: #805719;
  --gold-soft: #e6c778;
  --ink: #261b18;
  --cream: #fbf8f4;
  --paper: #fffefa;
  --muted: #655c56;
  --line: #e7ddd3;
  --surface: #ffffff;
  --surface-soft: #f7f1e9;
  --success: #28613e;
  --danger: #a3222d;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --space-unit: 4px;
  --section-space: clamp(56px, 7vw, 108px);
  --shadow-sm: 0 4px 18px rgba(64, 35, 25, .045);
  --shadow: 0 14px 42px rgba(64, 35, 25, .075);
  --shadow-raised: 0 20px 48px rgba(64, 35, 25, .12);
  --focus-ring: 0 0 0 3px rgba(143, 21, 32, .14);
  --ease: 200ms cubic-bezier(.2, .65, .3, 1);
}

/* Printed receipts keep their existing metrics and font stack. */
@media screen {
  html { font-size: calc(16px * var(--type-scale)); }
  body { font-family: var(--font-body); line-height: var(--body-leading); letter-spacing: -.012em; }
  :where(h1, h2, h3) { font-family: var(--font-heading); line-height: var(--heading-leading); font-weight: 500; letter-spacing: -.025em; }
  :where(p, li) { line-height: var(--body-leading); }
  :where(button, input, select, textarea) { font-family: var(--font-body); }
  :where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
  ::selection { background: #ead7b5; color: var(--red-dark); }
}

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

/* A keyboard-first route through every customer and staff screen. */
@media screen {
  .skip-link {
    position: fixed;
    top: -120px;
    left: 12px;
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    box-sizing: border-box;
    border-radius: 10px;
    background: var(--red-dark);
    color: #fff;
    font: 700 14px/1.3 var(--font-body);
    text-decoration: none;
    box-shadow: var(--shadow);
  }
  .skip-link:focus,
  .skip-link:focus-visible {
    top: 12px;
    color: #fff;
    outline: 3px solid var(--gold-soft);
    outline-offset: 2px;
  }
  main[tabindex="-1"]:focus,
  [role="main"][tabindex="-1"]:focus {
    outline: none;
  }
}
@media print {
  .skip-link { display: none !important; }
}
