/*
Theme Name: A Blunt Stop
Theme URI: https://abluntstop.com
Author: kt
Description: Blood × Bone theme for abluntstop.com. Movie reviews with YouTube embeds and verdict stamps, a TeePublic tee shelf, the comic, and the Credit Crawl Forum.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
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: abluntstop
Tags: dark, blog, entertainment, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, accessibility-ready
*/

/* ---------- Tokens ---------- */
:root {
	--blood: #8E0E12;
	--ink: #0E0B0A;
	--ink-2: #130F0E;
	--ink-3: #080606;
	--panel: #1A1513;
	--line: #2A2320;
	--line-2: #3A302C;
	--bone: #E8DFCF;
	--bone-hi: #F4EDE1;
	--muted: #A89F92;
	--faint: #6E655B;
	--red: #E5383B;

	--display: 'Metal Mania', Georgia, serif;
	--sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--narrow: 'Archivo Narrow', 'Arial Narrow', sans-serif;

	--wrap: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ink);
	color: var(--bone);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--bone); }
a:hover, a:focus-visible { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--blood); color: var(--bone-hi); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto !important; clip-path: none; height: auto; width: auto; margin: 0;
	background: var(--bone-hi); color: var(--ink); display: block; padding: 12px 18px;
	left: 12px; top: 12px; z-index: 100000; text-decoration: none;
}
.skip-link {
	position: absolute; left: 12px; top: -80px; z-index: 1000;
	background: var(--blood); color: var(--bone-hi); padding: 12px 18px;
	font-family: var(--narrow); font-weight: 700; letter-spacing: 1.5px;
	text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bone-hi); }

/* ---------- Type helpers ---------- */
.display { font-family: var(--display); font-weight: 400; line-height: 1; margin: 0; letter-spacing: .5px; }
.kicker {
	margin: 0 0 20px; color: var(--red);
	font-family: var(--narrow); font-weight: 700; font-size: 14px;
	letter-spacing: 3px; text-transform: uppercase;
}
.meta {
	font-family: var(--narrow); font-size: 14px; letter-spacing: 2px;
	text-transform: uppercase; color: var(--muted);
}
.meta a { color: var(--muted); }
.meta a:hover { color: var(--red); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn,
input[type="submit"],
button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 26px; cursor: pointer;
	font-family: var(--narrow); font-weight: 700; font-size: 15px;
	letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none;
	border: 2px solid transparent; border-radius: 0;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--blood, input[type="submit"], button[type="submit"] { background: var(--blood); color: var(--bone-hi); }
.btn--blood:hover, .btn--blood:focus-visible,
input[type="submit"]:hover, button[type="submit"]:hover { background: var(--bone-hi); color: var(--ink); }
.btn--ghost { border-color: var(--bone); color: var(--bone); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--bone); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--bone-hi); }
.btn--ink:hover, .btn--ink:focus-visible { background: var(--bone-hi); color: var(--ink); }
.btn-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
	display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start;
	font-family: var(--narrow); font-weight: 700; font-size: 15px;
	letter-spacing: 1.5px; text-transform: uppercase; color: var(--red);
}
.link-arrow:hover { color: var(--bone); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 16px; padding-block: 18px;
}
.site-title { margin: 0; font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: .5px; }
.site-title a { color: var(--bone); text-decoration: none; }
.site-title a:hover { color: var(--red); }
.custom-logo { max-height: 56px; width: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav a {
	display: block; padding: 12px; text-decoration: none;
	font-family: var(--narrow); font-weight: 700; font-size: 15px;
	letter-spacing: 1.5px; text-transform: uppercase;
}
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a { color: var(--red); }

/* ---------- Sections ---------- */
.section { border-bottom: 1px solid var(--line); padding-block: 72px; }
.section--alt { background: var(--ink-2); }
.section--band { padding-block: 64px; }
.section-head {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
	gap: 12px; margin-bottom: 32px;
}
.section-head--end { align-items: flex-end; gap: 20px; }
.section-head .display { font-size: 52px; }
.section-head p { margin: 10px 0 0; }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; padding-block: 72px 64px; }
.hero__copy { flex: 999 1 520px; min-width: 0; }
.hero__title { font-size: clamp(64px, 11vw, 168px); line-height: .88; letter-spacing: 1px; }
.hero__text { margin: 28px 0 0; max-width: 520px; font-size: 19px; color: var(--muted); }
.hero__art { flex: 1 1 340px; min-width: 0; padding: 0 12px 12px 0; }
.hero__frame {
	aspect-ratio: 4 / 5; background: var(--panel); overflow: hidden;
	border: 2px solid var(--bone); box-shadow: 12px 12px 0 var(--blood);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }

.placeholder {
	display: flex; align-items: center; justify-content: center; height: 100%;
	text-align: center; padding: 24px; background: var(--panel); color: var(--faint);
	font-family: var(--narrow); font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
}

