/*
Theme Name: Queensland Hoops Tribute
Theme URI: https://basketballqld.com.au/
Author: Queensland Hoops Tribute
Description: A self-configuring three-page theme for an independent fan tribute to basketball in Queensland. On activation it creates the Home, About Us and Contact pages, sets the front page and permalinks, and handles the contact form itself. No plugins or page content needed.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qld-hoops-tribute
*/

/* Layout idea: a basketball court seen from above. Court blue and white line
   markings carry the structure, mango is the ball. Mobile first: every row
   wraps to a single column on its own, so there are no breakpoints to maintain. */

@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}

:root {
	--qht-court: #1B3FD6;
	--qht-sun: #FFB81C;
	--qht-ink: #0B1638;
	--qht-chalk: #F4F6FB;
	--qht-tint: #E3E9FA;
	--qht-white: #FFFFFF;
	--qht-muted: #46506B;
	--qht-soft: #2A3350;
	--qht-error: #B3261E;
	--qht-footer-text: #C9D2EC;
	--qht-footer-rule: #2C3A66;
	--qht-gutter: max(20px, 5vw);
	--qht-section: clamp(56px, 7vw, 88px);
	--qht-font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--qht-chalk);
	color: var(--qht-ink);
	font-family: var(--qht-font);
	font-size: 1.0625rem;
	line-height: 1.55;
}

main {
	display: block;
	flex: 1 0 auto;
}

h1,
h2,
h3,
p,
dl,
dd {
	margin: 0;
}

a {
	color: var(--qht-court);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--qht-ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 7px var(--qht-white);
}

svg {
	display: block;
}

.qht-wrap {
	max-width: 1120px;
	margin-inline: auto;
}

.qht-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10;
	padding: 12px 16px;
	background: var(--qht-ink);
	color: var(--qht-white);
	font-weight: 700;
}

.qht-skip:focus {
	left: 8px;
	top: 8px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Type ---------- */

.qht-display {
	font-weight: 800;
	font-stretch: 70%;
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1.05;
	text-wrap: balance;
}

.qht-display--hero {
	font-size: clamp(2.5rem, 6.2vw, 5rem);
	line-height: 1;
}

.qht-display--page {
	font-size: clamp(2.375rem, 5.4vw, 4.25rem);
	line-height: 1;
}

.qht-h2 {
	font-size: 1.625rem;
	font-weight: 700;
	line-height: 1.2;
	text-wrap: balance;
}

.qht-h3 {
	font-size: 1.3125rem;
	font-weight: 700;
	line-height: 1.25;
}

.qht-lede {
	max-width: 36em;
	font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
	color: var(--qht-soft);
}

.qht-muted {
	color: var(--qht-muted);
}

.qht-soft {
	color: var(--qht-soft);
}

.qht-small {
	font-size: 0.875rem;
}

.qht-measure {
	max-width: 40em;
}

.qht-measure-display {
	max-width: 16em;
}

.qht-accent {
	color: var(--qht-court);
}

.qht-hero .qht-accent,
.qht-footer .qht-accent {
	color: var(--qht-sun);
}

.qht-section p a,
.qht-pagehead p a {
	font-weight: 600;
}

.qht-link-strong {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
}

/* ---------- Layout helpers ---------- */

.qht-stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.qht-stack--xs {
	gap: 6px;
}

.qht-stack--sm {
	gap: 12px;
}

.qht-stack--md {
	gap: 28px;
}

.qht-stack--lg {
	gap: 40px;
}

.qht-stack--start {
	align-items: flex-start;
}

.qht-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 28px 32px;
}

.qht-grid--narrow {
	grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.qht-grid--wide-gap {
	gap: 36px 56px;
}

.qht-grid--fields {
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 18px;
}

.qht-split {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 56px;
}

.qht-split--top {
	align-items: flex-start;
}

.qht-split__lead {
	flex: 1 1 320px;
	min-width: 0;
}

.qht-split__body {
	flex: 2 1 480px;
	min-width: 0;
}

.qht-ruled {
	border-top: 3px solid var(--qht-ink);
	padding-top: 14px;
}

.qht-ruled--court {
	border-top-color: var(--qht-court);
}

/* ---------- Notice and header ---------- */

.qht-notice {
	padding: 10px var(--qht-gutter);
	background: var(--qht-sun);
	color: var(--qht-ink);
	font-size: 0.875rem;
	line-height: 1.4;
}

.qht-notice a {
	color: inherit;
	font-weight: 700;
}

.qht-header {
	padding: 14px var(--qht-gutter);
	border-bottom: 2px solid var(--qht-ink);
}

.qht-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 24px;
}

.qht-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--qht-ink);
	font-weight: 800;
	font-stretch: 75%;
	font-size: 1.5rem;
	line-height: 1;
	text-decoration: none;
}

.qht-brand svg {
	flex: none;
}

.qht-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.qht-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	color: var(--qht-ink);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
}

.qht-nav a:first-child {
	padding-left: 0;
}

.qht-nav a:last-child {
	padding-right: 0;
}

.qht-nav a:hover,
.qht-nav a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
	text-decoration-color: var(--qht-court);
}

.qht-nav a[aria-current="page"] {
	font-weight: 700;
}

