/* Wanora “Cut” icons — What we do
   Colours and easings match the v4-light palette and motion tiers.
   Size tokens are measured from site-hero-variant: .kind .wmini is 120px, 84px below 520px.
   The section ground is sand (#E3ECEE). Use ink on white or sand, ice on deep.
   Petrol is only for an action part (the booked slot, the browser, the seating piece)
   and must stay at about 10% or less of the icon. Default is mono currentColor. */

:root {
  --wn-icon-ink: #0B1A22;
  --wn-icon-sand: #E3ECEE;
  --wn-icon-deep: #123E54;
  --wn-icon-on-deep: #EEF3F4;
  --wn-icon-petrol: #2C6E8A; /* action only */

  /* Display sizes. The 24 master is the one to scale to the card; 20 and 16 are hinted rasters. */
  --wn-icon-size-card: 120px;
  --wn-icon-size-card-sm: 84px; /* @media (max-width: 520px) */
  /* Pinned #build stage only (min 1000px wide and 760px tall, motion on). About half the stage. List cards stay at 120/84. */
  --wn-icon-size-pin: clamp(260px, 23.3vw, 336px);
  --wn-icon-size-24: 24px;
  --wn-icon-size-20: 20px;
  --wn-icon-size-16: 16px;
  --wn-icon-size: var(--wn-icon-size-card);

  /* One viewBox unit, in CSS pixels, at the current display size. Use this in motion translates. */
  --wn-icon-u: calc(var(--wn-icon-size) / 24);

  /* Bar widths are authored per size, not scaled. When the 24 master is displayed at 120px they become 10px. */
  --wn-icon-bar-24: 2px;
  --wn-icon-bar-20: 1.75px;
  --wn-icon-bar-16: 1.5px;
  --wn-icon-seam: 1px;
  --wn-icon-cut: 14deg;          /* bar 4, K = 0.25 run per unit rise */
  --wn-icon-cut-k: 0.25;

  /* Motion tiers already in the brand: 120/180, 240/420, 900. These in-view plays stay on those tiers and at or under 900ms. */
  --wn-ease-blade: cubic-bezier(.7, 0, .3, 1);
  --wn-ease-drape: cubic-bezier(.45, 0, .15, 1);
  --wn-ease-seam: cubic-bezier(.65, .05, .25, 1);
  --wn-ease-settle: cubic-bezier(.2, .7, .2, 1);
  --wn-ease-fade: cubic-bezier(.4, 0, .2, 1);

  --wn-dur-quick: 240ms;
  --wn-dur-in: 420ms;
  --wn-dur-hold: 900ms;
}

/* Suggested colour binding. The SVG itself is currentColor. */
.wn-icon { color: var(--wn-icon-ink); }
.sec--sand .wn-icon,
.sec--white .wn-icon { color: var(--wn-icon-ink); }
.sec--deep .wn-icon { color: var(--wn-icon-on-deep); }

/* Optional: colour only the action part. Keep this off by default so the set stays mono. */
.wn-icon.is-accent .wn-part--action { color: var(--wn-icon-petrol); }

@media (max-width: 520px) {
  :root { --wn-icon-size: var(--wn-icon-size-card-sm); }
}
