/*
Theme Name: GraceHub PH
Description: The website of GraceHub Port Harcourt. Built around the next meeting, with a Daily Word blog. Works with the GraceHub Registration plugin.
Version: 1.0.16
Requires at least: 6.2
Requires PHP: 7.4
Author: GraceHub Port Harcourt
License: GPL-2.0-or-later
Text Domain: gracehub-ph
*/

@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.woff2) format("woff2");
}

:root {
	--brand: #c00000;
	--on-brand: #ffffff;
	--ink: #17181c;
	--navy: #1b2a5c;
	--muted: #565e6b;
	--line: #d9dce1;
	--mist: #f4f4f5;
	--paper: #ffffff;
	--display: "Archivo", "Arial Narrow", Arial, sans-serif;
	--text: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ghr-page: #ffffff;
	--ghr-font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
	margin: 0;
	font-family: var(--text);
	font-stretch: 100%;
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
}

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

h1,
h2,
h3 {
	text-wrap: balance;
	font-family: var(--display);
	font-stretch: 80%;
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -0.01em;
	color: var(--navy);
}

a {
	color: var(--ink);
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid #1a56db;
	outline-offset: 3px;
}

.wrap {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

.wrap.narrow {
	max-width: 768px;
}

/* The registration form on its own: a single column, centred on the page */
.wrap.narrow.is-form {
	max-width: 608px;
}

.skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100;
	padding: 10px 16px;
	color: #fff;
	background: var(--ink);
	border-radius: 8px;
}

.skip:focus {
	left: 8px;
}

.icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Buttons and links */
.btn {
	display: inline-flex;
	align-items: center;
	min-height: 54px;
	padding: 12px 26px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background: var(--navy);
	border-radius: 12px;
	text-decoration: none;
}

.btn:hover {
	filter: brightness(1.25);
}

.btn-light {
	color: var(--navy);
	background: #fff;
}

.btn-light:hover {
	filter: brightness(0.94);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--brand);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

.text-link .icon {
	width: 18px;
	height: 18px;
}

/* Header: always a light ground, so any logo shows */
.site-head {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.site-head-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 32px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.brand-logo {
	display: block;
	width: auto;
	max-height: clamp(38px, 9vw, 52px);
}

.brand-name {
	font-family: var(--display);
	font-stretch: 80%;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--navy);
}

.brand-label {
	position: relative;
	top: -0.19em;
	margin-left: clamp(10px, 2vw, 16px);
	padding-left: clamp(10px, 2vw, 16px);
	font-family: var(--display);
	font-stretch: 64%;
	font-size: clamp(22px, 5.4vw, 36px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--navy);
	border-left: 2px solid rgba(27, 42, 92, 0.3);
}

.nav-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list a {
	display: inline-block;
	padding: 10px 0;
	font-size: 17px;
	font-weight: 650;
	color: var(--ink);
	text-decoration: none;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_parent > a {
	text-decoration: underline;
	text-decoration-color: var(--brand);
	text-decoration-thickness: 3px;
	text-underline-offset: 7px;
}

.nav-list .is-cta a {
	padding: 10px 20px;
	color: var(--on-brand);
	background: var(--brand);
	border-radius: 10px;
	text-decoration: none;
}

.nav-list .is-cta a:hover {
	text-decoration: none;
	filter: brightness(0.9);
}

/* Hero: the one loud thing on the site is the date of the next meeting */
.hero {
	padding: clamp(44px, 8vw, 96px) 0 clamp(40px, 7vw, 80px);
	color: var(--on-brand);
	background: var(--brand);
}

.hero h1 {
	margin: 0;
	color: inherit;
}

.hero-title {
	display: block;
	margin: 0 0 16px;
	font-family: var(--text);
	font-stretch: 100%;
	font-size: clamp(20px, 2.6vw, 28px);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0;
	text-wrap: balance;
}

.hero-title strong {
	font-weight: 800;
}

.nowrap {
	white-space: nowrap;
}

.hero-date {
	display: block;
	font-family: var(--display);
	font-stretch: 66%;
	font-size: clamp(54px, 14.5vw, 200px);
	font-weight: 800;
	line-height: 0.86;
	letter-spacing: -0.015em;
	text-transform: uppercase;
}

/* The month's theme, under the date */
.hero-theme {
	margin: clamp(16px, 2.4vw, 26px) 0 0;
	font-family: var(--display);
	font-stretch: 76%;
	font-size: clamp(28px, 4.6vw, 54px);
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	color: #ffd98a;
}

.hero-theme span {
	display: block;
	margin: 0 0 6px;
	font-family: var(--body);
	font-stretch: 100%;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #ffffff;
}

.hero-soon {
	max-width: 36ch;
	margin: clamp(18px, 2.6vw, 28px) 0 22px;
	font-size: clamp(18px, 2.2vw, 22px);
	font-weight: 600;
	line-height: 1.4;
}

/* Under the date: the facts and buttons on the left, the countdown on the right */
.hero-lower {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px clamp(28px, 5vw, 64px);
	align-items: end;
	margin-top: clamp(24px, 3.6vw, 40px);
}

.hero-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: clamp(18px, 2.2vw, 22px);
	font-weight: 650;
}

