/*!
 * DacrotyPress 1.0.1 — main stylesheet (deferred).
 * Editorial magazine premium. Critical above-the-fold em inc/critical-css.php.
 */

:root {
	--dp-fg:        #0a0a0a;
	--dp-fg-2:      #1f2937;
	--dp-muted:     #525252;
	--dp-muted-2:   #9ca3af;
	--dp-bg:        #fafaf7;
	--dp-bg-soft:   #f5f5f0;
	--dp-bg-muted:  #e5e5e0;
	--dp-line:      #d4d4d4;
	--dp-line-2:    #0a0a0a;

	--dp-accent:        #b91c1c;
	--dp-accent-hover:  #7f1d1d;
	--dp-accent-dark:   #5b1414;
	--dp-accent-text:   #ffffff;
	--dp-accent-ring:   rgba(185,28,28,.22);
	--dp-accent-soft:   rgba(185,28,28,.06);
	--dp-accent-rgb:    185,28,28;

	--dp-shadow:    0 8px 28px rgba(10,10,10,.06);
	--dp-shadow-sm: 0 2px 8px rgba(10,10,10,.04);
}

/* ───── Article (single) ───── */
.dp-article { padding-top: 16px; }

.dp-article-header {
	max-width: 760px;
	margin: 0 auto 36px;
	text-align: center;
}
.dp-article-title {
	font-size: clamp(2rem, 1.4rem + 3.2vw, 3.6rem);
	margin: 0 0 18px;
	line-height: 1.05;
	font-weight: 900;
	letter-spacing: -.035em;
}
.dp-article-header .dp-dek {
	font-size: 1.18rem;
	color: var(--dp-muted);
	line-height: 1.5;
	margin: 0 0 24px;
	font-family: Georgia, serif;
}
.dp-article-byline {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 0 0;
	border-top: 1px solid var(--dp-line);
	margin-top: 8px;
}
.dp-byline-avatar img { border-radius: 50%; display: block; width: 44px; height: 44px; }
.dp-byline-meta { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.dp-byline-name {
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-weight: 700;
	color: var(--dp-fg);
	font-family: -apple-system, sans-serif;
}
.dp-byline-name a { transition: color .15s; }
.dp-byline-name a:hover { color: var(--dp-accent); }
.dp-byline-sub {
	font-size: .8rem;
	color: var(--dp-muted);
	font-family: Georgia, serif;
	font-style: italic;
}

.dp-article-hero { max-width: 1000px; margin: 0 auto 36px; }
.dp-article-hero img { width: 100%; height: auto; display: block; }
.dp-article-caption {
	font-size: .82rem;
	color: var(--dp-muted);
	margin-top: 10px;
	text-align: center;
	font-style: italic;
	font-family: Georgia, serif;
}

.dp-article-wrap { max-width: 720px; margin: 0 auto; }

/* ───── Content typography ───── */
.dp-content, .dp-article-content { font-size: 1.1rem; line-height: 1.78; color: var(--dp-fg-2); }
.dp-content p, .dp-article-content p { margin: 0 0 1.4em; }
.dp-content h2, .dp-article-content h2 {
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
	margin: 2em 0 .6em;
	letter-spacing: -.025em;
	font-weight: 900;
}
.dp-content h3, .dp-article-content h3 {
	font-size: 1.45rem;
	margin: 1.7em 0 .5em;
	letter-spacing: -.015em;
	font-weight: 900;
}
.dp-content a, .dp-article-content a {
	color: var(--dp-fg);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--dp-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	transition: color .15s, text-decoration-color .15s;
}
.dp-content a:hover, .dp-article-content a:hover { color: var(--dp-accent); }
.dp-content blockquote, .dp-article-content blockquote {
	margin: 32px 0;
	padding: 0 0 0 24px;
	border-left: 4px solid var(--dp-accent);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.32rem;
	font-style: italic;
	color: var(--dp-fg);
	line-height: 1.45;
}
.dp-content blockquote p, .dp-article-content blockquote p { margin: 0 0 .5em; }
.dp-content blockquote cite, .dp-article-content blockquote cite {
	display: block; margin-top: 12px;
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-style: normal;
	color: var(--dp-muted);
	font-family: -apple-system, sans-serif;
	font-weight: 700;
}

/* Drop cap — dramatic cardinal red */
.dp-article-content > p:first-of-type::first-letter,
.dp-content > p:first-of-type::first-letter {
	float: left;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 5em;
	font-weight: 900;
	line-height: 0.85;
	margin: 8px 12px -4px 0;
	color: var(--dp-accent);
}

.dp-content img, .dp-article-content img { width: 100%; height: auto; margin: 28px 0; }
.dp-content figure, .dp-article-content figure { margin: 28px 0; }
.dp-content figcaption, .dp-article-content figcaption, .wp-caption-text {
	font-size: .85rem;
	color: var(--dp-muted);
	margin-top: 10px;
	text-align: center;
	font-style: italic;
	font-family: Georgia, serif;
}
.dp-content ul, .dp-article-content ul,
.dp-content ol, .dp-article-content ol {
	padding-left: 1.4em;
	margin: 0 0 1.4em;
	color: var(--dp-fg-2);
}
.dp-content li, .dp-article-content li { margin-bottom: .5em; }
.dp-content code, .dp-article-content code {
	background: var(--dp-bg-muted);
	padding: 2px 8px;
	border-radius: 3px;
	font-size: .92em;
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
.dp-content pre, .dp-article-content pre {
	background: #0a0a0a;
	color: #fafaf7;
	padding: 20px 24px;
	overflow-x: auto;
	font-size: .9rem;
	line-height: 1.55;
	margin: 24px 0;
}
.dp-content pre code, .dp-article-content pre code { background: transparent; padding: 0; color: inherit; }

.dp-content table, .dp-article-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.6em 0;
	display: block;
	overflow-x: auto;
}
.dp-content th, .dp-article-content th {
	background: var(--dp-fg);
	color: #fff;
	text-align: left;
	padding: 12px 14px;
	font-size: .76rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-weight: 700;
}
.dp-content td, .dp-article-content td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--dp-line);
}

