/* ============================================================
   coCreator Society brand tokens: the look Pages builds with.

   SOURCE: the "coCreator Society Merch Shop" Claude Design canvas
   (claude.ai/artifact/9h2tds47xoG9BvBuCkKtWA, Main.dc.html), which
   hard-codes these values inline. Named here so landing pages
   (api/pages/*) share one set instead of re-copying hex codes.
   If the canvas changes, update this file to match.

   Every Pages page loads this automatically (api/lib/pagesRender.js),
   together with the Google Fonts below. Fonts live at /fonts/, the same
   files public/merch/index.html uses.

   COLOR RULES (Molli, 2026-11-18). api/lib/ccsBrand.js checks them:
     • Orange goes with purple (lilac): side by side, e.g. an orange
       headline beside a lilac panel. NOT orange text on lilac (2.5:1).
     • Ice (--ccs-sky) goes with green: ice bands/backgrounds with green
       accents, green buttons with an ice hover.
     • Yellow (the highlighter) is never near green. In a section with a
       green button or heading, use .ccs-highlight--lilac instead.
   HOVER RULES:
     • Never darken a color on hover. Change to a DIFFERENT color.
     • Every hover state must still pass contrast: 4.5:1 for normal text,
       3:1 only for large text (24px+, or 18.7px+ bold).
   CONTRAST FACTS (WCAG, measured):
     white on green 4.94 ✓ · ink on ice 12.5 ✓ · green on paper 4.71 ✓
     ink on lilac 11.2 ✓ · ink on yellow 14.5 ✓ · green on ice 4.04 large only
     white on orange 3.40 / ink on orange 4.49 / orange on paper 3.24: orange
     carries LARGE text only (the display headline), never small labels.
   ============================================================ */

:root {
  /* ── Color ─────────────────────────────────────────────── */
  --ccs-paper:        #fcf9f5;   /* page background (warm paper) */
  --ccs-ink:          #2f231a;   /* body text (deep brown, never black) */
  --ccs-ink-muted:    #6b5d52;   /* captions, details, small labels */
  --ccs-green:        #297f51;   /* primary buttons, links, H2 accents, prices */
  --ccs-orange:       #fa4e24;   /* the big display headline and LARGE text/accents only (fails contrast when small) */
  --ccs-sky:          #d9ecec;   /* header & footer bands */
  --ccs-lilac:        #e9d6f5;   /* soft callout panels */
  --ccs-highlight:    #fcfeb5;   /* highlighter-pen marker behind key words */
  --ccs-card:         #ffffff;   /* card interiors */
  --ccs-sand:         #f1ebe3;   /* neutral tiles / image placeholders */
  --ccs-line:         #eadfd3;   /* hairline borders, unselected chips */
  --ccs-on-color:     #ffffff;   /* text on green */

  /* ── Type families ─────────────────────────────────────── */
  --ccs-font-display: "Orange Squash", "IvyOra Text", Georgia, serif;     /* ONE huge hero word/line */
  --ccs-font-serif:   "IvyOra Text", Georgia, serif;                      /* H2, H3, subheads, prices */
  --ccs-font-script:  "Palmer Lake Print", cursive;                       /* small uppercase eyebrow above a heading */
  --ccs-font-body:    "Google Sans Flex", system-ui, sans-serif;          /* all running text */
  --ccs-font-label:   "Roboto Condensed", sans-serif;                     /* buttons, chips, nav, tiny labels (UPPERCASE) */

  /* ── Type scale ────────────────────────────────────────── */
  --ccs-size-hero:    clamp(5rem, 15vw, 10.5rem);  /* display headline, line-height .9, letter-spacing -.02em */
  --ccs-size-lede:    clamp(1.5rem, 3.4vw, 2.2rem);/* serif intro line under the hero */
  --ccs-size-h2:      clamp(1.8rem, 4vw, 2.5rem);
  --ccs-size-h3:      26px;
  --ccs-size-eyebrow: 22px;                        /* 30px in the hero */
  --ccs-size-body:    17px;                        /* line-height 1.65 */
  --ccs-size-small:   15px;
  --ccs-size-label:   14px;                        /* letter-spacing .1–.14em, uppercase */

  /* ── Shape & depth ─────────────────────────────────────── */
  --ccs-radius-card:  30px;
  --ccs-radius-tile:  22px;
  --ccs-radius-pill:  999px;
  --ccs-shadow-card:  6px 5px 25px rgba(0, 0, 0, .07);

  /* ── Layout ────────────────────────────────────────────── */
  --ccs-max:          1080px;   /* page width (.ccs-wrap); 24px side padding */
  --ccs-read:         720px;    /* reading column (.ccs-column): text, prompts, single cards */
  --ccs-gutter:       24px;
  --ccs-section:      64px;     /* vertical space between sections (56–64) */
  --ccs-tap:          44px;     /* minimum button height */
}

