/*
Theme Name: Caddis
Theme URI: https://github.com/sabecker214/caddis-theme
Author: Sutton Becker
Description: Custom theme for Caddis.
Version: 0.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: caddis
*/

/* ==========================================================================
   Contents
   1. Settings (colours, fonts, spacing)   6. Featured Projects
   2. Base                                  7. Work (credits)
   3. Layout helpers + buttons              8. About
   4. Header + menu                         9. Contact (+ form plugin)
   5. Hero                                 10. Footer
                                           11. Video overlay
                                           12. Other pages (Privacy Policy)
   ========================================================================== */

/* 1. Settings --------------------------------------------------------------
   Change a colour or font here and it updates everywhere. */
:root {
	--tan: #e6dbcb;        /* canvas background */
	--ink: #0e0e0b;        /* near-black text + dark sections */
	--cream: #f4ede2;      /* text over dark photos / dark sections */
	--line: rgba(14, 14, 11, 0.2);
	--line-light: rgba(244, 237, 226, 0.22);
	--muted: rgba(14, 14, 11, 0.68);
	--muted-light: rgba(244, 237, 226, 0.7);

	--font-display: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
	--font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
	--font-wordmark: "Cinzel", "Trajan Pro", "Times New Roman", serif; /* CADDIS logo only */
	--tracking: 0.06em;    /* body letter-spacing */
	--tracking-caps: 0.14em; /* small all-caps labels */

	--gutter: clamp(1.25rem, 4vw, 3.5rem);
	--section-space: clamp(5rem, 12vw, 10rem);
	--max: 90rem;
	--header-h: 4.25rem;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Base ----------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--tan);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.65;
	letter-spacing: var(--tracking);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: 0.005em;
	text-transform: uppercase;
}

p {
	margin: 0 0 1em;
}

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

::selection {
	background: var(--ink);
	color: var(--cream);
}