/* ───── Article footer (tags) ───── */
.dp-article-footer { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--dp-line); }
.dp-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dp-tags a {
	display: inline-block;
	padding: 5px 12px;
	background: var(--dp-bg-soft);
	border: 1px solid var(--dp-line);
	font-family: -apple-system, sans-serif;
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-weight: 700;
	color: var(--dp-fg);
	text-decoration: none;
	transition: background .15s, color .15s, border-color .15s;
}
.dp-tags a:hover { background: var(--dp-fg); color: #fff; border-color: var(--dp-fg); }

/* ───── Buttons ───── */
.dp-btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 2px solid var(--dp-fg);
	background: var(--dp-fg);
	color: #fff;
	font-weight: 700;
	font-size: .76rem;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-family: -apple-system, sans-serif;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.dp-btn-primary { background: var(--dp-accent); border-color: var(--dp-accent); }
.dp-btn-primary:hover {
	background: var(--dp-accent-hover);
	border-color: var(--dp-accent-hover);
	transform: translateY(-1px);
}
.dp-btn:focus-visible { outline: 2px solid var(--dp-accent); outline-offset: 3px; }

/* ───── Page header ───── */
.dp-page-header { text-align: center; margin-bottom: 32px; padding-bottom: 18px; border-bottom: 2px solid var(--dp-fg); }
.dp-page-title { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.8rem); margin: 0; font-weight: 900; letter-spacing: -.03em; }

/* ───── Author box ───── */
.dp-author-box {
	display: flex; gap: 22px;
	align-items: flex-start;
	background: var(--dp-bg-soft);
	border-top: 4px solid var(--dp-accent);
	padding: 28px;
	margin: 48px 0;
}
.dp-author-box-avatar img { border-radius: 50%; display: block; width: 80px; height: 80px; }
.dp-author-box-body { flex: 1; min-width: 0; }
.dp-author-box-label {
	font-size: .68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .18em;
	color: var(--dp-accent);
	margin-bottom: 6px;
	font-family: -apple-system, sans-serif;
}
.dp-author-box-name { font-size: 1.45rem; margin: 0 0 8px; font-weight: 900; letter-spacing: -.02em; }
.dp-author-box-name a { color: var(--dp-fg); transition: color .15s; }
.dp-author-box-name a:hover { color: var(--dp-accent); }
.dp-author-box-bio { color: var(--dp-fg-2); font-size: .96rem; line-height: 1.65; margin: 0 0 10px; font-family: Georgia, serif; }
.dp-author-box-site {
	display: inline-flex;
	font-size: .72rem;
	font-weight: 700;
	color: var(--dp-accent);
	text-transform: uppercase;
	letter-spacing: .12em;
	font-family: -apple-system, sans-serif;
	transition: color .15s;
}
.dp-author-box-site:hover { color: var(--dp-accent-hover); }

