/*
Theme Name: Football Farce
Theme URI: https://www.footballfarce.com/
Author: Football Farce
Author URI: https://www.footballfarce.com/
Description: A lightweight, mobile-first editorial theme for Football Farce.
Version: 0.2.29
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: football-farce
*/

:root {
	--ff-black: #050505;
	--ff-bg: #08090a;
	--ff-surface: #101214;
	--ff-surface-raised: #17191c;
	--ff-text: #f7f7f8;
	--ff-body: #e2e3e6;
	--ff-muted: #a9acb2;
	--ff-line: #2a2d31;
	--ff-red: #ef1010;
	--ff-red-dark: #aa0909;
	--ff-content: 1240px;
	--ff-reading: 760px;
	--ff-page-pad: clamp(16px, 4vw, 32px);
	--ff-display: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
	--ff-accent: Oswald, "Arial Narrow", Arial, sans-serif;
	--ff-wordmark: var(--ff-accent);
	--ff-body-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	margin: 0;
	overflow-x: hidden;
	background: var(--ff-bg);
	color: var(--ff-body);
	font-family: var(--ff-body-font);
	font-size: 17px;
	line-height: 1.65;
}

@supports (overflow: clip) {
	html,
	body {
		overflow-x: clip;
	}
}

body.ff-menu-open {
	overflow: hidden;
}

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

a {
	color: inherit;
}

button,
input,
textarea,
select {
	font: inherit;
}

:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

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

.screen-reader-text:focus {
	z-index: 100000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: #fff;
	color: #000;
	font-weight: 700;
}

.ff-shell {
	width: min(100%, var(--ff-content));
	margin-inline: auto;
	padding-inline: var(--ff-page-pad);
}

.ff-site-header {
	position: relative;
	z-index: 100;
	background: var(--ff-surface);
	border-bottom: 1px solid #1f2226;
}

.ff-breaking-bar {
	background: var(--ff-red);
	color: #fff;
}

.ff-breaking-bar__inner {
	display: flex;
	min-height: 42px;
	align-items: center;
	gap: 12px;
}

.ff-breaking-bar__label {
	flex: 0 0 auto;
	padding: 5px 8px;
	background: #050505;
	font-family: var(--ff-display);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .055em;
	line-height: 1;
	text-transform: uppercase;
}

.ff-breaking-bar__headline {
	min-width: 0;
	overflow: hidden;
	font-family: var(--ff-display);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.1;
	text-overflow: ellipsis;
	white-space: nowrap;
}

a.ff-breaking-bar__headline {
	text-decoration: none;
}

a.ff-breaking-bar__headline:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ff-header-main {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 42px;
	align-items: center;
	min-height: 78px;
	gap: 6px;
}

.ff-brand {
	min-width: 0;
}

.ff-wordmark {
	display: inline-flex;
	justify-self: center;
	max-width: 100%;
	gap: 5px;
	color: #fff;
	font-family: var(--ff-wordmark);
	font-size: clamp(25px, 7.4vw, 34px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: .3px;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.ff-wordmark__accent {
	color: var(--ff-red);
}

.ff-wordmark__tagline {
	display: none;
}

.ff-menu-toggle,
.ff-search-toggle,
.ff-drawer-close {
	display: inline-grid;
	width: 44px;
	height: 44px;
	place-items: center;
	padding: 0;
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
}

.ff-menu-toggle__icon,
.ff-menu-toggle__icon::before,
.ff-menu-toggle__icon::after {
	display: block;
	width: 25px;
	height: 2px;
	background: currentColor;
	content: "";
}

.ff-menu-toggle__icon {
	position: relative;
}

.ff-menu-toggle__icon::before {
	position: absolute;
	top: -8px;
}

.ff-menu-toggle__icon::after {
	position: absolute;
	top: 8px;
}

.ff-search-toggle svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
}

.ff-primary-nav,
.ff-header-search {
	display: none;
}

.ff-shortcuts {
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scrollbar-width: none;
	border-top: 1px solid #1e2125;
}

.ff-shortcuts::-webkit-scrollbar {
	display: none;
}

.ff-shortcuts ul {
	display: flex;
	width: max-content;
	min-width: 100%;
	gap: 8px;
	margin: 0;
	padding: 10px var(--ff-page-pad);
	list-style: none;
}

.ff-shortcuts a {
	display: inline-flex;
	min-height: 38px;
	align-items: center;
	padding: 7px 13px;
	background: var(--ff-surface-raised);
	border: 1px solid var(--ff-line);
	border-radius: 999px;
	color: #fff;
	font-family: var(--ff-display);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.ff-shortcuts .current-menu-item a,
.ff-shortcuts a:hover {
	background: var(--ff-red);
	border-color: var(--ff-red);
}

.ff-drawer[hidden],
.ff-search-panel[hidden] {
	display: none;
}

.ff-drawer,
.ff-search-panel {
	position: fixed;
	z-index: 1000;
	inset: 0;
	background: rgba(0, 0, 0, .78);
}

.ff-drawer__panel {
	width: min(88vw, 380px);
	height: 100%;
	padding: 18px;
	background: var(--ff-surface);
	box-shadow: 12px 0 40px rgba(0, 0, 0, .5);
}

.ff-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 26px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ff-line);
}

