/* Links whose destination has a look of its own (.lk-item--skin, picked by LinkSkin from the URL): the row
   wears that place's ground, type and button instead of the parchment card. One set of rules, driven by
   variables each skin fills in. Loaded only when such a link exists. The site's own writing and Lab have a skin
   too; any other link keeps the parchment row. */
@font-face {
    font-family: "Geist";
    src: url("../fonts/geist-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

.lk-item.lk-item--skin {
    --sk-ground: #0E0F11;
    --sk-line: rgba(255, 255, 255, 0.14);
    --sk-line-hot: rgba(255, 255, 255, 0.45);
    --sk-text: #FFFFFF;
    --sk-mute: rgba(255, 255, 255, 0.7);
    --sk-accent: #FFFFFF;
    --sk-tile: rgba(255, 255, 255, 0.08);
    --sk-mark: #FFFFFF;
    --sk-cta: #FFFFFF;
    --sk-cta-ink: #000000;
    --sk-cta-radius: 8px;
    --sk-radius: 12px;
    --sk-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --sk-title-weight: 600;
    --sk-title-font: inherit;
    --sk-title-size: 16px;
    --sk-title-track: -0.01em;
    --sk-cta-font: inherit;
    --sk-cta-size: 13px;
    --sk-cta-track: 0;
    --sk-cta-case: none;
    padding: 15px 16px 15px 18px;
    color: var(--sk-text);
    font-family: var(--sk-font);
    background: var(--sk-ground);
    border-color: var(--sk-line);
    border-radius: var(--sk-radius);
    box-shadow: 0 16px 32px -22px rgba(0, 0, 0, 0.75);
}

.lk-item.lk-item--skin::before { background: var(--sk-accent); }
.lk-item.lk-item--skin::after { background: linear-gradient(105deg, transparent 36%, color-mix(in srgb, var(--sk-accent) 24%, transparent) 50%, transparent 64%); }

.lk-item.lk-item--skin:hover,
.lk-item.lk-item--skin:focus-visible {
    border-color: var(--sk-line-hot);
    box-shadow: 0 22px 40px -24px rgba(0, 0, 0, 0.8);
}

.lk-item--skin .lk-item-media {
    border-radius: 10px;
    border-color: var(--sk-line);
    background: var(--sk-tile);
    color: var(--sk-mark);
}

.lk-item--skin .lk-skin-mark,
.lk-item--skin .lk-pump-mark {
    width: 22px;
    height: 22px;
    display: block;
}

.lk-item--skin .lk-pump-mark { width: 26px; height: 26px; }
.lk-item--skin .lk-skin-mark--line { fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }

.lk-item--skin .lk-item-title,
.lk-item.lk-item--skin:hover .lk-item-title {
    font-family: var(--sk-title-font);
    font-size: var(--sk-title-size);
    font-weight: var(--sk-title-weight);
    letter-spacing: var(--sk-title-track);
    color: var(--sk-text);
}

.lk-item--skin .lk-item-desc {
    margin-top: 3px;
    font-size: 13px;
    color: var(--sk-mute);
}

.lk-item--skin .lk-item-cta {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: var(--sk-cta-radius);
    font-family: var(--sk-cta-font);
    font-size: var(--sk-cta-size);
    font-weight: 600;
    letter-spacing: var(--sk-cta-track);
    text-transform: var(--sk-cta-case);
    line-height: 1;
    white-space: nowrap;
    color: var(--sk-cta-ink);
    background: var(--sk-cta);
    transition: filter 0.2s ease;
}

.lk-item.lk-item--skin:hover .lk-item-cta { filter: brightness(1.08); }

/* Each ground is a soft blend of the brand's own colours, so the rows read apart at a glance, and it is the
   same on the light and the dark page: a skin never follows the site theme. */

/* pump.fun: its night running into its green, Geist, the green button */
.lk-item.lk-item--pump {
    --sk-ground: linear-gradient(112deg, #0E1512 0%, #11281E 42%, #1A5A3D 100%);
    --sk-line: rgba(102, 255, 153, 0.22);
    --sk-line-hot: rgba(102, 255, 153, 0.6);
    --sk-text: #F1F5F2;
    --sk-mute: rgba(214, 240, 226, 0.74);
    --sk-accent: #66FF99;
    --sk-tile: rgba(8, 20, 14, 0.55);
    --sk-cta: #66FF99;
    --sk-cta-ink: #052E16;
    --sk-font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* X: black running into graphite and a silver edge, white type, the white pill */
.lk-item.lk-item--x {
    --sk-ground: linear-gradient(112deg, #000000 0%, #14171A 46%, #454B52 100%);
    --sk-line: rgba(231, 233, 234, 0.2);
    --sk-line-hot: rgba(231, 233, 234, 0.6);
    --sk-text: #F3F4F5;
    --sk-mute: rgba(220, 224, 228, 0.7);
    --sk-accent: #E7E9EA;
    --sk-tile: rgba(0, 0, 0, 0.6);
    --sk-mark: #E7E9EA;
    --sk-cta: #EFF3F4;
    --sk-cta-ink: #0F1419;
    --sk-cta-radius: 999px;
    --sk-radius: 16px;
    --sk-title-weight: 700;
}

/* Binance: its charcoal running into its yellow, as a warm bronze */
.lk-item.lk-item--binance {
    --sk-ground: linear-gradient(112deg, #1B1D23 0%, #3B3214 46%, #7A6210 100%);
    --sk-line: rgba(252, 213, 53, 0.26);
    --sk-line-hot: rgba(252, 213, 53, 0.7);
    --sk-text: #FAF6E6;
    --sk-mute: rgba(250, 240, 204, 0.76);
    --sk-accent: #FCD535;
    --sk-tile: rgba(11, 14, 17, 0.6);
    --sk-mark: #FCD535;
    --sk-cta: #FCD535;
    --sk-cta-ink: #202630;
    --sk-radius: 10px;
}

/* Telegram: its two blues, white type, the white pill */
.lk-item.lk-item--telegram {
    --sk-ground: linear-gradient(112deg, #37AEE2 0%, #229ED9 46%, #1A82C4 100%);
    --sk-line: rgba(255, 255, 255, 0.28);
    --sk-line-hot: rgba(255, 255, 255, 0.8);
    --sk-text: #FFFFFF;
    --sk-mute: rgba(255, 255, 255, 0.86);
    --sk-accent: #FFFFFF;
    --sk-tile: #FFFFFF;
    --sk-mark: #229ED9;
    --sk-cta: #FFFFFF;
    --sk-cta-ink: #1C93D2;
    --sk-cta-radius: 999px;
    --sk-radius: 14px;
    box-shadow: 0 16px 32px -22px rgba(20, 110, 160, 0.9);
}

.lk-item--telegram .lk-item-media { border-radius: 50%; }

/* The site's own writing: a parchment page running into gold, Garamond and Cinzel, the ink button */
.lk-item.lk-item--essay {
    --sk-ground: linear-gradient(112deg, #FBF5E3 0%, #EFDFB4 46%, #D8B25A 100%);
    --sk-line: rgba(200, 146, 46, 0.6);
    --sk-line-hot: #C8922E;
    --sk-text: #2A2418;
    --sk-mute: #5C5238;
    --sk-accent: #C8922E;
    --sk-tile: rgba(255, 252, 240, 0.7);
    --sk-mark: #2A2418;
    --sk-cta: #2A2418;
    --sk-cta-ink: #F4ECD6;
    --sk-cta-radius: 2px;
    --sk-cta-font: Cinzel, serif;
    --sk-cta-size: 11px;
    --sk-cta-track: 0.16em;
    --sk-cta-case: uppercase;
    --sk-radius: 8px;
    --sk-font: "EB Garamond", Georgia, serif;
    --sk-title-weight: 500;
    --sk-title-size: 19px;
    --sk-title-track: 0;
    box-shadow: 0 16px 32px -22px rgba(90, 62, 12, 0.75);
}

.lk-item--essay .lk-item-desc { font-size: 14.5px; font-style: italic; }

/* The Lab: the amber of its liquid, from the dark of the bench up to the light in the flask */
.lk-item.lk-item--lab {
    --sk-ground: linear-gradient(112deg, #1D160D 0%, #4B300C 46%, #B77A17 100%);
    --sk-line: rgba(224, 169, 58, 0.4);
    --sk-line-hot: rgba(239, 192, 79, 0.85);
    --sk-text: #FBEFD2;
    --sk-mute: rgba(251, 239, 210, 0.8);
    --sk-accent: #EFC04F;
    --sk-tile: rgba(20, 14, 6, 0.55);
    --sk-mark: #EFC04F;
    --sk-cta: #F1E3BF;
    --sk-cta-ink: #2A2418;
    --sk-cta-radius: 2px;
    --sk-cta-font: Cinzel, serif;
    --sk-cta-size: 11px;
    --sk-cta-track: 0.16em;
    --sk-cta-case: uppercase;
    --sk-radius: 8px;
    --sk-font: "EB Garamond", Georgia, serif;
    --sk-title-weight: 500;
    --sk-title-size: 19px;
    --sk-title-track: 0;
}

.lk-item--lab .lk-item-desc { font-size: 14.5px; font-style: italic; }

@media (max-width: 560px) {
    .lk-item.lk-item--skin { padding: 13px 12px 13px 13px; }
    .lk-item--skin .lk-item-title { font-size: 15px; }
    .lk-item--essay .lk-item-title, .lk-item--lab .lk-item-title { font-size: 17.5px; }
    .lk-item--skin .lk-item-desc { font-size: 12.5px; }
    .lk-item--skin .lk-item-cta { padding: 8px 12px; font-size: 12.5px; }
}
