/* PROVISIONAL — replace after Sean's pick.
 * Wardrobe app design tokens, generated by brand/generators/concepts.py from palette A
 * (Gallery: paper white, ink, oxblood). Variable names are stable; only the values change after the pick.
 * Contrast (WCAG): ink on bg 16.6:1; ink on surface 18.1:1; ink-muted on bg 5.5:1; ink-muted on surface 6.0:1; accent on bg 10.4:1; accent-ink on accent 11.4:1.
 * Fonts: the brand block's Bodoni Moda @font-face rules are left out of the app (it uses Instrument Serif, below);
 * body uses the system UI font.
 */

:root {
  color-scheme: light;

  /* Colour */
  --color-bg: #f6f5f2;
  --color-surface: #ffffff;
  --color-ink: #171615;
  --color-ink-muted: #67635d;
  --color-line: #e3e0da;
  --color-accent: #6b1e2b;
  --color-accent-ink: #ffffff;
  --color-accent-soft: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
  --color-danger: #a1261b;
  --color-success: #2f6b3a;

  /* Type */
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-display-settings: "opsz" 72;   /* use with font-variation-settings on display text */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-3xl: 3rem;
  --leading-tight: 1.1;
  --leading-body: 1.5;
  --tracking-display: -0.01em;
  --tracking-caps: 0.08em;   /* small uppercase labels only */

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Spacing (4 px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Shadows: quiet, for sheets and floating buttons only; cards use --color-line borders */
  --shadow-sm: 0 1px 2px rgba(23, 22, 21, 0.06);
  --shadow-md: 0 4px 14px rgba(23, 22, 21, 0.08);
  --shadow-lg: 0 12px 32px rgba(23, 22, 21, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duration-fast: 120ms;
  --duration: 220ms;
}

/* ---------------------------------------------------------------------------
 * App additions (Lane B). Everything above is a verbatim copy of brand/tokens.css;
 * when the brand changes, replace the part above and keep this block.
 * ------------------------------------------------------------------------- */
/* Display face: Instrument Serif replaces Bodoni Moda in the app (28 Nov 2026). Bodoni Moda has
 * almost no kerning, so "Wool", "Worn" and "Add" set with wide gaps after W/A, and its comma
 * reads as a full stop at display sizes. Instrument Serif (SIL OFL 1.1) kerns cleanly. It has
 * one weight and no italic here, so synthesis is off and display text stays at 400 upright. */
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --font-display: "Instrument Serif", "Didot", "Bodoni 72", Georgia, serif;
  --font-display-settings: normal;
  --tracking-display: 0;
  /* Money and counts: body face, tabular lining figures (never the display face) */
  --figures: lining-nums tabular-nums;
  --color-warning: #8a5a12;
  --focus-ring: 0 0 0 3px var(--color-accent-soft), 0 0 0 4px var(--color-accent);
  --tabbar-height: 64px;
  --header-height: 52px;
}
/* Retail look (28 Nov 2026): white page, black ink, hairlines, square corners, one quiet red for
 * destructive and notice states. Overrides the brand values above; the brand block stays verbatim.
 * Contrast: ink on white 18.9:1; ink-muted on white 5.3:1, on --color-photo 4.9:1; field-line 3.4:1
 * (input boundaries, WCAG 1.4.11); danger on white 6.4:1. */
:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-ink: #111111;
  --color-ink-muted: #6b6b6b;
  --color-line: #e5e5e5;
  --color-field-line: #8c8c8c;
  --color-photo: #f2f2f2;
  --color-accent: #111111;          /* black is the accent */
  --color-accent-ink: #ffffff;
  --color-accent-soft: #f5f5f5;
  --color-danger: #a8231a;          /* the one quiet accent: destructive and notice states */
  --color-success: #111111;
  --color-warning: #a8231a;

  /* Sans for almost everything; the serif is kept for the wordmark only */
  --font-wordmark: "Instrument Serif", "Didot", "Bodoni 72", Georgia, serif;
  --text-2xs: 0.6875rem;            /* 11px: uppercase labels, nav, filters */
  --text-title: 1.375rem;           /* 22px: page titles */
  --leading-body: 1.6;
  --tracking-caps: 0.1em;
  --tracking-wordmark: 0.14em;

  /* Square corners everywhere; --radius-round is only for dots, swatches and badges */
  --radius-xs: 0;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --radius-pill: 0;
  --radius-round: 999px;
  --swatch-multi: conic-gradient(#c0392b, #d4a03a, #4f8a4f, #3f6ea8, #85579e, #c0392b);

  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --focus-ring: 0 0 0 1px var(--color-ink);
  --tabbar-height: 60px;

  /* Motion and touch (premium pass, 28 Nov 2026): fast screen moves, a soft image fade, a small press */
  --duration-screen: 260ms;
  --ease-screen: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-image: 320ms;
  --duration-press: 80ms;
  --press-scale: 0.975;
  --space-11: 44px;   /* minimum touch target */

  /* Layout (design pass, 29 Nov 2026): the widest the app gets on a big screen, and the item page's photo frame, which
   * matches retail product photos (Aritzia's are 0.733 wide, both the product tile and the on-model shot) */
  --content-max: 1200px;
  --photo-frame: 11 / 15;

  /* Looks (29 Nov 2026): a flat lay on the photo grey. Each cutout has a hairline contact shadow so pale pieces
   * keep their edge on the grey; a faint ground shadow sits under the group */
  --look-piece-shadow: 0 1px 1.5px rgba(17, 17, 17, 0.14);
  --look-ground: rgba(17, 17, 17, 0.09);

  /* Sign in with Apple and Google (29 Nov 2026): brand-mandated values, not palette choices. Apple's button is black
   * with its logo and title in white (Apple HIG, Sign in with Apple); Google's light button is white with a 1px #747775
   * border and #1F1F1F text (Google Identity branding guidelines). Don't restyle them with the app's colours */
  --color-apple-button: #000000;
  --color-apple-button-ink: #ffffff;
  --color-google-button: #ffffff;
  --color-google-button-line: #747775;
  --color-google-button-ink: #1f1f1f;
}
