/*
Theme Name: Rusty Portfolio
Theme URI: https://rustymcmillan.com/
Author: Rusty McMillan
Author URI: https://rustymcmillan.com/
Description: A clean, fast portfolio theme for motion design work hosted on YouTube. Reads projects created with the Workality themes (the "works" post type and Creative Fields), so existing content carries over.
Version: 1.2.4
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: rusty
*/

/* ==========================================================================
   1. Fonts (self-hosted, no outside requests)
   ========================================================================== */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter.woff2") format("woff2");
}

@font-face {
	font-family: "Inter Tight";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-tight.woff2") format("woff2");
}

/* ==========================================================================
   2. Design tokens. Change colors and spacing here.
   ========================================================================== */

:root {
	--bg: #F7F7F5;
	--surface: #FFFFFF;
	--ink: #141414;
	--ink-soft: #3D3D3D;
	--muted: #5C5C5C;
	--line: #E2E2DE;
	--line-strong: #CFCFCA;
	--accent: #B4471F;          /* overridden by the Customizer accent color */
	--accent-on-dark: #E0743F;
	--dark: #141414;
	--dark-muted: #A8A8A3;
	--video-bg: #1E2024;

	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Inter Tight", "Inter", system-ui, sans-serif;

	--wrap: 1240px;
	--gutter: 32px;
	--radius: 12px;
	--radius-lg: 16px;
	--header-h: 72px;
}

@media (max-width: 640px) {
	:root {
		--gutter: 20px;
		--header-h: 64px;
	}
}

/* ==========================================================================
   3. Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

/* Embeds (Spotify, SoundCloud, maps...) keep the height they ask for. */
iframe {
	max-width: 100%;
	display: block;
	border: 0;
}

.entry .wp-block-embed iframe,
.entry iframe[src*="spotify.com"] {
	width: 100%;
	border-radius: 12px;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--accent);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0;
}

p {
	margin: 0 0 1em;
}

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

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 18px;
	background: var(--ink);
	color: var(--bg);
	border-radius: 8px;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.eyebrow {
	margin: 0 0 20px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.section-title {
	font-size: clamp(28px, 3.2vw, 40px);
}

/* Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid var(--ink);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

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

.text-link {
	font-weight: 600;
	border-bottom: 2px solid var(--accent);
	padding-bottom: 2px;
}

/* ==========================================================================
   4. Header and navigation
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-brand {
	display: flex;
	align-items: baseline;
	gap: 12px;
	min-width: 0;
}

.site-brand__name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.site-brand__role {
	font-size: 14px;
	color: var(--muted);
	white-space: nowrap;
}

.site-brand img {
	max-height: 40px;
	width: auto;
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 32px;
}

.site-nav a {
	font-size: 15px;
	font-weight: 500;
	padding: 8px 0;
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current-page-ancestor > a {
	color: var(--accent);
}

.site-nav .nav-resume a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--ink);
	border-radius: 999px;
}

.site-nav .nav-resume a:hover {
	background: var(--ink);
	color: var(--bg);
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.menu-toggle svg {
	width: 24px;
	height: 24px;
}

.menu-toggle .icon-close {
	display: none;
}

@media (max-width: 860px) {
	.site-brand__role {
		display: none;
	}

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

	.site-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		padding: 8px var(--gutter) 24px;
	}

	.nav-open .site-nav {
		display: block;
	}

	.nav-open .menu-toggle .icon-open {
		display: none;
	}

	.nav-open .menu-toggle .icon-close {
		display: block;
	}

	.site-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-nav li {
		border-bottom: 1px solid var(--line);
	}

	.site-nav a {
		display: block;
		padding: 16px 0;
		font-size: 20px;
		font-family: var(--font-display);
		font-weight: 600;
	}

	.site-nav .nav-resume {
		border-bottom: 0;
		padding-top: 20px;
	}

	.site-nav .nav-resume a {
		justify-content: center;
		font-size: 16px;
		font-family: var(--font-body);
		font-weight: 500;
	}
}

/* ==========================================================================
   5. Home: intro and showreel
   ========================================================================== */

.intro {
	padding-top: 88px;
	padding-bottom: 48px;
}

.intro__headline {
	max-width: 980px;
	font-size: clamp(34px, 5.2vw, 72px);
	line-height: 1.04;
	letter-spacing: -0.025em;
}

.reel {
	padding-bottom: 104px;
}

@media (max-width: 640px) {
	.intro {
		padding-top: 40px;
		padding-bottom: 28px;
	}

	.reel {
		padding-bottom: 56px;
	}
}

/* ==========================================================================
   6. Video player (loads YouTube only after a click)
   ========================================================================== */

.video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-lg);
	background: var(--video-bg);
	overflow: hidden;
}