/* ── Base ─────────────────────────────────────────────────── */
body {
  margin: 0;
  background: var(--ccs-paper);
  color: var(--ccs-ink);
  font-family: var(--ccs-font-body);
  font-size: var(--ccs-size-body);
  line-height: 1.65;
}
* { text-wrap: pretty; }
a { color: var(--ccs-green); text-underline-offset: .15em; }
a:hover { color: var(--ccs-ink); text-decoration-thickness: 2px; }   /* green → ink: a different color, 14.5:1 */

/* ── Building blocks (optional: use the classes or copy the look) ── */
.ccs-wrap     { max-width: var(--ccs-max); margin: 0 auto; padding: 0 var(--ccs-gutter); }
/* LAYOUT RULE: content is always a CENTERED column. Everything in a section
   (heading, intro text, cards, prompts) shares one width; never a narrow
   block hugging the left beside empty space. */
.ccs-column   { max-width: var(--ccs-read); margin-inline: auto; }
.ccs-section  { padding-block: var(--ccs-section); }
.ccs-center   { text-align: center; }
/* Logos (images in /brand/; green, so light backgrounds only; icon on green/orange). */
.ccs-logo         { display: block; height: 40px; width: auto; }
.ccs-logo--hero   { display: block; width: min(320px, 70%); height: auto; margin-inline: auto; }
.ccs-logo--icon   { display: block; width: 56px; height: 56px; border-radius: 14px; }
.ccs-display  { font-family: var(--ccs-font-display); font-weight: 400; color: var(--ccs-orange); font-size: var(--ccs-size-hero); line-height: .9; letter-spacing: -.02em; margin: 0; }
.ccs-lede     { font-family: var(--ccs-font-serif); font-size: var(--ccs-size-lede); line-height: 1.2; }
.ccs-h2       { font-family: var(--ccs-font-serif); font-weight: 400; font-size: var(--ccs-size-h2); line-height: 1.15; color: var(--ccs-green); margin: 0; }
.ccs-h3       { font-family: var(--ccs-font-serif); font-weight: 400; font-size: var(--ccs-size-h3); line-height: 1.15; margin: 0; }
.ccs-eyebrow  { font-family: var(--ccs-font-script); text-transform: uppercase; letter-spacing: .1em; font-size: var(--ccs-size-eyebrow); line-height: 1.3; margin: 0; }
.ccs-label    { font-family: var(--ccs-font-label); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--ccs-ink-muted); }
.ccs-highlight{ background: linear-gradient(var(--ccs-highlight), var(--ccs-highlight)) no-repeat 0 88% / 100% 42%; }   /* never near green */
.ccs-highlight--lilac { background: linear-gradient(var(--ccs-lilac), var(--ccs-lilac)) no-repeat 0 88% / 100% 42%; }   /* use near green */
.ccs-badge    { font-family: var(--ccs-font-label); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; padding: 5px 12px; border-radius: var(--ccs-radius-pill); background: var(--ccs-lilac); color: var(--ccs-ink); border: 2px solid var(--ccs-orange); }   /* orange + purple, legible: ink on lilac 11.2:1 */
.ccs-card     { background: var(--ccs-card); border-radius: var(--ccs-radius-card); box-shadow: var(--ccs-shadow-card); padding: 24px; }
.ccs-panel    { background: var(--ccs-lilac); border-radius: var(--ccs-radius-card); padding: 40px; }
.ccs-band     { background: var(--ccs-sky); }
.ccs-pill {
  font-family: var(--ccs-font-label); text-transform: uppercase; letter-spacing: .12em; font-size: var(--ccs-size-label);
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--ccs-tap); padding: 0 28px;
  border: 2px solid var(--ccs-green); border-radius: var(--ccs-radius-pill); background: var(--ccs-green); color: var(--ccs-on-color);
  text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s;
}
/* Hover: green → ice with ink text (12.5:1). A different color, never a darker green. */
.ccs-pill:hover { transform: translateY(-2px); background: var(--ccs-sky); color: var(--ccs-ink); }
/* Secondary: ice with green outline; hover flips to the green pill (white on green 4.94:1). */
.ccs-pill--light { background: var(--ccs-sky); color: var(--ccs-ink); }
.ccs-pill--light:hover { background: var(--ccs-green); color: var(--ccs-on-color); }
.ccs-pill:focus-visible { outline: 3px solid var(--ccs-orange); outline-offset: 3px; }
.ccs-input {
  font: inherit; width: 100%; min-height: var(--ccs-tap); padding: 10px 18px; box-sizing: border-box;
  border: 1px solid var(--ccs-line); border-radius: var(--ccs-radius-pill); background: var(--ccs-card); color: var(--ccs-ink);
}
.ccs-input:focus { outline: 2px solid var(--ccs-green); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ccs-pill:hover { transform: none; } }
