/*
Theme Name: SRACC (Bricks child)
Theme URI: https://sracc.org
Description: Child theme for sracc.org. Fonts and a few global rules; page design lives in Bricks, site code in the SRACC Core MU plugin.
Author: Twomey PC Repair
Template: bricks
Version: 0.2.0
Text Domain: sracc
*/

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/archivo-latin-wght-normal.woff2") format("woff2");
}

/* Clickable cards: the heading's link covers the whole card, and the card lifts a little on hover.
   Bricks cards (.sr-card) and the SRACC Core cards (directory, events) share this. */
.sr-card:has(.brxe-heading a), .sracc-card, .sracc-ev, .sracc-evcard { position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.sr-card .brxe-heading a, .sracc-ev__title a { color: inherit; text-decoration: none; }
.sr-card .brxe-heading a::after, .sracc-ev__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sr-card:has(.brxe-heading a):hover, .sracc-card:hover, .sracc-ev:hover, .sracc-evcard:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); }
.sr-card:has(.brxe-heading a:focus-visible), .sracc-ev:has(.sracc-ev__title a:focus-visible) { outline: 3px solid var(--c-ink); outline-offset: 2px; }
.sr-card .brxe-heading a:focus-visible, .sracc-ev__title a:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { .sr-card, .sracc-card, .sracc-ev, .sracc-evcard { transition: none; } .sr-card:hover, .sracc-card:hover, .sracc-ev:hover, .sracc-evcard:hover { transform: none !important; } }

/* "See the directory", "All news", "Past events": an arrow that nudges on hover, so they read as links. */
.sr-head-row .brxe-text-link, .sracc-ev__past a, .sracc-more { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.sr-head-row .brxe-text-link::after, .sracc-ev__past a::after, .sracc-more::after { content: "\2192" / ""; transition: transform .15s ease; }
.sr-head-row .brxe-text-link:hover::after, .sracc-ev__past a:hover::after, .sracc-more:hover::after { transform: translateX(4px); }
.sr-head-row .brxe-text-link:hover, .sracc-ev__past a:hover, .sracc-more:hover { text-decoration: underline; }