.video iframe,
.video__poster,
.video__poster img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video__poster {
	display: block;
	padding: 0;
	margin: 0;
	border: 0;
	background: var(--video-bg);
	cursor: pointer;
	color: #fff;
	text-align: left;
	font: inherit;
}

.video__poster img {
	object-fit: cover;
	transition: transform 0.6s ease, opacity 0.3s ease;
}

.video__poster:hover img {
	transform: scale(1.02);
	opacity: 0.9;
}

.video__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 96px;
	height: 96px;
	margin: -48px 0 0 -48px;
	border-radius: 50%;
	background: var(--bg);
	color: var(--ink);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, background 0.2s ease;
}

.video__play svg {
	width: 30px;
	height: 30px;
	margin-left: 4px;
}

.video__poster:hover .video__play,
.video__poster:focus-visible .video__play {
	transform: scale(1.08);
}

.video__label {
	position: absolute;
	left: 28px;
	bottom: 24px;
	font-family: var(--font-display);
	font-size: clamp(16px, 2vw, 28px);
	font-weight: 600;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.video--embed > iframe,
.video--embed > div,
.video--embed > object {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
}

@media (max-width: 640px) {
	.video {
		border-radius: var(--radius);
	}

	.video__play {
		width: 64px;
		height: 64px;
		margin: -32px 0 0 -32px;
	}

	.video__play svg {
		width: 22px;
		height: 22px;
	}

	.video__label {
		left: 16px;
		bottom: 12px;
	}
}

/* ==========================================================================
   7. Work grid and filters
   ========================================================================== */

.work {
	padding-bottom: 104px;
}

.work--page {
	padding-top: 72px;
}

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

.work__intro {
	margin: 12px 0 0;
	color: var(--muted);
	max-width: 560px;
}

.filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.filter {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 18px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

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

.filter.is-active,
.filter[aria-pressed="true"] {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--bg);
}

@media (max-width: 640px) {
	.filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin: 0 calc(var(--gutter) * -1);
		padding: 0 var(--gutter) 4px;
		scrollbar-width: none;
	}

	.filters::-webkit-scrollbar {
		display: none;
	}

	.filter {
		flex: none;
	}
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 48px 32px;
}

@media (max-width: 760px) {
	.grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}
}

.card {
	display: block;
}

.card[hidden] {
	display: none;
}

.card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	background: var(--video-bg);
	overflow: hidden;
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.card:hover .card__media img {
	transform: scale(1.03);
}

.card__badge {
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(247, 247, 245, 0.92);
	color: var(--ink);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.card__badge svg {
	width: 16px;
	height: 16px;
	margin-left: 2px;
}

.card:hover .card__badge,
.card:focus-visible .card__badge {
	opacity: 1;
	transform: none;
}

.card__title {
	margin: 16px 0 4px;
	font-size: 20px;
	letter-spacing: -0.01em;
	line-height: 1.25;
	transition: color 0.15s ease;
}

.card:hover .card__title {
	color: var(--accent);
}

.card__meta {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

.work__more {
	display: flex;
	justify-content: center;
	margin-top: 56px;
}

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

/* ==========================================================================
   8. Clients strip and about
   ========================================================================== */

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

.clients__inner {
	padding-top: 40px;
	padding-bottom: 40px;
	display: flex;
	align-items: center;
	gap: 16px 48px;
	flex-wrap: wrap;
}

.clients__label {
	font-size: 14px;
	color: var(--muted);
}

.clients__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 40px;
	font-family: var(--font-display);
	font-size: clamp(18px, 1.8vw, 22px);
	font-weight: 600;
	color: var(--ink-soft);
}

.about-teaser {
	padding-top: 104px;
	padding-bottom: 104px;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 64px;
	align-items: start;
}

.about-teaser--no-image {
	grid-template-columns: minmax(0, 1fr);
}

.about-teaser__image img {
	width: 100%;
	max-width: 420px;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--radius-lg);
}

.about-teaser__body {
	font-size: 19px;
	line-height: 1.6;
}

.about-teaser__body h2 {
	margin-bottom: 24px;
}

.about-teaser__body p:last-of-type {
	margin-bottom: 32px;
}

