/*
 * Project styles for the child theme.
 * Add layout and ACF-related frontend styling here.
 */

.tarot-entry {
	--tarot-bg: #f6f0e6;
	--tarot-accent: #9a6a2f;
	--tarot-on-color: #201912;
	color: var(--tarot-on-color);
}

.tarot-entry__hero {
	background:
		radial-gradient(circle at top right, color-mix(in srgb, var(--tarot-accent) 22%, transparent), transparent 40%),
		linear-gradient(135deg, var(--tarot-bg), #fffaf1);
	padding: clamp(1.25rem, 3vw, 2.75rem) 1.25rem;
}

.tarot-entry__hero-inner,
.tarot-entry__body {
	width: min(1100px, 100%);
	margin: 0 auto;
}

.tarot-entry__hero-inner {
	display: grid;
	gap: 1.25rem;
	align-items: center;
}

.tarot-entry__terms,
.tarot-entry__subtitle {
	margin: 0 0 0.75rem;
}

.tarot-entry__terms {
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--tarot-on-color) 88%, white);
	font-weight: 600;
}

.tarot-entry__title {
	margin: 0;
	font-size: clamp(2.4rem, 5vw, 4.8rem);
	line-height: 0.92;
	max-width: 11ch;
}

.tarot-entry__subtitle {
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	line-height: 1.35;
	max-width: 32rem;
	color: color-mix(in srgb, var(--tarot-on-color) 94%, white);
	font-weight: 500;
}

.tarot-entry__excerpt {
	max-width: 34rem;
}

.tarot-entry__excerpt p {
	font-size: 1.08rem;
	line-height: 1.75;
	margin: 0.35rem 0 0;
	color: color-mix(in srgb, var(--tarot-on-color) 92%, white);
}

.tarot-entry__meta-groups {
	display: grid;
	gap: 0.35rem;
	margin-top: 1rem;
	max-width: 34rem;
}

.tarot-entry__meta-line {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.55;
	color: color-mix(in srgb, var(--tarot-on-color) 90%, white);
}

.tarot-entry__meta-line strong {
	color: var(--tarot-accent);
	font-weight: 700;
	margin-right: 0.35rem;
}

.tarot-entry__meta-line a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--tarot-accent) 50%, transparent);
	text-underline-offset: 0.16em;
}

.tarot-entry__keywords {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	padding: 0;
	margin: 1.25rem 0 0;
	list-style: none;
}

.tarot-entry__keywords li {
	padding: 0.55rem 0.85rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--tarot-accent) 15%, white);
	border: 1px solid color-mix(in srgb, var(--tarot-accent) 40%, white);
}

.tarot-entry__image img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 430px;
	margin-left: auto;
	border-radius: 1.2rem;
	box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.14);
}

.tarot-entry__body {
	padding: clamp(1.5rem, 4vw, 3rem) 1.25rem 4rem;
	display: grid;
	gap: 1.25rem;
}

.tarot-entry__panel {
	padding: 1.4rem;
	border: 1px solid color-mix(in srgb, var(--tarot-accent) 18%, #d8c9b3);
	border-radius: 1.1rem;
	background: #fffdfa;
	box-shadow: 0 0.6rem 1.6rem rgba(38, 20, 8, 0.06);
}

.tarot-entry__panel h2 {
	margin-top: 0;
	margin-bottom: 0.8rem;
	font-size: 1.2rem;
	color: var(--tarot-accent);
}

.tarot-entry__content > :first-child,
.tarot-entry__prompt p {
	margin-top: 0;
}

.tarot-entry__content > :last-child,
.tarot-entry__prompt p {
	margin-bottom: 0;
}

.tarot-entry__prompt {
	margin: 0;
	padding: 1rem 1.2rem;
	border-left: 4px solid var(--tarot-accent);
	background: color-mix(in srgb, var(--tarot-bg) 65%, white);
}

.tarot-entry__network {
	padding: 0 1.25rem 4.5rem;
	background:
		radial-gradient(circle at top left, color-mix(in srgb, var(--tarot-accent) 12%, transparent), transparent 42%),
		linear-gradient(180deg, color-mix(in srgb, var(--tarot-bg) 35%, white), #fcfaf5);
}

.tarot-entry__network-inner {
	width: min(1100px, 100%);
	margin: 0 auto;
	display: grid;
	gap: 1.5rem;
}

.tarot-entry__network-header {
	display: grid;
	gap: 0.75rem;
	padding: 1.5rem 1.4rem 0;
}

.tarot-entry__network-eyebrow,
.tarot-theme-path__eyebrow {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--tarot-accent) 82%, #5f4a2d);
}

.tarot-entry__network-title {
	margin: 0;
	font-size: clamp(1.9rem, 4vw, 3.35rem);
	line-height: 0.98;
	max-width: 12ch;
}

.tarot-entry__network-intro,
.tarot-entry__network-note {
	max-width: 44rem;
}

.tarot-entry__network-intro > :first-child {
	margin-top: 0;
}

.tarot-entry__network-intro > :last-child {
	margin-bottom: 0;
}

.tarot-entry__network-note {
	margin: 0;
	padding: 0.9rem 1rem;
	border-radius: 1rem;
	border: 1px solid color-mix(in srgb, var(--tarot-accent) 14%, #d8c9b3);
	background: color-mix(in srgb, var(--tarot-bg) 52%, white);
	color: color-mix(in srgb, var(--tarot-on-color) 88%, white);
}

.tarot-theme-paths {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.25rem;
	align-items: stretch;
}

.tarot-theme-path {
	display: grid;
	gap: 1.15rem;
	height: 100%;
	padding: 1.15rem;
	border-radius: 1.4rem;
	border: 1px solid color-mix(in srgb, var(--tarot-accent) 14%, #d8c9b3);
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.94), color-mix(in srgb, var(--tarot-bg) 22%, white)),
		linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
	box-shadow: 0 0.9rem 2.3rem rgba(38, 20, 8, 0.07);
}

.tarot-theme-path__media,
.tarot-theme-path__copy {
	min-width: 0;
}

.tarot-theme-path__media-link {
	display: block;
	text-decoration: none;
}

.tarot-theme-path__media img,
.tarot-entry__related-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 1rem;
}

