/*
Theme Name: Strickland Productions
Theme URI: https://stricklandproductions.com/
Author: Strickland Productions
Description: An ornate, responsive portfolio and publishing theme created for Strickland Productions.
Version: 1.0.6
Requires at least: 6.3
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: strickland-productions
*/

:root {
	--forest: #123824;
	--forest-deep: #082b1c;
	--forest-soft: #244a35;
	--cream: #fbf4e5;
	--cream-deep: #eee0c8;
	--parchment: #f4e7cf;
	--gold: #b48a35;
	--gold-light: #dfc276;
	--gold-pale: #f1deb0;
	--ink: #183224;
	--sage: #788267;
	--rose: #c79b96;
	--shadow: rgba(5, 31, 19, 0.28);
	--serif: Georgia, 'Times New Roman', serif;
	--sans: 'Trebuchet MS', Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--forest);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 17px;
	line-height: 1.55;
}

body:not(.home) {
	background:
		radial-gradient(circle at 12% 5%, rgba(223, 194, 118, 0.1), transparent 28rem),
		var(--forest-deep);
}

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

a:hover {
	text-decoration-thickness: 2px;
}

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

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

button,
a {
	-webkit-tap-highlight-color: transparent;
}

:focus-visible {
	outline: 3px solid var(--gold-light);
	outline-offset: 3px;
}

.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;
}

.screen-reader-text:focus,
.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 99999;
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
	padding: 0.7rem 1rem;
	background: var(--cream);
	color: var(--forest-deep);
	border: 2px solid var(--gold);
	font-weight: 700;
	white-space: normal;
}

/* Header and navigation */
.site-header {
	position: relative;
	z-index: 30;
	background: var(--forest-deep);
	border-bottom: 1px solid var(--gold-light);
	box-shadow: 0 5px 20px var(--shadow);
}

.site-header::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 5px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.8rem 1rem;
	width: min(100% - 24px, 1100px);
	min-height: 96px;
	margin: 0 auto;
	padding: 0.6rem 0;
}

.site-brand {
	display: block;
	width: min(56vw, 225px);
	text-decoration: none;
}

.site-brand__image {
	width: 100%;
	max-height: 132px;
	object-fit: contain;
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-left: auto;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--gold);
	background: rgba(255, 255, 255, 0.03);
	color: var(--gold-light);
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nav-toggle__bars {
	display: grid;
	gap: 4px;
	width: 21px;
}

