/*
Theme Name: Reformed Founders
Theme URI: https://reformedfounders.org/
Author: Casey Case
Description: A small block theme for a source-led guide to the founders of the Reformed tradition, modeled on Theodore Beza's Icones (1580).
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 0.1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reformed-founders
*/

/* Everything here supports the block styles registered in functions.php.
   Colors, type, and spacing live in theme.json. */

:where(a):focus-visible,
:where(button, input, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--verdigris);
	outline-offset: 2px;
}

/* Section headings in page content get a printer's fleuron. */
.wp-block-post-content h2.wp-block-heading::before {
	content: "\2767\00a0";
	color: var(--wp--preset--color--verdigris);
	font-size: 0.75em;
}

/* Small labels: dates line and "In brief" label. */
.founder-dates,
.brief-label {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--verdigris);
}
.founder-dates { margin-top: 0.4rem; }

/* Group block style: "In brief" box. */
.wp-block-group.is-style-brief {
	border-top: 2px solid var(--wp--preset--color--verdigris);
	border-bottom: 1px solid var(--wp--preset--color--rule);
	padding: 0.9rem 0 1.1rem;
	margin-top: 1.5rem;
}
.wp-block-group.is-style-brief > * { margin-block: 0; }
.wp-block-group.is-style-brief > * + * { margin-top: 0.4rem; }
.wp-block-group.is-style-brief p:not(.brief-label) { font-size: 1.3125rem; }

/* Columns block style: portrait first on phones, on the right on wider screens. */
@media (min-width: 782px) {
	.wp-block-columns.is-style-portrait-right { flex-direction: row-reverse; }
}
.wp-block-columns.is-style-portrait-right .wp-block-image img {
	mix-blend-mode: multiply;
	width: 100%;
	height: auto;
}
@media (max-width: 781px) {
	.wp-block-columns.is-style-portrait-right .wp-block-image { max-width: 11rem; }
}

/* List block style: dated list (a date in bold, then the event). */
.wp-block-list.is-style-dated {
	list-style: none;
	padding-left: 0;
	border-top: 1px solid var(--wp--preset--color--rule);
}
.wp-block-list.is-style-dated > li {
	position: relative;
	padding: 0.45rem 0 0.45rem 7.5rem;
	border-bottom: 1px solid var(--wp--preset--color--rule);
}
.wp-block-list.is-style-dated > li strong:first-child {
	position: absolute;
	left: 0;
	top: 0.72rem;
	width: 7rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--wp--preset--color--verdigris);
}
@media (max-width: 600px) {
	.wp-block-list.is-style-dated > li { padding-left: 0; padding-top: 1.9rem; }
	.wp-block-list.is-style-dated > li strong:first-child { top: 0.5rem; width: auto; }
}

/* Quotes: citation line in small sans. */
.wp-block-quote cite {
	display: block;
	margin-top: 0.4rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.8125rem;
	font-style: normal;
	color: var(--wp--preset--color--muted);
}

/* Byline under the page content. */
.byline {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
}

/* Footnote markers and the footnote list. */
sup.fn a { font-family: var(--wp--preset--font-family--sans); font-size: 0.75em; text-decoration: none; padding: 0 0.1em; }
.wp-block-footnotes { padding-left: 1.4rem; }
.wp-block-footnotes li { margin-bottom: 0.35rem; }

/* Header and footer rules. */
.site-header { border-bottom: 1px solid var(--wp--preset--color--rule); }
.site-footer { border-top: 1px solid var(--wp--preset--color--rule); color: var(--wp--preset--color--muted); }