/* ───── Related ───── */
.dp-related { margin: 56px 0 0; padding-top: 36px; border-top: 2px solid var(--dp-fg); }
.dp-related-title { font-size: 1.5rem; margin: 0 0 28px; font-weight: 900; letter-spacing: -.02em; }
.dp-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dp-related-card { display: flex; flex-direction: column; text-decoration: none; }
.dp-related-thumb { aspect-ratio: 3/2; background: var(--dp-bg-muted); overflow: hidden; margin-bottom: 12px; }
.dp-related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dp-related-card:hover .dp-related-thumb img { transform: scale(1.04); }
.dp-related-cat {
	display: inline-block;
	font-size: .66rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--dp-accent);
	margin-bottom: 6px;
	font-family: -apple-system, sans-serif;
}
.dp-related-title-link {
	font-size: 1.1rem;
	margin: 0;
	line-height: 1.25;
	font-weight: 900;
	color: var(--dp-fg);
	letter-spacing: -.015em;
}

/* ───── Pagination ───── */
.navigation.pagination { margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--dp-line); }
.navigation.pagination .nav-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center; font-family: -apple-system, sans-serif; }
.navigation.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 32px; padding: 0 2px;
	background: transparent;
	color: var(--dp-muted);
	text-decoration: none;
	font-weight: 700;
	font-size: .95rem;
	transition: color .15s;
	position: relative;
}
.navigation.pagination .page-numbers:not(.current):hover { color: var(--dp-accent); }
.navigation.pagination .page-numbers.current { color: var(--dp-accent); font-weight: 900; font-size: 1.08rem; }
.navigation.pagination .page-numbers.current::after {
	content: ''; position: absolute;
	left: 50%; bottom: -6px;
	width: 18px; height: 2px;
	background: var(--dp-accent);
	transform: translateX(-50%);
}
.navigation.pagination .prev, .navigation.pagination .next {
	border: 2px solid var(--dp-fg);
	color: var(--dp-fg);
	padding: 8px 16px;
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-weight: 700;
	transition: background .15s, color .15s;
}
.navigation.pagination .prev:hover, .navigation.pagination .next:hover {
	background: var(--dp-fg); color: #fff;
}
.navigation.pagination .prev::after, .navigation.pagination .next::after { display: none; }

/* ───── Search dropdown ───── */
.dp-search { position: relative; }
.dp-search-dropdown {
	position: absolute;
	top: calc(100% + 12px); right: 0;
	width: min(380px, 90vw);
	background: #fff;
	border: 1px solid var(--dp-fg);
	padding: 10px;
	opacity: 0; visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .2s, transform .2s, visibility .2s;
	z-index: 100;
	box-shadow: 0 10px 32px rgba(10,10,10,.14);
}
.dp-search.is-open .dp-search-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dp-search-form { display: flex; gap: 6px; }
.dp-search-input {
	flex: 1; min-width: 0;
	padding: 10px 14px;
	border: 1px solid var(--dp-line);
	font-size: .95rem;
	font-family: inherit;
	color: var(--dp-fg);
	background: #fff;
	transition: border-color .15s;
}
.dp-search-input:focus { outline: none; border-color: var(--dp-accent); }
.dp-search-submit {
	background: var(--dp-fg);
	color: #fff;
	border: 1px solid var(--dp-fg);
	width: 42px;
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; transition: background .15s, border-color .15s;
}
.dp-search-submit:hover { background: var(--dp-accent); border-color: var(--dp-accent); }

