/*
Theme Name: MSC 2026
Theme URI: https://www.mijentesupportcommittee.com/
Author: Kinetic Good
Author URI: https://kineticgood.com
Description: Lightweight block theme for Mijente Support Committee. No page builder, no framework, no external font or script calls. Brand tokens live in theme.json; staff edit everything in the core WordPress editor.
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: msc-2026
Tags: one-column, block-patterns, full-site-editing, editor-style, custom-colors, accessibility-ready
*/

/* ---------------------------------------------------------------------------
   Almost everything is handled by theme.json. This file carries only the few
   layout behaviours the block editor cannot express as settings.
   Staff never need to touch this - it is theme code, not page content.
   --------------------------------------------------------------------------- */

/* Sharp corners are a brand trait: the live site has zero radius anywhere. */
.wp-block-button__link,
.wp-block-image img,
.wp-block-cover,
.wp-block-group { border-radius: 0; }

/* --- Equal-height cards ---------------------------------------------------
   Card grids (campaigns, resources, episodes) put a .msc-card group inside
   each column. The column stretches, the card fills it, and the buttons get
   pushed to the bottom so every row lines up regardless of text length.     */
.msc-cards > .wp-block-column { display: flex; }

.msc-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}
.msc-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.6rem;
}
.msc-card .wp-block-buttons { margin-top: auto; }

/* Media band: fixed height so every cover art in a row matches. */
.msc-card .wp-block-cover { min-height: 230px; }
@media (max-width: 781px) { .msc-card .wp-block-cover { min-height: 200px; } }

/* Document covers (resources) are posters whose title is part of the artwork,
   so they are contained rather than cropped. */
.msc-card--doc .wp-block-cover .wp-block-cover__image-background {
	object-fit: contain;
	background-color: #fff;
}

/* --- Video grid ----------------------------------------------------------- */
.msc-video figcaption,
.msc-video__title { min-height: 3.6em; }
.wp-block-embed__wrapper { position: relative; }

/* --- Section rhythm ------------------------------------------------------- */
.msc-section { padding-block: var(--wp--preset--spacing--60); }
@media (max-width: 781px) { .msc-section { padding-block: var(--wp--preset--spacing--40); } }

/* --- Skip link + focus ---------------------------------------------------- */
:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--wp--preset--color--pink);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