.hero-facts li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 26px;
	margin-top: clamp(22px, 3.4vw, 36px);
}

.hero-link {
	font-weight: 700;
	color: inherit;
	text-underline-offset: 5px;
}

.countdown-label {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.countdown-units {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.countdown-unit {
	min-width: clamp(72px, 8.8vw, 116px);
	padding: 16px 8px 13px;
	text-align: center;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 14px;
}

.countdown-unit strong {
	display: block;
	font-family: var(--display);
	font-stretch: 70%;
	font-size: clamp(40px, 5.6vw, 72px);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 0.95;
}

.countdown-unit span {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.countdown-done {
	display: none;
	margin: 0;
	font-family: var(--display);
	font-stretch: 76%;
	font-size: clamp(26px, 3.4vw, 40px);
	font-weight: 800;
	line-height: 1.1;
}

.countdown.is-done .countdown-label,
.countdown.is-done .countdown-units {
	display: none;
}

.countdown.is-done .countdown-done {
	display: block;
}

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

/* Statement */
.statement {
	padding: clamp(56px, 9vw, 104px) 0;
}

.statement-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 28px clamp(32px, 6vw, 72px);
	align-items: center;
}

.statement-big {
	margin: 0;
	color: var(--navy);
	font-family: var(--display);
	font-stretch: 80%;
	font-size: clamp(36px, 5.6vw, 64px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.015em;
}

.statement-big span {
	display: block;
	text-wrap: balance;
}

.statement-text {
	max-width: 46ch;
	margin: 0 0 20px;
	font-size: 20px;
	text-wrap: pretty;
}

.statement-side > :last-child {
	margin-bottom: 0;
}

/* With a photo: words on the left, the picture on the right */
.statement.has-photo .statement-grid {
	grid-template-areas:
		"big photo"
		"side photo";
	grid-template-rows: auto 1fr;
	align-items: start;
}

.statement.has-photo .statement-big {
	grid-area: big;
}

.statement.has-photo .statement-side {
	grid-area: side;
}

.statement-photo {
	grid-area: photo;
	margin: 0;
	overflow: hidden;
	border-radius: 14px;
	aspect-ratio: 4 / 5;
	background: var(--mist);
}

.statement-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* When we meet: a timetable, not a set of cards */
.rhythm {
	padding: clamp(52px, 8vw, 88px) 0;
	background: var(--mist);
}

.rhythm h2,
.words h2,
.visit h2 {
	margin: 0;
	font-size: clamp(30px, 4.4vw, 44px);
}

.rhythm-list {
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	border-top: 2px solid var(--navy);
}

.rhythm-list li {
	display: grid;
	grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
	gap: 10px 40px;
	padding: 26px 0;
	border-bottom: 1px solid var(--line);
}

.rhythm-when {
	margin: 0;
	font-weight: 650;
	color: var(--muted);
}

.rhythm-when strong {
	display: block;
	margin-top: 4px;
	font-family: var(--display);
	font-stretch: 72%;
	font-size: clamp(30px, 4.2vw, 44px);
	font-weight: 800;
	line-height: 1;
	color: var(--navy);
}

.rhythm-list h3 {
	margin: 0 0 6px;
	font-size: 26px;
}

.rhythm-list p {
	margin: 0 0 10px;
}

.rhythm-list div > p:last-child {
	margin-bottom: 0;
}

.rhythm-more {
	margin: 26px 0 0;
}

/* Daily Word */
.words {
	padding: clamp(52px, 8vw, 88px) 0;
}

.words-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px 24px;
}

.word-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.word-list time {
	font-size: 15px;
	color: var(--muted);
}

.word-list h2,
.word-list h3 {
	margin: 6px 0 8px;
	font-size: 26px;
	line-height: 1.12;
}

.word-list h2 a,
.word-list h3 a {
	color: var(--ink);
	text-decoration: none;
}

.word-list h2 a:hover,
.word-list h3 a:hover {
	text-decoration: underline;
	text-decoration-color: var(--brand);
	text-underline-offset: 4px;
}

.word-list p {
	margin: 0;
	color: var(--muted);
}

.word-list.is-stack {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	margin-top: 0;
}

.word-list.is-stack li {
	padding: 26px 0;
	border-bottom: 1px solid var(--line);
}

.word-list.is-stack h2 {
	font-size: 30px;
}

.words-today {
	display: grid;
	grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
	gap: 16px 40px;
	align-items: start;
}

.words-date {
	margin: 8px 0 0;
	font-weight: 650;
	color: var(--muted);
}

.words-today h3 {
	margin: 0 0 12px;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.05;
}

.words-today h3 a {
	color: var(--navy);
	text-decoration: none;
}

.words-today p {
	max-width: 62ch;
	margin: 0 0 18px;
}

.words-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
}

.word-feature {
	margin: 0 0 12px;
	padding: 26px 28px;
	background: var(--mist);
	border-left: 5px solid var(--brand);
	border-radius: 0 14px 14px 0;
}

.word-feature .words-date {
	margin: 0 0 6px;
}

.word-feature h2 {
	margin: 0 0 10px;
	font-size: clamp(28px, 4vw, 38px);
}

.word-feature h2 a {
	color: var(--navy);
	text-decoration: none;
}

.word-feature p {
	margin: 0 0 14px;
}

.word-source {
	color: var(--muted);
}

.word-writer {
	display: block;
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 650;
	color: var(--muted);
}

.page-head .word-writer {
	margin: 14px 0 0;
	font-size: 18px;
}

/* Find us */
.visit {
	padding: clamp(52px, 8vw, 88px) 0;
	border-top: 1px solid var(--line);
}

.visit-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 32px clamp(32px, 6vw, 72px);
	align-items: start;
}

