/* ==========================================================================
   Apple Human Interface Guidelines (HIG) Semantic Theme Stylesheet
   Export Configuration:
   - Accent Mode: DUAL (2 selected)
   - Primary Accent: systemBlue (#007AFF Light / #0A84FF Dark)
   - Secondary Accent: systemPink (#FF2D55 Light / #FF375F Dark)
   ========================================================================== */

@custom-variant dark (&:where(.dark, .dark *));

:root {
  /* Surfaces & Backgrounds - Light Mode */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F2F2F7;
  --bg-tertiary: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-grouped: #F2F2F7;

  /* SF Typography Text Hierarchy - Light Mode */
  --text-primary: rgba(0, 0, 0, 1.0);
  --text-secondary: rgba(60, 60, 67, 0.60);
  --text-tertiary: rgba(60, 60, 67, 0.30);
  --text-quaternary: rgba(60, 60, 67, 0.18);

  /* Primary Interactive Accent Tint */
  --system-tint: #007AFF;
  --system-tint-subtle: #007AFF1F; /* 12% opacity tint fill */
  --system-tint-secondary: #FF2D55;
  --system-tint-secondary-subtle: #FF2D551F;

  --system-separator: rgba(60, 60, 67, 0.29);
  --system-separator-hairline: rgba(60, 60, 67, 0.18);
  --system-grouping-fill: rgba(120, 120, 128, 0.16);
  --system-fill-tertiary: rgba(118, 118, 128, 0.12);

  /* Active Apple System Color Accents - Light */
  --system-blue: #007AFF;
  --system-pink: #FF2D55;
}

.dark {
  /* Surfaces & Backgrounds - Dark Mode */
  --bg-primary: #000000;
  --bg-secondary: #1C1C1E;
  --bg-tertiary: #2C2C2E;
  --bg-elevated: #2C2C2E;
  --bg-grouped: #000000;

  /* SF Typography Text Hierarchy - Dark Mode */
  --text-primary: rgba(255, 255, 255, 1.0);
  --text-secondary: rgba(235, 235, 245, 0.60);
  --text-tertiary: rgba(235, 235, 245, 0.30);
  --text-quaternary: rgba(235, 235, 245, 0.18);

  /* Primary Interactive Accent Tint - Dark Mode */
  --system-tint: #0A84FF;
  --system-tint-subtle: #0A84FF2E; /* 18% opacity tint fill */
  --system-tint-secondary: #FF375F;
  --system-tint-secondary-subtle: #FF375F2E;

  --system-separator: rgba(84, 84, 88, 0.65);
  --system-separator-hairline: rgba(84, 84, 88, 0.38);
  --system-grouping-fill: rgba(120, 120, 128, 0.24);
  --system-fill-tertiary: rgba(118, 118, 128, 0.24);

  /* Active Apple System Color Accents - Dark */
  --system-blue: #0A84FF;
  --system-pink: #FF375F;
}

/* San Francisco Font Stack & Base */
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* SF Typography Scale */
.sf-large-title { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: 0.37px; }
.sf-title-1     { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: 0.36px; }
.sf-title-2     { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: 0.35px; }
.sf-title-3     { font-size: 20px; line-height: 25px; font-weight: 600; letter-spacing: 0.38px; }
.sf-headline    { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.41px; }
.sf-body        { font-size: 17px; line-height: 22px; font-weight: 400; letter-spacing: -0.41px; }
.sf-callout     { font-size: 16px; line-height: 21px; font-weight: 400; letter-spacing: -0.32px; }
.sf-subhead     { font-size: 15px; line-height: 20px; font-weight: 400; letter-spacing: -0.24px; }
.sf-footnote    { font-size: 13px; line-height: 18px; font-weight: 400; letter-spacing: -0.08px; }
.sf-caption-1   { font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0px; }
.sf-caption-2   { font-size: 11px; line-height: 13px; font-weight: 400; letter-spacing: 0.07px; }