.ff-drawer__label {
	color: #fff;
	font-family: var(--ff-display);
	font-size: 23px;
	font-weight: 700;
	text-transform: uppercase;
}

.ff-drawer-close {
	font-size: 33px;
	line-height: 1;
}

.ff-drawer nav ul {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ff-drawer nav a {
	display: flex;
	min-height: 48px;
	align-items: center;
	padding: 10px 12px;
	border-bottom: 1px solid var(--ff-line);
	color: #fff;
	font-family: var(--ff-display);
	font-size: 20px;
	font-weight: 700;
	text-decoration: none;
}

.ff-search-panel {
	display: grid;
	place-items: start center;
	padding: 110px 20px 20px;
}

.ff-search-panel__inner {
	position: relative;
	width: min(720px, 100%);
	padding: 24px;
	background: var(--ff-surface);
	border-top: 4px solid var(--ff-red);
}

.ff-search-panel__close {
	position: absolute;
	top: -54px;
	right: 0;
}

.search-form {
	display: flex;
	width: 100%;
}

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

.search-field {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	background: #fff;
	border: 0;
	color: #111;
}

.search-field:focus,
.search-field:focus-visible {
	outline: 2px solid var(--ff-red);
	outline-offset: 2px;
}

.search-submit {
	min-height: 48px;
	padding: 10px 18px;
	background: var(--ff-red);
	border: 0;
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

.search-submit:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.ff-site-main {
	min-height: 56vh;
	padding-block: clamp(32px, 6vw, 72px);
}

.ff-page-header {
	margin-bottom: 28px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ff-line);
}

.ff-page-title,
.ff-entry-title,
.ff-card__title {
	font-family: var(--ff-display);
	font-weight: 700;
	letter-spacing: -.02em;
}

.ff-page-title {
	margin: 0;
	color: #fff;
	font-size: clamp(38px, 10vw, 64px);
	line-height: 1;
}

.ff-page-description {
	max-width: 760px;
	margin: 12px 0 0;
	color: var(--ff-muted);
}

.ff-page-description > :first-child {
	margin-top: 0;
}

.ff-page-description > :last-child {
	margin-bottom: 0;
}

.ff-search-summary {
	margin: 12px 0 0;
	color: var(--ff-muted);
	font-size: 15px;
}

.ff-post-grid {
	display: grid;
	gap: 24px;
}

.ff-card {
	min-width: 0;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--ff-line);
}

.ff-card__link {
	display: grid;
	grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
	gap: 15px;
	color: #fff;
	text-decoration: none;
}

.ff-card__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--ff-surface-raised);
	border-radius: 3px;
}

.ff-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ff-card__body {
	min-width: 0;
}

.ff-card__eyebrow,
.ff-entry__category {
	color: var(--ff-red);
	font-family: var(--ff-display);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ff-card__title {
	margin: 4px 0 7px;
	font-size: clamp(20px, 5.5vw, 26px);
	line-height: 1.08;
}

.ff-card__meta,
.ff-entry__meta {
	color: var(--ff-muted);
	font-size: 12px;
}

.ff-entry {
	width: min(100%, 980px);
	margin-inline: auto;
}

.ff-entry__header {
	margin-bottom: 24px;
}

.ff-entry__category {
	display: inline-block;
	margin-bottom: 12px;
	padding: 5px 9px;
	background: var(--ff-red);
	color: #fff;
	text-decoration: none;
}

.ff-entry-title {
	margin: 0;
	color: #fff;
	font-size: clamp(38px, 10vw, 64px);
	line-height: 1.02;
	text-wrap: balance;
}

.ff-entry__standfirst {
	max-width: 800px;
	margin: 16px 0 0;
	color: #c9cbd0;
	font-size: clamp(18px, 4.8vw, 22px);
	line-height: 1.45;
}

.ff-entry__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 16px;
}

.ff-entry__featured {
	margin: 0 0 30px;
}

