/*
Theme Name: Stoic Designer
Author: Martin Tutko
Author URI: https://martintutko.com
Description: A calm, editorial one-page WordPress theme with a Bento layout, daily content rotation, and shareable snapshots.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: stoic-designer
Tags: one-column, custom-post-types, featured-images, full-width-template, translation-ready
*/

/* Design tokens (primitive.css, colours.css) are enqueued in functions.php. */

/* ==========================================================================
   Base
   ========================================================================== */

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

body {
	margin: 0;
	font-family: var(--font-family-sans);
	font-size: var(--font-size-sm);
	line-height: var(--line-height-xl);
	color: var(--color-neutral-800);
	background-color: var(--color-neutral-50);
	-webkit-font-smoothing: antialiased;
	color-scheme: light;
}

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

/* --------------------------------------------------------------------------
   Typography (global — use semantic HTML sitewide)
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--color-neutral-900);
	font-weight: var(--font-weight-medium);
	line-height: var(--line-height-sm);
	margin: var(--space-lg) 0 var(--space-sm);
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
	margin-top: 0;
}

h1 {
	font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
	font-weight: var(--font-weight-regular);
	letter-spacing: var(--letter-spacing-tight);
	line-height: var(--line-height-xs);
}

h2 {
	font-size: var(--font-size-2xl);
	font-weight: var(--font-weight-semi-bold);
	letter-spacing: var(--letter-spacing-snug);
	line-height: var(--line-height-sm);
}

h3 {
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-medium);
}

h4 {
	font-size: var(--font-size-lg);
}

h5 {
	font-size: var(--font-size-md);
}

h6 {
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semi-bold);
	text-transform: uppercase;
	letter-spacing: var(--letter-spacing-wider);
	color: var(--color-neutral-600);
}

p {
	margin: 0 0 var(--space-md);
}

p:last-child {
	margin-bottom: 0;
}

small {
	font-size: var(--font-size-xs);
	line-height: var(--line-height-md);
	color: var(--color-neutral-600);
}

strong,
b {
	font-weight: var(--font-weight-semi-bold);
}

em,
i {
	font-style: italic;
}

a {
	color: var(--color-blue-700);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--color-blue-800);
}

a:focus-visible {
	outline: 2px solid var(--color-blue-600);
	outline-offset: 3px;
}

/* New-tab links: visual indicator only; pair with .screen-reader-text in markup where needed. */
a[target="_blank"]::after {
	content: "";
	display: inline-block;
	width: 0.65em;
	height: 0.65em;
	margin-left: 0.3em;
	vertical-align: 0.05em;
	background-color: currentColor;
	text-decoration: none;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%3E%3Cpath%20stroke%3D%22%23000%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22M5%2011L14%202m0%200v4m0-4H10%22%2F%3E%3C%2Fsvg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%3E%3Cpath%20stroke%3D%22%23000%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22M5%2011L14%202m0%200v4m0-4H10%22%2F%3E%3C%2Fsvg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

ul,
ol {
	margin: 0 0 var(--space-md);
	padding-left: var(--space-xl);
	color: var(--color-neutral-700);
}

li {
	margin-bottom: var(--space-xs);
}

li:last-child {
	margin-bottom: 0;
}

blockquote {
	margin: 0 0 var(--space-md);
	padding: 0 0 0 var(--space-lg);
	border-left: var(--border-width-sm) solid var(--color-neutral-300);
	font-family: var(--font-family-serif);
	font-size: var(--font-size-lg);
	line-height: var(--line-height-lg);
	color: var(--color-neutral-900);
}

blockquote p {
	margin: 0 0 var(--space-sm);
}

blockquote p:last-of-type {
	margin-bottom: 0;
}

blockquote footer {
	margin-top: var(--space-md);
	font-family: var(--font-family-sans);
	font-size: var(--font-size-sm);
	line-height: var(--line-height-xl);
	color: var(--color-neutral-600);
	font-style: normal;
}

blockquote cite {
	font-style: italic;
}

hr {
	border: 0;
	border-top: var(--border-width-xs) solid var(--color-neutral-200);
	margin: var(--space-xl) 0;
}

code,
kbd {
	font-family: var(--font-family-mono);
	font-size: 0.9em;
	background: var(--color-neutral-100);
	padding: 0.1em 0.35em;
	border-radius: var(--radius-xs);
}

pre {
	font-family: var(--font-family-mono);
	font-size: var(--font-size-2xs);
	line-height: var(--line-height-md);
	background: var(--color-neutral-100);
	padding: var(--space-md);
	border-radius: var(--radius-md);
	overflow-x: auto;
	margin: 0 0 var(--space-md);
}

pre code {
	background: none;
	padding: 0;
}

figure {
	margin: 0 0 var(--space-md);
}

figcaption {
	font-size: var(--font-size-xs);
	line-height: var(--line-height-md);
	color: var(--color-neutral-500);
	margin-top: var(--space-xs);
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

address {
	font-style: normal;
	margin: 0 0 var(--space-md);
	line-height: var(--line-height-xl);
	color: var(--color-neutral-700);
}

/* Prose blocks (editor / card bodies): stack rhythm; typography from child elements */
.sd-prose > *:first-child {
	margin-top: 0;
}

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

/* Theme shortcodes */
.sd-shortcode-intro {
	font-weight: var(--font-weight-semi-bold);
}

.sd-shortcode-box {
	background: var(--color-neutral-100);
	border: var(--border-width-xs) solid var(--color-neutral-200);
	border-radius: var(--radius-md);
	padding: var(--space-md);
}

/* ==========================================================================
   Layout utilities
   ========================================================================== */

.sd-container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--space-lg);
	padding-right: var(--space-lg);
}

