/*
 * Staypler · Homepage-led design baseline, edition 1
 * Include this file with the product's existing font declaration.
 * All variables are namespaced. Components opt in by referencing them.
 * No global reset, DOM changes, fonts, background art or theme switch are applied.
 */
:root {
  /* Source colors from the guest homepage and its mark */
  --st-paper: #ffffff;
  --st-ink: #082a2b;
  --st-deep-teal: #00534e;
  --st-persimmon: #d24b19;
  --st-interaction-orange: #e64d0b;
  --st-ticket-aqua: #8fdcd0;
  --st-ticket-apricot: #ff9554;
  --st-memory-wash: #d0f2ef;
  --st-paper-mint: #93d5b5;
  --st-footer: #063e3a;
  --st-stock: #fbfffd;

  /* Source UI roles */
  --st-text: var(--st-ink);
  --st-text-muted: #365a53;
  --st-text-on-action: var(--st-paper);
  --st-action: var(--st-deep-teal);
  --st-action-hover: #073a38;
  --st-text-on-aqua-stub: #073b38;
  --st-text-on-apricot-stub: #352e20;
  --st-rule: #c5d9d1;
  --st-focus: var(--st-deep-teal);

  /* Established app feedback colors from design-tokens.css */
  --st-success-text: #205b42;
  --st-success-surface: #e9f3ec;
  --st-error-text: #9c221a;
  --st-error-surface: #faeae8;

  /* Proposed extensions for new surfaces */
  --st-attention-text: #693a06;
  --st-attention-surface: #fff0d3;
  --st-control-boundary: #536f68;
  --st-focus-on-dark: var(--st-ticket-aqua);
  --st-fg-on-photo: var(--st-paper); /* Use on a tested opaque dark label. */

  /* Type. The local normal face supports 400 through 700. */
  --st-font: "Instrument Sans", Arial, sans-serif;
  --st-display-size: clamp(3.3rem, 6.65vw, 6rem);
  --st-display-weight: 625;
  --st-display-leading: .96;
  --st-display-tracking: -.04em;
  --st-section-size: clamp(2rem, 3.5vw, 3.35rem);
  --st-section-weight: 620;
  --st-section-leading: 1.04;
  --st-ticket-title-size: clamp(1.4rem, 2vw, 2rem);
  --st-ticket-title-weight: 650;
  --st-nav-weight: 550;
  --st-action-weight: 620;
  --st-signin-weight: 650;

  /* Common measures from the homepage */
  --st-editorial-width: 1370px;
  --st-page-gutter: clamp(1.1rem, 3.4vw, 3.85rem);
  --st-hero-copy-width: 28ch;
  --st-tap-target: 44px;
  --st-editorial-action-height: 3rem;
  --st-action-radius: 9px;
  --st-dialog-radius: 18px;
  --st-dialog-width: 480px;
  --st-focus-width: 3px;
  --st-duration: 180ms;
  --st-sheet-ease: cubic-bezier(.2, .75, .25, 1);

  /* Proposed product spacing scale. Use existing responsive art offsets. */
  --st-space-1: .25rem;
  --st-space-2: .5rem;
  --st-space-3: .75rem;
  --st-space-4: 1rem;
  --st-space-5: 1.5rem;
  --st-space-6: 2rem;
  --st-space-7: 3rem;
  --st-space-8: 4rem;
}

@media (min-width: 621px) and (max-width: 780px) {
  :root { --st-display-size: clamp(2.85rem, 6.5vw, 3.5rem); }
}
@media (max-width: 620px) {
  :root {
    --st-display-size: clamp(3.25rem, 12.8vw, 4.65rem);
    --st-page-gutter: clamp(1rem, 5vw, 1.6rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  :root { --st-duration: 0ms; }
}
