/*
Theme Name: People of Britain
Theme URI: https://peopleofbritain.org
Author: People of Britain
Description: The People of Britain site: a black-and-white, type-led homepage editable from the Customizer, with matching post, page, archive, search and 404 templates.
Version: 1.1.2
Requires at least: 6.3
Tested up to: 7.1
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: people-of-britain
*/

:root {
	--black: #0a0a0a;
	--white: #ffffff;
	--grey-text: #9a9a9a;
	--grey-text-light: #5c5c5c;
	--line: #262626;
	--gutter: clamp(16px, 4vw, 40px);
	--section-space: clamp(72px, 10vw, 140px);
	--font-body: "Inter", system-ui, sans-serif;
	--font-display: "Inter Tight", sans-serif;
	--font-accent: "Instrument Serif", serif;
}

/* Base */

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

html {
	scroll-behavior: smooth;
}

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

body {
	margin: 0;
	background: var(--black);
	color: var(--white);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	overflow-wrap: break-word;
}

a {
	color: inherit;
}

a:hover {
	color: #bdbdbd;
}

.light a:hover {
	color: #444444;
}

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

[id] {
	scroll-margin-top: 100px;
}

ul.menu,
.site-nav-links ul,
.footer-column ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wrap {
	max-width: calc(1360px + 2 * var(--gutter));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.light {
	background: var(--white);
	color: var(--black);
}

.accent {
	font-family: var(--font-accent);
	font-style: italic;
	font-weight: 400;
}

.eyebrow {
	margin: 0 0 24px;
	color: var(--grey-text);
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.light .eyebrow {
	color: var(--grey-text-light);
}

.display {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(48px, 9.4vw, 152px);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 0.92;
}

.hero .display .accent {
	letter-spacing: -0.02em;
}

.display-small {
	margin-bottom: 48px;
	font-size: clamp(48px, 8vw, 128px);
}

.heading {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(40px, 5.6vw, 84px);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 0.98;
}

.heading-spaced {
	margin-bottom: 48px;
}

.section {
	padding-top: var(--section-space);
	padding-bottom: var(--section-space);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 48px;
}

.section-intro {
	max-width: 420px;
	margin: 0;
	color: var(--grey-text);
}

.section-link {
	font-weight: 600;
}

/* Pills: the .pill.pill-* selectors outrank ".light a:hover" */

.pill {
	display: inline-block;
	padding: 16px 28px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
}

.pill-small {
	padding: 11px 22px;
}

.pill-large {
	padding: 18px 34px;
}

.pill.pill-light {
	background: var(--white);
	color: var(--black);
}

.pill.pill-light:hover {
	background: #d6d6d6;
	color: var(--black);
}

.pill.pill-dark {
	background: var(--black);
	color: var(--white);
}

.pill.pill-dark:hover {
	background: #333333;
	color: var(--white);
}

.pill.pill-outline {
	padding: 15px 27px;
	border: 1px solid var(--white);
}

.pill.pill-outline:hover {
	background: var(--white);
	color: var(--black);
}

.pill-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Header */

.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0);
	z-index: 10;
	border-bottom: 1px solid #222222;
	background: rgba(10, 10, 10, 0.92);
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 18px;
	padding-bottom: 18px;
}

.site-name {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.01em;
	text-decoration: none;
	text-transform: uppercase;
}

.site-nav-links,
.site-nav-links ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
	font-size: 15px;
}

.site-nav-links a:not(.pill) {
	text-decoration: none;
}

.site-nav-links li:first-child a {
	font-weight: 600;
}

/* Phones: name and Donate share a row, so the sticky header stays short. */
@media (max-width: 640px) {
	[id] {
		scroll-margin-top: 130px;
	}

	.site-nav {
		gap: 10px 16px;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.site-nav-links {
		display: contents;
	}

	.site-nav-links ul {
		order: 3;
		width: 100%;
		gap: 4px 20px;
		font-size: 14px;
	}
}

/* Hero */

.hero {
	padding-top: clamp(64px, 10vw, 140px);
	padding-bottom: 56px;
}

.hero .eyebrow {
	margin-bottom: 32px;
}

.hero-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-top: 56px;
}

