/* Colour and motion tokens: the accent and success colours for the whole site, in one
   place. Linked on every page; main.compiled.css and the hand-written
   stylesheets only ever use these var()s. .theme-dark sits on <body>, so the
   dark values are set there. */

:root {
  /* Raw palette. Most rules use the theme tokens below; the raw values are
     for surfaces that are dark in both themes (site footer band, hero photos)
     or inverted (toasts). */
  --rust-700: #b23a1c;   /* light-mode accent: white text 6.0:1 */
  --rust-800: #8f2e16;   /* light-mode hover */
  --rust-400: #e8734f;   /* dark-mode accent: needs dark text (white is 3.0:1) */
  --rust-300: #f08a6a;   /* dark-mode hover */
  --blue-700: #1d4ed8;   /* success on light surfaces */
  --blue-300: #93c5fd;   /* success on dark surfaces */

  /* Design system: one set of names, light values here and dark values
     (option C, pure black) on body.theme-dark, so the two modes differ only
     in colour. Every text level passes WCAG AA on page, surface, raised and
     footer in its mode. */
  --page: #fafaf8; --page-rgb: 250, 250, 248;
  --surface: #ffffff;
  --raised: #f3f3f1;
  /* Footer tokens: the whole footer (CTA band, Office, Quick Links, Newsletter,
     Follow, bottom bar) reads only these. Light mode = black band, dark mode
     = cool light grey, so the footer always contrasts with the page. */
  --footer: #000000;
  --footer-t1: #ffffff;                 /* headings, brand text */
  --footer-t2: #d1d5db;                 /* body text, links */
  --footer-t3: #9ca3af;                 /* quiet text, placeholder */
  --footer-line: rgba(255, 255, 255, 0.22);
  --footer-line-strong: rgba(255, 255, 255, 0.4);
  --footer-accent: #e8734f;             /* link hover/focus */
  --footer-btn-bg: #ffffff;             /* Subscribe: inverted on the band */
  --footer-btn-fg: #000000;
  --footer-btn-hover: #e5e7eb;
  --footer-input-bg: #1a1a1a;
  --footer-input-fg: #ffffff;
  --footer-input-border: #8c8c88;
  --t0: #000000;
  --t1: #111111;
  --t2: #4a4a48;
  --t3: #6b6b68;
  --field: #8c8c88;                     /* input borders: 3:1 on surface */
  --line: rgba(0, 0, 0, 0.08);          /* hairlines */
  --line-strong: rgba(0, 0, 0, 0.12);
  /* Category / season title label (home photo cards, nav dropdown headings). */
  --label-size: 0.8rem;
  --label-weight: 700;
  --label-tracking: 0.16em;
  /* Blur-up for product photos (Styles/design.css). */
  --img-placeholder: #ececea;
  --img-blur: 12px;
  --img-blur-scale: 1.04;
  --img-sharpen-time: 300ms;
  --on-photo: #f2f2f0;                  /* text over photos, both modes */
  --hero-fade: rgba(0, 0, 0, 0.45);
  --overlay-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  /* One heading font for every page title, section title and label;
     Merriweather only for brand/display type (logo, hero and Buy/Sell
     headlines, price figures, ad headline). */
  --font-heading: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Merriweather", serif;
  /* Page width for header, sections and footer: 1200px as before up to a
     ~1300px screen, then 92% of the viewport so wide screens and zoomed-out
     views are filled. */
  --container-max: max(1200px, 92vw);
  --r-ctl: 6px;                         /* buttons, inputs, chips */
  --r-card: 12px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  --accent: var(--rust-700);
  --accent-hover: var(--rust-800);
  --on-accent: #fff;
  --accent-soft: #fbede8;
  --accent-soft-strong: #f6d5c9;

  /* Success (order confirmed, saved, active/delivered badges): blue rather
     than the rust accent, which sits too close to the error red. */
  --success: var(--blue-700);
  --success-soft: #eff6ff;
  --success-line: #bfdbfe;

  /* Hover motion, shared by every image card. The transition sits on the
     base selector so hover-off animates too: slow for photo zoom and
     overlays, fast for text, underlines and buttons. */
  --hover-slow: 700ms;
  --hover-fast: 300ms;
  --hover-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.theme-dark {
  color-scheme: dark;                   /* native checkboxes, scrollbars */
  --page: #0a0a0a; --page-rgb: 10, 10, 10;
  --surface: #131313;
  --raised: #1a1a1a;
  --img-placeholder: #222222;
  --footer: #e6e9ee;
  --footer-t1: #0b0d12;
  --footer-t2: #3a4150;
  --footer-t3: #4b5362;
  --footer-line: rgba(15, 23, 42, 0.22);
  --footer-line-strong: rgba(15, 23, 42, 0.4);
  --footer-accent: #b23a1c;
  --footer-btn-bg: #111827;
  --footer-btn-fg: #ffffff;
  --footer-btn-hover: #000000;
  --footer-input-bg: #ffffff;
  --footer-input-fg: #0b0d12;
  --footer-input-border: #5b6370;
  --t0: #ffffff;
  --t1: #f2f2f0;
  --t2: #a3a3a0;
  --t3: #8c8c88;
  --field: #6a6a67;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --hero-fade: rgba(10, 10, 10, 0.85);
  --overlay-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);

  /* The older dark-only names the compiled CSS still reads. */
  --dark-bg: var(--page);
  --dark-panel: var(--surface);
  --dark-elev: var(--raised);
  --dark-line: var(--line-strong);
  --dark-ink: var(--t1);
  --dark-muted: var(--t2);

  --accent: var(--rust-400);
  --accent-hover: var(--rust-300);
  --on-accent: #0a0a0a;
  --accent-soft: rgba(232, 115, 79, 0.15);
  --accent-soft-strong: rgba(232, 115, 79, 0.25);

  --success: var(--blue-300);
  --success-soft: rgba(147, 197, 253, 0.15);
  --success-line: rgba(147, 197, 253, 0.4);
}