.nav-toggle__bars span {
	display: block;
	height: 2px;
	background: currentColor;
	transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:first-child {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:last-child {
	transform: translateY(-6px) rotate(-45deg);
}

.primary-navigation {
	width: 100%;
}

.has-js .primary-navigation {
	display: none;
}

.has-js .primary-navigation.is-open {
	display: block;
}

.primary-menu,
.primary-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	padding: 0.7rem 0 0.25rem;
	border-top: 1px solid rgba(223, 194, 118, 0.38);
}

.primary-menu a {
	display: block;
	padding: 0.62rem 0.72rem;
	color: var(--gold-light);
	font-size: 0.86rem;
	letter-spacing: 0.04em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
	background: rgba(241, 222, 176, 0.09);
	color: var(--cream);
}

.primary-menu .sub-menu {
	padding-left: 0.7rem;
}

/* Shared ornamental elements */
.responsive-home {
	width: min(100%, 1100px);
	margin: 0 auto;
	padding: 16px 10px 32px;
	background: var(--forest);
}

.responsive-home > section + section {
	margin-top: 20px;
}

.ornate-frame {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border: 2px solid var(--gold);
	outline: 1px solid rgba(223, 194, 118, 0.85);
	outline-offset: -8px;
	background: var(--cream);
	box-shadow: 0 9px 24px var(--shadow), inset 0 0 34px rgba(180, 138, 53, 0.09);
}

.ornate-frame::before,
.ornate-frame::after {
	position: absolute;
	z-index: 5;
	color: var(--gold);
	font-size: clamp(1rem, 4vw, 1.75rem);
	line-height: 1;
	text-shadow: 0 1px var(--cream);
	pointer-events: none;
}

.ornate-frame::before {
	content: '❦';
	top: 5px;
	left: 8px;
	transform: rotate(-38deg);
}

.ornate-frame::after {
	content: '❦';
	right: 8px;
	bottom: 5px;
	transform: rotate(142deg);
}

.ornate-frame--dark {
	border-color: var(--gold-light);
	outline-color: rgba(223, 194, 118, 0.62);
	background: var(--forest-deep);
	color: var(--cream);
}

.ornate-frame--dark::before,
.ornate-frame--dark::after {
	color: var(--gold-light);
	text-shadow: 0 1px var(--forest-deep);
}

.eyebrow {
	margin: 0 0 0.55rem;
	color: #7c6435;
	font-family: var(--sans);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ornate-frame--dark .eyebrow {
	color: var(--gold-light);
}

.flourish {
	display: inline-block;
	color: var(--gold);
	font-size: 1.08rem;
	letter-spacing: 0.18em;
}

.section-heading {
	padding: 2rem 1.2rem 1.15rem;
	text-align: center;
}

.section-heading h2,
.content-header h1 {
	margin: 0;
	color: var(--forest-deep);
	font-size: clamp(1.7rem, 5.4vw, 2.55rem);
	font-weight: 500;
	line-height: 1.08;
}

/* Responsive hero */
.responsive-hero {
	background: var(--parchment);
}

.responsive-hero__picture {
	display: block;
	padding: 9px 9px 0;
}

.responsive-hero__picture img {
	width: 100%;
	min-height: 0;
	aspect-ratio: auto;
	object-fit: contain;
	object-position: center;
	border: 1px solid rgba(180, 138, 53, 0.7);
}

.responsive-hero__copy {
	position: relative;
	z-index: 2;
	padding: 1.55rem 1.35rem 2rem;
	background:
		linear-gradient(180deg, rgba(251, 244, 229, 0.96), rgba(244, 231, 207, 0.98)),
		var(--cream);
}

.responsive-hero__copy h1 {
	margin: 0 0 0.7rem;
	color: var(--forest-deep);
	font-size: clamp(2.05rem, 9vw, 3.5rem);
	font-weight: 500;
	line-height: 1;
	text-shadow: 0 1px rgba(255, 255, 255, 0.65);
}

.responsive-hero__copy p:last-child {
	max-width: 43rem;
	margin: 0;
	font-size: 1rem;
	line-height: 1.48;
}

/* Portfolio cards */
.portfolio-section {
	padding: 0.1rem 0.8rem 1.45rem;
	background:
		linear-gradient(90deg, rgba(180, 138, 53, 0.06), transparent 24%, transparent 76%, rgba(180, 138, 53, 0.06)),
		var(--cream);
}

.category-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	max-width: 980px;
	margin: 0 auto;
}

.category-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: 0 4px 12px rgba(19, 50, 35, 0.12);
	text-align: center;
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 9px 22px rgba(19, 50, 35, 0.22);
}

.category-card__image-wrap {
	display: block;
	overflow: hidden;
	border: 0;
	background: var(--cream-deep);
}

.category-card__image-wrap img {
	width: 100%;
	aspect-ratio: auto;
	object-fit: contain;
	transition: transform 350ms ease;
}

.category-card:hover img {
	transform: scale(1.025);
}

.category-card__ornament {
	display: block;
	margin: 0.52rem 0 0.12rem;
	color: var(--gold);
	font-size: 0.78rem;
}

.category-card__title {
	color: var(--forest-deep);
	font-size: clamp(1.2rem, 5.4vw, 1.7rem);
	line-height: 1.12;
	text-transform: uppercase;
}

/* Featured panels */
.feature-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.feature-panel__copy {
	display: flex;
	position: relative;
	z-index: 2;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2.35rem 1.4rem;
	text-align: center;
}

.feature-panel__copy h2 {
	margin: 0.45rem 0 1.25rem;
	color: var(--forest-deep);
	font-size: clamp(1.75rem, 7.5vw, 3rem);
	font-weight: 500;
	letter-spacing: 0.035em;
	line-height: 1.08;
	text-transform: uppercase;
}