.sd-skip-link {
	position: absolute;
	left: var(--space-md);
	top: var(--space-md);
	padding: var(--space-xs) var(--space-sm);
	background: var(--color-white);
	border: var(--border-width-xs) solid var(--color-neutral-200);
	border-radius: var(--radius-md);
	transform: translateY(-200%);
	transition: transform var(--duration-fast) var(--easing-standard);
	z-index: var(--z-max);
}

.sd-skip-link:focus {
	transform: translateY(0);
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
	border: 0;
}

/* Header */
.sd-site-header {
	padding-top: var(--space-3xl);
	padding-bottom: var(--space-2xl);
	border-bottom: var(--border-width-xs) solid var(--color-neutral-200);
	background: linear-gradient(180deg, var(--color-white) 0%, var(--color-neutral-50) 100%);
}

.sd-site-header .sd-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.sd-site-header h1,
.sd-site-header__branding--logo {
	margin: 0 0 var(--space-md);
}

.sd-site-header__logo-link {
	display: inline-block;
	line-height: 0;
	text-decoration: none;
	color: inherit;
}

.sd-site-header__logo-link:hover {
	text-decoration: none;
}

.sd-site-logo {
	display: block;
	width: auto;
	height: auto;
	max-height: clamp(2.25rem, 10vw, 3.75rem);
	margin-left: auto;
	margin-right: auto;
}

.sd-site-logo--mobile {
	display: none;
}

@media (max-width: 781px) {
	.sd-site-header .sd-site-logo--desktop {
		display: none;
	}

	.sd-site-header .sd-site-logo--mobile {
		display: block;
	}
}

.sd-site-header h1 a {
	color: inherit;
	text-decoration: none;
}

.sd-site-header h1 a:hover {
	color: inherit;
	text-decoration: none;
}

/* Site title on Bento CPT singles: one h1 per page lives in main content. */
.sd-site-header__title {
	margin: 0 0 var(--space-md);
	font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
	font-weight: var(--font-weight-regular);
	letter-spacing: var(--letter-spacing-tight);
	line-height: var(--line-height-xs);
	color: var(--color-neutral-900);
}

.sd-site-header__title--logo {
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	line-height: 0;
}

.sd-site-header__title a {
	color: inherit;
	text-decoration: none;
}

.sd-site-header__title a:hover {
	color: inherit;
	text-decoration: none;
}

.sd-site-intro,
.sd-site-tagline {
	max-width: var(--container-md);
	margin-left: auto;
	margin-right: auto;
	color: var(--color-neutral-600);
	font-size: var(--font-size-md);
	line-height: var(--line-height-2xl);
}

.sd-site-intro p,
.sd-site-tagline p {
	color: inherit;
}

.sd-home-intro {
	margin-bottom: var(--space-xl);
}

/* Main / Bento */
.sd-main {
	padding-top: var(--space-2xl);
	padding-bottom: var(--space-3xl);
}

.sd-bento {
	display: grid;
	gap: var(--space-lg);
	grid-template-columns: 1fr;
}

