/* ——— Icons ———
   Glyphs from Lucide (lucide.dev), ISC licensed, vendored one SVG per icon so
   that `ls app/assets/images/*.svg` is the icon index the way `ls
   app/assets/stylesheets` is the component index. Add a glyph only when a
   surface actually uses it; the file and the line below land together.

   Masked, never <img>: the span is painted with currentColor and the SVG only
   supplies the shape. That is what lets one file serve a quiet button, a
   destructive row, a straw note and dark mode without a single icon variant —
   an <img> would need one per ink. Lucide's 2px stroke on a 24px grid lands at
   ~1.3px when the icon sizes itself to 1em, which is the hairline weight the
   rest of the design is drawn in.

   Size is --icon-size, so a control can retune it the way variants retune
   everything else here. */
@layer components {
  .icon {
    display: inline-block;
    flex-shrink: 0;
    inline-size: var(--icon-size, 1em);
    block-size: var(--icon-size, 1em);
    background-color: currentColor;
    mask-image: var(--svg);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    pointer-events: none;
    user-select: none;
  }

  .icon--activity { --svg: url("/assets/activity-a76c6b24.svg"); }
  .icon--arrow-down { --svg: url("/assets/arrow-down-9a42fbc0.svg"); }
  .icon--arrow-left { --svg: url("/assets/arrow-left-468377e2.svg"); }
  .icon--arrow-left-right { --svg: url("/assets/arrow-left-right-8e7c6210.svg"); }
  .icon--arrow-right { --svg: url("/assets/arrow-right-a07020a1.svg"); }
  .icon--arrow-up { --svg: url("/assets/arrow-up-d973aad3.svg"); }
  .icon--at-sign { --svg: url("/assets/at-sign-5aae1fa1.svg"); }
  .icon--bell { --svg: url("/assets/bell-f2296f62.svg"); }
  .icon--bell-off { --svg: url("/assets/bell-off-94900c5f.svg"); }
  .icon--bell-ring { --svg: url("/assets/bell-ring-14dd06aa.svg"); }
  /* The outline/solid pair rule below applies here too: bookmarking a thing is
     the one mark on a page that has an on and an off state to draw. */
  .icon--bookmark { --svg: url("/assets/bookmark-60b88ba0.svg"); }
  .icon--bookmark-filled { --svg: url("/assets/bookmark-filled-795201e0.svg"); }
  .icon--bot { --svg: url("/assets/bot-0db9d444.svg"); }
  .icon--building-2 { --svg: url("/assets/building-2-a007df8a.svg"); }
  .icon--calendar { --svg: url("/assets/calendar-2e1d4175.svg"); }
  .icon--calendar-plus { --svg: url("/assets/calendar-plus-7cb9a945.svg"); }
  .icon--captions { --svg: url("/assets/captions-c215ee5b.svg"); }
  .icon--check { --svg: url("/assets/check-af489e59.svg"); }
  .icon--chevron-down { --svg: url("/assets/chevron-down-8022ef66.svg"); }
  .icon--chevron-left { --svg: url("/assets/chevron-left-e2ce7d6f.svg"); }
  .icon--chevron-right { --svg: url("/assets/chevron-right-66034b7e.svg"); }
  .icon--chevrons-down-up { --svg: url("/assets/chevrons-down-up-18dd1593.svg"); }
  .icon--chevrons-up-down { --svg: url("/assets/chevrons-up-down-4d83ec75.svg"); }
  .icon--circle-check { --svg: url("/assets/circle-check-9fe1f780.svg"); }
  .icon--circle-check-big { --svg: url("/assets/circle-check-big-497433f4.svg"); }
  .icon--circle-user { --svg: url("/assets/circle-user-8c9182f6.svg"); }
  .icon--circle-x { --svg: url("/assets/circle-x-258ebd5f.svg"); }
  .icon--clock { --svg: url("/assets/clock-5e13df23.svg"); }
  .icon--copy { --svg: url("/assets/copy-443b6a70.svg"); }
  .icon--download { --svg: url("/assets/download-8f147ef2.svg"); }
  .icon--ellipsis { --svg: url("/assets/ellipsis-ed7720ee.svg"); }
  /* A link that leaves for another site in a tab of its own: Subscribe…'s
     Open Google (calendars/subscriptions). */
  .icon--external-link { --svg: url("/assets/external-link-35d17bf2.svg"); }
  .icon--eye { --svg: url("/assets/eye-4160982a.svg"); }
  .icon--file-text { --svg: url("/assets/file-text-afd3bfe7.svg"); }
  .icon--folder { --svg: url("/assets/folder-f3ed7674.svg"); }
  .icon--hourglass { --svg: url("/assets/hourglass-0ea3348f.svg"); }
  .icon--house { --svg: url("/assets/house-342396d0.svg"); }
  .icon--key { --svg: url("/assets/key-0efb3271.svg"); }
  /* Basecamp's own glyph for Adminland. Not building-2, which the palette
     already spends on Clients — two doors wearing one shape is worse than
     one extra file. */
  .icon--key-round { --svg: url("/assets/key-round-d3c66032.svg"); }
  .icon--link { --svg: url("/assets/link-dca6e5ee.svg"); }
  .icon--list { --svg: url("/assets/list-89e5c121.svg"); }
  .icon--list-checks { --svg: url("/assets/list-checks-f0825fca.svg"); }
  .icon--list-filter { --svg: url("/assets/list-filter-d1af34ce.svg"); }
  /* Not Lucide: the chalet.do mark, cut from the logo package's transparent
     master. A PNG, because the brush stroke has no vector; only its alpha
     reaches the mask. Always shu — the token carries both themes' reds, which
     are the package's two (#BC4B35, #CF6B57). */
  .icon--logo { --svg: url("/assets/logo-04b2dfe2.png"); color: var(--color-accent); }
  .icon--lock { --svg: url("/assets/lock-50f9bdbc.svg"); }
  .icon--mail { --svg: url("/assets/mail-aee58f4e.svg"); }
  .icon--map-pin { --svg: url("/assets/map-pin-7fca6a3e.svg"); }
  .icon--maximize-2 { --svg: url("/assets/maximize-2-b9a76d7c.svg"); }
  .icon--message-square { --svg: url("/assets/message-square-536d1494.svg"); }
  .icon--messages-square { --svg: url("/assets/messages-square-87334f72.svg"); }
  .icon--mic { --svg: url("/assets/mic-3e1963a3.svg"); }
  .icon--monitor { --svg: url("/assets/monitor-80e57ca3.svg"); }
  .icon--moon { --svg: url("/assets/moon-1126f0fd.svg"); }
  .icon--newspaper { --svg: url("/assets/newspaper-e28ed395.svg"); }
  .icon--paperclip { --svg: url("/assets/paperclip-730eb538.svg"); }
  .icon--pencil { --svg: url("/assets/pencil-a6367e89.svg"); }
  .icon--phone { --svg: url("/assets/phone-bc8f4e25.svg"); }
  .icon--phone-missed { --svg: url("/assets/phone-missed-36bd1b70.svg"); }
  .icon--picture-in-picture-2 { --svg: url("/assets/picture-in-picture-2-eaaac5c6.svg"); }
  .icon--plug { --svg: url("/assets/plug-c5f86445.svg"); }
  .icon--plus { --svg: url("/assets/plus-77a3887e.svg"); }
  .icon--repeat { --svg: url("/assets/repeat-6635ffa0.svg"); }
  .icon--reply { --svg: url("/assets/reply-7a3459f6.svg"); }
  .icon--screen-share { --svg: url("/assets/screen-share-f348fb70.svg"); }
  .icon--search { --svg: url("/assets/search-ee97fcb8.svg"); }
  .icon--share { --svg: url("/assets/share-8b9da490.svg"); }
  .icon--smile { --svg: url("/assets/smile-8072db22.svg"); }
  .icon--smile-plus { --svg: url("/assets/smile-plus-ce6ab853.svg"); }
  .icon--sliders-horizontal { --svg: url("/assets/sliders-horizontal-3cd67c92.svg"); }
  /* Stop: Lucide's square, solid and a size smaller. */
  .icon--square { --svg: url("/assets/square-27906143.svg"); }
  .icon--square-kanban { --svg: url("/assets/square-kanban-20aecf30.svg"); }
  .icon--sticky-note { --svg: url("/assets/sticky-note-e9403bce.svg"); }
  .icon--type { --svg: url("/assets/type-b5593d8a.svg"); }
  /* Two shapes, not one shape and an opacity: a masked glyph is painted rather
     than drawn, so the outline and the solid are different masks. */
  .icon--star { --svg: url("/assets/star-1deeb2e3.svg"); }
  .icon--star-filled { --svg: url("/assets/star-filled-1657444d.svg"); }
  .icon--sun { --svg: url("/assets/sun-d4df8ba7.svg"); }
  .icon--table { --svg: url("/assets/table-3a879322.svg"); }
  .icon--trash-2 { --svg: url("/assets/trash-2-ccdef950.svg"); }
  .icon--upload { --svg: url("/assets/upload-1e463a5f.svg"); }
  .icon--user-plus { --svg: url("/assets/user-plus-e872c497.svg"); }
  .icon--users { --svg: url("/assets/users-24b7749d.svg"); }
  .icon--video { --svg: url("/assets/video-92d298a8.svg"); }
  .icon--x { --svg: url("/assets/x-8fdf8036.svg"); }

  /* The card board's maximize glyph: the name is the board's, the shape is
     Lucide's grid-2x2. */
  .icon--grid { --svg: url("/assets/grid-2x2-50170731.svg"); }
}
