/* ==========================================================================
   Press X — design tokens
   Dark editorial base with a two-color signal (teal/magenta), a monospace
   register for meta/data (readout, not decoration — this is a gaming outlet),
   and one recurring accent motif: a corner-bracket frame on hero imagery.
   ========================================================================== */

:root {
	--ink: #0b0e14;
	--panel: #12161f;
	--panel-2: #171d2b;
	--paper: #eef1f6;
	--muted: #8a93a6;
	--line: rgba(255, 255, 255, 0.09);
	--teal: var(--pressx-teal, #2fe6c4);
	--magenta: var(--pressx-magenta, #ff3d7a);

	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;

	--wrap: 1280px;
	--wrap-narrow: 760px;
	--radius: 3px;
}

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

body {
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
}

::selection {
	background: var(--teal);
	color: var(--ink);
}

:focus-visible {
	outline: 2px solid var(--teal);
	outline-offset: 2px;
}

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

.wrap--narrow {
	max-width: var(--wrap-narrow);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999;
	padding: 12px 20px;
	background: var(--teal);
	color: var(--ink);
	font-weight: 700;
}

.skip-link:focus {
	left: 24px;
	top: 24px;
}

@media (min-width: 782px) {
	.wrap { padding-inline: 40px; }
}

/* ==========================================================================
   Type
   ========================================================================== */

h1, h2, h3, h4 {
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.15;
	margin: 0 0 0.5em;
}

p { margin: 0 0 1.2em; }

.meta,
.tag,
.card__title a::after {
	font-family: var(--font-mono);
}

.meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--muted);
	flex-wrap: wrap;
}

.meta__sep { opacity: 0.5; }

/* ==========================================================================
   Tags
   ========================================================================== */

.tag {
	display: inline-flex;
	align-items: center;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var(--teal);
	border-left: 2px solid var(--teal);
	padding-left: 8px;
	margin-bottom: 10px;
}

.tag--accent { color: var(--magenta); border-color: var(--magenta); }
.tag--small { font-size: 11px; margin-bottom: 6px; }

.tag-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	margin: 24px 0;
}

.tag-list a {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--muted);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 4px 12px;
}

.tag-list a:hover { border-color: var(--teal); color: var(--teal); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(11, 14, 20, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.site-header__row {
	display: flex;
	align-items: center;
	gap: 32px;
	height: 76px;
}

.site-branding img { max-height: 44px; width: auto; }

.site-branding__wordmark {
	font-weight: 800;
	font-size: 20px;
	letter-spacing: -0.01em;
}

.nav { flex: 1; }

.nav__list {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav__list a {
	font-size: 15px;
	font-weight: 600;
	color: var(--paper);
	position: relative;
	padding: 6px 0;
}

.nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--teal);
	transition: width 0.15s ease;
}

.nav__list a:hover::after,
.nav__list li.current-menu-item a::after {
	width: 100%;
}

.site-header__tools {
	display: flex;
	align-items: center;
	gap: 18px;
}

.search-form {
	display: flex;
	align-items: center;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 6px 6px 6px 16px;
}

.search-form input {
	background: none;
	border: none;
	color: var(--paper);
	font-size: 14px;
	width: 160px;
}

.search-form input:focus { outline: none; }

.search-form button {
	background: none;
	border: none;
	color: var(--muted);
	display: flex;
	padding: 6px;
	cursor: pointer;
}

.search-form button:hover { color: var(--teal); }

.social-links {
	display: flex;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.social-links a {
	display: flex;
	color: var(--muted);
}

.social-links a:hover { color: var(--teal); }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	background: none;
	border: none;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	height: 2px;
	background: var(--paper);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav {
		position: absolute;
		top: 76px;
		left: 0;
		right: 0;
		background: var(--panel);
		border-bottom: 1px solid var(--line);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.2s ease;
	}
	.nav__list.is-open,
	.nav#primary-nav.is-open { max-height: 480px; }
	.nav__list {
		flex-direction: column;
		gap: 0;
		padding: 8px 24px 16px;
	}
	.nav__list a { display: block; padding: 12px 0; }
	.search-form { display: none; }
	.nav-toggle { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	padding-block: 40px;
}

@media (min-width: 1000px) {
	.hero {
		grid-template-columns: 1.7fr 1fr;
	}
}

.feature__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--panel);
}

