/* 골든패스 (golden pass): every colour on the pages lives in this file. site.css uses only the --c-* aliases below.
   Two layers:
   1. the palette: the 66 role values of p3 ink + gold (owner 2026-11-23: "2. p3."), a copy of
      design/palettes/p3-ink-gold.css. build.mjs compares the two on every build and stops if they differ.
   2. the alias layer: each --c-* name reads one role.
   Open a page with ?palette=p1|p2|p3 and the matching file in palettes/ loads after this one and restyles both layers.
   Gold is a flat foil colour: a ground under ink figures and the mark. It is never a gradient and never a button; actions are ink. */

/* ---------------------------------------------------------------- 1. palette p3 ink + gold (66 roles) */
:root {
  /* surfaces */
  --surface-page: #F9F7F4;
  --surface-card: #FFFFFF;
  --surface-card-border: #DDD8D0;
  --surface-band-tint: #F4EFE4;
  --surface-band-tint-cool: #E6EEF4;
  --surface-band-tint-warm: #FAF1D7;
  --surface-band-tint-border: #D7CDB8;
  --surface-band-dark: #1D1710;
  --surface-band-dark-2: #2D271E;
  --surface-band-darkest: #110C07;
  --surface-band-dark-border: #494137;
  --control-border: #807970;

  /* text */
  --text-strong: #16120D;
  --text-body: #3F3A33;
  --text-muted: #696259;
  --text-location: #714909;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #D7D0C4;
  --text-accent-on-dark: #E1AE51;
  --link: #1D1710;
  --link-hover: #714909;

  /* accents: bars, eyebrows, active marks */
  --accent: #865812;
  --accent-transfer: #30506C;
  --accent-new-store: #865812;

  /* actions */
  --action-primary: #1D1710;
  --action-primary-hover: #3E372D;
  --action-primary-text: #FFFFFF;
  --action-secondary: #FFFFFF;
  --action-secondary-hover: #F4EFE4;
  --action-secondary-text: #1D1710;
  --action-secondary-border: #1D1710;
  --action-on-dark: #FFFFFF;
  --action-on-dark-hover: #F4EFE4;
  --action-on-dark-text: #1D1710;
  --action-nav-pill: #3E372D;
  --action-nav-pill-text: #FFFFFF;
  --kakao: #FEE500;
  --kakao-text: #191919;

  /* figures */
  --figure-box: #E1AE51;
  --figure-box-text: #16120D;
  --figure-box-label: #16120D;
  --figure-text: #16120D;
  --figure-up: #B71A18;
  --figure-down: #1E55A4;

  /* badges and tags */
  --badge-new: #FFE4DF;
  --badge-new-text: #942318;
  --badge-sample: #EEEBE6;
  --badge-sample-text: #16120D;
  --badge-sample-border: #847D73;
  --badge-verified: #E2F4E7;
  --badge-verified-text: #1E5036;
  --badge-verified-border: #8BB79D;
  --tag: #F4EFE4;
  --tag-text: #3F3A33;
  --tag-transfer: #E6EEF4;
  --tag-transfer-text: #30506C;
  --tag-new-store: #FAF1D7;
  --tag-new-store-text: #714909;

  /* form states */
  --status-error: #B71A18;
  --status-error-surface: #FDE8E5;
  --status-success: #1E5036;
  --status-success-surface: #E2F4E7;

  /* focus */
  --focus-ring: #996A16;
  --focus-ring-on-dark: #E1AE51;

  /* --text-strong and --surface-band-dark as r g b, for rgb(var(--x) / alpha) in shadows and the hero overlay */
  --ink-rgb: 22 18 13;
  --band-dark-rgb: 29 23 16;
}