.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 {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100;
	padding: 0.75em 1.25em;
	background: var(--ink);
	color: var(--cream);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: var(--tracking-caps);
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

/* 3. Layout helpers + buttons --------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: 46rem;
}

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

.section--dark {
	background: var(--ink);
	color: var(--cream);
	--line: var(--line-light);
	--muted: var(--muted-light);
}

.section--dark ::selection {
	background: var(--cream);
	color: var(--ink);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 3rem;
	margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* Quiet sections: a thin line between each one after the hero. */
.section + .section {
	border-top: 1px solid var(--line);
}

.section-title {
	font-size: clamp(2.25rem, 4.5vw, 3.75rem);
	font-weight: 700;
}

/* Small all-caps label, used where a big heading would be too loud. */
.section-label {
	margin: 0;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: var(--tracking-caps);
	color: var(--muted);
}

.section-intro {
	max-width: 32rem;
	margin: 0;
	color: var(--muted);
}

/* Understated button: thin outline, small caps, fills on hover. */
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.75em;
	padding: 0.95em 1.6em;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: var(--tracking-caps);
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.button--light {
	color: var(--cream);
}

.button--light:hover {
	background: var(--cream);
	color: var(--ink);
}

/* Small "play" triangle. */
.button__icon {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0.4em 0 0.4em 0.65em;
	border-color: transparent transparent transparent currentColor;
}

.prose > *:last-child {
	margin-bottom: 0;
}

.prose p,
.prose ul,
.prose ol {
	margin: 0 0 1.1em;
}

.prose h2,
.prose h3 {
	margin: 1.6em 0 0.5em;
	font-size: 1.75rem;
	line-height: 1;
}

/* 4. Header + menu -------------------------------------------------------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	color: var(--cream);
	transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
	border-bottom: 1px solid transparent;
}

.site-header.is-solid {
	background: var(--tan);
	color: var(--ink);
	border-bottom-color: var(--line);
}

/* Three columns: left links | logo | right links. The logo stays dead centre. */
.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 2rem;
	max-width: var(--max);
	height: var(--header-h);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-brand {
	position: relative;
	z-index: 2;
	grid-column: 2;
	grid-row: 1;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

/* The wordmark: bold serif, all caps, spaced out (like Filson's). */
.site-brand__name {
	font-family: var(--font-wordmark);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.2em;
	margin-right: -0.2em; /* Letter-spacing adds space after the last letter; this keeps the word optically centred. */
	text-transform: uppercase;
}

.site-brand__logo {
	width: auto;
	max-height: 2rem;
}

/* Small line under the logo (like Filson's "Since 1897"). Hidden once the header turns solid. */
.site-header .site-brand {
	flex-direction: column;
	gap: 0.4rem;
}

.site-brand__sub {
	max-height: 1rem;
	overflow: hidden;
	font-family: var(--font-body);
	font-size: 0.5625rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.32em;
	margin-right: -0.32em;
	text-transform: uppercase;
	opacity: 0.85;
	transition: opacity 0.3s var(--ease), max-height 0.3s var(--ease), margin-top 0.3s var(--ease);
}

.site-header.is-solid .site-brand__sub {
	max-height: 0;
	margin-top: -0.4rem; /* cancels the gap so the logo re-centres */
	opacity: 0;
}

/* On computers the <nav> box "disappears" so its two lists sit in the grid either side of the logo. */
.site-nav {
	display: contents;
}

.site-nav__list {
	display: flex;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list--left {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
}

.site-nav__list--right {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
}

.site-nav__link {
	position: relative;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: var(--tracking-caps);
	text-decoration: none;
	text-transform: uppercase;
}

.site-nav__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.35em;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
	transform: scaleX(1);
}

.nav-toggle {
	display: none;
}

@media (max-width: 47.99em) {
	.nav-toggle {
		position: relative;
		z-index: 2;
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
		display: block;
		padding: 0.6em 0;
		border: 0;
		background: none;
		color: inherit;
		font: 600 0.6875rem/1 var(--font-body);
		letter-spacing: var(--tracking-caps);
		text-transform: uppercase;
		cursor: pointer;
	}

	.nav-toggle__close,
	.nav-open .nav-toggle__open {
		display: none;
	}

	.nav-open .nav-toggle__close {
		display: inline;
	}

	/* Full-screen dark menu on phones: both lists stacked. */
	.js .site-nav {
		position: fixed;
		inset: 0;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		gap: 0.25rem;
		padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
		background: var(--ink);
		color: var(--cream);
		visibility: hidden;
		opacity: 0;
		transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
	}

	.nav-open .site-nav {
		visibility: visible;
		opacity: 1;
		transition: opacity 0.3s var(--ease);
	}

	.nav-open .site-header {
		color: var(--cream);
		background: transparent;
		border-bottom-color: transparent;
	}

	.nav-open,
	.nav-open body {
		overflow: hidden;
	}

	.js .site-nav__list {
		flex-direction: column;
		gap: 0.25rem;
	}

	.js .site-nav__link {
		font-family: var(--font-display);
		font-size: clamp(2.5rem, 12vw, 3.5rem);
		font-weight: 700;
		line-height: 1.05;
		letter-spacing: 0.01em;
	}

	.js .site-nav__link::after {
		display: none;
	}

	/* Without JavaScript, the links just sit in a row under the logo. */
	html:not(.js) .nav-toggle {
		display: none;
	}

	html:not(.js) .site-header__inner {
		grid-template-columns: auto auto;
		justify-content: center;
		height: auto;
		padding-block: 1rem;
	}

	html:not(.js) .site-brand {
		grid-column: 1 / -1;
		justify-self: center;
	}

	html:not(.js) .site-nav__list--left,
	html:not(.js) .site-nav__list--right {
		grid-row: 2;
		grid-column: auto;
	}
}

/* 5. Hero ----------------------------------------------------------------- */
.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	background: var(--ink);
	color: var(--cream);
	isolation: isolate;
}

.hero__media,
.hero__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero__poster,
.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* Darkens the bottom (behind the headline) and the very top (behind the menu). */
.hero__scrim {
	background:
		linear-gradient(to top, rgba(14, 14, 11, 0.72) 0%, rgba(14, 14, 11, 0.15) 45%, rgba(14, 14, 11, 0) 65%),
		linear-gradient(to bottom, rgba(14, 14, 11, 0.45) 0%, rgba(14, 14, 11, 0) 22%);
}

.hero__content {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding: calc(var(--header-h) + 3rem) var(--gutter) clamp(4.5rem, 10vh, 7rem);
}

.hero__title {
	max-width: 14ch;
	font-size: clamp(2.75rem, 7.5vw, 7rem);
	font-weight: 700;
	line-height: 0.9;
}

.hero__tagline {
	max-width: 34rem;
	margin: 1.5rem 0 0;
	font-size: clamp(0.95rem, 1.4vw, 1.1rem);
	color: var(--cream);
	opacity: 0.9;
}

.hero__cta {
	margin-top: 2rem;
}

/* No headline: the tagline (or button) sits at the bottom on its own. */
.screen-reader-text + .hero__tagline,
.screen-reader-text + .hero__cta {
	margin-top: 0;
}

.hero__scroll {
	position: absolute;
	right: var(--gutter);
	bottom: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: var(--tracking-caps);
	text-decoration: none;
	text-transform: uppercase;
	writing-mode: vertical-rl;
}

.hero__scroll::after {
	content: "";
	width: 1px;
	height: 3rem;
	background: currentColor;
	opacity: 0.7;
}

@media (max-width: 47.99em) {
	.hero__scroll {
		display: none;
	}
}

/* 6. Featured Projects (bigkid-style title list) ---------------------------
   Computers: titles on the left, the highlighted project's image on the right.
   Phones: just the list of titles (tap to watch). */
.featured__layout {
	display: grid;
	gap: 1.5rem clamp(2rem, 5vw, 5rem);
}

.featured-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.featured-item__link {
	display: block;
	padding: 0.35rem 0;
	text-decoration: none;
}

.featured-item__title {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(2rem, 3.8vw, 3.5rem);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	transition: opacity 0.25s var(--ease);
}

.featured-item__meta {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--muted);
}

