/* ============================================================
   icons.css — custom icon set (design-independent)
   ------------------------------------------------------------
   Replaces every emoji / symbol glyph on the site. Each icon is
   an SVG drawn on a 24x24 grid, applied as a CSS mask so it
   always takes the surrounding text colour (currentColor) and
   works in light + dark mode.

   This file is shared by every design, so keep it when the
   site's style.css is swapped (see DESIGN_SNAPSHOT.md).

   Usage in HTML:
     <span class="icon icon--arrow-right" aria-hidden="true"></span>

   Usage inside another stylesheet (pseudo-elements):
     .thing::after {
         content: '';
         width: 1em; height: 1em;
         background: currentColor;
         -webkit-mask: var(--icon-arrow-right) center / contain no-repeat;
                 mask: var(--icon-arrow-right) center / contain no-repeat;
     }

   Icon            Replaces   Used for
   arrow-right      →         card footers, side-nav buttons
   arrow-up-right   ↗         external links (GitHub, PDF)
   arrow-up-right-thin        Ronde home frosted arrow buttons
   arrow-up         ↑         resume "View PDF" (raises the PDF sheet)
   caret-down       ▾         sort / filter dropdowns
   play-right       ▸         section bands, breadcrumbs
   play-left        ◂
   fast-forward     ▸▸        status / telemetry readouts
   rewind           ◂◂        status / telemetry readouts
   chevron-left     ‹         slider "previous" buttons
   chevron-right    ›  >      slider "next" buttons, breadcrumbs
   star             ★         resume highlight
   dot              •         tech-stack separators
   copy                       copy-to-clipboard buttons
   download                   PDF download buttons
   swap                       home page design switch
   check                      copy buttons, after copying
   mail                       contact page email
   github                     contact page GitHub (brand mark)
   linkedin                   contact page LinkedIn (brand mark)
   file                       contact page resume card
   users                      home page experience shortcut
   expand                     experience image viewer (enlarge)
   close                      experience image viewer (close)
   ============================================================ */

:root {
    --icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m-4-4 4 4 4-4M5 16v4h14v-4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h16M13 5l7 7-7 7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='square'/%3E%3C/svg%3E");
    --icon-arrow-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21V5M5 11l7-7 7 7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='square'/%3E%3C/svg%3E");
    --icon-arrow-up-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18L17 7M8 6h10v10' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='square'/%3E%3C/svg%3E");
    --icon-arrow-up-right-thin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17 17 7M7 7h10v10' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --icon-caret-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 8h14l-7 9z'/%3E%3C/svg%3E");
    --icon-play-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4l12 8-12 8z'/%3E%3C/svg%3E");
    --icon-play-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 4L5 12l12 8z'/%3E%3C/svg%3E");
    --icon-fast-forward: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5l10 7-10 7zM12 5l10 7-10 7z'/%3E%3C/svg%3E");
    --icon-rewind: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 5l-10 7 10 7zM12 5L2 12l10 7z'/%3E%3C/svg%3E");
    --icon-chevron-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 4l-8 8 8 8' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='square'/%3E%3C/svg%3E");
    --icon-chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4l8 8-8 8' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='square'/%3E%3C/svg%3E");
    --icon-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.7-5.4 4.7 1.6 7L12 17.3 5.8 21l1.6-7L2 9.3l7.1-.7z'/%3E%3C/svg%3E");
    --icon-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3C/svg%3E");
    --icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='3'/%3E%3Cpath d='M16 5.5V5a1 1 0 0 0-1-1H6a2 2 0 0 0-2 2v9a1 1 0 0 0 1 1h.5'/%3E%3C/g%3E%3C/svg%3E");
    --icon-swap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8h15M15 4l4 4-4 4M20 16H5M9 12l-4 4 4 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4.5' width='19' height='15' rx='3'/%3E%3Cpath d='m3.5 7.5 7.4 5a2 2 0 0 0 2.2 0l7.4-5'/%3E%3C/g%3E%3C/svg%3E");
    --icon-github: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");
    --icon-linkedin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
    --icon-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7.5' r='3.5'/%3E%3Cpath d='M2 20v-1.5a4 4 0 0 1 4-4h6a4 4 0 0 1 4 4V20M16 4.2a3.5 3.5 0 0 1 0 6.6M18 14.6a4 4 0 0 1 4 4V20'/%3E%3C/g%3E%3C/svg%3E");
    --icon-expand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 4h6v6M20 4l-6.5 6.5M10 20H4v-6M4 20l6.5-6.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    --icon-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.5 3H8a2.5 2.5 0 0 0-2.5 2.5v13A2.5 2.5 0 0 0 8 21h8a2.5 2.5 0 0 0 2.5-2.5V8z'/%3E%3Cpath d='M13.5 3v5h5M9 13h6M9 16.5h3.5'/%3E%3C/g%3E%3C/svg%3E");
}

.icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
            mask: var(--icon) center / contain no-repeat;
}

/* spacing helpers for icons that sit next to text */
.icon--lead  { margin-right: 0.45em; }
.icon--trail { margin-left: 0.45em; }

.icon--arrow-right    { --icon: var(--icon-arrow-right); }
.icon--arrow-up-right { --icon: var(--icon-arrow-up-right); }
.icon--arrow-up-right-thin { --icon: var(--icon-arrow-up-right-thin); }
.icon--arrow-up       { --icon: var(--icon-arrow-up); }
.icon--caret-down     { --icon: var(--icon-caret-down); }
.icon--play-right     { --icon: var(--icon-play-right); }
.icon--play-left      { --icon: var(--icon-play-left); }
.icon--fast-forward   { --icon: var(--icon-fast-forward); }
.icon--rewind         { --icon: var(--icon-rewind); }
.icon--chevron-left   { --icon: var(--icon-chevron-left); }
.icon--chevron-right  { --icon: var(--icon-chevron-right); }
.icon--star           { --icon: var(--icon-star); }
.icon--dot            { --icon: var(--icon-dot); }
.icon--copy           { --icon: var(--icon-copy); }
.icon--swap           { --icon: var(--icon-swap); }

.icon--download       { --icon: var(--icon-download); }
.icon--check          { --icon: var(--icon-check); }
.icon--mail           { --icon: var(--icon-mail); }
.icon--github         { --icon: var(--icon-github); }
.icon--linkedin       { --icon: var(--icon-linkedin); }
.icon--file           { --icon: var(--icon-file); }
.icon--users          { --icon: var(--icon-users); }
.icon--expand         { --icon: var(--icon-expand); }
.icon--close          { --icon: var(--icon-close); }
