/* ============================================================
 * Apple Design System — colors_and_type.css
 * Tokens + semantic styles. Cmd-F a token; do not inline hex.
 * ============================================================ */

:root {
  /* ---- Brand & Accent ----------------------------------- */
  --color-primary:           #0066cc;  /* Action Blue */
  --color-primary-focus:     #0071e3;  /* Focus Blue (keyboard ring) */
  --color-primary-on-dark:   #2997ff;  /* Sky Link Blue (links on dark tiles) */

  /* ---- Text -------------------------------------------- */
  --color-ink:               #1d1d1f;  /* Near-Black Ink */
  --color-body:              #1d1d1f;
  --color-body-on-dark:      #ffffff;
  --color-body-muted:        #cccccc;  /* secondary copy on dark tiles */
  --color-ink-muted-80:      #333333;  /* Pearl Button label */
  --color-ink-muted-48:      #7a7a7a;  /* disabled / fine-print */
  --color-on-primary:        #ffffff;
  --color-on-dark:           #ffffff;

  /* ---- Surface ----------------------------------------- */
  --color-canvas:            #ffffff;  /* Pure White */
  --color-canvas-parchment:  #f5f5f7;  /* Parchment */
  --color-surface-pearl:     #fafafc;  /* Pearl Button fill */
  --color-surface-tile-1:    #272729;  /* Near-Black Tile 1 */
  --color-surface-tile-2:    #2a2a2c;  /* Tile 2 (a step lighter) */
  --color-surface-tile-3:    #252527;  /* Tile 3 (a step darker) */
  --color-surface-black:     #000000;  /* True black — global nav only */
  --color-surface-chip-translucent: #d2d2d7;
  --color-chip-over-photo:   rgba(210, 210, 215, 0.64);

  /* ---- Hairlines & Dividers ---------------------------- */
  --color-divider-soft:      #f0f0f0;  /* Pearl Button ring */
  --color-divider-soft-rgba: rgba(0, 0, 0, 0.04);
  --color-hairline:          #e0e0e0;  /* utility card border */
  --color-hairline-rgba:     rgba(0, 0, 0, 0.08);

  /* ---- Product Shadow (the only shadow in the system) -- */
  --shadow-product:          rgba(0, 0, 0, 0.22) 3px 5px 30px 0;

  /* ---- Backdrop blur ---------------------------------- */
  --blur-frost:              saturate(180%) blur(20px);

  /* ---- Spacing ---------------------------------------- */
  --space-xxs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  17px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-xxl: 48px;
  --space-section: 80px;

  /* ---- Radii ------------------------------------------ */
  --radius-none: 0px;
  --radius-xs:   5px;
  --radius-sm:   8px;
  --radius-md:   11px;
  --radius-lg:   18px;
  --radius-pill: 9999px;
  --radius-full: 9999px;

  /* ---- Type families ---------------------------------- */
  --font-display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-text:    "SF Pro Text",    system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* ---- Layout maxes ----------------------------------- */
  --max-text:    980px;
  --max-grid:    1440px;
}

/* ============================================================
 * Type roles — class-form so they can be applied anywhere.
 * Sizes / weights / tracking match the brand spec exactly.
 * ============================================================ */

.t-hero-display   { font-family: var(--font-display); font-size: 56px; font-weight: 600; line-height: 1.07; letter-spacing: -0.28px; }
.t-display-lg     { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1.10; letter-spacing: 0; }
.t-display-md     { font-family: var(--font-text);    font-size: 34px; font-weight: 600; line-height: 1.47; letter-spacing: -0.374px; }
.t-lead           { font-family: var(--font-display); font-size: 28px; font-weight: 400; line-height: 1.14; letter-spacing: 0.196px; }
.t-lead-airy      { font-family: var(--font-text);    font-size: 24px; font-weight: 300; line-height: 1.5;  letter-spacing: 0; }
.t-tagline        { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: 0.231px; }
.t-body-strong    { font-family: var(--font-text);    font-size: 17px; font-weight: 600; line-height: 1.24; letter-spacing: -0.374px; }
.t-body           { font-family: var(--font-text);    font-size: 17px; font-weight: 400; line-height: 1.47; letter-spacing: -0.374px; }
.t-dense-link     { font-family: var(--font-text);    font-size: 17px; font-weight: 400; line-height: 2.41; letter-spacing: 0; }
.t-caption        { font-family: var(--font-text);    font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: -0.224px; }
.t-caption-strong { font-family: var(--font-text);    font-size: 14px; font-weight: 600; line-height: 1.29; letter-spacing: -0.224px; }
.t-button-large   { font-family: var(--font-text);    font-size: 18px; font-weight: 300; line-height: 1.0;  letter-spacing: 0; }
.t-button-utility { font-family: var(--font-text);    font-size: 14px; font-weight: 400; line-height: 1.29; letter-spacing: -0.224px; }
.t-fine-print     { font-family: var(--font-text);    font-size: 12px; font-weight: 400; line-height: 1.0;  letter-spacing: -0.12px; }
.t-micro-legal    { font-family: var(--font-text);    font-size: 10px; font-weight: 400; line-height: 1.3;  letter-spacing: -0.08px; }
.t-nav-link       { font-family: var(--font-text);    font-size: 12px; font-weight: 400; line-height: 1.0;  letter-spacing: -0.12px; }

