/*
Theme Name: Global Creative Foundation
Theme URI: https://globalcreativefoundation.com
Author: Digitallo
Author URI: https://digitallo.net
Description: A simple, black, professional one-page theme for the Global Creative Foundation. Includes Nominate a Jury and Donate Your Knowledge pop-up forms that save entries in WordPress and email them to the foundation.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.8
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: gcf
*/

:root {
	--bg: #0a0a0a;
	--bg-alt: #141414;
	--bg-deep: #050505;
	--ink: #f5f1e8;
	--ink-strong: #ffffff;
	--muted: #cfc8b6;
	--soft: #d9d3c4;
	--line: #2c2a26;
	--card: #121212;
	--card-hover: #1c1c1c;
	--card-line: #4a463e;
	--field: #1a1a1a;
	--field-line: #5a564d;
	--ok: #b9e4c6;
	--err: #f2b8b5;
	--max: 1200px;
	--sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 24px;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration: none;
}

button {
	font-family: inherit;
}

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

.skip-link {
	position: absolute;
	left: 16px;
	top: -80px;
	z-index: 100;
	padding: 12px 18px;
	background: var(--ink);
	color: var(--bg);
	font-weight: 600;
}

.skip-link:focus {
	top: 16px;
}

:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}

.container {
	max-width: var(--max);
	margin: 0 auto;
	padding-left: 40px;
	padding-right: 40px;
}

.eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 28px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1.5px solid var(--ink);
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-solid {
	background: var(--ink);
	color: var(--bg);
}

.btn-solid:hover {
	background: var(--ink-strong);
}

.btn-line {
	background: transparent;
	color: var(--ink);
}

.btn-line:hover {
	background: var(--ink);
	color: var(--bg);
}

.btn-lg {
	min-height: 56px;
	padding: 0 40px;
}

.btn[disabled] {
	opacity: 0.6;
	cursor: wait;
}