.tarot-theme-path__media img {
	min-height: 250px;
}

.tarot-theme-path__image-fallback {
	min-height: 250px;
	border-radius: 1rem;
	background:
		radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--tarot-accent) 24%, transparent), transparent 34%),
		linear-gradient(135deg, color-mix(in srgb, var(--tarot-bg) 80%, white), #f4ecdf);
}

.tarot-theme-path__copy {
	display: grid;
	align-content: center;
	gap: 0.7rem;
	padding: 0.3rem 0.2rem;
}

.tarot-theme-path__title,
.tarot-entry__related-copy h4 {
	margin: 0;
	line-height: 1.03;
}

.tarot-theme-path__title {
	font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.tarot-theme-path__title a,
.tarot-entry__related-link {
	color: inherit;
	text-decoration: none;
}

.tarot-theme-path__subtitle {
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
	color: color-mix(in srgb, var(--tarot-on-color) 90%, white);
}

.tarot-theme-path__excerpt {
	color: color-mix(in srgb, var(--tarot-on-color) 92%, white);
}

.tarot-theme-path__excerpt > :first-child {
	margin-top: 0;
}

.tarot-theme-path__excerpt > :last-child {
	margin-bottom: 0;
}

.tarot-theme-path__actions {
	margin: 0.35rem 0 0;
}

.tarot-theme-path__link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.85rem 1.05rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--tarot-accent) 86%, #8a5d28);
	color: #fff9f0;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 0.7rem 1.4rem rgba(58, 31, 10, 0.16);
}

.tarot-entry__related {
	display: grid;
	gap: 1rem;
}

.tarot-entry__related-header {
	display: grid;
	gap: 0.4rem;
	padding: 0 0.2rem;
}

.tarot-entry__related-header h3,
.tarot-entry__related-header p {
	margin: 0;
}

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

.tarot-entry__related-card {
	border-radius: 1.2rem;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--tarot-accent) 14%, #d8c9b3);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 0.65rem 1.8rem rgba(38, 20, 8, 0.06);
}

.tarot-entry__related-link {
	display: block;
	height: 100%;
}

.tarot-entry__related-image img {
	height: 220px;
	border-radius: 0;
}

.tarot-entry__related-copy {
	padding: 0.95rem 1rem 1.05rem;
}

.tarot-entry__related-copy p {
	margin: 0.5rem 0 0;
	color: #544536;
	line-height: 1.5;
}

.tarot-explore {
	display: grid;
	gap: 1rem;
	margin-bottom: 1.75rem;
	padding: 1.1rem;
	border: 1px solid rgba(154, 106, 47, 0.12);
	border-radius: 1.4rem;
	background:
		radial-gradient(circle at top right, rgba(154, 106, 47, 0.08), transparent 36%),
		linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(249, 244, 236, 0.96));
	box-shadow: 0 0.8rem 2rem rgba(38, 20, 8, 0.06);
}

.tarot-explore--single {
	margin-bottom: 0;
}

.tarot-explore__header {
	display: grid;
	gap: 0.4rem;
}

.tarot-explore__eyebrow {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8b6231;
}

.tarot-explore__title {
	margin: 0;
	font-size: clamp(1.35rem, 3vw, 2.1rem);
	line-height: 1.08;
	max-width: 18ch;
}

.tarot-explore__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 1rem;
	align-items: stretch;
}

