/*
Theme Name: Smay Child
Template: twentytwentyfive
Description: Child theme for Scott May portfolio site
Version: 1.0.0
Author: Scott May
*/

/* ============================================================
   Typography system
   Three additive classes that do not override TT25 defaults.
   Block style variations (smay-heading, smay-body, smay-label)
   are registered in theme.json and add is-style-* to blocks.
   ============================================================ */

.smay-heading,
.is-style-smay-heading {
    font-family: var(--wp--preset--font-family--ibm-plex-sans);
    color: var(--wp--preset--color--text-primary);
}

.smay-body,
.is-style-smay-body {
    font-family: var(--wp--preset--font-family--roboto-slab);
    color: var(--wp--preset--color--text-primary);
}

.smay-label,
.is-style-smay-label {
    font-family: var(--wp--preset--font-family--ibm-plex-mono);
    color: var(--wp--preset--color--text-muted);
}

/* ============================================================
   Project meta (legacy selector — kept for back-compat)
   ============================================================ */

.smay-project-meta span {
    font-family: var(--wp--preset--font-family--ibm-plex-mono);
    font-size: 0.75rem;
}

/* Project Details block styles live in the block's own style.css,
   loaded automatically by WordPress when the block renders. */

/* ============================================================
   Inline SVG utility
   ============================================================ */

.smay-svg {
    display: inline-block;
    line-height: 0;
}

.smay-svg svg {
    display: block;
    width: 100%;
    height: auto;
}

.smay-svg--graphic {
    display: block;
    width: 100%;
}

/* ============================================================
   Featured project ribbon
   CSS border-trick triangle in the top-left corner of the card.
   ============================================================ */

.smay-featured-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 40px 40px 0 0;
    border-color: var(--wp--preset--color--accent) transparent transparent transparent;
    z-index: 10;
    pointer-events: none;
}

/* Ensure the featured image block is a positioning context for the ribbon. */
.wp-block-post-featured-image {
    position: relative;
}