.visit-place {
	margin: 16px 0 24px;
	font-size: 20px;
	line-height: 1.45;
}

.visit-place strong {
	display: block;
	font-family: var(--display);
	font-stretch: 80%;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--navy);
}

.visit-place span {
	display: block;
	margin-top: 6px;
	text-wrap: balance;
}

.visit-list {
	display: grid;
	gap: 16px;
	margin: 62px 0 0;
	padding: 0;
	list-style: none;
	font-size: 20px;
}

.visit-list li {
	display: flex;
	align-items: center;
	gap: 14px;
}

.visit-list .icon {
	color: var(--brand);
}

.visit-list a {
	font-weight: 650;
	text-underline-offset: 4px;
}

/* Inner pages and posts */
.page-head {
	padding: clamp(40px, 7vw, 76px) 0 4px;
}

.page-head h1 {
	margin: 0;
	font-size: clamp(42px, 7.4vw, 76px);
	font-stretch: 74%;
	line-height: 0.98;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0 0 14px;
	font-size: 16px;
	color: var(--muted);
}

.post-meta a {
	font-weight: 700;
	color: var(--brand);
	text-decoration: none;
}

.entry,
.list-body {
	padding-top: 28px;
	padding-bottom: clamp(56px, 9vw, 96px);
}

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

.entry p,
.entry ul,
.entry ol {
	margin: 0 0 20px;
}

.lede,
.entry .lede {
	font-size: 22px;
	line-height: 1.45;
	color: var(--ink);
}

.entry h2 {
	margin: 44px 0 12px;
	font-size: clamp(28px, 4vw, 36px);
}

.entry h3 {
	margin: 32px 0 10px;
	font-size: 24px;
}

.entry ul,
.entry ol {
	padding-left: 24px;
}

.entry li {
	margin-bottom: 8px;
}