.hero-text {
	max-width: 520px;
	margin: 0;
	color: #d4d4d4;
	font-size: 20px;
	line-height: 1.45;
}

/* Showreel */

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

.showreel {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 1360px;
	height: clamp(300px, 50vw, 720px);
	margin: 0 auto;
	overflow: hidden;
	border-radius: 4px;
	background: #171717;
}

.showreel-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.showreel-button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	padding: 0;
	border: 1px solid var(--white);
	border-radius: 999px;
	background: transparent;
	color: var(--white);
}

button.showreel-button {
	cursor: pointer;
}

.showreel:has(.showreel-video) .showreel-button {
	background: rgba(10, 10, 10, 0.45);
}

.showreel-button .icon-pause,
.is-playing .showreel-button .icon-play {
	display: none;
}

.is-playing .showreel-button .icon-pause {
	display: block;
}

/* While playing, the button only appears when it is wanted. */
.is-playing .showreel-button {
	opacity: 0;
	transition: opacity 0.2s;
}

.is-playing:hover .showreel-button,
.is-playing .showreel-button:focus-visible {
	opacity: 1;
}

@media (hover: none) {
	.is-playing .showreel-button {
		opacity: 1;
	}
}

.showreel-caption {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 20px;
	margin: 0;
	color: var(--grey-text);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.showreel:has(.showreel-video) .showreel-caption {
	color: var(--white);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

/* Sound on/off, always visible in the corner. */
.showreel-sound {
	position: absolute;
	right: 20px;
	bottom: 16px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--white);
	border-radius: 999px;
	background: rgba(10, 10, 10, 0.45);
	color: var(--white);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.showreel-sound:hover {
	background: var(--white);
	color: #0a0a0a;
}

.showreel-sound .icon-sound,
.has-sound .showreel-sound .icon-muted {
	display: none;
}

.has-sound .showreel-sound .icon-sound {
	display: block;
}

.showreel:has(.showreel-sound) .showreel-caption {
	right: 80px;
}

/* Topic strip */

.topics {
	margin-top: 72px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.topics-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 32px;
	padding-top: 22px;
	padding-bottom: 22px;
	font-family: var(--font-display);
	font-size: clamp(20px, 2.6vw, 34px);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.topics-slash {
	color: #555555;
}

/* About */

.about {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 80px;
	padding-top: var(--section-space);
	padding-bottom: var(--section-space);
}

.about-col {
	flex: 1 1 420px;
	min-width: 0;
}

.about-text {
	display: flex;
	flex-direction: column;
	gap: 24px;
	color: #2b2b2b;
	font-size: 19px;
	line-height: 1.55;
}

.about-text p {
	margin: 0;
}

.about-button {
	padding-top: 8px;
}

/* What we do */

.rows {
	border-top: 1px solid #2a2a2a;
}

.row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px 40px;
	padding: 32px 8px;
	border-bottom: 1px solid #2a2a2a;
}

.row:hover {
	background: #141414;
}

.row-number {
	width: 48px;
	color: var(--grey-text);
	font-size: 14px;
}

.row h3 {
	flex: 1 1 280px;
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(30px, 3.8vw, 56px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}

.row p {
	flex: 1 1 360px;
	margin: 0;
	color: #c4c4c4;
}

/* Pictures. Photos are shown in black and white, as the design specifies. */

.picture {
	position: relative;
	display: flex;
	align-items: flex-end;
	padding: 14px;
	overflow: hidden;
	border-radius: 4px;
	background: #1c1c1c;
}

.light .picture {
	background: #e6e6e6;
}

.picture img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
}

.picture-audience {
	height: 380px;
}

/* This section holds partner logos, which keep their colours. */
.picture-audience img {
	filter: none;
}

.picture-portrait {
	aspect-ratio: 4 / 5;
}

.picture-hint {
	color: var(--grey-text);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.light .picture-hint {
	color: #555555;
}

/* Who we support */

.audience-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.audience-name {
	margin: 16px 0 0;
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

/* Post cards */

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

.card-link {
	display: block;
	text-decoration: none;
}

.card-label {
	margin: 16px 0 4px;
	color: var(--grey-text-light);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.page-intro .card-label {
	margin: 0 0 16px;
	color: var(--grey-text);
}

.card-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.card-link .picture + .card-title {
	margin-top: 16px;
}

/* Contact form */

.contact {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 80px;
}

.contact-intro,
.contact-form-wrap {
	flex: 1 1 420px;
	min-width: 0;
}

.contact-text {
	max-width: 520px;
	margin: 32px 0 0;
	color: #2b2b2b;
	font-size: 19px;
	line-height: 1.55;
}

.contact-form .form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
}

.contact-form .form-row .form-field {
	flex: 1 1 220px;
}

.form-field {
	margin: 0 0 20px;
}

.form-field label {
	display: block;
	margin-bottom: 8px;
	color: var(--grey-text-light);
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.light .form-field input,
.light .form-field textarea {
	border-color: #b8b8b8;
	background: var(--white);
}

.light .form-field input:focus,
.light .form-field textarea:focus {
	border-color: var(--black);
	outline: none;
	box-shadow: 0 0 0 1px var(--black);
}

.form-field textarea {
	min-height: 180px;
	resize: vertical;
}

.form-privacy {
	margin: 0 0 24px;
	color: var(--grey-text-light);
	font-size: 14px;
}

/* Bots fill this in; people never see it. */
.form-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-form button.pill {
	border: 0;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
}

.form-notice {
	margin: 0 0 24px;
	padding: 16px 20px;
	border-radius: 4px;
	font-weight: 600;
}

.form-notice-sent {
	background: var(--black);
	color: var(--white);
}

.form-notice-error {
	border: 2px solid #b3261e;
	color: #b3261e;
}

/* Get involved */

.panel-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 16px;
}

.panel {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	min-height: 326px;
	padding: 32px;
	border: 1px solid #333333;
	border-radius: 4px;
	text-decoration: none;
}

.panel:hover {
	background: var(--white);
	color: var(--black);
}

.panel-number {
	color: var(--grey-text);
	font-size: 14px;
}

.panel-title {
	font-family: var(--font-display);
	font-size: 34px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

/* Team */

.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 420px));
	gap: 24px;
}

.member-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-top: 16px;
}

.member-name {
	margin: 0;
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.member-link {
	font-size: 14px;
}

.member-role {
	margin: 2px 0 0;
	color: var(--grey-text-light);
}

/* Newsletter */

.newsletter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-top: clamp(72px, 9vw, 120px);
	padding-bottom: clamp(72px, 9vw, 120px);
	border-bottom: 1px solid var(--line);
}

.newsletter-text {
	flex: 1 1 480px;
	min-width: 0;
}

.newsletter .eyebrow {
	margin-bottom: 16px;
}

.newsletter-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(32px, 4vw, 56px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.02;
}

/* Footer */

.site-footer {
	padding-top: 64px;
	padding-bottom: 40px;
}

.footer-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 80px;
	font-size: 15px;
}

