:root {
  /* Surface palette — light. Tuned to Apple's near-neutral grays. */
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --hover: rgba(0, 0, 0, 0.04);
  --divider: rgba(0, 0, 0, 0.08);
  --divider-strong: rgba(0, 0, 0, 0.12);

  /* Ink — Apple's three-tier hierarchy. */
  --ink-1: #1d1d1f;
  --ink-2: rgba(60, 60, 67, 0.6);
  --ink-3: rgba(60, 60, 67, 0.3);
  --ink-on-accent: #ffffff;

  /* Accent + indicators. */
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --selection: rgba(0, 113, 227, 0.18);

  /* Church indicator dots — used at 6px max, very subtle. */
  --church-cksda: #007aff;
  --church-apison: #34c759;
  --church-hixson: #af52de;
  --church-standifergap: #ff9500;
  --church-orchardpark: #ff3b30;
  --church-northriver: #5ac8fa;
  --church-collegedale: #ff2d55;
  --church-collegedalecommunity: #5856d6;
  --church-ooltewah: #a2845e;
  --church-chattfirst: #00c7be;
  --church-southbay: #ffcc00;
  --church-sucasa: #bf5af2;

  /* Type — SF Pro family with auto display/text optical sizing on Apple OSes. */
  --font-sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* Apple HIG-inspired type scale. */
  --fs-caption-2: 0.6875rem; /* 11 */
  --fs-caption-1: 0.75rem; /* 12 */
  --fs-footnote: 0.8125rem; /* 13 */
  --fs-subheadline: 0.875rem; /* 14 */
  --fs-callout: 0.9375rem; /* 15 */
  --fs-body: 1rem; /* 16 */
  --fs-headline: 1.0625rem; /* 17 */
  --fs-title-3: 1.25rem; /* 20 */
  --fs-title-2: 1.5rem; /* 24 */
  --fs-title-1: 1.75rem; /* 28 */
  --fs-large-title: 2.125rem; /* 34 */
  --fs-display-1: 2.625rem; /* 42 */
  --fs-display-2: 3.25rem; /* 52 */

  /* Tracking — Apple tightens display sizes aggressively. */
  --track-display: -0.022em;
  --track-large: -0.018em;
  --track-title: -0.014em;
  --track-body: -0.003em;
  --track-allcaps: 0.07em;

  /* Spacing — 4pt grid. */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Radii. */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Motion — Apple's default ease curves. */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 480ms;

  /* Layout. */
  --container-max: 680px;
  --header-h: 52px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --hover: rgba(255, 255, 255, 0.06);
    --divider: rgba(255, 255, 255, 0.1);
    --divider-strong: rgba(255, 255, 255, 0.16);

    --ink-1: #f5f5f7;
    --ink-2: rgba(235, 235, 245, 0.6);
    --ink-3: rgba(235, 235, 245, 0.3);

    --accent: #0a84ff;
    --accent-hover: #2994ff;
    --selection: rgba(10, 132, 255, 0.28);

    --church-cksda: #0a84ff;
    --church-apison: #30d158;
    --church-hixson: #bf5af2;
    --church-standifergap: #ff9f0a;
    --church-orchardpark: #ff453a;
    --church-northriver: #64d2ff;
    --church-collegedale: #ff375f;
    --church-collegedalecommunity: #5e5ce6;
    --church-ooltewah: #ac8e68;
    --church-chattfirst: #63e6e2;
    --church-southbay: #ffd60a;
    --church-sucasa: #da8fff;
  }
}