/* ============================================================
 * Semantic tag defaults — tags inherit the brand voice.
 * Apply this opt-in via class="apple-prose" on a content root.
 * ============================================================ */

.apple-prose,
.apple-prose body {
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
}

.apple-prose h1 { font-family: var(--font-display); font-size: 56px; font-weight: 600; line-height: 1.07; letter-spacing: -0.28px;  margin: 0 0 24px; }
.apple-prose h2 { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1.10; letter-spacing: 0;        margin: 64px 0 16px; }
.apple-prose h3 { font-family: var(--font-text);    font-size: 34px; font-weight: 600; line-height: 1.47; letter-spacing: -0.374px; margin: 48px 0 12px; }
.apple-prose h4 { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: 0.231px;  margin: 32px 0 8px; }
.apple-prose p  { margin: 0 0 1em; }
.apple-prose strong, .apple-prose b { font-weight: 600; }
.apple-prose a  { color: var(--color-primary); text-decoration: none; }
.apple-prose a:hover { text-decoration: underline; }
.apple-prose small { font-size: 12px; color: var(--color-ink-muted-48); }
.apple-prose hr  { border: 0; border-top: 1px solid var(--color-hairline); margin: 48px 0; }

/* On dark surfaces */
.apple-prose.on-dark { color: var(--color-on-dark); }
.apple-prose.on-dark a { color: var(--color-primary-on-dark); }
.apple-prose.on-dark small { color: var(--color-body-muted); }

/* ============================================================
 * Button patterns — class form, importable into any kit.
 * ============================================================ */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
       border: 0; cursor: pointer; transition: transform 120ms ease, filter 120ms ease;
       text-decoration: none; white-space: nowrap; }
.btn:active { transform: scale(0.95); }
.btn:focus-visible { outline: 2px solid var(--color-primary-focus); outline-offset: 2px; }

.btn-primary   { background: var(--color-primary); color: var(--color-on-primary); border-radius: var(--radius-pill);
                 padding: 11px 22px; font: 400 17px/1.47 var(--font-text); letter-spacing: -0.374px; }
.btn-secondary-pill { background: transparent; color: var(--color-primary);
                 border: 1px solid var(--color-primary); border-radius: var(--radius-pill);
                 padding: 10px 21px; font: 400 17px/1.47 var(--font-text); letter-spacing: -0.374px; }
.btn-dark-utility   { background: var(--color-ink); color: var(--color-on-dark); border-radius: var(--radius-sm);
                 padding: 8px 15px; font: 400 14px/1.29 var(--font-text); letter-spacing: -0.224px; }
.btn-pearl-capsule  { background: var(--color-surface-pearl); color: var(--color-ink-muted-80);
                 border: 3px solid var(--color-divider-soft); border-radius: var(--radius-md);
                 padding: 8px 14px; font: 400 14px/1.43 var(--font-text); letter-spacing: -0.224px; }
.btn-store-hero { background: var(--color-primary); color: var(--color-on-primary); border-radius: var(--radius-pill);
                 padding: 14px 28px; font: 300 18px/1.0 var(--font-text); }
.btn-icon-circular { background: var(--color-chip-over-photo); color: var(--color-ink);
                 border-radius: var(--radius-full); width: 44px; height: 44px; }

a.t-link { color: var(--color-primary); text-decoration: none; }
a.t-link:hover { text-decoration: underline; }
a.t-link.on-dark { color: var(--color-primary-on-dark); }

/* ============================================================
 * Tile / surface helpers
 * ============================================================ */
.tile-light     { background: var(--color-canvas);           color: var(--color-ink); padding: var(--space-section) 0; }
.tile-parchment { background: var(--color-canvas-parchment); color: var(--color-ink); padding: var(--space-section) 0; }
.tile-dark      { background: var(--color-surface-tile-1);   color: var(--color-on-dark); padding: var(--space-section) 0; }
.tile-dark-2    { background: var(--color-surface-tile-2);   color: var(--color-on-dark); padding: var(--space-section) 0; }
.tile-dark-3    { background: var(--color-surface-tile-3);   color: var(--color-on-dark); padding: var(--space-section) 0; }

.product-shadow { box-shadow: var(--shadow-product); }