/* ───── Mobile drawer ───── */
.dp-mobile-menu { position: fixed; inset: 0; z-index: 100; pointer-events: none; visibility: hidden; }
.dp-mobile-overlay {
	position: absolute; inset: 0;
	background: rgba(10,10,10,.55);
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
	opacity: 0; transition: opacity .3s ease;
}
.dp-mobile-panel {
	position: absolute; top: 0; left: 0; bottom: 0;
	width: min(80vw, 320px);
	background: #fafaf7;
	box-shadow: 16px 0 40px rgba(10,10,10,.18);
	padding: 14px 22px 30px;
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform .35s cubic-bezier(.4,0,.2,1);
	display: flex; flex-direction: column;
	gap: 10px;
}
.dp-mobile-head { display: flex; justify-content: flex-end; }
.dp-mobile-close {
	background: transparent; border: 0; cursor: pointer;
	width: 36px; height: 36px; font-size: 28px; line-height: 1;
	color: var(--dp-fg);
}
.dp-mobile-nav .dp-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.dp-mobile-nav .dp-menu a {
	display: block;
	padding: 14px 0;
	color: var(--dp-fg);
	font-weight: 700;
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-family: -apple-system, sans-serif;
	border-bottom: 1px solid var(--dp-line);
	transition: color .15s;
}
.dp-mobile-nav .dp-menu a:hover { color: var(--dp-accent); }

body.dp-menu-open { overflow: hidden; }
body.dp-menu-open .dp-mobile-menu { pointer-events: auto; visibility: visible; }
body.dp-menu-open .dp-mobile-overlay { opacity: 1; }
body.dp-menu-open .dp-mobile-panel { transform: translateX(0); }
body.dp-menu-open .dp-hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.dp-menu-open .dp-hamburger span:nth-child(2) { opacity: 0; }
body.dp-menu-open .dp-hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ───── Breadcrumbs ───── */
.dp-breadcrumb {
	font-size: .72rem;
	color: var(--dp-muted);
	margin-bottom: 22px;
	display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-weight: 700;
	font-family: -apple-system, sans-serif;
}
.dp-breadcrumb a { color: var(--dp-muted); transition: color .15s; }
.dp-breadcrumb a:hover { color: var(--dp-accent); }
.dp-breadcrumb .sep { opacity: .5; }

/* ───── Archive header ───── */
.dp-archive-header { margin-bottom: 36px; padding-bottom: 22px; border-bottom: 2px solid var(--dp-fg); text-align: center; }
.dp-archive-title { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); margin: 0 0 8px; font-weight: 900; letter-spacing: -.025em; }
.dp-archive-desc { color: var(--dp-muted); font-family: Georgia, serif; font-style: italic; }

/* ───── 404 ───── */
.dp-layout-narrow { max-width: 600px; margin: 0 auto; }
.dp-404 { text-align: center; padding: 60px 0; }
.dp-404-code {
	font-family: Georgia, serif;
	font-size: clamp(6rem, 4rem + 8vw, 11rem);
	font-weight: 900;
	color: var(--dp-accent);
	line-height: 1;
	letter-spacing: -.06em;
}
.dp-404-title { font-size: 2rem; margin: 16px 0 12px; font-weight: 900; letter-spacing: -.025em; }
.dp-404-desc { color: var(--dp-muted); margin-bottom: 28px; font-family: Georgia, serif; }
.dp-404-actions { margin-bottom: 32px; }
.dp-404-search .dp-search-form { max-width: 360px; margin: 0 auto; }

/* ───── Comments ───── */
.dp-comments { margin: 56px 0 0; padding-top: 36px; border-top: 2px solid var(--dp-fg); }
.dp-comments-title { font-size: 1.4rem; margin: 0 0 22px; font-weight: 900; letter-spacing: -.02em; }
.dp-comments-list { list-style: none; padding: 0; margin: 0 0 32px; }
.dp-comments-list .comment-body { padding: 20px 0; border-bottom: 1px solid var(--dp-line); }
.dp-comments-list .children { list-style: none; padding-left: 36px; }
.comment-author { font-weight: 700; color: var(--dp-fg); }
.comment-metadata {
	font-size: .72rem;
	color: var(--dp-muted);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-weight: 700;
	font-family: -apple-system, sans-serif;
}
.comment-content { color: var(--dp-fg-2); font-family: Georgia, serif; }
.dp-comments-closed { color: var(--dp-muted); font-style: italic; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--dp-line);
	font-family: inherit;
	font-size: .95rem;
	background: #fff;
	margin-bottom: 12px;
}
.comment-respond input:focus, .comment-respond textarea:focus {
	outline: none;
	border-color: var(--dp-accent);
	box-shadow: 0 0 0 3px var(--dp-accent-ring);
}