.ff-entry__featured img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 3px;
}

.ff-entry__caption {
	margin-top: 7px;
	color: var(--ff-muted);
	font-size: 12px;
}

.ff-entry__content {
	width: min(100%, var(--ff-reading));
	margin-inline: auto;
	font-size: clamp(18px, 4.5vw, 20px);
}

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

.ff-entry__content p,
.ff-entry__content ul,
.ff-entry__content ol,
.ff-entry__content blockquote {
	margin: 0 0 1.45em;
}

.ff-entry__content h2,
.ff-entry__content h3 {
	margin: 1.6em 0 .55em;
	color: #fff;
	font-family: var(--ff-display);
	line-height: 1.12;
}

.ff-entry__content a {
	color: #fff;
	text-decoration-color: var(--ff-red);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.ff-pagination {
	margin-top: 34px;
}

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

.ff-pagination a,
.ff-pagination span {
	display: inline-grid;
	min-width: 44px;
	min-height: 44px;
	place-items: center;
	padding: 8px 12px;
	background: var(--ff-surface);
	border: 1px solid var(--ff-line);
	color: #fff;
	text-decoration: none;
}

.ff-pagination .current {
	background: var(--ff-red);
	border-color: var(--ff-red);
}

.ff-empty {
	padding: 28px;
	background: var(--ff-surface);
	border-top: 4px solid var(--ff-red);
}

.ff-empty h2 {
	margin-top: 0;
	color: #fff;
	font-family: var(--ff-display);
}

.ff-empty--search {
	max-width: 760px;
}

.ff-empty--search > :last-child {
	margin-bottom: 0;
}

.ff-empty--search > :last-child a {
	color: #fff;
	font-weight: 700;
	text-decoration-color: var(--ff-red);
	text-underline-offset: 3px;
}

.ff-site-footer {
	padding-block: 38px 22px;
	background: #050505;
	border-top: 4px solid var(--ff-red);
}

.ff-footer-grid {
	display: grid;
	gap: 32px;
}

.ff-footer-brand p {
	max-width: 420px;
	margin: 12px 0 0;
	color: var(--ff-muted);
}

.ff-footer-nav h2 {
	margin: 0 0 12px;
	color: #fff;
	font-family: var(--ff-display);
	font-size: 18px;
	text-transform: uppercase;
}

.ff-footer-nav ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ff-footer-nav a {
	color: var(--ff-body);
	text-decoration: none;
}

.ff-footer-nav a:hover {
	color: var(--ff-red);
}

.ff-footer-bottom {
	margin-top: 36px;
	padding-top: 18px;
	border-top: 1px solid var(--ff-line);
	color: var(--ff-muted);
	font-size: 13px;
}

@media (max-width: 767px) {
	.blog .ff-page-title,
	.archive .ff-page-title,
	.search .ff-page-title {
		font-size: clamp(36px, 11vw, 48px);
		line-height: 1.02;
		text-wrap: balance;
	}

	.ff-page-description {
		font-size: 16px;
		line-height: 1.5;
	}

	.ff-site-footer {
		padding-block: 27px 18px;
	}

	.ff-footer-grid {
		gap: 20px;
	}

	.ff-footer-brand p {
		margin-top: 10px;
		font-size: 14px;
		line-height: 1.48;
	}

	.ff-footer-nav h2 {
		margin-bottom: 8px;
		font-size: 17px;
	}

	.ff-footer-nav ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 5px 18px;
	}

	.ff-footer-nav a {
		display: block;
		padding-block: 2px;
		font-size: 15px;
		line-height: 1.35;
	}

	.ff-footer-bottom {
		margin-top: 20px;
		padding-top: 14px;
		font-size: 12px;
	}
}

@media (min-width: 768px) {
	.ff-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ff-card__link {
		grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
	}

	.ff-post-grid--single {
		max-width: 760px;
		grid-template-columns: minmax(0, 1fr);
	}

	.ff-footer-grid--2 { grid-template-columns: minmax(280px, 1.5fr) minmax(180px, 1fr); }
	.ff-footer-grid--3 { grid-template-columns: minmax(280px, 1.5fr) repeat(2, minmax(160px, 1fr)); }
	.ff-footer-grid--4 { grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(140px, 1fr)); }
}