@media (max-width: 760px) {
	.about-teaser {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.about-teaser__body {
		font-size: 17px;
	}
}

/* ==========================================================================
   9. Project page
   ========================================================================== */

.project {
	padding-top: 48px;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-size: 15px;
	font-weight: 500;
	color: var(--muted);
}

.back-link svg {
	width: 18px;
	height: 18px;
}

.project__title {
	margin: 20px 0 32px;
	font-size: clamp(34px, 4.6vw, 64px);
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.project__videos {
	display: grid;
	gap: 32px;
}

.project__body {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 56px;
	padding: 56px 0 72px;
}

.project__body--no-meta {
	grid-template-columns: minmax(0, 1fr);
}

.project__body--no-text {
	grid-template-columns: minmax(0, 1fr);
}

.project__body--no-text .project__meta {
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.project__meta {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 24px;
	align-content: start;
}

.project__meta dt {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.project__meta dd {
	margin: 6px 0 0;
	font-size: 17px;
	overflow-wrap: anywhere;
}

.project__meta dd a {
	border-bottom: 1px solid var(--line-strong);
}

.project__text {
	font-size: 18px;
	line-height: 1.65;
	max-width: 720px;
	color: var(--ink-soft);
}

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

.project__gallery {
	display: grid;
	gap: 32px;
	padding-bottom: 72px;
}

.project__gallery figure {
	margin: 0;
}

.project__gallery img {
	width: 100%;
	border-radius: var(--radius-lg);
}

.project__gallery figcaption {
	margin-top: 12px;
	font-size: 14px;
	color: var(--muted);
}

@media (max-width: 760px) {
	.project {
		padding-top: 24px;
	}

	.project__body {
		grid-template-columns: 1fr;
		gap: 36px;
		padding: 36px 0 48px;
	}

	.project__text {
		font-size: 17px;
	}
}

/* Previous / next */

.pager {
	border-top: 1px solid var(--line);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	padding: 56px 0 104px;
}

.pager__link {
	display: flex;
	align-items: center;
	gap: 20px;
}

.pager__link--next {
	grid-column: 2;
	justify-content: flex-end;
	text-align: right;
}

.pager__thumb {
	flex: 0 0 200px;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: var(--video-bg);
}

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

.pager__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.pager__title {
	display: block;
	margin-top: 4px;
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
}

@media (max-width: 760px) {
	.pager {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 40px 0 64px;
	}

	.pager__link--next {
		grid-column: auto;
	}

	.pager__thumb {
		flex-basis: 120px;
	}

	.pager__title {
		font-size: 17px;
	}
}

/* ==========================================================================
   10. Regular pages (About, Contact, etc.) and post content
   ========================================================================== */

.page-head {
	padding-top: 72px;
	padding-bottom: 40px;
}

.page-head h1 {
	font-size: clamp(34px, 4.6vw, 64px);
	letter-spacing: -0.025em;
}

.entry {
	padding-bottom: 104px;
	font-size: 18px;
	line-height: 1.7;
	color: var(--ink-soft);
}

.entry--wide {
	max-width: none;
}

.entry h2,
.entry h3,
.entry h4 {
	color: var(--ink);
	margin: 1.8em 0 0.6em;
}

.entry h2 { font-size: 30px; }
.entry h3 { font-size: 23px; }
.entry h4 { font-size: 19px; }

.entry a {
	color: var(--ink);
	border-bottom: 1px solid var(--accent);
}

.entry a:hover {
	color: var(--accent);
}

.entry img {
	border-radius: var(--radius);
}

.entry ul,
.entry ol {
	padding-left: 1.3em;
}

.entry li {
	margin-bottom: 0.4em;
}

.entry blockquote {
	margin: 1.5em 0;
	padding-left: 20px;
	border-left: 3px solid var(--accent);
	font-size: 21px;
	color: var(--ink);
}

.entry figure {
	margin: 1.5em 0;
}

.entry figcaption {
	font-size: 14px;
	color: var(--muted);
	margin-top: 8px;
}

.entry .wp-block-embed__wrapper {
	position: relative;
}

/* Keep any embed pasted into a page inside its column. */
.entry,
.reel__content {
	position: relative;
}

.reel__content {
	overflow: hidden;
	padding-bottom: 0;
}

.entry iframe {
	max-width: 100%;
}

.entry hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2.5em 0;
}

.alignwide {
	max-width: var(--wrap);
}

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

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

/* Forms (works with Contact Form 7, WPForms, and WordPress search) */

.entry input[type="text"],
.entry input[type="email"],
.entry input[type="tel"],
.entry input[type="url"],
.entry input[type="search"],
.entry textarea,
.entry select,
.search-form input[type="search"] {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
}

.entry textarea {
	min-height: 160px;
	resize: vertical;
}

.entry input:focus,
.entry textarea:focus,
.entry select:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.08);
}

.entry input[type="submit"],
.entry button[type="submit"],
.search-form button {
	min-height: 48px;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: var(--bg);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

.entry input[type="submit"]:hover,
.entry button[type="submit"]:hover {
	background: var(--accent);
}

.search-form {
	display: flex;
	gap: 12px;
	max-width: 560px;
}

/* Blog / search listing */

.post-list {
	list-style: none;
	margin: 0;
	padding: 0 0 104px;
}

.post-list li {
	padding: 28px 0;
	border-bottom: 1px solid var(--line);
}

.post-list h2 {
	font-size: 24px;
	margin-bottom: 6px;
}

.post-list time,
.post-list .post-list__type {
	font-size: 14px;
	color: var(--muted);
}

.pagination {
	display: flex;
	gap: 8px;
	padding-bottom: 104px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
}

.pagination .current {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--bg);
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

.site-footer {
	background: var(--dark);
	color: var(--bg);
}

.site-footer a {
	color: var(--bg);
}

.site-footer a:hover {
	color: var(--accent-on-dark);
}

.site-footer__cta {
	padding-top: 96px;
}

.site-footer__lead {
	margin: 0 0 16px;
	font-size: 15px;
	color: var(--dark-muted);
}

.site-footer__email {
	font-family: var(--font-display);
	font-size: clamp(26px, 4.4vw, 60px);
	font-weight: 600;
	letter-spacing: -0.02em;
	border-bottom: 3px solid var(--accent-on-dark);
	overflow-wrap: anywhere;
}

.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px 24px;
	flex-wrap: wrap;
	margin-top: 88px;
	padding-top: 24px;
	padding-bottom: 48px;
	border-top: 1px solid #333;
	font-size: 14px;
	color: var(--dark-muted);
}

.social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
}

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