@media (min-width: 820px) {
	.sd-bento {
		grid-template-columns: repeat(12, 1fr);
		grid-auto-rows: minmax(120px, auto);
		align-items: stretch;
	}

	.sd-card--wisdom {
		grid-column: span 7;
		grid-row: span 2;
	}

	.sd-card--quote {
		grid-column: span 5;
		grid-row: span 2;
	}

	.sd-card--video {
		grid-column: span 8;
	}

	.sd-card--ad {
		grid-column: span 4;
		align-self: stretch;
	}

	.sd-card--design {
		grid-column: span 6;
	}

	.sd-card--reading {
		grid-column: span 6;
	}
}

/* Cards: chrome + flex rhythm only; type comes from h2, h3, p, etc. */
.sd-card {
	background: var(--color-white);
	border: var(--border-width-xs) solid var(--color-neutral-200);
	border-radius: var(--radius-xl);
	padding: var(--space-xl);
	box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	min-height: 0;
}

.sd-card > * {
	margin-block: 0;
}

@media (max-width: 819px) {
	.sd-card {
		padding: var(--space-lg);
	}
}

.sd-card__media {
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: var(--border-width-xs) solid var(--color-neutral-100);
}

/* Stoic Design Wisdom (homepage Bento): no padding on card; image edge-to-edge; body uses inner padding */
.sd-bento .sd-card--wisdom {
	padding: 0;
	gap: 0;
	overflow: hidden;
}

.sd-bento .sd-card--wisdom .sd-card__inner {
	padding: var(--space-xl);
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	min-height: 0;
}

/* Match other Bento cards: rhythm from flex gap only, not heading margins */
.sd-bento .sd-card--wisdom .sd-card__inner > * {
	margin-block: 0;
}

@media (max-width: 819px) {
	.sd-bento .sd-card--wisdom .sd-card__inner {
		padding: var(--space-lg);
	}
}

.sd-bento .sd-card--wisdom .sd-card__media--wisdom-hero {
	border-radius: 0;
	border: 0;
	border-bottom: var(--border-width-xs) solid var(--color-neutral-100);
}

.sd-card__media picture,
.sd-card > figure picture,
.sd-reading__figure picture,
.sd-single__figure picture {
	display: block;
	width: 100%;
	max-width: 100%;
}

.sd-card__media img,
.sd-card > figure img,
.sd-reading__figure img,
.sd-single__figure img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.sd-card > figure {
	margin: 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: var(--border-width-xs) solid var(--color-neutral-100);
}

.sd-card > figure img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

/* Homepage: all h2 (Bento cards + bookmark dialog) */
.sd-home h2 {
	font-family: var(--font-family-mono);
	font-size: var(--font-size-2xs);
	line-height: var(--line-height-md);
	letter-spacing: var(--letter-spacing-wider);
	font-weight: var(--font-weight-medium);
	color: var(--color-neutral-700);
	text-transform: uppercase;
}

.sd-card--quote {
	justify-content: center;
	background: linear-gradient(165deg, var(--color-white) 0%, var(--color-neutral-100) 100%);
}

.sd-quote-card__featured {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-shrink: 0;
}

.sd-quote-card__featured-img {
	width: 180px;
	max-width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
}

.sd-bento .sd-card.sd-card--quote.sd-quote-card--styled {
	background: transparent;
	background-image: none;
}

.sd-card.sd-card--quote.sd-quote-card--styled {
	position: relative;
	overflow: hidden;
}

.sd-card--quote blockquote {
	border-left-color: var(--color-neutral-400);
	font-size: clamp(var(--font-size-lg), 2.4vw, var(--font-size-3xl));
	line-height: var(--line-height-lg);
}

/* Stoic quote card: meta-driven full-card background, image + overlay, text color */
.sd-quote-box {
	position: relative;
	overflow: hidden;
}



/* Keep original .sd-card direct-child flex layout; stack decorative layers behind. */
.sd-card.sd-card--quote.sd-quote-card--styled > .sd-quote-box__bg,
.sd-card.sd-card--quote.sd-quote-card--styled > .sd-quote-box__overlay {
	z-index: 0;
}

.sd-card.sd-card--quote.sd-quote-card--styled > *:not(.sd-quote-box__bg):not(.sd-quote-box__overlay) {
	position: relative;
	z-index: 1;
}

.sd-quote-box__bg {
	display: none;
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	pointer-events: none;
}

.sd-quote-box--has-image .sd-quote-box__bg {
	display: block;
}

