/*
 * retro.css - Copyright (c) 2001-2026 - Olivier Poncet
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/* =============================================================
   xcpc-emulator.net — light re-skin on top of the shared emaxilde
   design system (main.css, processed by Hugo Pipes). Served verbatim
   from static/ and loaded via a plain <link> AFTER the design system
   in head.html.

   Kept intentionally minimal for a modern, harmonious result:
   - Amstrad CPC blue (#2563EB) accent instead of the emerald one,
   - Amstrad CPC pixel font reserved for the single retro "latest
     release" card; the rest of the UI keeps the clean system font
     and the unmodified hero.
   ============================================================= */

/* ---------- AMSTRAD CPC FONT ---------- */

@font-face {
    font-family: 'amstrad-cpc';
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: url('/assets/fonts/amstrad_cpc464.eot?') format('eot'),
         url('/assets/fonts/amstrad_cpc464.woff') format('woff'),
         url('/assets/fonts/amstrad_cpc464.ttf') format('truetype');
}

/* ---------- ACCENT (Amstrad CPC blue) ---------- */

:root {
    --accent: #2563EB;
    --accent-fg: #ffffff;
    --accent-muted: rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] {
    --accent: #3B82F6;          /* slightly brighter for contrast on dark surfaces */
    --accent-muted: rgba(59, 130, 246, 0.18);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --accent: #3B82F6;
        --accent-muted: rgba(59, 130, 246, 0.18);
    }
}

/* ---------- LATEST RELEASE CARD (shortcode xcpc-latest-release) ---------- */
/* The single retro flourish: amber pixel text on the dark-blue display,
   echoing the classic Amstrad CPC firmware palette (yellow on blue). */

#xcpc-latest-release {
    max-width: 420px;
    margin: 32px auto;
    padding: 32px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

#xcpc-latest-release .xlr-icon {
    margin: 0 0 8px;
    font-size: 48px;
    line-height: 1;
    color: var(--on-dark);
}

#xcpc-latest-release .xlr-name {
    margin: 0 0 12px;
    font-family: 'amstrad-cpc', var(--font-mono);
    font-size: 28px;
    letter-spacing: 0.03em;
    color: #FCD34D;
}

#xcpc-latest-release .xlr-info {
    margin: 0 0 20px;
    font-family: 'amstrad-cpc', var(--font-mono);
    font-size: 13px;
    line-height: 1.9;
    color: #FCD34D;
}

#xcpc-latest-release .xlr-cta {
    margin: 0;
}

/* The card is always dark, so its CTA stays a light button in both themes. */
#xcpc-latest-release .button,
#xcpc-latest-release .button:hover {
    background: var(--on-dark);
    color: #111111;
    border-color: var(--on-dark);
    border-bottom: none;
}

#xcpc-latest-release .button:hover {
    opacity: 0.9;
}

/* Buttons living inside editorial content must not inherit the link underline. */
.post-content .button,
.post-content .button:hover {
    border-bottom: none;
}