@media (max-width: 640px) {
	.site-footer__cta {
		padding-top: 56px;
	}

	.site-footer__bottom {
		margin-top: 48px;
		padding-bottom: 32px;
		flex-direction: column-reverse;
		align-items: flex-start;
	}
}

/* ==========================================================================
   12. 404
   ========================================================================== */

.not-found {
	padding-top: 120px;
	padding-bottom: 140px;
}

.not-found h1 {
	font-size: clamp(40px, 6vw, 80px);
	margin-bottom: 20px;
}

.not-found p {
	font-size: 19px;
	color: var(--muted);
	margin-bottom: 32px;
}

/* ==========================================================================
   13. Respect reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   14. ESL artwork
   ========================================================================== */

.work--art .grid {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 40px 28px;
}

.card--art .card__media {
	aspect-ratio: 1 / 1;
	background: var(--line);
}

.art-shape-portrait .card--art .card__media {
	aspect-ratio: 4 / 5;
}

.art-shape-landscape .card--art .card__media {
	aspect-ratio: 16 / 9;
}

/* "Original": no cropping, staggered columns. */
.art-shape-original .work--art .grid {
	display: block;
	columns: 3 280px;
	column-gap: 28px;
}

.art-shape-original .card--art {
	break-inside: avoid;
	margin-bottom: 40px;
}

.art-shape-original .card--art .card__media {
	aspect-ratio: auto;
	background: none;
}

.art-shape-original .card--art .card__media img {
	height: auto;
}

@media (max-width: 760px) {
	.work--art .grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 16px;
	}

	.work--art .card__title {
		font-size: 16px;
		margin-top: 10px;
	}

	.work--art .card__meta {
		font-size: 13px;
	}

	.art-shape-original .work--art .grid {
		columns: 2;
		column-gap: 16px;
	}

	.art-shape-original .card--art {
		margin-bottom: 28px;
	}
}

/* Single artwork: show the whole piece, never cropped. */
.artwork__image {
	margin: 0;
	padding: clamp(16px, 4vw, 56px);
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	display: flex;
	justify-content: center;
}

.artwork__image a {
	display: block;
	cursor: zoom-in;
}

.artwork__image img {
	width: auto;
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
}

.pager--art .pager__thumb {
	flex-basis: 120px;
	aspect-ratio: 1 / 1;
}


/* ==========================================================================
   15. Full-width About and pages, responsive on every screen
   ========================================================================== */

/* Home About with no portrait: title on the left, text across the rest. */
.about-teaser--no-image .about-teaser__body {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	column-gap: 56px;
	align-items: start;
}

.about-teaser--no-image .about-teaser__body > * {
	grid-column: 2;
}

.about-teaser--no-image .about-teaser__body > h2 {
	grid-column: 1;
	grid-row: 1 / span 20;
	margin: 0;
}