.sd-quote-box__overlay {
	display: none;
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.sd-quote-box--has-overlay .sd-quote-box__overlay {
	display: block;
}

.sd-home .sd-card.sd-quote-card--styled h2 {
	color: inherit;
}

.sd-quote-card--styled.sd-card--quote a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.sd-quote-card--styled.sd-card--quote a:hover {
	opacity: 0.88;
}

.sd-quote-card--styled.sd-card--quote a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Global blockquote/footer/cite set fixed neutrals; inherit card text color when styled. */
.sd-quote-card--styled.sd-card--quote blockquote,
.sd-quote-card--styled.sd-card--quote blockquote p,
.sd-quote-card--styled.sd-card--quote blockquote footer,
.sd-quote-card--styled.sd-card--quote blockquote cite {
	color: inherit;
}

.sd-quote-card--styled.sd-card--quote blockquote {
	border-left-color: color-mix(in srgb, currentColor 40%, transparent);
}

/* Video embed */
.sd-video {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--color-neutral-900);
	border: var(--border-width-xs) solid var(--color-neutral-200);
}

.sd-video__iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Ad slot */
.sd-card--ad {
	background: var(--color-neutral-100);
	border-style: dashed;
	justify-content: center;
	text-align: center;
	min-height: 160px;
}

.sd-card--ad p {
	color: var(--color-neutral-600);
}

.sd-card--ad p + p {
	margin-top: var(--space-sm);
	color: var(--color-neutral-500);
	font-size: var(--font-size-2xs);
	line-height: var(--line-height-md);
}

/* Reading layout */
.sd-reading {
	display: grid;
	gap: var(--space-lg);
	align-items: start;
}

@media (min-width: 600px) {
	.sd-reading {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	}
}

.sd-reading__figure {
	margin: 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: var(--border-width-xs) solid var(--color-neutral-100);
}

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

/* Share */
.sd-share-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-md);
	margin-top: var(--space-3xl);
	padding-bottom: var(--space-3xl);
}

.sd-share-wrap button {
	appearance: none;
	font: inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-sm) var(--space-xl);
	border-radius: var(--radius-full);
	border: var(--border-width-xs) solid var(--color-blue-600);
	background: var(--color-white);
	color: var(--color-blue-700);
	box-shadow: 0 1px 2px rgba(37, 99, 235, 0.12);
	transition: border-color var(--duration-fast) var(--easing-standard),
		box-shadow var(--duration-fast) var(--easing-standard),
		background var(--duration-fast) var(--easing-standard),
		color var(--duration-fast) var(--easing-standard);
}

.sd-share-wrap button:hover {
	border-color: var(--color-blue-700);
	background: var(--color-blue-50);
	color: var(--color-blue-800);
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.sd-share-wrap button:focus-visible {
	outline: 2px solid var(--color-blue-600);
	outline-offset: 3px;
}

.sd-share-feedback {
	margin: 0;
	font-size: var(--font-size-xs);
	color: var(--color-neutral-600);
}

.sd-bookmark-button {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--color-neutral-600) !important;
	font-size: var(--font-size-xs);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.sd-bookmark-button:hover {
	color: var(--color-neutral-800) !important;
	background: transparent !important;
}

.sd-bookmark-dialog {
	position: fixed;
	inset: 0;
	z-index: var(--z-overlay);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-lg);
	background: rgba(17, 24, 39, 0.45);
}

/* [hidden] must win over display:flex — otherwise the dialog stays visible on load. */
.sd-bookmark-dialog[hidden] {
	display: none !important;
}

.sd-bookmark-dialog__panel {
	width: 100%;
	max-width: 30rem;
	background: var(--color-white);
	border: var(--border-width-xs) solid var(--color-neutral-200);
	border-radius: var(--radius-xl);
	padding: var(--space-xl);
	box-shadow: 0 12px 30px rgba(17, 24, 39, 0.2);
}

.sd-bookmark-dialog__panel h2 {
	margin-top: 0;
}

.sd-bookmark-dialog__url {
	font-size: var(--font-size-xs);
	color: var(--color-neutral-600);
}

.sd-bookmark-dialog__url code {
	display: inline-block;
	margin-top: var(--space-2xs);
	overflow-wrap: anywhere;
}

.sd-bookmark-dialog__actions {
	margin-top: var(--space-lg);
	margin-bottom: 0;
}

.sd-bookmark-dialog__actions button {
	padding: var(--space-xs) var(--space-lg);
	border-radius: var(--radius-full);
}

body.sd-dialog-open {
	overflow: hidden;
}

/* Footer */
.sd-site-footer {
	padding: var(--space-2xl) 0 var(--space-3xl);
	border-top: var(--border-width-xs) solid var(--color-neutral-200);
	background: var(--color-white);
}