.footer-column {
	display: flex;
	flex-direction: column;
	min-width: 160px;
}

.footer-column .eyebrow {
	margin-bottom: 16px;
}

.footer-column ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-column a {
	text-decoration: none;
}

.footer-wordmark {
	margin: 72px 0 0;
	font-family: var(--font-display);
	font-size: clamp(44px, 10.6vw, 152px);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 0.85;
	text-transform: uppercase;
}

.footer-copyright {
	margin: 32px 0 0;
	color: var(--grey-text);
	font-size: 13px;
}

/* Inner pages */

.page-intro {
	padding-top: clamp(64px, 8vw, 112px);
}

.page-intro .display {
	margin-bottom: 0;
	padding-bottom: 48px;
}

.page-intro-text {
	max-width: 620px;
	margin-top: -24px;
	padding-bottom: 48px;
	color: #d4d4d4;
	font-size: 20px;
}

.post-date {
	margin: -24px 0 0;
	padding-bottom: 48px;
	color: var(--grey-text);
	font-size: 15px;
}

.featured-image img {
	display: block;
	width: 100%;
	max-height: 720px;
	border-radius: 4px;
	object-fit: cover;
	filter: grayscale(1);
}

.not-found-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding-bottom: var(--section-space);
}

.empty-state {
	font-size: 19px;
}