.feature__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.feature__media:hover img { transform: scale(1.03); }

.feature__placeholder,
.card__media-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--panel), var(--panel-2));
}

.card__glyph {
	font-family: var(--font-mono);
	font-weight: 800;
	font-size: 40px;
	color: var(--line);
}

/* Corner-bracket frame — the one recurring signature motif */
.feature__frame {
	position: absolute;
	inset: 12px;
	pointer-events: none;
}

.feature__frame span {
	position: absolute;
	width: 22px;
	height: 22px;
	border: 2px solid var(--teal);
	opacity: 0.85;
}

.feature__frame span:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; }
.feature__frame span:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; }
.feature__frame span:nth-child(3) { bottom: 0; left: 0; border-right: none; border-top: none; }
.feature__frame span:nth-child(4) { bottom: 0; right: 0; border-left: none; border-top: none; }

.feature__body { padding-top: 20px; }

.feature__title {
	font-size: clamp(28px, 4vw, 42px);
}

.feature__title a:hover { color: var(--teal); }

.feature__excerpt {
	color: var(--muted);
	font-size: 17px;
	max-width: 60ch;
}

.hero__rail {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.rail-item {
	display: flex;
	gap: 14px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
}

.rail-item:last-child { border-bottom: none; padding-bottom: 0; }

.rail-item__media {
	flex: none;
	width: 84px;
	height: 84px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--panel);
}

.rail-item__media img { width: 100%; height: 100%; object-fit: cover; }

.card__media-placeholder--small .card__glyph { font-size: 22px; }

.rail-item__title {
	font-size: 16px;
	margin: 2px 0 6px;
}

.rail-item__title a:hover { color: var(--teal); }

/* ==========================================================================
   Category rail
   ========================================================================== */

.cat-rail {
	padding-bottom: 32px;
}

.cat-rail__list {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.cat-rail__list::-webkit-scrollbar { display: none; }

.cat-rail__list a {
	white-space: nowrap;
	font-family: var(--font-mono);
	font-size: 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 8px 16px;
	display: block;
}

.cat-rail__list a:hover {
	border-color: var(--teal);
	color: var(--teal);
}

/* ==========================================================================
   Sections / card grid
   ========================================================================== */

.section { padding-block: 36px; border-top: 1px solid var(--line); }

.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 20px;
}

.section__title { font-size: 22px; margin: 0; }

.section__more {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--muted);
	border-bottom: 1px solid transparent;
}

.section__more:hover { color: var(--teal); border-color: var(--teal); }

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

.card__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--panel);
	margin-bottom: 14px;
}

.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }

.card:hover .card__media img { transform: scale(1.05); }

.card__title { font-size: 18px; margin: 0 0 8px; }
.card__title a:hover { color: var(--teal); }

.card--compact .card__title { font-size: 16px; }

/* ==========================================================================
   Single post / page
   ========================================================================== */

.post__header { padding-top: 48px; text-align: left; }

.post__title { font-size: clamp(30px, 5vw, 48px); }

.meta--mono { font-family: var(--font-mono); margin-bottom: 8px; }

.post__media {
	position: relative;
	margin: 32px auto;
	max-width: 1040px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--panel);
}

.post__media img { width: 100%; height: auto; }

.post__content {
	font-size: 18px;
	line-height: 1.75;
	color: var(--paper);
	max-width: 70ch;
}

.post__content h2, .post__content h3 { margin-top: 1.6em; }
.post__content p, .post__content ul, .post__content ol { margin-bottom: 1.4em; }
.post__content a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.post__content img { border-radius: var(--radius); }
.post__content blockquote {
	border-left: 3px solid var(--magenta);
	margin: 1.6em 0;
	padding-left: 20px;
	color: var(--muted);
	font-style: italic;
}

