/* Values follow docs/design.md chapter 5 (Digital Agency design system beta). Change them there first. */

/*
 * Cascade order of the screen styles: a later layer wins whatever the specificity, so screen rules need no IDs or
 * !important. print.css stays outside the layers on purpose: unlayered rules beat every layer, so the printed forms
 * keep their look without being rewritten (docs/design.md 7, unit 10).
 */
@layer base, components, screens, utilities;
:root {
  --color-bg: #f6f7f5;
  --color-surface: #ffffff;
  --color-surface-subtle: #f1f4f2;
  --color-text: #1f2a27;
  --color-text-muted: #5c6662;
  --color-border: #d9dcd8;
  --color-border-strong: #7a837f;
  --color-primary: #2f6b5a;
  --color-primary-hover: #245447;
  --color-primary-tint: #eef5f2;
  --color-danger: #b3261e;
  --color-danger-tint: #fdf2f1;
  --color-focus-inner: #000000;
  --color-focus-outer: #ffd43d;

  --status-draft-bg: #fff4d6;
  --status-draft-text: #6b4e00;
  --status-draft-border: #e6c35c;
  --status-active-bg: #e3f1ec;
  --status-active-text: #1e5a48;
  --status-active-border: #9cc9b8;
  --status-ended-bg: #eeefee;
  --status-ended-text: #4a524f;
  --status-ended-border: #c9cdcb;
  --status-overdue-bg: #fbe9e7;
  --status-overdue-text: #8c1d18;
  --status-overdue-border: #e8a39c;
  --status-pending-bg: #e8eff8;
  --status-pending-text: #1f4e8c;
  --status-pending-border: #a9c0e0;

  --font-body: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --lh-body: 1.6;
  --lh-dense: 1.3;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --content-width: 960px;
  --content-wide: 1200px;
  --page-gutter: 24px;
  --radius-sm: 2px;
  --radius-md: 4px;

  --control-height: 48px;
  --control-height-sm: 36px;
  --target-min: 44px;
  --nav-height: 52px;
}