/* ---------- Buttons ---------- */

.qht-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.qht-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 6px 22px;
	border: 2px solid transparent;
	border-radius: 4px;
	font: inherit;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	cursor: pointer;
}

.qht-btn:hover {
	filter: brightness(1.1);
}

.qht-btn--sun {
	background: var(--qht-sun);
	color: var(--qht-ink);
}

.qht-btn--ghost {
	border-color: var(--qht-white);
	color: var(--qht-white);
}

.qht-btn--ghost:hover {
	background: var(--qht-white);
	color: var(--qht-court);
	filter: none;
}

.qht-btn--ink {
	background: var(--qht-ink);
	color: var(--qht-white);
}

.qht-btn--court {
	background: var(--qht-court);
	color: var(--qht-white);
}

.qht-btn--outline {
	border-color: var(--qht-ink);
	color: var(--qht-ink);
}

.qht-btn--outline:hover {
	background: var(--qht-ink);
	color: var(--qht-white);
	filter: none;
}

/* ---------- Hero ---------- */

.qht-hero {
	padding: var(--qht-section) var(--qht-gutter);
	background: var(--qht-court);
	color: var(--qht-white);
}

.qht-hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px 56px;
}

.qht-hero__text {
	flex: 999 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.qht-hero__lede {
	max-width: 34em;
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	color: #E6ECFF;
}

.qht-hero .qht-actions {
	margin-top: 8px;
}

.qht-hero__art {
	flex: 1 1 380px;
	min-width: 0;
}

.qht-court {
	width: 100%;
	max-width: 460px;
	height: auto;
	margin: 0 auto;
}

/* ---------- Sections ---------- */

.qht-section {
	padding: var(--qht-section) var(--qht-gutter);
}

.qht-section--tint {
	background: var(--qht-tint);
}

.qht-section--white {
	background: var(--qht-white);
}

.qht-section--after-head {
	padding-top: clamp(40px, 5vw, 56px);
}

.qht-pagehead {
	padding: clamp(48px, 6vw, 72px) var(--qht-gutter) 0;
}

.qht-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 36px 32px;
}

.qht-timeline li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 14px;
	border-top: 3px solid var(--qht-ink);
}

.qht-timeline__year {
	color: var(--qht-court);
	font-weight: 800;
	font-stretch: 70%;
	font-size: 2.75rem;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.qht-facts {
	display: flex;
	flex-direction: column;
	border-bottom: 2px solid var(--qht-ink);
}

.qht-facts > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 0;
	border-top: 2px solid var(--qht-ink);
}

.qht-facts dt {
	color: var(--qht-muted);
	font-size: 0.875rem;
}

.qht-facts dd {
	font-weight: 800;
	font-stretch: 70%;
	font-size: 1.875rem;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

/* ---------- Contact ---------- */

.qht-callout {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 28px;
	background: var(--qht-sun);
}

.qht-callout .qht-btn {
	margin-top: 4px;
}

.qht-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
}

.qht-form .qht-btn {
	align-self: flex-start;
}

.qht-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.qht-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.qht-field label {
	font-size: 0.9375rem;
	font-weight: 600;
}

.qht-input {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 2px solid var(--qht-ink);
	border-radius: 4px;
	background: var(--qht-white);
	color: var(--qht-ink);
	font: inherit;
}

.qht-input--area {
	min-height: 160px;
	resize: vertical;
}

.qht-input[aria-invalid="true"] {
	border-color: var(--qht-error);
}

.qht-error {
	color: var(--qht-error);
	font-size: 0.9375rem;
	font-weight: 600;
}

.qht-status {
	padding: 14px 16px;
	border: 2px solid var(--qht-ink);
	border-radius: 4px;
	background: var(--qht-white);
}

.qht-status--error {
	border-color: var(--qht-error);
}

/* ---------- Footer ---------- */

.qht-footer {
	padding: 56px var(--qht-gutter);
	background: var(--qht-ink);
	color: var(--qht-footer-text);
	font-size: 0.9375rem;
}

.qht-footer a {
	color: var(--qht-white);
}

.qht-footer :focus-visible {
	outline-color: var(--qht-sun);
	box-shadow: none;
}

.qht-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 56px;
}

.qht-footer__about {
	flex: 2 1 320px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.qht-footer__about p {
	max-width: 34em;
}

.qht-footer__brand {
	color: var(--qht-white);
	font-weight: 800;
	font-stretch: 75%;
	font-size: 1.375rem;
	line-height: 1.1;
}

.qht-footer__nav {
	flex: 1 1 200px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.qht-footer__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.qht-footer__legal {
	flex: 1 1 100%;
	padding-top: 20px;
	border-top: 1px solid var(--qht-footer-rule);
	font-size: 0.875rem;
}

/* ---------- Generic page content (page.php only) ---------- */

.qht-prose {
	max-width: 40em;
}

.qht-prose > * + * {
	margin-top: 1em;
}

.qht-prose h2,
.qht-prose h3 {
	margin-top: 1.6em;
	line-height: 1.2;
}

.qht-prose img {
	max-width: 100%;
	height: auto;
}

@media print {
	.qht-notice,
	.qht-nav,
	.qht-actions,
	.qht-form {
		display: none;
	}
}