/* ---------- Verdict badges ---------- */
.badge {
	display: inline-block; padding: 5px 10px; line-height: 1.3;
	border: 1px solid transparent;
	font-family: var(--narrow); font-weight: 700; font-size: 12px;
	letter-spacing: 1.5px; text-transform: uppercase;
}
.badge--watch { background: var(--blood); color: var(--bone-hi); }
.badge--mixed { border-color: var(--bone); color: var(--bone); }
.badge--skip  { background: var(--bone); color: var(--ink); }
.badge--stamp { font-size: 14px; letter-spacing: 2px; padding: 8px 14px; transform: rotate(-3deg); align-self: flex-start; }
.verdict-key { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* ---------- Feature (latest review) ---------- */
.feature { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; }
.feature__media {
	flex: 999 1 560px; min-width: 0; aspect-ratio: 16 / 9; position: relative; overflow: hidden;
	background: var(--panel); border: 1px solid var(--line-2);
}
.feature__media iframe,
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.feature__body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.feature__title { margin: 0; font-weight: 800; font-size: clamp(32px, 4vw, 44px); line-height: 1; letter-spacing: -.5px; text-transform: uppercase; }
.feature__title a { text-decoration: none; }
.feature__take { margin: 0; font-size: 19px; color: var(--muted); }

/* ---------- Review cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--ink); border: 1px solid var(--line); transition: border-color .15s; }
.card:hover, .card:focus-within { border-color: var(--blood); }
.card__media { display: block; aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--panel); border-bottom: 1px solid var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.05); transition: filter .2s; }
.card:hover .card__media img, .card:focus-within .card__media img { filter: none; }
.card__play {
	position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
	background: var(--blood); display: flex; align-items: center; justify-content: center;
}
.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.card__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.card__date { font-family: var(--narrow); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.card__title { margin: 0; font-weight: 800; font-size: 22px; line-height: 1.1; letter-spacing: -.2px; text-transform: uppercase; }
.card__title a { text-decoration: none; }
.card__take { margin: 0; font-size: 15px; color: var(--muted); }
.center { margin-top: 40px; display: flex; justify-content: center; }

/* ---------- Tees ---------- */
.tees { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.tee { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.tee__img { aspect-ratio: 1 / 1; background: var(--bone); overflow: hidden; }
.tee__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.tee:hover .tee__img img, .tee:focus-visible .tee__img img { transform: scale(1.04); }
.tee__name { font-weight: 700; font-size: 16px; text-transform: uppercase; }
.tee__price { margin-top: -8px; font-family: var(--narrow); font-size: 14px; color: var(--muted); }

/* ---------- Comic ---------- */
.comic { background: var(--blood); color: var(--bone-hi); }
.comic a:not(.btn) { color: var(--bone-hi); }
.comic__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 80px; }
.comic__panels { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.comic__panel { aspect-ratio: 1 / 1; background: var(--ink); border: 3px solid var(--bone-hi); overflow: hidden; }
.comic__panel:first-child { grid-column: span 2; aspect-ratio: 2 / 1; }
.comic__panel:only-child { aspect-ratio: 4 / 3; }
.comic__panel img { width: 100%; height: 100%; object-fit: cover; }
.comic__copy { flex: 1 1 420px; min-width: 0; }
.comic .kicker { color: var(--bone-hi); margin-bottom: 14px; }
.comic__title { font-size: clamp(40px, 5vw, 64px); line-height: .98; }
.comic__pitch { margin: 22px 0 0; font-size: 18px; max-width: 460px; }
.comic .btn { margin-top: 28px; }

/* ---------- Forum band ---------- */
.band { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band__copy { flex: 999 1 480px; min-width: 0; }
.band .display { font-size: 44px; }
.band p { margin: 10px 0 0; color: var(--muted); max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-3); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; padding-block: 56px 40px; }
.site-footer__mark { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--bone); text-decoration: none; }
.site-footer__mark:hover { color: var(--red); }
.site-footer__copy { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }
.nav--footer a { font-size: 14px; padding: 12px 10px; }

/* ---------- Archive / page heads ---------- */
.page-head { padding-block: 64px 40px; border-bottom: 1px solid var(--line); }
.page-head .display { font-size: clamp(48px, 7vw, 96px); line-height: .95; }
.page-head .kicker { margin-bottom: 16px; }
.archive-description { margin: 16px 0 0; color: var(--muted); max-width: 640px; }
.archive-description p { margin: 0; }
.empty { font-size: 19px; color: var(--muted); }

/* ---------- Pagination ---------- */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 48px; min-height: 48px; padding: 0 14px; text-decoration: none;
	border: 1px solid var(--line-2);
	font-family: var(--narrow); font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.pagination .page-numbers.current { background: var(--blood); border-color: var(--blood); color: var(--bone-hi); }
.pagination .page-numbers.dots { border-color: transparent; }

/* ---------- Single / page ---------- */
.entry { padding-block: 56px 72px; }
.entry__head, .entry-content, .entry__foot, .post-navigation, .comments { max-width: 900px; margin-inline: auto; }
.entry__head { margin-bottom: 40px; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 22px; }
.entry__title { margin: 0; font-weight: 800; font-size: clamp(40px, 6vw, 76px); line-height: .95; letter-spacing: -1px; text-transform: uppercase; overflow-wrap: anywhere; }
.entry__title--display { font-family: var(--display); font-weight: 400; text-transform: none; letter-spacing: .5px; }

.entry-content { font-size: 19px; }
.entry-content > * { margin-block: 0 1.1em; }
.entry-content a { color: var(--red); }
.entry-content a:hover { color: var(--bone); }
.entry-content h2, .entry-content h3, .entry-content h4 { line-height: 1.1; margin-top: 1.6em; text-transform: uppercase; font-weight: 800; }
.entry-content h2 { font-size: 34px; }
.entry-content h3 { font-size: 26px; }
.entry-content blockquote { margin: 1.5em 0; padding: 0; font-family: var(--display); font-size: 32px; line-height: 1.15; color: var(--bone); }
.entry-content blockquote cite { display: block; margin-top: 12px; font-family: var(--narrow); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; font-style: normal; color: var(--muted); }
.entry-content hr { border: 0; border-top: 1px solid var(--line-2); margin: 2em 0; }
.entry-content img { border: 1px solid var(--line-2); }
.entry-content figcaption, .wp-caption-text, .gallery-caption { margin-top: 8px; font-family: var(--narrow); font-size: 14px; color: var(--muted); }
.entry-content pre, .entry-content code { font-family: ui-monospace, Menlo, monospace; font-size: .85em; background: var(--panel); }
.entry-content pre { padding: 16px; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line-2); padding: 10px 12px; text-align: left; }

/* Video embeds: block editor and classic oEmbed */
.entry-content .wp-block-embed { margin-block: 0 1.6em; }
.entry-content .wp-block-embed-youtube .wp-block-embed__wrapper,
.entry-content > p > iframe,
.entry-content > iframe { box-shadow: 12px 12px 0 var(--blood); border: 1px solid var(--line-2); background: var(--panel); }
.entry-content iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border: 0; }

