/* E FRIENDS brand layer.
   Palette sampled directly from the supplied key art (EBS_대표이미지_1/2.jpg).
   Semantic names follow the imported Figma token architecture, so every
   component that reads --primary-* / --label-* picks the brand up for free. */

:root {
  /* ══ Signature — 펭수 yellow + black ══════════════════════════════════
     E FRIENDS' main colour IS Pengsoo's own yellow: the beak / legs / logo
     colour the official guide specifies as CMYK C0 M10 Y98 K0 · PANTONE 108 C
     (assets/guides/pengsoo-cmyk.jpg, pengsoo-pantone-2d.jpg).

     --ef-yellow-50 (#FFE103) is MEASURED, not converted — it is the single
     dominant pixel value across the official 2D artwork (85,692 px in
     assets/characters/web/pengsoo-2d-stand.png alone), and it lands within a
     few units of a naive CMYK→sRGB read of the guide's C0 M10 Y98 K0.
     PANTONE 108 C remains the authority for print; ask EBS for their
     production sRGB build before colour-critical work.

     The rest of the ramp is tinted/shaded from that measured base. */
  --ef-yellow-10: #383201;
  --ef-yellow-20: #6b5f01;
  --ef-yellow-30: #a39002;
  --ef-yellow-40: #d6bd03;
  --ef-yellow-45: #ebcf03;
  --ef-yellow-50: #ffe103;
  --ef-yellow-60: #ffe736;
  --ef-yellow-70: #ffed68;
  --ef-yellow-80: #fff39a;
  --ef-yellow-90: #fff9cc;
  --ef-yellow-95: #fffce5;

  --ef-black: #000000;
  --ef-ink: #1c1c1c;
  --ef-ink-elevated: #262626;
  --ef-ink-grid: rgba(255, 255, 255, 0.07);

  /* Character star accents */
  --ef-pink: #ff48a8;
  --ef-purple: #9030ff;
  --ef-orange: #ff7800;
  --ef-green: #18ff78;
  --ef-red: #e01818;

  /* The rainbow rule that closes every key-art layout */
  --ef-rainbow: linear-gradient(90deg, #00b147 0%, #9fb008 25%, #ff7800 45%, #e01818 62%, #ff48a8 80%, #9030ff 100%); /* @kind other */
  /* Grid field behind the characters */
  --ef-grid-field: repeating-linear-gradient(0deg, var(--ef-ink-grid) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, var(--ef-ink-grid) 0 1px, transparent 1px 80px); /* @kind other */

  /* ── Retheme of the imported semantic layer ───────────────────────── */
  --primary-normal: var(--ef-yellow-50);
  --primary-normal-2: var(--ef-yellow-50);
  --primary-normal-3: var(--ef-yellow-50);
  --primary-normal-4: var(--ef-yellow-50);
  --primary-normal-5: var(--ef-yellow-50);
  --primary-strong: var(--ef-yellow-45);
  --primary-heavy: var(--ef-yellow-40);

  /* Yellow needs black type on it — the imported system assumed white. */
  --on-primary: var(--ef-black);
  --inverse-primary: var(--ef-yellow-60);

  --label-strong: var(--ef-black);
  --label-normal: var(--ef-ink);

  --status-positive: #00bf40;
  --status-negative: var(--ef-red);
  --status-cautionary: var(--ef-orange);

  /* Radii and elevation observed in the source components */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-2xl: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(23, 23, 23, 0.06);
  --shadow-raised: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(23, 23, 23, 0.1);
  --shadow-overlay: 0 8px 16px rgba(0, 0, 0, 0.12), 0 16px 48px rgba(23, 23, 23, 0.07);

  --surface-page: var(--background-normal-normal);
  --surface-card: var(--background-elevated-normal);
  --surface-sunken: var(--background-normal-alternative);
  --surface-stage: var(--ef-ink);

  /* ── Deck surfaces ─────────────────────────────────────────────────
     Sampled from the supplied EFriends deck (assets/deck/slide-*.png).
     The presentation layer is warm off-white, not the product's cool grey. */
  --deck-page: #f6efe7;
  --deck-shell: #ffffff;
  --deck-tint-cream: #f6efe7;
  --deck-tint-beige: #f6eed9;
  --deck-tint-sage: #ced1c7;
  --deck-tint-pale: #fbf9ea;
  --deck-eyebrow: #a8a59b;
  --deck-highlight: #f1d376;
  --deck-highlight-pale: #fcf4ac;
  --deck-alert: #e75c59;
  /* ── Character poster grounds ──────────────────────────────────────
     SAMPLED from the supplied character posters (assets/characters/poster-*.png)
     — these are the flat backgrounds behind each figure, NOT the characters'
     own colours. For the official per-character palettes see tokens/characters.css,
     which is transcribed from EBS's own colour guides and takes precedence.
     Diagonal stripes sit on top at ~7% white, 24px pitch, 135°. */
  --poster-ground-pengsoo: #f0cd5f;
  --poster-ground-dingdae: #8568a7;
  --poster-ground-ttukttagi: #e5a866;
  --poster-ground-poongpoongee: #d4604c;
  --poster-ground-beongaeman: #6680bc;
  --poster-ground-aiya: #9e7e57;
  --poster-ground-ddolbi: #202020;
  --poster-stripes: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 12px, transparent 12px 24px); /* @kind other */

  --deck-radius: 20px;
  --deck-radius-sm: 12px;
}

/* Dark / on-stage surfaces: the key-art look — black grid field, yellow accent */
:root[data-theme='stage'],
.ef-stage {
  --surface-page: var(--ef-ink);
  --surface-card: var(--ef-ink-elevated);
  --label-normal: #ffffff;
  --label-strong: #ffffff;
  --label-neutral: rgba(255, 255, 255, 0.88);
  --label-alternative: rgba(255, 255, 255, 0.61);
  --label-assistive: rgba(255, 255, 255, 0.28);
  --line-normal-normal: rgba(255, 255, 255, 0.22);
  --fill-normal: rgba(255, 255, 255, 0.08);
  --fill-strong: rgba(255, 255, 255, 0.16);
}

a { color: var(--ef-yellow-40); text-decoration: none; }
a:hover { color: var(--ef-yellow-30); text-decoration: underline; }
.ef-stage a, [data-theme='stage'] a { color: var(--ef-yellow-50); }
.ef-stage a:hover, [data-theme='stage'] a:hover { color: var(--ef-yellow-70); }
