/* iParty design tokens — palette from the iParty logo (10 Nov 2026, owner's request;
   replaces the "Pastel Boutique" rose). Logo colours: purple #682070 ("PARTY"),
   dark green #1B6410 (the "i"), grey #69646B (".gr"), balloon green #5A9150 and
   lavender #95709E. Every colour and size in the theme comes from here; no
   stylesheet below this one carries a literal.

   Every text pairing below was measured against WCAG AA before it was written
   (white on purple 10.35:1, white on green 7.30:1, ink-3 ≥ 4.85:1 on every
   light surface, form edges ≥ 3.29:1). The old values are in git history. */

:root {
  /* Brand — the logo purple. --ip-red keeps its name because it is the primary
     accent token referenced ~70 times; only its value changed. */
  --ip-red:          #682070;   /* logo purple, 10.35:1 on white, carries white text */
  --ip-red-dark:     #4E1854;
  --ip-red-ink:      #5A1B61;   /* text on --ip-tint-warm, 9.90:1 */
  --ip-rose-soft:    #8E5A98;   /* balloon lavender, deepened: decoration + large text (5.16:1) */
  --ip-accent-soft:  #D9C2DF;   /* light lavender, for use on the dark footer (10.01:1) */

  /* Buy actions — the logo's dark green "i". */
  --ip-yellow:       #1B6410;   /* buy surface */
  --ip-yellow-ink:   #1B6410;   /* text/icon on --ip-tint-yellow, 6.23:1 */
  --ip-buy-ink:      #FFFFFF;   /* label on the buy surface, 7.30:1 */

  /* Surfaces */
  --ip-bg:           #FBF9FC;
  --ip-surface:      #FFFFFF;
  --ip-surface-alt:  #F7F3F8;
  --ip-tint-warm:    #F1E7F3;   /* soft lavender — the name is historical */
  --ip-tint-yellow:  #E6F0E2;   /* soft balloon green — the name is historical */
  --ip-footer:       #2A1830;   /* deep aubergine */
  --ip-footer-line:  #45304B;

  /* Ink — the logo's outline black and ".gr" grey */
  --ip-ink:          #2B2530;
  --ip-ink-2:        #625C68;   /* 6.46:1 on white */
  --ip-ink-3:        #68636E;   /* 5.84:1 on white, 4.85:1 on --ip-tint-warm */
  --ip-ink-invert:   #FFFFFF;
  --ip-ink-footer:   #EEE8F0;
  --ip-ink-footer-2: #BEB3C4;   /* 8.20:1 on the footer */
  --ip-on-red:       #FFFFFF;
  --ip-on-red-soft:  #EAD9EE;

  /* Lines */
  --ip-line:         #EAE2ED;
  --ip-line-strong:  #D6C8DB;
  /* Edge of a form control. WCAG 1.4.11 wants 3:1 against what is around it;
     the two line tokens above are for decoration only.
     3.61:1 on white, 3.45:1 on --ip-bg, 3.29:1 on --ip-surface-alt. */
  --ip-line-input:   #8B8492;

  /* Semantic */
  --ip-ok:           #1B6410;
  --ip-ok-bg:        #E6F0E2;
  --ip-warn:         #8A5A2B;
  --ip-warn-bg:      #FAEBDF;
  --ip-sale:         #A3253F;   /* 7.26:1 on white */

  /* Mockup E (homepage polaroids, header) */
  --ip-green:        #1B6410;   /* logo "i" green: announce bar, search button, add buttons; 7.30:1 with white */
  --ip-cream:        #F6F4EC;   /* camera-cream from the logo */
  --ip-tape-1:       #D9C2DF;   /* polaroid tape, decoration only */
  --ip-tape-2:       #C9DEC1;
  --ip-tape-3:       #E8E6D9;

  /* Type — rounded Comfortaa headings, as in the approved mockup E (10 Nov 2026); it
     echoes the rounded logo lettering. Both faces carry full Greek. Was GFS Didot. */
  --ip-font-display: 'Comfortaa', 'Commissioner', 'Segoe UI', system-ui, sans-serif;
  --ip-font-body:    'Commissioner', 'Segoe UI', system-ui, sans-serif;

  --ip-fs-xs:   0.75rem;
  --ip-fs-sm:   0.8125rem;
  --ip-fs-base: 0.95rem;
  --ip-fs-md:   1.0625rem;
  --ip-fs-lg:   1.25rem;
  --ip-fs-xl:   1.5rem;
  --ip-fs-2xl:  2.125rem;
  --ip-fs-3xl:  3.25rem;
  /* Product card title: shared by the homepage grid and the shop loop so
     the two never drift apart. */
  --ip-fs-card-title:    0.9rem;
  --ip-fs-card-title-sm: 0.82rem;

  /* Space */
  --ip-s1: 0.25rem; --ip-s2: 0.5rem;  --ip-s3: 0.75rem; --ip-s4: 1rem;
  --ip-s5: 1.5rem;  --ip-s6: 2rem;    --ip-s7: 3rem;    --ip-s8: 4rem;

  /* Shape — this direction is square. Rounded corners read as playful, which
     is the opposite of what it is going for. */
  --ip-r-sm:   2px;
  --ip-r:      4px;
  --ip-r-lg:   6px;
  --ip-r-pill: 2px;

  /* Shadows are barely there: the look is built on hairlines, not elevation. */
  --ip-shadow-sm:  0 1px 2px rgba(43, 37, 48, 0.04);
  --ip-shadow:     0 4px 14px rgba(43, 37, 48, 0.07);
  --ip-shadow-lg:  0 12px 32px rgba(43, 37, 48, 0.10);
  --ip-shadow-cta: 0 4px 14px rgba(104, 32, 112, 0.22);
  --ip-scrim:      rgba(43, 37, 48, 0.45);

  /* Layout */
  --ip-wrap:    1440px;
  --ip-gutter:  clamp(1rem, 4vw, 100px);
  /* Height of what stays at the top while scrolling: the slim bar (.ip-stickybar, 60px) that
     replaces the full 223px header once it scrolls away. Anchor offset + sticky checkout summary. */
  --ip-header-h: 60px;
  --ip-co-sticky: calc(var(--ip-header-h) + var(--ip-s4));
}

@media (max-width: 780px) {
  :root {
    --ip-fs-3xl: 2.0625rem;
    --ip-fs-2xl: 1.5rem;
  }
}

/* Phones: the slim bar is a single 48px row (☰ · phone · search icon · cart). */
@media (max-width: 640px) {
  :root { --ip-header-h: 48px; }
}
