/*
Theme Name: HPSA Academic
Theme URI: https://www.hpsa.org/
Author: Student Doctor Network
Description: A plugin-light block theme for the Health Professional Student Association.
Version: 0.1.3
Requires at least: 6.8
Text Domain: hpsa-academic
*/

@font-face {
	font-display: swap;
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 400;
	src: url("assets/fonts/source-sans-3-400.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 600;
	src: url("assets/fonts/source-sans-3-600.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 700;
	src: url("assets/fonts/source-sans-3-700.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 800;
	src: url("assets/fonts/source-sans-3-800.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 900;
	src: url("assets/fonts/source-sans-3-900.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 600;
	src: url("assets/fonts/source-serif-4-600.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 700;
	src: url("assets/fonts/source-serif-4-700.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 900;
	src: url("assets/fonts/source-serif-4-900.ttf") format("truetype");
}

:root {
	--hpsa-gold: #ffa100;
	--hpsa-gold-dark: #c97900;
	--hpsa-gold-soft: #fff3df;
	--hpsa-ink: #1d2630;
	--hpsa-slate: #4d5b68;
	--hpsa-border: #d8dee5;
	--hpsa-purple: #392779;
	--hpsa-purple-soft: #f3f0fb;
	--hpsa-paper: #fffdf8;
	--hpsa-white: #ffffff;
	--hpsa-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--hpsa-sans: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	background: var(--hpsa-paper);
	color: var(--hpsa-ink);
	font-family: var(--hpsa-sans);
	font-size: 18px;
	line-height: 1.68;
}

h1,
h2,
h3,
h4,
.wp-block-heading {
	color: var(--hpsa-ink);
	font-family: var(--hpsa-serif);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.08;
}

h1 {
	font-size: clamp(3rem, 7vw, 6.7rem);
}

h2 {
	font-size: clamp(2.1rem, 4vw, 4rem);
}

h3 {
	font-size: clamp(1.5rem, 2.4vw, 2.4rem);
}

a {
	color: var(--hpsa-purple);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	color: var(--hpsa-gold-dark);
}

.wp-site-blocks {
	overflow-x: clip;
}

.hpsa-shell {
	margin: 0 auto;
	max-width: 1180px;
	padding-left: clamp(20px, 5vw, 56px);
	padding-right: clamp(20px, 5vw, 56px);
}

.hpsa-header {
	background: rgba(255, 253, 248, 0.96);
	border-bottom: 1px solid var(--hpsa-border);
	position: sticky;
	top: 0;
	z-index: 20;
}

.hpsa-header__inner {
	align-items: center;
	display: flex;
	gap: 28px;
	justify-content: space-between;
	min-height: 82px;
}

.hpsa-brand {
	align-items: center;
	color: var(--hpsa-ink);
	display: inline-flex;
	font-family: var(--hpsa-sans);
	font-size: 1.75rem;
	font-weight: 900;
	gap: 12px;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.hpsa-brand__logo {
	display: block;
	height: 44px;
	width: auto;
}

.hpsa-brand__logo--full {
	max-width: min(320px, 52vw);
	width: 320px;
}

.hpsa-brand__mark {
	background: radial-gradient(circle at 35% 35%, #ffd080 0 18%, var(--hpsa-gold) 19% 60%, var(--hpsa-gold-dark) 61% 100%);
	border-radius: 999px;
	display: inline-block;
	height: 44px;
	position: relative;
	width: 44px;
}

.hpsa-brand__mark::after {
	background: var(--hpsa-ink);
	border-radius: 999px;
	content: "";
	height: 8px;
	left: 10px;
	position: absolute;
	top: 18px;
	transform: rotate(-12deg);
	width: 25px;
}

.hpsa-menu-toggle {
	align-items: center;
	background: transparent;
	border: 1px solid var(--hpsa-border);
	display: none;
	height: 44px;
	justify-content: center;
	padding: 0;
	width: 44px;
}

.hpsa-menu-toggle__bar {
	background: var(--hpsa-ink);
	display: block;
	height: 2px;
	margin: 3px 0;
	width: 20px;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.hpsa-menu ul,
.hpsa-footer-menu ul,
.hpsa-menu li,
.hpsa-footer-menu li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hpsa-menu > ul,
.hpsa-footer-menu > ul {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 26px;
	align-items: center;
}

.hpsa-menu li {
	position: relative;
}

.hpsa-menu > ul > li > a {
	align-items: center;
	display: inline-flex;
	min-height: 82px;
}

.hpsa-menu .sub-menu {
	background: var(--hpsa-white);
	border: 1px solid var(--hpsa-border);
	box-shadow: 0 16px 34px rgba(29, 38, 48, 0.12);
	display: none;
	left: 0;
	min-width: 240px;
	padding: 14px;
	position: absolute;
	top: 100%;
	z-index: 30;
}

.hpsa-menu li:hover > .sub-menu,
.hpsa-menu li:focus-within > .sub-menu {
	display: grid;
	gap: 10px;
}

.hpsa-menu a,
.hpsa-footer-menu a {
	color: var(--hpsa-ink);
	font-size: 0.86rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: uppercase;
}

.hpsa-menu a:hover,
.hpsa-footer-menu a:hover {
	color: var(--hpsa-gold-dark);
}

.hpsa-header-donate {
	background: var(--hpsa-gold);
	color: var(--hpsa-ink);
	display: inline-flex;
	font-size: 0.86rem;
	font-weight: 900;
	letter-spacing: 0.02em;
	padding: 10px 16px;
	text-decoration: none;
	text-transform: uppercase;
}

.hpsa-header-donate:hover,
.hpsa-header-donate:focus {
	background: var(--hpsa-gold-dark);
	color: var(--hpsa-white);
}

.hpsa-hero {
	background: linear-gradient(115deg, rgba(57, 39, 121, 0.92), rgba(29, 38, 48, 0.72)), var(--hpsa-purple);
	color: var(--hpsa-white);
	margin: 0 calc(50% - 50vw) clamp(42px, 7vw, 86px) !important;
	max-width: none !important;
	min-height: clamp(360px, 58vw, 680px);
	position: relative;
	width: auto;
}

.hpsa-hero.has-image {
	background-position: center;
	background-size: cover;
}

.hpsa-hero::before,
.hpsa-section--dots::before {
	background-image: radial-gradient(circle, rgba(255, 161, 0, 0.55) 2px, transparent 2.5px);
	background-size: 22px 22px;
	content: "";
	height: 145px;
	opacity: 0.8;
	position: absolute;
	right: clamp(16px, 6vw, 86px);
	top: clamp(26px, 7vw, 92px);
	width: 180px;
}

.hpsa-hero__inner {
	align-items: end;
	display: grid;
	min-height: inherit;
	padding-bottom: clamp(48px, 9vw, 110px);
	padding-top: clamp(62px, 11vw, 150px);
	position: relative;
	z-index: 1;
}

.hpsa-kicker {
	color: var(--hpsa-gold);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.14em;
	margin-bottom: 16px;
	text-transform: uppercase;
}

.hpsa-hero h1,
.hpsa-hero h2 {
	color: inherit;
	margin: 0;
	max-width: 980px;
}

.hpsa-hero p {
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(1.2rem, 2vw, 1.55rem);
	max-width: 780px;
}

.hpsa-section {
	margin: clamp(54px, 8vw, 104px) auto;
	position: relative;
}

.hpsa-section.is-soft {
	background: var(--hpsa-gold-soft);
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	max-width: none !important;
	padding: clamp(46px, 7vw, 84px) 0;
	width: auto;
}

.hpsa-section.is-purple {
	background: var(--hpsa-purple);
	color: var(--hpsa-white);
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	max-width: none !important;
	padding: clamp(46px, 7vw, 84px) 0;
	width: auto;
}

.hpsa-section.is-purple h2,
.hpsa-section.is-purple h3 {
	color: var(--hpsa-white);
}

.hpsa-section__heading {
	margin-bottom: clamp(22px, 4vw, 42px);
	max-width: 820px;
}

.hpsa-section__heading::after,
.hpsa-rule {
	background: var(--hpsa-gold);
	content: "";
	display: block;
	height: 3px;
	margin-top: 22px;
	width: 72px;
}

.hpsa-prose {
	max-width: 850px;
}

.hpsa-prose h1 {
	font-size: clamp(1.7rem, 2.4vw, 2.4rem);
}

.hpsa-prose h2 {
	font-size: clamp(1.55rem, 2.1vw, 2.1rem);
}

.hpsa-prose h3 {
	font-size: clamp(1.35rem, 1.8vw, 1.75rem);
}

.hpsa-prose > *:first-child {
	margin-top: 0;
}

.hpsa-prose > *:last-child {
	margin-bottom: 0;
}

.hpsa-check-list {
	display: grid;
	gap: 12px;
	margin: 24px 0;
	padding-left: 1.25rem;
}

.hpsa-check-list li::marker {
	color: var(--hpsa-gold);
	font-size: 1.2em;
}

.hpsa-awardee {
	padding-top: clamp(18px, 3vw, 34px);
}

.hpsa-awardee .hpsa-section__heading {
	margin-bottom: 20px;
	max-width: 940px;
}

.hpsa-awardee .hpsa-section__heading h3 {
	font-size: clamp(1.75rem, 2.6vw, 2.7rem);
}

.hpsa-reference-list {
	display: grid;
	gap: 10px;
	margin: 12px 0 0;
	padding-left: 1.25rem;
}

.hpsa-reference-list li::marker {
	color: var(--hpsa-gold);
	font-weight: 900;
}

.hpsa-reference-list a {
	font-weight: 800;
}

.hpsa-split {
	align-items: center;
	display: grid;
	gap: clamp(28px, 6vw, 72px);
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.hpsa-split--reverse {
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.hpsa-split__figure {
	margin: 0;
}

.hpsa-split__media {
	aspect-ratio: 4 / 3;
	background: var(--hpsa-purple-soft);
	overflow: hidden;
	position: relative;
}

.hpsa-split__media--wide {
	aspect-ratio: 16 / 9;
}

.hpsa-split__media img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.hpsa-split__media::after {
	background: var(--hpsa-gold);
	border-radius: 999px;
	bottom: -26px;
	content: "";
	height: 82px;
	position: absolute;
	right: 32px;
	width: 82px;
}

.hpsa-split__caption {
	color: var(--hpsa-muted);
	font-family: var(--hpsa-sans);
	font-size: 0.9rem;
	line-height: 1.45;
	margin-top: 12px;
}

.hpsa-card-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.hpsa-card-grid--four {
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	margin-top: 34px;
}

.hpsa-card {
	background: var(--hpsa-white);
	border: 1px solid var(--hpsa-border);
	border-top: 5px solid var(--hpsa-gold);
	min-height: 100%;
	padding: 26px;
}

.hpsa-card h3 {
	font-size: 1.55rem;
	margin: 0 0 12px;
}

.hpsa-card p {
	color: var(--hpsa-slate);
}

.hpsa-card a {
	font-weight: 800;
}

.hpsa-card__media {
	aspect-ratio: 16 / 9;
	background: var(--hpsa-purple-soft);
	margin: -26px -26px 20px;
	overflow: hidden;
}

.hpsa-card__media img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.hpsa-link-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.hpsa-link-grid .hpsa-button {
	margin: 0;
}

.hpsa-step-grid,
.hpsa-benefit-grid,
.hpsa-media-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin-top: 28px;
}

.hpsa-step,
.hpsa-benefit,
.hpsa-media-mention {
	background: var(--hpsa-white);
	border: 1px solid var(--hpsa-border);
	padding: 24px;
}

.hpsa-step__number {
	align-items: center;
	background: var(--hpsa-gold);
	color: var(--hpsa-ink);
	display: inline-flex;
	font-weight: 900;
	height: 34px;
	justify-content: center;
	margin-bottom: 14px;
	width: 34px;
}

.hpsa-media-mention img {
	display: block;
	height: auto;
	margin-bottom: 16px;
	max-height: 68px;
	max-width: 180px;
	object-fit: contain;
	width: auto;
}

.hpsa-stat-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	margin-top: 34px;
}

.hpsa-stat {
	border-left: 4px solid var(--hpsa-gold);
	padding-left: 20px;
}

.hpsa-stat strong {
	display: block;
	font-family: var(--hpsa-serif);
	font-size: clamp(2.4rem, 5vw, 4.6rem);
	line-height: 1;
}

.hpsa-timeline {
	border-left: 3px solid var(--hpsa-border);
	display: grid;
	gap: 26px;
	margin-left: 12px;
	padding-left: 32px;
}

.hpsa-timeline__item {
	position: relative;
}

.hpsa-timeline__item::before {
	background: var(--hpsa-gold);
	border: 4px solid var(--hpsa-paper);
	border-radius: 999px;
	content: "";
	height: 18px;
	left: -43px;
	position: absolute;
	top: 5px;
	width: 18px;
}

.hpsa-timeline time {
	color: var(--hpsa-purple);
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hpsa-button,
.wp-block-button__link,
.hpsa-mailchimp-signup button,
.hpsa-contact-form button {
	background: var(--hpsa-gold);
	border: 0;
	border-radius: 0;
	color: var(--hpsa-ink);
	display: inline-block;
	font-weight: 900;
	padding: 13px 24px;
	text-decoration: none;
}

.hpsa-prose .hpsa-button {
	margin: 0 10px 10px 0;
}

.hpsa-button:hover,
.wp-block-button__link:hover,
.hpsa-mailchimp-signup button:hover,
.hpsa-contact-form button:hover {
	background: var(--hpsa-gold-dark);
	color: var(--hpsa-white);
}

.hpsa-button--secondary {
	background: transparent;
	box-shadow: inset 0 0 0 2px var(--hpsa-gold);
}

.hpsa-button--secondary:hover {
	background: var(--hpsa-ink);
	box-shadow: inset 0 0 0 2px var(--hpsa-ink);
	color: var(--hpsa-white);
}

.hpsa-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.hpsa-mailchimp-signup,
.hpsa-contact-form {
	background: var(--hpsa-white);
	border: 1px solid var(--hpsa-border);
	margin-top: 24px;
	padding: clamp(24px, 4vw, 38px);
}

.hpsa-mailchimp-signup form {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hpsa-mailchimp-signup input,
.hpsa-contact-form input,
.hpsa-contact-form select,
.hpsa-contact-form textarea {
	border: 1px solid var(--hpsa-border);
	border-radius: 0;
	font: inherit;
	padding: 12px 14px;
}

.hpsa-mailchimp-signup input[type="email"] {
	flex: 1 1 240px;
}

.hpsa-query-list {
	margin-top: 30px;
}

.hpsa-footer {
	background: var(--hpsa-ink);
	color: rgba(255, 255, 255, 0.78);
	margin-top: clamp(70px, 9vw, 120px);
	padding: clamp(48px, 7vw, 84px) 0;
}

.hpsa-footer h2,
.hpsa-footer h3,
.hpsa-footer a {
	color: var(--hpsa-white);
}

.hpsa-footer__grid {
	align-items: start;
	display: grid;
	gap: clamp(34px, 5vw, 64px);
	grid-template-columns: minmax(280px, 1.1fr) minmax(220px, 0.85fr) minmax(270px, 1fr);
}

.hpsa-footer__grid > * {
	margin-top: 0;
}

.hpsa-footer .hpsa-brand {
	background: transparent;
	color: var(--hpsa-white);
	display: flex;
	min-height: 50px;
	padding: 0;
	width: fit-content;
}

.hpsa-brand__logo--footer {
	height: 50px;
	max-width: min(340px, 100%);
	width: 340px;
}

.hpsa-footer p {
	color: rgba(255, 255, 255, 0.78);
	font-family: var(--hpsa-sans);
	font-size: 1rem;
	line-height: 1.65;
	margin: 22px 0 0;
	max-width: 46ch;
}

.hpsa-footer__nav h3,
.hpsa-footer__transparency h3 {
	align-items: center;
	display: flex;
	line-height: 1;
	margin: 0 0 22px;
	min-height: 50px;
}

.hpsa-footer-menu > ul {
	align-items: start;
	display: grid;
	gap: 16px 22px;
	grid-template-columns: minmax(0, max-content);
	margin: 0;
}

.hpsa-footer-menu a {
	color: rgba(255, 255, 255, 0.86);
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.35;
	text-transform: uppercase;
}

.hpsa-footer-transparency-links {
	display: grid;
	gap: 14px;
	margin-top: 0;
}

.hpsa-footer-badge {
	align-items: center;
	background: transparent;
	border: 0;
	display: inline-flex;
	gap: 16px;
	max-width: 320px;
	padding: 0;
	text-decoration: none;
	transition: background 0.18s ease, border-color 0.18s ease;
}

.hpsa-footer-badge:hover {
	background: transparent;
	border-color: transparent;
}

.hpsa-footer-badge img {
	background: var(--hpsa-white);
	display: block;
	height: 108px;
	width: 108px;
}

.hpsa-footer-badge span {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1.4;
	max-width: 140px;
	text-decoration: none;
	text-transform: uppercase;
}

.hpsa-footer-badge:hover span {
	color: var(--hpsa-white);
}

.hpsa-footer-tax-link {
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1.35;
	max-width: 260px;
	text-transform: uppercase;
}

.hpsa-footer-tax-link:hover,
.hpsa-footer-tax-link:focus {
	color: var(--hpsa-white);
}

@media (max-width: 800px) {
	.hpsa-header__inner,
	.hpsa-footer__grid,
	.hpsa-split,
	.hpsa-split--reverse {
		grid-template-columns: 1fr;
	}

	.hpsa-header__inner {
		align-items: center;
		display: grid;
		gap: 14px;
		grid-template-columns: minmax(0, 1fr) auto auto;
		max-width: none;
		padding: 18px 20px;
		position: relative;
		width: 100vw;
	}

	.hpsa-header .hpsa-brand {
		grid-column: 1;
		min-width: 0;
	}

	.hpsa-header .hpsa-brand__logo--full {
		max-width: clamp(190px, 48vw, 320px);
		width: 100%;
	}

	.hpsa-menu-toggle {
		grid-column: 3;
		grid-row: 1;
		display: grid;
		position: static;
	}

	.hpsa-primary-menu {
		display: none;
		grid-column: 1 / -1;
		width: 100%;
	}

	.hpsa-primary-menu.is-open {
		display: block;
	}

	.hpsa-header-donate {
		grid-column: 2;
		grid-row: 1;
		padding: 10px 12px;
		white-space: nowrap;
	}

	.hpsa-menu ul,
	.hpsa-footer-menu ul {
		display: grid;
		gap: 10px;
	}

	.hpsa-menu > ul > li > a {
		min-height: 0;
	}

	.hpsa-menu .sub-menu {
		background: transparent;
		border: 0;
		box-shadow: none;
		display: grid;
		gap: 8px;
		min-width: 0;
		padding: 8px 0 0 14px;
		position: static;
	}

	.hpsa-brand {
		font-size: 1.45rem;
	}

	.hpsa-hero {
		overflow: hidden;
	}

	.hpsa-hero__inner {
		padding-bottom: 52px;
		padding-top: 58px;
	}

	.hpsa-hero h1 {
		font-size: clamp(2.15rem, 10.5vw, 3rem);
		max-width: 100%;
	}

	.hpsa-hero p {
		font-size: 1.06rem;
	}
}