/* Header */
.site-header .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 24px;
	padding-bottom: 24px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.brand img {
	width: 56px;
	height: 56px;
	object-fit: cover;
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.brand-text span:nth-child(odd) {
	font-weight: 300;
}

.brand-text span:nth-child(even) {
	font-weight: 700;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
}

.nav-link {
	padding: 10px 4px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.nav-link:hover {
	text-decoration: underline;
	text-underline-offset: 6px;
}

.site-nav .btn {
	min-height: 44px;
	padding: 0 24px;
}

/* Hero */
.hero .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px;
	padding-top: 56px;
	padding-bottom: 96px;
}

.hero-copy {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.hero h1 {
	margin: 0;
	font-size: clamp(44px, 6.4vw, 84px);
	line-height: 1.04;
	font-weight: 300;
	letter-spacing: -0.02em;
}

.hero h1 strong {
	font-weight: 700;
}

.hero-sub {
	margin: 0;
	max-width: 560px;
	font-family: var(--serif);
	font-size: 24px;
	line-height: 1.45;
	color: var(--muted);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 8px;
}

.hero-art {
	flex: 1 1 360px;
	min-width: 0;
	display: flex;
	justify-content: center;
}

.hero-art img {
	width: 100%;
	max-width: 470px;
}

/* Purpose */
.purpose {
	background: var(--bg-deep);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.purpose .container {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 40px 80px;
	padding-top: 112px;
	padding-bottom: 112px;
}

.purpose-head {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.purpose h2 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(36px, 4.6vw, 64px);
	line-height: 1.12;
	letter-spacing: -0.01em;
}

.purpose p {
	flex: 1 1 360px;
	min-width: 0;
	margin: 0;
	font-size: 18px;
	line-height: 1.7;
	color: var(--soft);
}

/* Mission and vision */
.mission .container {
	display: flex;
	flex-wrap: wrap;
	gap: 64px;
	padding-top: 112px;
	padding-bottom: 112px;
}

.mission-main {
	flex: 1.3 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.mission h2 {
	margin: 0;
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1.25;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.mission p {
	margin: 0;
	font-size: 17px;
	line-height: 1.75;
	color: var(--muted);
}

.vision {
	flex: 1 1 340px;
	min-width: 0;
	align-self: flex-start;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 32px;
	border-top: 1.5px solid var(--ink);
}

.mission .vision-text {
	font-family: var(--serif);
	font-size: 28px;
	line-height: 1.4;
	color: var(--ink);
}

/* Section headings */
.section-title {
	margin: 0;
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.12;
	font-weight: 300;
	letter-spacing: -0.02em;
}

.section-title strong {
	font-weight: 700;
}

.section-intro {
	margin: 0;
	font-size: 17px;
	line-height: 1.75;
	color: var(--muted);
}

/* Initiatives */
.initiatives {
	background: var(--bg-alt);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.initiatives .container {
	display: flex;
	flex-direction: column;
	gap: 56px;
	padding-top: 112px;
	padding-bottom: 112px;
}

.section-head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 720px;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 32px;
	background: var(--card);
	border: 1.5px solid var(--card-line);
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.card:hover {
	background: var(--card-hover);
	border-color: var(--ink);
}

.card-num {
	font-family: var(--serif);
	font-size: 40px;
	line-height: 1;
}

.card h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
}

.card p {
	flex: 1 1 auto;
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--muted);
}

.card-link {
	align-self: flex-start;
	margin-top: 8px;
	padding-bottom: 3px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-bottom: 1.5px solid var(--ink);
}

.card-link:hover {
	opacity: 0.65;
}

/* Button bands (jury, knowledge) */
.band .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px 64px;
	padding-top: 96px;
	padding-bottom: 96px;
}

.band-alt {
	background: var(--bg-alt);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.band-copy {
	flex: 1 1 520px;
	min-width: 0;
	max-width: 720px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Boards */
.boards .container {
	display: flex;
	flex-direction: column;
	gap: 48px;
	padding-top: 112px;
	padding-bottom: 112px;
}

.board-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}

.board-grid .card {
	padding: 40px;
	gap: 18px;
}

.board-grid h3 {
	font-size: 24px;
}

.board-grid p {
	font-size: 16px;
	line-height: 1.7;
}

.board-grid .btn {
	align-self: flex-start;
}

/* Footer */
.site-footer {
	background: var(--bg-deep);
	border-top: 1px solid var(--line);
}

.site-footer .container {
	display: flex;
	flex-direction: column;
	gap: 48px;
	padding-top: 72px;
	padding-bottom: 40px;
}

.footer-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 40px 80px;
}

.footer-brand {
	flex: 1 1 320px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer-brand .brand-text {
	font-size: 14px;
}

.footer-tagline {
	margin: 0;
	font-family: var(--serif);
	font-size: 22px;
	font-style: italic;
	color: var(--soft);
}

.footer-nav {
	flex: 1 1 200px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	color: var(--soft);
}

.link-button {
	padding: 0;
	background: none;
	border: 0;
	color: inherit;
	font-size: inherit;
	text-align: left;
	cursor: pointer;
}

.footer-nav a:hover,
.link-button:hover {
	color: var(--ink-strong);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.footer-contact {
	flex: 1 1 240px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
}

.footer-contact a {
	padding-bottom: 2px;
	border-bottom: 1px solid var(--ink);
}

.footer-bottom {
	padding-top: 24px;
	font-size: 13px;
	color: #b8b2a3;
	border-top: 1px solid var(--line);
}

/* Pop-up forms */
dialog.gcf-dialog {
	width: min(680px, calc(100% - 32px));
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	overflow: auto;
	background: var(--card);
	color: var(--ink);
	border: 1.5px solid var(--ink);
	border-radius: 0;
}

dialog.gcf-dialog::backdrop {
	background: rgba(0, 0, 0, 0.78);
}

.gcf-form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 40px;
}

.dialog-close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--ink);
	cursor: pointer;
}

.dialog-head {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-right: 36px;
}

.dialog-head h2 {
	margin: 0;
	font-size: 32px;
	line-height: 1.15;
	font-weight: 300;
	letter-spacing: -0.02em;
}

.dialog-head h2 strong {
	font-weight: 700;
}

.dialog-head p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--muted);
}