.about-teaser--no-image .about-teaser__body > a {
	justify-self: start;
}

/* Portrait version: image column and text column share the full width. */
.about-teaser:not(.about-teaser--no-image) {
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.about-teaser__image img {
	max-width: 100%;
}

@media (max-width: 900px) {
	.about-teaser--no-image .about-teaser__body {
		display: block;
	}

	.about-teaser--no-image .about-teaser__body > h2 {
		margin-bottom: 24px;
	}
}

@media (max-width: 760px) {
	.about-teaser:not(.about-teaser--no-image) {
		grid-template-columns: 1fr;
	}

	.about-teaser__image img {
		max-width: 420px;
		width: 100%;
	}
}

/* Pages use the full content width. */
.entry > * {
	max-width: 100%;
}

.entry::after {
	content: "";
	display: table;
	clear: both;
}

/* Floated images beside text (e.g. your About photo). */
.entry .alignleft,
.entry .alignright {
	max-width: 40%;
}

.entry .alignleft img,
.entry .alignright img,
.entry figure.alignleft,
.entry figure.alignright {
	height: auto;
}

.entry .wp-block-image.alignleft,
.entry .wp-block-image.alignright {
	margin-top: 0.35em;
}

/* Keep forms a comfortable width even on wide pages. */
.entry form,
.entry .wpcf7,
.entry .wpforms-container {
	max-width: 760px;
}

/* Tables (e.g. Core Skills). */
.entry table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 17px;
}

.entry .wp-block-table {
	margin: 1.5em 0;
	overflow-x: auto;
}

.entry .wp-block-table table {
	margin: 0;
}

.entry th,
.entry td {
	padding: 12px 16px;
	border: 1px solid var(--line-strong);
	text-align: left;
	vertical-align: top;
}

.entry th {
	color: var(--ink);
	font-weight: 600;
}

/* Tablets: a bit less room for floated images. */
@media (max-width: 1024px) {
	.entry .alignleft,
	.entry .alignright {
		max-width: 45%;
	}
}

/* Phones: images stack above the text, tables become a single list. */
@media (max-width: 640px) {
	.entry {
		font-size: 17px;
	}

	.entry .alignleft,
	.entry .alignright {
		float: none;
		max-width: 100%;
		margin: 0 0 1.25em;
	}

	.entry .alignleft img,
	.entry .alignright img {
		width: 100%;
		max-width: 420px;
	}

	.entry table,
	.entry tbody,
	.entry tr,
	.entry td,
	.entry th {
		display: block;
		width: 100%;
	}

	.entry table {
		border-top: 1px solid var(--line-strong);
	}

	.entry tr {
		border: 1px solid var(--line-strong);
		border-top: 0;
	}

	.entry td,
	.entry th {
		border: 0;
		padding: 10px 14px;
	}

	.entry tr > * + * {
		border-top: 1px solid var(--line);
	}
}

/* ==========================================================================
   16. Spotify: albums and playlists get room for the track list
   ========================================================================== */

/* WordPress squeezes pasted embeds into a widescreen box. Undo that for Spotify. */
.wp-block-embed-spotify .wp-block-embed__wrapper::before,
.wp-block-embed.is-provider-spotify .wp-block-embed__wrapper::before {
	display: none !important;
}

.wp-block-embed-spotify .wp-block-embed__wrapper,
.wp-block-embed.is-provider-spotify .wp-block-embed__wrapper {
	position: relative;
	height: auto;
}

.wp-block-embed-spotify iframe,
.wp-block-embed.is-provider-spotify iframe,
.entry iframe[src*="open.spotify.com/embed/album"],
.entry iframe[src*="open.spotify.com/embed/playlist"],
.entry iframe[src*="open.spotify.com/embed/show"],
.entry iframe[src*="open.spotify.com/embed/artist"] {
	position: static !important;
	width: 100% !important;
	height: 480px !important;
	border-radius: 12px;
}

/* Single songs and episodes stay compact. */
.entry iframe[src*="open.spotify.com/embed/track"],
.entry iframe[src*="open.spotify.com/embed/episode"] {
	height: 152px !important;
	position: static !important;
}

@media (max-width: 640px) {
	.wp-block-embed-spotify iframe,
	.wp-block-embed.is-provider-spotify iframe,
	.entry iframe[src*="open.spotify.com/embed/album"],
	.entry iframe[src*="open.spotify.com/embed/playlist"],
	.entry iframe[src*="open.spotify.com/embed/show"],
	.entry iframe[src*="open.spotify.com/embed/artist"] {
		height: 420px !important;
	}
}