.tarot-explore__group {
	display: grid;
	gap: 0.75rem;
	height: 100%;
	align-content: start;
	padding: 1rem;
	border-radius: 1.1rem;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(154, 106, 47, 0.1);
}

.tarot-explore__group h3,
.tarot-explore__group h4 {
	margin: 0;
	font-size: 1.05rem;
	color: #5d4326;
}

.tarot-explore__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: flex-start;
}

.tarot-explore__pill {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.7rem 0.9rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--tarot-accent, #9a6a2f) 8%, white);
	border: 1px solid color-mix(in srgb, var(--tarot-accent, #9a6a2f) 16%, #d8c9b3);
	color: inherit;
	text-decoration: none;
	font-weight: 600;
}

.tarot-explore__pill small {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.6rem;
	height: 1.6rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	font-size: 0.72rem;
	color: #7c5a32;
}

.tarot-explore__pill.is-current {
	background: color-mix(in srgb, var(--tarot-accent, #9a6a2f) 18%, white);
	border-color: color-mix(in srgb, var(--tarot-accent, #9a6a2f) 35%, #d8c9b3);
}

.tarot-entry__term-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.tarot-entry__term-pill a {
	display: inline-flex;
	align-items: center;
	padding: 0.8rem 0.95rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--tarot-accent) 10%, white);
	border: 1px solid color-mix(in srgb, var(--tarot-accent) 18%, #d8c9b3);
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

@media (min-width: 800px) {
	.tarot-entry__hero-inner {
		grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	}

	.tarot-entry__body {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tarot-entry__panel--meta,
	.tarot-entry__panel--einleitung,
	.tarot-entry__panel--prompt {
		grid-column: 1 / -1;
	}

	.tarot-theme-path {
		grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
		align-items: stretch;
	}

	.tarot-theme-path--reverse {
		grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
	}

	.tarot-theme-path--reverse .tarot-theme-path__media {
		order: 2;
	}

	.tarot-theme-path--reverse .tarot-theme-path__copy {
		order: 1;
	}

	.tarot-explore__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tarot-archive__hero {
	padding: clamp(2rem, 5vw, 4rem) 1.25rem 1rem;
	background:
		radial-gradient(circle at top left, rgba(182, 126, 51, 0.16), transparent 36%),
		linear-gradient(180deg, #fbf5ea, #fffdf8);
}

.tarot-archive__hero-inner,
.tarot-archive__inner {
	width: min(1200px, calc(100% - 2.5rem));
	margin: 0 auto;
}

.tarot-archive__eyebrow {
	margin: 0 0 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.85rem;
	font-weight: 600;
	color: #8b6231;
}

.tarot-archive__title {
	margin: 0;
	font-size: clamp(2.4rem, 5vw, 4.8rem);
	line-height: 0.95;
}

.tarot-archive__intro {
	max-width: 44rem;
	margin: 1rem 0 0;
	font-size: 1.08rem;
	line-height: 1.75;
	color: #42362a;
}

.tarot-archive__inner {
	padding: 1.5rem 0 4rem;
}

.tarot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.25rem;
}

.tarot-card {
	--tarot-card-accent: #9a6a2f;
	background: #fffdfa;
	border: 1px solid rgba(154, 106, 47, 0.16);
	border-radius: 1.2rem;
	box-shadow: 0 0.6rem 1.6rem rgba(38, 20, 8, 0.06);
	overflow: hidden;
}

.tarot-card__link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.tarot-card__image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.tarot-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.tarot-card__body {
	padding: 1rem 1rem 1.15rem;
}

.tarot-card__terms,
.tarot-card__meta,
.tarot-card__blog {
	margin: 0;
	font-size: 0.82rem;
	color: color-mix(in srgb, var(--tarot-card-accent) 80%, #5f4a2d);
}

.tarot-card__blog {
	margin-bottom: 0.35rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.tarot-card__type {
	margin: 0 0 0.35rem;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--tarot-card-accent) 78%, #6a5131);
}

.tarot-card__terms {
	text-transform: uppercase;
	letter-spacing: 0.07em;
	font-weight: 600;
}

.tarot-card__title {
	margin: 0.55rem 0 0;
	font-size: 1.45rem;
	line-height: 1.05;
}

.tarot-card__subtitle {
	margin: 0.55rem 0 0;
	font-size: 1rem;
	line-height: 1.45;
	color: #3f3328;
}

.tarot-card__excerpt {
	margin: 0.75rem 0 0;
	font-size: 0.98rem;
	line-height: 1.65;
	color: #5a4c3e;
}

.tarot-card__meta {
	margin-top: 0.9rem;
	padding-top: 0.9rem;
	border-top: 1px solid rgba(154, 106, 47, 0.12);
}

.tarot-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 1rem 2rem rgba(38, 20, 8, 0.1);
}

.tarot-archive__pagination,
.tarot-archive__empty {
	margin-top: 2rem;
}