.post__footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

.author-box {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--panel);
	border-radius: var(--radius);
	padding: 20px;
}

.author-box img { border-radius: 50%; flex: none; }
.author-box__name { font-weight: 700; display: block; margin-bottom: 4px; }
.author-box__bio { color: var(--muted); font-size: 14px; margin: 0; }

/* ==========================================================================
   Archive header / empty states
   ========================================================================== */

.archive-wrap {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	padding-block: 40px;
}

@media (min-width: 1000px) {
	.archive-wrap { grid-template-columns: 1fr 300px; }
}

.archive-header { margin-bottom: 32px; }
.archive-header__title { font-size: clamp(28px, 4vw, 38px); }
.archive-header__desc { color: var(--muted); max-width: 60ch; }

.empty-state {
	text-align: center;
	padding: 60px 20px;
	color: var(--muted);
}

.empty-state--404 { padding-top: 100px; }

.empty-state__glyph {
	display: inline-block;
	font-family: var(--font-mono);
	font-weight: 800;
	font-size: 56px;
	color: var(--teal);
	margin-bottom: 16px;
}

.button {
	display: inline-block;
	margin-top: 20px;
	background: var(--teal);
	color: var(--ink);
	font-weight: 700;
	padding: 12px 28px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
}

.button:hover { background: var(--magenta); color: var(--ink); }

/* ==========================================================================
   Sidebar / widgets
   ========================================================================== */

.widget { margin-bottom: 36px; }
.widget__title {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); max-width: 70ch; }
.comments__title { font-size: 22px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-form input,
.comment-form textarea {
	width: 100%;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--paper);
	padding: 10px 14px;
	margin-bottom: 14px;
	font-family: var(--font-body);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background: var(--panel);
	border-top: 1px solid var(--line);
	margin-top: 40px;
	padding-block: 48px 24px;
}

.site-footer__top {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	padding-bottom: 32px;
}

@media (min-width: 900px) {
	.site-footer__top { grid-template-columns: 1.2fr 2fr; }
}

.site-footer__tagline { color: var(--muted); max-width: 40ch; margin: 12px 0 16px; }
.site-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
}

.nav__list--footer { flex-wrap: wrap; gap: 20px; }
.nav__list--footer a { font-size: 13px; font-weight: 500; color: var(--muted); }
.nav__list--footer a:hover { color: var(--teal); }

/* ==========================================================================
   Latest episode (YouTube)
   ========================================================================== */

.latest-episode__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--panel);
}

.latest-episode__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.latest-episode__title {
	font-size: 18px;
	margin-top: 16px;
}

/* ==========================================================================
   Live Twitch banner
   ========================================================================== */

.twitch-live {
	padding-top: 32px;
	padding-bottom: 8px;
	text-align: center;
}

.twitch-live__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}

.button--twitch {
	background: #9146ff;
	color: #fff;
}

.button--twitch:hover {
	background: #772ce8;
	color: #fff;
}

.twitch-live__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	max-width: 1100px;
	margin-inline: auto;
	text-align: left;
}

@media (min-width: 900px) {
	.twitch-live__layout {
		grid-template-columns: 3fr 1fr;
	}
}

.twitch-live__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--panel);
}

.twitch-live__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.twitch-live__chat {
	position: relative;
	width: 100%;
	height: 420px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--panel);
}

@media (min-width: 900px) {
	.twitch-live__chat { height: auto; }
}

.twitch-live__chat iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination { margin-top: 40px; }
.pagination__list {
	display: flex;
	gap: 8px;
	list-style: none;
	padding: 0;
	flex-wrap: wrap;
}

.pagination__list a,
.pagination__list span {
	display: block;
	font-family: var(--font-mono);
	font-size: 13px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--muted);
}

.pagination__list .current { border-color: var(--teal); color: var(--teal); }
.pagination__list a:hover { border-color: var(--teal); color: var(--teal); }