.field-row {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
}

.field {
	flex: 1 1 220px;
	min-width: 0;
}

.lbl {
	display: block;
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.fld {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	font-family: var(--sans);
	font-size: 15px;
	color: var(--ink);
	background: var(--field);
	border: 1.5px solid var(--field-line);
	border-radius: 0;
}

textarea.fld {
	resize: vertical;
}

.fld:focus {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
	border-color: var(--ink);
}

.fld::placeholder {
	color: #938e80;
}

.link-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.link-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.link-row {
	display: flex;
	gap: 8px;
}

.link-row .fld {
	flex: 1 1 auto;
}

.link-remove {
	flex: 0 0 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	background: transparent;
	color: var(--ink);
	border: 1.5px solid var(--field-line);
	cursor: pointer;
}

.link-remove:hover {
	border-color: var(--ink);
}

.add-link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 12px;
	padding: 4px 0;
	background: transparent;
	border: 0;
	color: var(--ink);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.add-link[hidden] {
	display: none;
}

.add-link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1.5px solid var(--ink);
}

.form-status {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
}

.form-status:empty {
	display: none;
}

.form-status.is-success {
	color: var(--ok);
}

.form-status.is-error {
	color: var(--err);
}

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

/* Generic pages */
.page-wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 56px 40px 112px;
}

.page-wrap h1 {
	margin: 0 0 32px;
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.12;
	font-weight: 300;
	letter-spacing: -0.02em;
}

.page-wrap .entry-content {
	font-size: 17px;
	line-height: 1.8;
	color: var(--soft);
}

.page-wrap .entry-content a {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Board members */
.team .container {
	display: flex;
	flex-direction: column;
	gap: 56px;
	padding-top: 112px;
	padding-bottom: 112px;
}

.member-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.member {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.member-photo {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--card);
	border: 1.5px solid var(--card-line);
}

.member-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.member-name {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
}

.member-role {
	margin: -8px 0 0;
	font-size: 14px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--muted);
}

/* Join Our Boards sits below the members on a lighter black */
.boards {
	background: var(--bg-alt);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.boards .card {
	background: var(--bg);
}

.boards .card:hover {
	background: var(--card-hover);
}

select.fld {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23F5F1E8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}

select.fld option {
	background: #1a1a1a;
	color: #f5f1e8;
}

/* Mobile menu */
.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	background: transparent;
	border: 1.5px solid var(--ink);
	color: var(--ink);
	cursor: pointer;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open {
	display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

@media (max-width: 760px) {
	.site-header .container {
		gap: 0;
		padding-top: 16px;
		padding-bottom: 16px;
	}

	.brand img {
		width: 44px;
		height: 44px;
	}

	.brand-text {
		font-size: 11px;
	}

	.js .menu-toggle {
		display: inline-flex;
	}

	.js .site-nav {
		display: none;
		flex: 0 0 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin-top: 16px;
		border-top: 1px solid var(--line);
	}

	.js .site-nav.is-open {
		display: flex;
	}

	.site-nav .nav-link {
		padding: 16px 4px;
		font-size: 15px;
		border-bottom: 1px solid var(--line);
	}

	.site-nav .btn {
		width: 100%;
		margin-top: 20px;
	}
}

/* Small screens */
@media (max-width: 640px) {
	.container,
	.page-wrap {
		padding-left: 20px;
		padding-right: 20px;
	}

	.hero .container {
		padding-top: 32px;
		padding-bottom: 64px;
	}

	.purpose .container,
	.mission .container,
	.initiatives .container,
	.team .container,
	.boards .container {
		padding-top: 72px;
		padding-bottom: 72px;
	}

	.band .container {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.hero-sub {
		font-size: 20px;
	}

	.mission .vision-text {
		font-size: 24px;
	}

	.gcf-form {
		padding: 28px 20px;
	}

	.btn-lg {
		width: 100%;
		padding: 0 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.btn,
	.card {
		transition: none;
	}
}