.feature-panel__copy h2 span {
	display: block;
	margin-bottom: 0.55rem;
	font-size: 0.56em;
	font-style: normal;
	letter-spacing: 0;
	text-transform: none;
}

.feature-panel__copy > p:not(.eyebrow):not(.storybook-list) {
	max-width: 31rem;
	margin: -0.5rem 0 1.2rem;
}

.feature-panel__media {
	display: block;
	min-height: 240px;
	overflow: hidden;
	background: var(--cream-deep);
}

.feature-panel__media img {
	width: 100%;
	height: 100%;
	min-height: 240px;
	object-fit: cover;
	transition: transform 400ms ease;
}

.feature-panel__media:hover img {
	transform: scale(1.018);
}

.feature-panel--coloring {
	background:
		radial-gradient(circle at 76% 30%, rgba(54, 109, 69, 0.36), transparent 34rem),
		var(--forest-deep);
}

.feature-panel--coloring .feature-panel__copy h2 {
	color: var(--gold-light);
	text-transform: none;
}

.feature-panel--coloring .feature-panel__copy h2 span {
	color: var(--cream);
}

.feature-panel--coloring .feature-panel__media {
	padding: 1.2rem;
	background: transparent;
}

.feature-panel--coloring .feature-panel__media img {
	min-height: 0;
	border: 1px solid var(--gold-light);
	object-fit: contain;
}

.feature-panel--ebooks .feature-panel__copy h2 {
	font-size: clamp(1.75rem, 7.5vw, 2.7rem);
	text-transform: none;
}

.storybook-list {
	max-width: 32rem;
	margin: -0.3rem 0 1.4rem;
	color: #944b3e;
	font-size: clamp(1.08rem, 5.4vw, 1.55rem);
	font-style: italic;
	line-height: 1.4;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: min(100%, 190px);
	min-height: 44px;
	padding: 0.62rem 1.2rem;
	border: 1px solid var(--gold);
	font-family: var(--serif);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
	transform: translateY(-2px);
}

.button--forest {
	background: var(--forest-deep);
	color: var(--gold-light);
}

.button--forest:hover {
	background: var(--forest-soft);
	color: var(--cream);
}

.button--bright {
	border-color: #4db54f;
	background: #149632;
	color: #fffbe8;
}

.button--bright:hover {
	background: #0f7d29;
}

/* Footer and general content */
.site-footer {
	padding: 2rem 1.25rem 2.4rem;
	border-top: 1px solid var(--gold);
	background: var(--forest-deep);
	color: var(--gold-pale);
	font-size: 0.9rem;
	text-align: center;
}

.site-footer__ornament {
	color: var(--gold-light);
	font-size: 1.7rem;
}

.site-footer p {
	margin: 0.35rem auto 0;
}

.content-layout {
	width: min(100% - 24px, 1040px);
	margin: 1.5rem auto 3rem;
}

.content-header {
	padding: 3rem 1.5rem 2.5rem;
	text-align: center;
}

.content-list {
	display: grid;
	gap: 1.25rem;
	margin-top: 1.25rem;
}

.content-card {
	display: grid;
	background: var(--cream);
}

.content-card.content-card--page {
	grid-template-columns: minmax(0, 1fr);
}

.program-page,
.program-page__content {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.content-card__image img {
	width: 100%;
	aspect-ratio: 16 / 8;
	object-fit: cover;
}

.content-card__body {
	padding: 1.7rem;
}

.content-card__body h2 {
	margin: 0 0 0.6rem;
	color: var(--forest-deep);
	font-size: clamp(1.45rem, 5vw, 2.1rem);
}

.content-card__body h2 a {
	text-decoration: none;
}

.text-link {
	color: #755a21;
	font-weight: 700;
}

.nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	color: var(--cream);
}

.nav-links a,
.nav-links .current {
	display: inline-grid;
	min-width: 2.5rem;
	min-height: 2.5rem;
	place-items: center;
	border: 1px solid var(--gold);
}