.entry__foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.entry__foot a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); text-decoration: none; font-family: var(--narrow); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.entry__foot a:hover { border-color: var(--red); }

.post-navigation { margin-top: 56px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.post-navigation a { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); text-decoration: none; height: 100%; }
.post-navigation a:hover { border-color: var(--blood); }
.post-navigation .nav-next { text-align: right; }
.post-nav__title { font-weight: 800; font-size: 20px; line-height: 1.1; text-transform: uppercase; color: var(--bone); }

/* ---------- Comments ---------- */
.comments { margin-top: 72px; }
.comments__title, .comment-reply-title { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; margin: 0 0 24px; }
.comment-reply-title small { font-family: var(--narrow); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-left: 12px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 24px; }
.comment-body { padding: 20px; border: 1px solid var(--line); margin-bottom: 12px; background: var(--ink-2); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata, .comment-awaiting-moderation { font-family: var(--narrow); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content { margin-top: 12px; }
.comment-content p { margin: 0 0 .8em; }
.reply a { font-family: var(--narrow); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); }
.bypostauthor > .comment-body { border-color: var(--blood); }
.comment-respond { margin-top: 40px; }
.comment-form { display: grid; gap: 16px; }
.comment-form p { margin: 0; }
.comment-notes, .logged-in-as { color: var(--muted); font-size: 15px; }

/* ---------- Forms ---------- */
label { display: block; margin-bottom: 6px; font-family: var(--narrow); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea, select {
	width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 0;
	background: var(--panel); color: var(--bone); border: 1px solid var(--line-2);
	font: inherit; font-size: 17px;
}
input:focus, textarea:focus, select:focus { border-color: var(--red); outline: none; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-weight: 400; font-size: 15px; }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; margin: 0; }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { margin-inline: calc(-1 * min(120px, (100vw - 900px) / 2)); max-width: none; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.wp-caption { max-width: 100%; }
.sticky .card__title::before { content: '★ '; color: var(--red); }

/* ---------- 404 ---------- */
.dead-end { padding-block: 120px; text-align: left; }
.dead-end .display { font-size: clamp(72px, 14vw, 200px); line-height: .85; }
.dead-end p { font-size: 19px; color: var(--muted); max-width: 520px; margin: 24px 0 0; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
	.section { padding-block: 56px; }
	.section-head .display { font-size: 40px; }
	.band .display { font-size: 36px; }
	.hero__inner { padding-block: 48px; gap: 36px; }
	.comic__inner { padding-block: 56px; }
	.site-footer__mark { font-size: 44px; }
	.alignwide { margin-inline: 0; }
	.comment-list .children { margin-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
