/*
Theme Name: Resona Tools
Description: Core-only block theme for the Resona Tools site.
Version: 0.1.0
Requires at least: 7.1
Requires PHP: 8.3
Text Domain: resona-tools
*/

:root {
	--wp--preset--color--resona-ink: #12212b;
	--wp--preset--color--resona-signal: #006f78;
	--wp--preset--color--resona-canvas: #f7faf9;
	--resona-navy: #0d2533;
	--resona-teal: #0f7b77;
	--resona-mint: #d9f0eb;
	--resona-border: #b9d0cf;
	--resona-muted: #526770;
	--resona-shell: min(76rem, calc(100% - 3rem));
}

html, body { background: var(--wp--preset--color--resona-canvas); color: var(--resona-navy); }
.resona-shell { box-sizing: border-box; margin-inline: auto; width: var(--resona-shell); }
.resona-site-header { background: rgba(247,250,249,.96); border-bottom: 1px solid var(--resona-border); box-shadow: 0 2px 12px rgba(13,37,51,.06); position: relative; z-index: 2; }
.resona-header-inner { align-items: center; display: flex; gap: 2rem; justify-content: space-between; min-height: 5.25rem; }
.resona-brand { align-items: center; color: var(--resona-navy); display: inline-flex; font-size: 1.1rem; gap: .7rem; line-height: 1.05; text-decoration: none; }
.resona-brand:hover { color: var(--resona-teal); }
.resona-brand-mark { align-items: center; background: var(--resona-teal); border-radius: .7rem; color: #fff; display: inline-flex; font-family: Georgia,serif; font-size: 1.45rem; font-weight: 700; height: 2.35rem; justify-content: center; width: 2.35rem; }
.resona-brand small { color: var(--resona-muted); display: block; font-size: .7rem; font-weight: 500; letter-spacing: .03em; margin-top: .25rem; }
.resona-primary-navigation { align-items: center; display: flex; flex-wrap: wrap; gap: .25rem; justify-content: flex-end; }
.resona-primary-navigation a { border-radius: .45rem; color: var(--resona-navy); display: inline-block; font-size: .9rem; font-weight: 650; padding: .55rem .7rem; text-decoration: none; }
.resona-primary-navigation a:hover, .resona-primary-navigation a:focus-visible { background: var(--resona-mint); color: var(--resona-navy); }
.resona-primary-navigation .resona-nav-cta { background: var(--resona-teal); color: #fff; margin-left: .3rem; }
.resona-primary-navigation .resona-nav-cta:hover, .resona-primary-navigation .resona-nav-cta:focus-visible { background: var(--resona-navy); color: #fff; }

:where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid #f5b700;
	outline-offset: 3px;
}

:where(button, input:not([type="hidden"]), select, .resona-primary-navigation a, .resona-locale-switcher a) {
	min-height: 2.75rem;
}

:where(p, li, a, code, td, th) {
	overflow-wrap: anywhere;
}

.resona-locale-switcher ul { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.resona-locale-switcher a { align-items: center; display: inline-flex; padding-inline: .55rem; text-decoration: none; }
.resona-locale-switcher [aria-current="true"] { font-weight: 750; text-decoration-thickness: .18em; }
.resona-locale-flag { font-size: 1.4rem; line-height: 1; }

table { border-collapse: collapse; display: block; max-width: 100%; overflow-x: auto; }
th, td { border: 1px solid var(--resona-border); padding: .65rem; text-align: left; vertical-align: top; }
caption { font-weight: 700; padding-block: .75rem; text-align: left; }

.resona-skip-link {
	background: #12212b;
	color: #fff;
	left: 1rem;
	padding: 0.75rem 1rem;
	position: fixed;
	top: -5rem;
	z-index: 1000;
}

.resona-skip-link:focus {
	top: 1rem;
}

.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > footer {
	margin-top: clamp(2.5rem, 6vw, 4rem);
}

main { background: #fff; box-shadow: 0 0 0 1px rgba(185,208,207,.45); box-sizing: border-box; margin-inline: auto; max-width: 84rem; min-height: 56vh; padding-bottom: clamp(3rem,8vw,6rem); padding-inline: clamp(2rem,7vw,6rem); padding-top: clamp(2rem,6vw,4.5rem); }
main > .wp-block-group { padding-inline: 0; }
main > :where(:not(.alignwide):not(.alignfull)) { margin-left: auto; margin-right: auto; max-width: var(--wp--style--global--content-size); }
/*
 * WordPress 7.1 currently flattens the group wrappers in these block
 * templates, leaving the page blocks directly below the header. Keep the
 * reading column explicit at that rendered boundary as well as inside main.
 */
.wp-site-blocks > header ~ :not(footer) { box-sizing: border-box; margin-block: 0; margin-left: auto; margin-right: auto; max-width: var(--wp--style--global--content-size); }
.wp-site-blocks > header + :not(footer) { margin-top: clamp(1.5rem,3vw,2.25rem); }
.wp-site-blocks > header ~ :not(footer) + :not(footer) { margin-top: 1.5rem; }
.resona-breadcrumb { color: var(--resona-muted); font-size: .88rem; margin-bottom: clamp(2rem,5vw,3.5rem); }
.resona-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.resona-breadcrumb li + li::before { color: var(--resona-muted); content: "/"; margin-right: .45rem; }
.resona-breadcrumb [aria-current="page"] { color: var(--resona-navy); font-weight: 650; }
.wp-site-blocks h1, .wp-site-blocks h2, .wp-site-blocks h3 { color: var(--resona-navy); font-weight: 750; letter-spacing: -.025em; line-height: 1.15; }
.wp-site-blocks h1 { font-size: clamp(2.15rem,6vw,4.25rem); }
.wp-site-blocks h2 { font-size: clamp(1.55rem,3.5vw,2.3rem); }
.wp-site-blocks > header ~ h1 { margin-bottom: .25rem; }
.wp-site-blocks > header ~ h2 { margin-top: clamp(2rem,4vw,3rem); }
.wp-site-blocks h3 { font-size: 1.2rem; }
.wp-site-blocks p, .wp-site-blocks li { max-width: 72ch; }
.wp-site-blocks .wp-block-columns { gap: 1.25rem; }
.wp-site-blocks .wp-block-column { background: #fff; border: 1px solid var(--resona-border); border-radius: .85rem; box-shadow: 0 8px 20px rgba(13,37,51,.04); padding: 1.35rem; }
.wp-site-blocks .wp-block-button__link { background: var(--resona-teal); border-radius: .55rem; font-weight: 700; padding: .75rem 1.1rem; }
.wp-site-blocks .is-style-outline .wp-block-button__link { background: transparent; border-color: var(--resona-teal); color: var(--resona-teal); }
.wp-site-blocks .wp-block-separator { border-color: var(--resona-border); margin-block: clamp(2rem,4vw,3rem); }
.resona-site-footer { background: var(--resona-navy); color: #e8f4f2; margin-top: auto; padding-top: clamp(2.75rem,7vw,5rem); }
.resona-site-footer .resona-brand { color: #fff; }.resona-site-footer .resona-brand small,.resona-site-footer p,.resona-footer-meta { color: #bfd2d3; }.resona-site-footer a { color: #d9f0eb; }
.resona-footer-grid { display: grid; gap: 2rem; grid-template-columns: minmax(15rem,2fr) repeat(2,minmax(9rem,1fr)); padding-bottom: 2.5rem; }
.resona-site-footer h2 { color: #fff; font-size: .9rem; letter-spacing: .06em; margin: 0 0 .75rem; text-transform: uppercase; }
.resona-site-footer ul { list-style: none; margin: 0; padding: 0; }.resona-site-footer li + li { margin-top: .45rem; }
.resona-footer-meta { border-top: 1px solid rgba(217,240,235,.25); display: flex; font-size: .8rem; gap: 1rem; justify-content: space-between; padding-block: 1.15rem; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media (max-width: 760px) {
	:root { --resona-shell: min(100% - 2rem,76rem); }
	.resona-header-inner { align-items: flex-start; flex-direction: column; gap: 1rem; padding-block: 1rem; }
	.resona-primary-navigation { justify-content: flex-start; width: 100%; }
	.resona-primary-navigation a { padding-inline: .55rem; }.resona-primary-navigation .resona-nav-cta { margin-left: 0; }
	.resona-footer-grid { grid-template-columns: 1fr; }.resona-footer-meta { align-items: flex-start; flex-direction: column; }
	main { padding-inline: 1.5rem; }
	.wp-site-blocks > header ~ :not(footer) { max-width: calc(100% - 3rem); }
	.resona-primary-navigation, .resona-locale-switcher ul { gap: .5rem; }
}

@media (max-width: 360px) {
	:root { --resona-shell: calc(100% - 1rem); }
	main { padding-inline: .75rem; }
	.wp-site-blocks > header ~ :not(footer) { max-width: calc(100% - 1.5rem); }
}