/* Tablet layout */
@media (min-width: 520px) {
	.category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.category-card__title {
		font-size: 1.38rem;
	}
}

@media (min-width: 720px) {
	body {
		font-size: 18px;
	}

	.site-header__inner {
		display: grid;
		grid-template-columns: minmax(175px, 220px) minmax(0, 1fr);
		gap: 1.1rem;
		min-height: 118px;
	}

	.site-brand {
		width: 100%;
	}

	.site-brand__image {
		max-height: 150px;
	}

	.nav-toggle {
		display: none;
	}

	.primary-navigation,
	.has-js .primary-navigation {
		display: block;
		width: auto;
	}

	.primary-menu {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 0 0.15rem;
		padding: 0;
		border-top: 0;
	}

	.primary-menu a {
		padding: 0.6rem 0.47rem;
		font-size: 0.72rem;
	}

	.responsive-home {
		padding: 22px 16px 42px;
	}

	.responsive-home > section + section {
		margin-top: 26px;
	}

	.responsive-hero {
		min-height: 450px;
	}

	.responsive-hero__picture {
		height: 100%;
		padding: 9px;
	}

	.responsive-hero__picture img {
		min-height: 430px;
		aspect-ratio: 16 / 8;
		object-position: center;
	}

	.responsive-hero__copy {
		position: absolute;
		top: 13%;
		left: 5.5%;
		width: min(56%, 560px);
		padding: 1.6rem 1.75rem 1.8rem;
		border: 1px solid rgba(180, 138, 53, 0.62);
		background: rgba(251, 244, 229, 0.64);
		box-shadow: 0 8px 24px rgba(20, 47, 31, 0.13);
		-webkit-backdrop-filter: blur(1px);
		backdrop-filter: blur(1px);
	}

	.responsive-hero__copy h1 {
		font-size: clamp(2.4rem, 5.4vw, 3.6rem);
	}

	.responsive-hero__copy p:last-child {
		font-size: clamp(0.92rem, 1.6vw, 1.08rem);
	}

	.portfolio-section {
		padding: 0.2rem 1.25rem 1.8rem;
	}

	.category-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
	}

	.category-card {
		padding: 0;
	}

	.category-card__title {
		font-size: clamp(1.08rem, 2.4vw, 1.48rem);
	}

	.feature-panel {
		grid-template-columns: minmax(290px, 0.9fr) minmax(0, 1.1fr);
		min-height: 340px;
	}

	.feature-panel__copy {
		padding: 2.6rem 1.5rem;
	}

	.feature-panel__copy h2 {
		font-size: clamp(1.9rem, 3.7vw, 2.8rem);
	}

	.feature-panel__media,
	.feature-panel__media img {
		min-height: 100%;
	}

	.feature-panel--coloring {
		grid-template-columns: minmax(0, 0.93fr) minmax(360px, 1.07fr);
	}

	.feature-panel--coloring .feature-panel__media {
		display: grid;
		padding: 1.5rem;
		place-items: center;
	}

	.feature-panel--coloring .feature-panel__media img {
		height: auto;
		max-height: 330px;
	}

	.feature-panel--ebooks {
		grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
	}

	.storybook-list {
		font-size: clamp(1.05rem, 2.4vw, 1.45rem);
	}

	.content-card {
		grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
	}

	.content-card__image img {
		height: 100%;
		aspect-ratio: auto;
	}
}

@media (min-width: 960px) {
	.primary-menu a {
		padding-inline: 0.72rem;
		font-size: 0.78rem;
	}

	.category-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}


	.category-card__title {
		font-size: clamp(1rem, 1.85vw, 1.35rem);
	}
}

/* Wide screens use the same semantic homepage and shared header as all pages. */
@media (min-width: 1180px) {
	.responsive-home {
		padding: 24px 10px 44px;
	}

	.responsive-home > section + section {
		margin-top: 28px;
	}

	.responsive-hero__copy {
		background: rgba(251, 244, 229, 0.54);
	}
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