.entry-content,
.comments,
.post-navigation {
	max-width: 840px;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.entry-content {
	padding-top: 56px;
	padding-bottom: var(--section-space);
	color: #d4d4d4;
	font-size: 19px;
	line-height: 1.6;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 24px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 48px;
	color: var(--white);
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.entry-content h2 {
	font-size: clamp(32px, 4vw, 48px);
}

.entry-content h3 {
	font-size: clamp(26px, 3vw, 34px);
}

.entry-content a {
	color: var(--white);
}

.entry-content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding-left: 24px;
	border-left: 2px solid var(--white);
	color: var(--white);
	font-family: var(--font-accent);
	font-size: 30px;
	font-style: italic;
	line-height: 1.2;
}

.entry-content .wp-block-image img {
	border-radius: 4px;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border: 1px solid #333333;
	text-align: left;
}

.entry-content .wp-block-button__link {
	padding: 16px 28px;
	border-radius: 999px;
	background: var(--white);
	color: var(--black);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.entry-content .wp-block-button__link:hover {
	background: #d6d6d6;
	color: var(--black);
}

.entry-content .alignwide {
	width: min(1120px, 100vw - 2 * var(--gutter));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.alignleft {
	float: left;
	margin: 0 24px 16px 0;
}

.alignright {
	float: right;
	margin: 0 0 16px 24px;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption-text,
.wp-element-caption {
	margin-top: 8px;
	color: var(--grey-text);
	font-size: 14px;
}

/* Lists, pagination and navigation between posts */

.pagination {
	margin-top: 56px;
	font-weight: 600;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.post-navigation {
	padding-bottom: 56px;
}

.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 32px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	font-weight: 600;
}

.post-navigation a {
	text-decoration: none;
}

/* Search and comment forms */

.search-form {
	display: flex;
	flex: 0 1 460px;
	gap: 8px;
	max-width: 460px;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid #333333;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
}

.search-form label {
	flex: 1 1 auto;
	min-width: 0;
}

.search-form .search-submit,
.comment-form .submit {
	padding: 15px 27px;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
}

.search-form .search-submit:hover,
.comment-form .submit:hover {
	background: var(--white);
	color: var(--black);
}

.light .search-form .search-submit:hover {
	background: var(--black);
	color: var(--white);
}

.comments {
	padding-bottom: var(--section-space);
}

.comments-title,
.comment-reply-title {
	font-family: var(--font-display);
	font-size: 34px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.comment-list {
	margin: 0 0 48px;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	padding-left: 24px;
	list-style: none;
}

.comment-body {
	padding: 24px 0;
	border-bottom: 1px solid var(--line);
}

.comment-author .avatar {
	margin-right: 10px;
	border-radius: 999px;
	vertical-align: middle;
}

.comment-metadata {
	color: var(--grey-text);
	font-size: 14px;
}

/* Accessibility */

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

.skip-link:focus {
	top: 8px;
	left: 8px;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	clip-path: none;
	border-radius: 999px;
	background: var(--white);
	color: var(--black);
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}