/* ───── Footer ───── */
.dp-site-footer .widget {
	background: transparent;
	border: 0;
	padding: 0;
	color: rgba(255,255,255,.7);
}
.dp-site-footer .widget-title {
	color: #fff;
	font-size: .72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .16em;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid rgba(255,255,255,.2);
	font-family: -apple-system, sans-serif;
}
.dp-site-footer .widget a { color: rgba(255,255,255,.78); transition: color .15s; }
.dp-site-footer .widget a:hover { color: #fff; }

.dp-footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 36px;
	padding: 40px 0 28px;
	border-bottom: 1px solid rgba(255,255,255,.1);
}

.dp-footer-legal {
	padding: 26px 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: center;
	text-align: center;
	border-bottom: 1px solid rgba(255,255,255,.1);
}
.dp-legal-links, .dp-footer-menu {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-wrap: wrap; gap: 8px 24px;
	justify-content: center;
}
.dp-legal-links a, .dp-footer-menu a {
	color: rgba(255,255,255,.85);
	font-size: .76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-family: -apple-system, sans-serif;
	transition: color .15s;
}
.dp-legal-links a:hover, .dp-footer-menu a:hover { color: var(--dp-accent); }

.dp-footer-bottom { padding: 22px 0; text-align: center; }
.dp-footer-copy {
	margin: 0;
	font-size: .78rem;
	color: rgba(255,255,255,.5);
	font-family: -apple-system, sans-serif;
	line-height: 1.6;
}
.dp-footer-copy .dp-footer-credits { margin-left: 8px; }
.dp-footer-copy a { color: rgba(255,255,255,.85); font-weight: 700; transition: color .15s; }
.dp-footer-copy a:hover { color: var(--dp-accent); }

/* ───── Back to top ───── */
.dp-back-to-top {
	position: fixed; bottom: 24px; right: 24px;
	width: 46px; height: 46px;
	background: var(--dp-fg);
	color: #fff;
	border: 2px solid var(--dp-fg);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
	transition: background .15s, border-color .15s, transform .2s, opacity .2s;
	z-index: 90;
	opacity: 0; transform: translateY(8px);
}
.dp-back-to-top:not([hidden]) { opacity: 1; transform: translateY(0); }
.dp-back-to-top:hover { background: var(--dp-accent); border-color: var(--dp-accent); transform: translateY(-2px); }

/* ───── Empty ───── */
.dp-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--dp-muted);
	border: 1px dashed var(--dp-line);
}
.dp-empty-note { color: var(--dp-muted); font-style: italic; text-align: center; padding: 28px 0; }
.muted { color: var(--dp-muted); }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* ───── Print ───── */
@media print {
	.dp-masthead, .dp-site-footer, .dp-sidebar, .dp-back-to-top,
	.dp-mobile-menu, .dp-search-dropdown, .dp-related, .dp-comments,
	.dp-author-box, .dp-breadcrumb, .dp-ad { display: none !important; }
	body { background: #fff !important; color: #000 !important; }
	a { color: #000 !important; text-decoration: underline; }
}

/* ───── Responsive extra ───── */
@media (max-width: 900px) {
	.dp-related-grid { grid-template-columns: repeat(2, 1fr); }
	.dp-author-box { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 600px) {
	.dp-related-grid { grid-template-columns: 1fr; }
	.dp-article-hero { margin-left: -18px; margin-right: -18px; }
	.dp-author-box { padding: 22px; }
	.dp-article-byline { flex-direction: column; gap: 10px; padding-top: 14px; }
	.dp-byline-meta { text-align: center; }
}