.entry a {
	text-decoration: underline;
	text-decoration-color: var(--brand);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.entry blockquote {
	margin: 28px 0;
	padding: 4px 0 4px 22px;
	font-size: 22px;
	line-height: 1.4;
	border-left: 4px solid var(--brand);
}

.entry .wp-block-quote {
	margin: 20px 0 28px;
	padding: 6px 0 6px 24px;
	font-family: var(--display);
	font-stretch: 84%;
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 800;
	line-height: 1.12;
	color: var(--navy);
	border-left: 5px solid var(--brand);
}

.entry .wp-block-quote p {
	margin: 0;
}

.entry .wp-block-buttons {
	margin: 8px 0 28px;
}

.entry .wp-block-button__link {
	padding: 14px 26px;
	font-size: 18px;
	font-weight: 700;
	color: var(--on-brand);
	background: var(--brand);
	border-radius: 12px;
	text-decoration: none;
}

.entry .ghr {
	margin-top: 8px;
	--ghr-ink: var(--navy);
}

.entry .ghr.ghr-next {
	margin-bottom: 36px;
	padding: 24px;
	background: var(--mist);
	border-radius: 16px;
	--ghr-page: var(--mist);
}

.post-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 24px;
	padding-bottom: clamp(56px, 9vw, 96px);
	border-top: 1px solid var(--line);
	font-weight: 650;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	padding-top: 28px;
	font-weight: 700;
}

.pagination .page-numbers {
	padding: 6px 12px;
	border: 1.5px solid var(--line);
	border-radius: 8px;
	text-decoration: none;
}

.pagination .page-numbers.current {
	color: #fff;
	background: var(--navy);
	border-color: var(--navy);
}

/* Footer: dark ground, light text */
.site-foot {
	padding: 64px 0 28px;
	font-size: 16px;
	color: #e3e6ef;
	background: var(--navy);
}

.site-foot a {
	color: #ffffff;
	text-underline-offset: 4px;
}

.site-foot p {
	margin: 0 0 12px;
}

.site-foot h2 {
	margin: 0 0 12px;
	font-family: var(--text);
	font-stretch: 100%;
	font-size: 15px;
	font-weight: 650;
	letter-spacing: 0;
	color: #b9bec7;
}

.foot-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
	gap: 36px 40px;
}

.foot-name {
	font-family: var(--display);
	font-stretch: 80%;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.1;
	color: #ffffff;
}

.foot-links,
.foot-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.foot-links li {
	margin-bottom: 8px;
}

.foot-base {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 44px;
	padding-top: 20px;
	font-size: 15px;
	color: #b9bec7;
}

/* The rule lines up with the text above it, not with the edge of the page padding */
.foot-base::before {
	content: "";
	position: absolute;
	top: 0;
	left: 24px;
	right: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.foot-base p {
	margin: 0;
}

.foot-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
}

@media (max-width: 820px) {
	.word-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.visit-grid,
	.foot-grid,
	.statement-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.statement.has-photo .statement-grid {
		grid-template-areas:
			"big"
			"side"
			"photo";
	}

	.statement-photo {
		aspect-ratio: 4 / 3;
	}

	.visit-list {
		margin-top: 0;
	}

	.rhythm-list li,
	.words-today {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Phones and tablets: the countdown comes straight after the date, full width */
	.hero-lower {
		grid-template-columns: minmax(0, 1fr);
	}

	.countdown {
		order: -1;
	}

	.countdown-unit {
		min-width: 0;
		padding: 14px 4px 11px;
	}

	.countdown-unit span {
		font-size: 11px;
		letter-spacing: 0.06em;
	}
}

@media (max-width: 560px) {
	body {
		font-size: 17px;
	}

	.wrap {
		padding-left: 20px;
		padding-right: 20px;
	}

	.foot-base::before {
		left: 20px;
		right: 20px;
	}

	/* Phones: the four links and the Register button share one row under the logo */
	.nav {
		width: 100%;
	}

	.nav-list {
		justify-content: space-between;
		gap: 0 4px;
	}

	.nav-list a {
		padding: 11px 0;
		font-size: 14.5px;
		font-stretch: 92%;
		white-space: nowrap;
	}

	.nav-list .is-cta a {
		padding: 9px 11px;
		font-size: 14px;
		border-radius: 8px;
	}

	.site-head-in {
		gap: 2px 32px;
		padding-top: 12px;
		padding-bottom: 8px;
	}

	.brand-name {
		font-size: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}
}