/* While you're pointing at the list, the other titles fade back (like bigkid). */
.featured-list:is(:hover, :focus-within) .featured-item:not(.is-active) .featured-item__title {
	opacity: 0.28;
}

.featured-stage {
	display: none;
}

@media (min-width: 64em) {
	.featured__layout {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		grid-template-rows: auto 1fr;
		align-items: start;
	}

	.featured__label {
		grid-column: 1 / -1;
	}

	.featured-list {
		grid-column: 1;
		align-self: center;
	}

	.featured-item__link {
		padding: 0.5rem 0;
	}

	/* The caption under the image replaces the small meta line on computers. */
	.featured-item__meta {
		display: none;
	}

	.featured-stage {
		position: relative;
		display: grid;
		grid-column: 2;
		cursor: pointer;
	}

	/* All images sit in the same spot; only the highlighted one is visible. */
	.featured-stage__item {
		grid-area: 1 / 1;
		margin: 0;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
	}

	.featured-stage__item.is-active {
		opacity: 1;
		visibility: visible;
		transition: opacity 0.35s var(--ease);
	}

	/* Captions switch instantly so two never overlap mid-fade. */
	.featured-stage__item:not(.is-active) .featured-stage__caption {
		visibility: hidden;
	}

	.featured-stage__frame {
		position: relative;
		overflow: hidden;
		aspect-ratio: 16 / 9;
		background: rgba(14, 14, 11, 0.08);
	}

	.featured-stage__img {
		width: 100%;
		height: 100%;
		max-width: none;
		object-fit: cover;
		transition: transform 0.9s var(--ease);
	}

	.featured-stage:hover .featured-stage__img {
		transform: scale(1.03);
	}

	.featured-stage__play {
		position: absolute;
		left: 1.25rem;
		bottom: 1.25rem;
		display: inline-flex;
		align-items: center;
		gap: 0.6em;
		padding: 0.85em 1.3em;
		border: 1px solid var(--cream);
		color: var(--cream);
		font-size: 0.6875rem;
		font-weight: 600;
		line-height: 1;
		letter-spacing: var(--tracking-caps);
		text-transform: uppercase;
		background: rgba(14, 14, 11, 0.25);
		transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
	}

	.featured-stage:hover .featured-stage__play {
		background: var(--cream);
		color: var(--ink);
	}

	.featured-stage__caption {
		margin-top: 0.85rem;
		font-size: 0.6875rem;
		font-weight: 600;
		letter-spacing: var(--tracking-caps);
		text-transform: uppercase;
		color: var(--muted);
	}
}