.sd-site-footer .sd-container {
	text-align: center;
}

.sd-site-footer__inner {
	max-width: none;
}

.sd-site-footer p {
	margin: 0 0 var(--space-sm);
	color: var(--color-neutral-700);
}

.sd-site-footer p:last-child {
	margin-bottom: 0;
}

.sd-site-footer h6 {
	margin: 0 0 var(--space-sm);
}

.sd-site-footer p small {
	color: var(--color-neutral-500);
}

/* Fallback (index) */
.sd-fallback {
	padding-bottom: var(--space-3xl);
}

.sd-fallback__heading {
	margin-top: 0;
}

.sd-fallback ul {
	margin: 0;
	padding-left: var(--space-lg);
}

.sd-fallback li {
	margin-bottom: var(--space-xs);
}

.nav-links,
.navigation.pagination {
	margin-top: var(--space-lg);
}

.nav-links a,
.navigation.pagination a {
	font-weight: var(--font-weight-medium);
}

/* --------------------------------------------------------------------------
   Singular CPT / editorial detail pages (not the Bento grid)
   -------------------------------------------------------------------------- */

.sd-single.sd-container {
	max-width: 42rem;
}

.sd-single--video.sd-container {
	max-width: 48rem;
}

.sd-single__header {
	margin-bottom: var(--space-xl);
}

.sd-single__title {
	margin-top: 0;
}

.sd-single__figure {
	margin: 0 0 var(--space-xl);
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: var(--border-width-xs) solid var(--color-neutral-100);
}

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

.sd-single__body {
	margin-bottom: var(--space-lg);
}

.sd-single__lede {
	margin-bottom: var(--space-lg);
	color: var(--color-neutral-700);
}

.sd-single__actions {
	margin: var(--space-lg) 0 0;
}

.sd-single__back {
	margin-top: var(--space-2xl);
	padding-top: var(--space-xl);
	border-top: var(--border-width-xs) solid var(--color-neutral-200);
}

.sd-single__notice {
	color: var(--color-neutral-600);
}

.sd-single-reading__byline {
	margin: var(--space-sm) 0 0;
	color: var(--color-neutral-600);
	font-size: var(--font-size-md);
}

.sd-single.sd-single--quote.sd-quote-card--styled {
	position: relative;
	overflow: hidden;
}

.sd-single.sd-single--quote.sd-quote-card--styled > .sd-quote-box__bg,
.sd-single.sd-single--quote.sd-quote-card--styled > .sd-quote-box__overlay {
	z-index: 0;
}

.sd-single.sd-single--quote.sd-quote-card--styled > *:not(.sd-quote-box__bg):not(.sd-quote-box__overlay) {
	position: relative;
	z-index: 1;
}

.sd-single--quote .sd-single__title {
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-medium);
	letter-spacing: var(--letter-spacing-snug);
	line-height: var(--line-height-sm);
}

.sd-single.sd-quote-card--styled .sd-single__title,
.sd-single.sd-quote-card--styled .sd-single__lede,
.sd-single.sd-quote-card--styled .sd-single__actions {
	color: inherit;
}

.sd-single.sd-quote-card--styled .sd-single__back {
	border-top-color: color-mix(in srgb, currentColor 22%, transparent);
}

.sd-single.sd-quote-card--styled a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.sd-single.sd-quote-card--styled a:hover {
	opacity: 0.88;
}

.sd-single.sd-quote-card--styled a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.sd-single-quote__blockquote {
	margin: 0 0 var(--space-xl);
	font-size: clamp(var(--font-size-xl), 3.2vw, var(--font-size-4xl));
	line-height: var(--line-height-lg);
	border-left-color: var(--color-neutral-400);
}

.sd-single.sd-quote-card--styled .sd-single-quote__blockquote,
.sd-single.sd-quote-card--styled .sd-single-quote__blockquote p,
.sd-single.sd-quote-card--styled .sd-single-quote__footer,
.sd-single.sd-quote-card--styled .sd-single-quote__blockquote cite {
	color: inherit;
}

.sd-single.sd-quote-card--styled .sd-single-quote__blockquote {
	border-left-color: color-mix(in srgb, currentColor 40%, transparent);
}

.sd-single-quote__footer {
	margin-top: var(--space-md);
	font-size: var(--font-size-md);
	font-family: var(--font-family-sans);
}

.sd-single__video {
	margin-bottom: var(--space-xl);
}