@media (min-width: 1024px) {
	.ff-header-main {
		grid-template-columns: auto minmax(0, 1fr) minmax(220px, 280px);
		min-height: 108px;
	}

	.ff-menu-toggle,
	.ff-search-toggle,
	.ff-shortcuts {
		display: none;
	}

	.ff-brand {
		display: grid;
		gap: 7px;
	}

	.ff-wordmark {
		justify-self: start;
		font-size: 41px;
	}

	.ff-wordmark__tagline {
		display: block;
		color: var(--ff-muted);
		font-family: var(--ff-display);
		font-size: 12px;
		font-weight: 700;
		letter-spacing: .12em;
		text-transform: uppercase;
	}

	.ff-primary-nav {
		display: block;
		justify-self: center;
	}

	.ff-primary-nav ul {
		display: flex;
		align-items: center;
		gap: clamp(17px, 2.2vw, 30px);
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.ff-primary-nav a {
		position: relative;
		display: flex;
		min-height: 44px;
		align-items: center;
		color: #fff;
		font-family: var(--ff-display);
		font-size: 16px;
		font-weight: 700;
		text-decoration: none;
		text-transform: uppercase;
	}

	.ff-primary-nav .current-menu-item a::after,
	.ff-primary-nav a:hover::after {
		position: absolute;
		right: 0;
		bottom: 2px;
		left: 0;
		height: 3px;
		background: var(--ff-red);
		content: "";
	}

	.ff-header-search {
		display: block;
	}

	.ff-header-search .search-field {
		min-height: 44px;
		background: #24272a;
		border: 1px solid #3a3d42;
		color: #fff;
	}

	.ff-header-search .search-submit {
		min-height: 44px;
		padding-inline: 14px;
	}

	.ff-card__title {
		font-size: 25px;
	}

	.ff-site-footer {
		padding-block: 30px 18px;
	}

	.ff-footer-bottom {
		margin-top: 28px;
		padding-top: 14px;
	}
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* 0.2.22 typography, header and live-update refinements. */
.ff-breaking-bar {
	overflow: hidden;
	background: linear-gradient(90deg, #f31313 0%, #d40808 58%, #a90707 100%);
}

.ff-breaking-bar__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 14px;
	overflow: hidden;
}

.ff-breaking-bar__label {
	z-index: 2;
	font-family: var(--ff-accent);
	font-size: 13px;
	letter-spacing: .075em;
	box-shadow: 10px 0 20px rgba(153, 0, 0, .24);
}

.ff-breaking-bar__viewport {
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}

.ff-breaking-bar__track {
	display: flex;
	width: max-content;
	align-items: center;
	animation: ff-breaking-scroll 38s linear infinite;
	will-change: transform;
}

.ff-breaking-bar:hover .ff-breaking-bar__track,
.ff-breaking-bar:focus-within .ff-breaking-bar__track {
	animation-play-state: paused;
}

.ff-breaking-bar__group {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0;
	padding-right: 38px;
}

.ff-breaking-bar__item {
	display: inline-flex;
	align-items: center;
	font-family: var(--ff-display);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
}

.ff-breaking-bar__item::after {
	margin-inline: 22px;
	color: #050505;
	content: "•";
	font-size: 18px;
}

.ff-breaking-bar__item a {
	color: inherit;
	text-decoration: none;
}

.ff-breaking-bar__item a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

@keyframes ff-breaking-scroll {
	to { transform: translateX(-50%); }
}

.ff-footer-nav h2 {
	font-family: var(--ff-accent);
	letter-spacing: .035em;
}

.ff-menu-toggle:active,
.ff-search-toggle:active,
.ff-drawer-close:active {
	transform: scale(.94);
}

@media (max-width: 767px) {
	.ff-breaking-bar__inner {
		gap: 10px;
	}

	.ff-breaking-bar__label {
		font-size: 12px;
	}

	.ff-breaking-bar__track {
		animation-duration: 48s;
	}

	.ff-breaking-bar__item {
		font-size: 14px;
	}
}

@media (min-width: 1024px) {
	.ff-header-main {
		grid-template-columns: auto minmax(0, 1fr) 44px;
		min-height: 96px;
		gap: 24px;
	}

	.ff-menu-toggle,
	.ff-shortcuts,
	.ff-header-search {
		display: none;
	}

	.ff-search-toggle {
		display: inline-grid;
		justify-self: end;
	}

	.ff-wordmark {
		font-size: 39px;
	}

	.ff-wordmark__tagline {
		font-family: var(--ff-accent);
	}

	.ff-primary-nav ul {
		gap: clamp(13px, 1.45vw, 22px);
	}

	.ff-primary-nav a {
		font-family: var(--ff-accent);
		font-size: 15px;
		letter-spacing: .015em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ff-breaking-bar__track {
		animation: none;
	}

	.ff-breaking-bar__group[aria-hidden="true"] {
		display: none;
	}
}