@media (prefers-reduced-motion: reduce) {
	.featured-stage__item,
	.featured-stage__img,
	.featured-item__title {
		transition: none !important;
	}

	.featured-stage:hover .featured-stage__img {
		transform: none;
	}
}

/* 7. Work (credits list) --------------------------------------------------
   Four quiet columns on wide screens: Title | Role | Year | Client.
   On phones: title on its own line, then "Role · Year · Client" underneath. */
.credits {
	border-top: 1px solid var(--line);
}

.credits__row {
	display: grid;
	grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) 4.5rem minmax(0, 1.4fr);
	align-items: baseline;
	gap: 0 2rem;
	padding: 0.8rem 0;
	border-bottom: 1px solid var(--line);
}

.credits__row--head {
	padding-block: 0.7rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--muted);
}

.credits__title {
	font-family: var(--font-display);
	font-size: clamp(1.1rem, 1.4vw, 1.3rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.credits__role,
.credits__year,
.credits__client {
	font-size: 0.8125rem;
	color: var(--muted);
}

.credits__year {
	font-variant-numeric: tabular-nums;
}

@media (max-width: 47.99em) {
	.credits__row.credits__row--head {
		display: none;
	}

	.credits__row {
		display: block;
		padding: 0.85rem 0 0.9rem;
	}

	.credits__title {
		display: block;
		margin-bottom: 0.2rem;
	}

	.credits__role,
	.credits__year,
	.credits__client {
		display: inline;
		font-size: 0.75rem;
	}

	.credits__year:not(:empty)::before,
	.credits__client:not(:empty)::before {
		content: " · ";
	}

	.credits__role:empty + .credits__year::before {
		content: none;
	}
}

/* 8. About ---------------------------------------------------------------- */
.about__grid {
	display: grid;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

@media (min-width: 56em) {
	.about__grid {
		grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	}

	.about--no-photo .about__grid {
		grid-template-columns: minmax(0, 1fr);
		max-width: 50rem;
	}
}

.about__photo {
	margin: 0;
	max-width: 28rem;
}

.about__img {
	/* Shown uncropped, exactly as uploaded: frame the photo before uploading. */
	width: 100%;
	height: auto;
}

.about__body .section-title {
	margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.about__text {
	max-width: 36rem;
}

.about__text p:first-child {
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	line-height: 1.55;
}

/* 9. Contact -------------------------------------------------------------- */
.contact__grid {
	display: grid;
	gap: clamp(2.5rem, 5vw, 5rem);
}

@media (min-width: 56em) {
	.contact__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.contact__info .section-title {
	margin-bottom: 1.25rem;
}

.contact__email {
	margin: 1.75rem 0 0.4rem;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0.02em;
	overflow-wrap: anywhere;
}

.contact__email a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

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

.social-links,
.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

.social-links {
	margin-top: 1.75rem;
}

/* Form plugin (Fluent Forms etc.): match the site's look without fighting the plugin. */
.contact__form .ff-el-group,
.contact__form p {
	margin-bottom: 1.75rem;
}

.contact__form label,
.contact__form .ff-el-input--label label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"],
.contact__form input[type="url"],
.contact__form input[type="number"],
.contact__form select,
.contact__form textarea {
	width: 100%;
	padding: 0.7rem 0;
	border: 0;
	border-bottom: 1px solid var(--ink);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	letter-spacing: inherit;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.contact__form select {
	background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
	background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
}

.contact__form textarea {
	min-height: 7rem;
	resize: vertical;
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
	outline: none;
	border-bottom-width: 2px;
	box-shadow: none;
}

.contact__form button[type="submit"],
.contact__form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	padding: 1em 2em;
	border: 1px solid var(--ink);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font: 600 0.75rem/1 var(--font-body);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.contact__form button[type="submit"]:hover,
.contact__form input[type="submit"]:hover {
	background: var(--ink);
	color: var(--cream);
}

/* 10. Footer (quiet, tan) ------------------------------------------------- */
.site-footer {
	padding-block: 2.5rem;
	border-top: 1px solid var(--line);
}

.site-footer__inner {
	display: grid;
	gap: 1.5rem 2rem;
	align-items: center;
}

@media (min-width: 48em) {
	.site-footer__inner {
		grid-template-columns: auto 1fr auto;
	}
}

.site-footer__brand {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1.5rem;
}

.site-footer .site-brand__logo {
	max-height: 1.75rem;
}

.site-footer__text {
	margin: 0;
	color: var(--muted);
	font-size: 0.8125rem;
}

.site-footer__links a {
	text-decoration: none;
}

.site-footer__links a:hover {
	text-decoration: underline;
}

.site-footer__copy {
	margin: 0;
	color: var(--muted);
	font-size: 0.6875rem;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

@media (min-width: 48em) {
	.site-footer__copy {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
	}

	.site-footer__links {
		grid-column: 2;
		grid-row: 1;
		justify-self: center;
	}
}

/* 11. Video overlay --------------------------------------------------------
   Filled in by assets/js/main.js from the <template> next to each card. */
.overlay-open {
	overflow: hidden;
}

.overlay-open body {
	overflow: hidden;
	padding-right: var(--scrollbar-gap, 0);
}

.overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--cream);
	opacity: 0;
	transition: opacity 0.3s var(--ease);
}

.overlay[hidden] {
	display: none;
}

.overlay.is-visible {
	opacity: 1;
}

.overlay__backdrop {
	position: absolute;
	inset: 0;
	background: var(--ink);
}

.overlay__panel {
	position: relative;
	width: 100%;
	max-height: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: calc(var(--header-h) + 0.5rem) var(--gutter) clamp(2rem, 5vw, 4rem);
}

.overlay__body {
	width: min(100%, 78rem, calc((100vh - var(--header-h) - 12rem) * 16 / 9));
	min-width: min(100%, 40rem);
	margin-inline: auto;
}

.overlay--reel .overlay__body {
	width: min(100%, 90rem, calc((100vh - var(--header-h) - 4rem) * 16 / 9));
}

.overlay__close {
	position: fixed;
	top: 0;
	right: var(--gutter);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	height: var(--header-h);
	padding: 0;
	border: 0;
	background: none;
	color: var(--cream);
	font: 600 0.75rem/1 var(--font-body);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	cursor: pointer;
}

.overlay__close-x {
	position: relative;
	width: 1.25rem;
	height: 1.25rem;
}

.overlay__close-x::before,
.overlay__close-x::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: rotate(45deg);
}

.overlay__close-x::after {
	transform: rotate(-45deg);
}

.video-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}

.video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.overlay-details {
	display: grid;
	gap: 1.25rem 3rem;
	padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

@media (min-width: 48em) {
	.overlay-details {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
		align-items: start;
	}

	.overlay-details__title {
		grid-column: 1;
	}

	.overlay-details__meta {
		grid-column: 1;
	}

	.overlay-details__text {
		grid-column: 2;
		grid-row: 1 / span 2;
	}
}

.overlay-details__title {
	font-size: clamp(2rem, 3.5vw, 3rem);
	font-weight: 700;
}

.overlay-details__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2.5rem;
	margin: 0;
}

.overlay-details__meta dt {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--muted-light);
}

.overlay-details__meta dd {
	margin: 0.15rem 0 0;
	font-size: 0.9375rem;
}

.overlay-details__text {
	max-width: 38rem;
	color: rgba(244, 237, 226, 0.88);
}

.overlay-details__text p:last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.overlay,
	.site-header,
	.site-nav {
		transition: none !important;
	}
}

/* 12. Other pages (Privacy Policy) ---------------------------------------- */
.page-main {
	padding-block: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) var(--section-space);
}

.page-title {
	margin-bottom: 2.5rem;
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 700;
}