/* ---------------------------------------------------------------- 2. aliases (what site.css uses) */
:root {
  /* surfaces */
  --c-page: var(--surface-page);
  --c-raised: var(--surface-card);
  --c-brand-dark: var(--surface-band-dark);            /* header, recommended band */
  --c-brand-dark-2: var(--surface-band-dark-2);        /* consult band */
  --c-utility-dark: var(--surface-band-darkest);       /* utility bar, footer band */
  --c-cool-tint: var(--surface-band-tint-cool);        /* 양도양수 band */
  --c-warm-tint: var(--surface-band-tint-warm);        /* 신규 입점 band */
  --c-brand-tint: var(--surface-band-tint);            /* similar panel, photo placeholder, range tiles */
  --c-scrim: rgb(var(--band-dark-rgb) / 0.50);         /* flat scrim over the hero photo (no gradient) */
  --c-mark-bg: rgb(var(--ink-rgb) / 0.74);             /* the one 샘플 · 예시 이미지 mark */

  /* lines */
  --c-hairline: var(--surface-card-border);
  --c-hairline-cool: var(--surface-band-tint-border);
  --c-hairline-warm: var(--surface-band-tint-border);
  --c-control-line: var(--control-border);
  --c-line-on-dark: var(--surface-band-dark-border);
  --c-perf: var(--control-border);                     /* the dotted cut line between a card's body and its stub */

  /* ink */
  --c-ink: var(--text-strong);
  --c-ink-body: var(--text-body);
  --c-ink-muted: var(--text-muted);
  --c-ink-location: var(--text-location);
  --c-ink-on-dark: var(--text-on-dark);
  --c-ink-on-dark-muted: var(--text-on-dark-muted);
  --c-mark-ink: var(--text-on-dark);
  --c-link: var(--link);                               /* links, breadcrumb, see-all, counts in pills */
  --c-accent: var(--accent);                           /* section bar and eyebrow on light surfaces */
  --c-accent-on-dark: var(--text-accent-on-dark);      /* section bar and eyebrow on the dark band */
  --c-foil: var(--text-accent-on-dark);                /* the ticket mark on dark surfaces (flat gold) */

  /* actions (ink; gold is never a button) */
  --c-action: var(--action-primary);                   /* primary button on light surfaces */
  --c-action-hover: var(--action-primary-hover);
  --c-on-action: var(--action-primary-text);
  --c-cta: var(--action-primary);                      /* finder submit on a light surface */
  --c-on-cta: var(--action-primary-text);
  --c-cta-dark: var(--action-on-dark);                 /* header consult button on the dark header */
  --c-on-cta-dark: var(--action-on-dark-text);
  --c-action-line: var(--action-secondary-border);     /* outline button on a light surface */
  --c-on-action-line: var(--action-secondary-text);
  --c-action-line-hover: var(--action-secondary-hover);
  --c-nav-pill: var(--action-nav-pill);
  --c-on-nav-pill: var(--action-nav-pill-text);
  --c-accent-cool: var(--accent-transfer);             /* 양도양수: bar, eyebrow, count, band button */
  --c-on-accent-cool: var(--text-on-dark);
  --c-accent-warm: var(--accent-new-store);            /* 신규 입점: bar, eyebrow, count, band button */
  --c-on-accent-warm: var(--text-on-dark);
  --c-kakao: var(--kakao);                             /* the messenger's own colour */
  --c-on-kakao: var(--kakao-text);
  --c-focus: var(--focus-ring);
  --c-focus-on-dark: var(--focus-ring-on-dark);
  --c-heart: var(--figure-up);

  /* figures: the gold strip, the stub and the issued pass share one ground and one ink */
  --c-figure-box: var(--figure-box);                   /* the one emphasised figure; the ground of the issued pass */
  --c-figure-box-line: var(--figure-box);
  --c-figure-box-ink: var(--figure-box-text);
  --c-figure-box-label: var(--figure-box-label);
  --c-figure-ink: var(--figure-text);                  /* row figures and the other decision facts */

  /* tags and records */
  --c-tag: var(--tag);
  --c-tag-ink: var(--tag-text);
  --c-tag-transfer: var(--tag-transfer);
  --c-tag-transfer-ink: var(--tag-transfer-text);
  --c-tag-new: var(--tag-new-store);
  --c-tag-new-ink: var(--tag-new-store-text);
  --c-verified: var(--badge-verified-text);

  /* form states */
  --c-error: var(--status-error);                      /* the inquiry form's field errors: text and the field's ring */

  /* chart */
  --c-chart-cost: var(--surface-band-tint-border);
  --c-chart-profit: var(--action-primary);
}
