/**
 * Shane 3.0 — Quirks
 *
 * The rooms with their own personality: series volume cards, the Too Many
 * Secrets Atari room, easter eggs, the fake terminal, the 404 typewriter,
 * stats/now/tags, Deep Dives, Travel, Reading, and the Archive page.
 * Ported from Shane 1.x and remapped onto the new palette and type tokens.
 * Retro rooms keep their hard-coded retro colors on purpose.
 *
 * @package Shane3
 */

@font-face {
	font-family: "Press Start 2P";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/press-start-2p.woff2") format("woff2");
}

/* @@ series */
/* ── Series — Volume Cards ─────────────────────────────────────────────────── */

.shane-vol-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}

.shane-vol-card {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 5px;
	overflow: hidden;
	padding: 0 !important;
	gap: 0 !important;
}

.shane-vol-card p { margin: 0 !important; padding: 0 !important; }

.shane-vol-card-header {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.shane-vol-badge {
	font-family: var(--wp--preset--font-family--display);
	font-size: 32px;
	font-weight: 700;
	color: var(--wp--preset--color--accent);
	flex-shrink: 0;
	width: 52px;
	line-height: 1;
}

.shane-vol-info { flex: 1; min-width: 0; }

.shane-vol-name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 20px;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	display: block;
	margin-bottom: 5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.shane-vol-name:hover { color: var(--wp--preset--color--accent); }

.shane-vol-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--wp--preset--font-family--ui);
	font-size: 12px;
	color: var(--wp--preset--color--muted);
}

.shane-vol-pill {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 2px;
}

.shane-vol-pill--ongoing {
	background: rgba(184,83,42,0.1);
	color: var(--wp--preset--color--accent);
	border: 1px solid rgba(184,83,42,0.3);
}

.shane-vol-pill--complete {
	background: rgba(58,90,64,0.1);
	color: #3a5a40;
	border: 1px solid rgba(58,90,64,0.3);
}

.shane-vol-posts { padding: 0 24px; margin: 0 !important; }

.shane-vol-post {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	text-decoration: none;
	transition: background 150ms ease;
}

.shane-vol-post:last-child { border-bottom: none; }

.shane-vol-post-num {
	font-family: var(--wp--preset--font-family--monospace);
	font-size: 11px;
	color: var(--wp--preset--color--accent);
	flex-shrink: 0;
	width: 22px;
}

.shane-vol-post-title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	color: var(--wp--preset--color--primary);
	flex: 1;
	line-height: 1.4;
}

.shane-vol-post:hover .shane-vol-post-title {
	color: var(--wp--preset--color--accent);
}

.shane-vol-post-date {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 12px;
	color: var(--wp--preset--color--muted);
	flex-shrink: 0;
}

.shane-vol-read-all-wrap {
	margin: 0 !important;
	padding: 0 !important;
	border-top: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--base-2, var(--wp--preset--color--base-alt));
	transition: background 150ms ease;
}

.shane-vol-read-all-wrap:hover {
	background: var(--wp--preset--color--accent);
}

.shane-vol-read-all {
	display: block;
	padding: 14px 24px;
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--ui);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	letter-spacing: 0.02em;
}

.shane-vol-read-all-wrap:hover .shane-vol-read-all {
	color: #fff;
}


/* @@ secrets_eggs_terminal */
/* ── Too Many Secrets page — Adventure (Atari 2600, 1980) ─────────────────── */

html:has(.shane-secrets-page),
body:has(.shane-secrets-page) {
	background: #000 !important;
	margin-top: 0 !important;
}

.shane-secrets-page {
	background: #000;
}

.shane-secrets-room {
	position: relative;
	min-height: 100vh;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4rem 2rem;
	overflow: hidden;
	image-rendering: pixelated;
}

.shane-secrets-scanlines {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 2px,
		rgba(0, 0, 0, 0.25) 2px,
		rgba(0, 0, 0, 0.25) 4px
	);
	z-index: 1;
}

.shane-secrets-room__inner {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 600px;
	width: 100%;
}

.shane-secrets-loading {
	font-family: "Press Start 2P", monospace;
	font-size: 0.5rem;
	color: rgba(255, 255, 255, 0.2);
	letter-spacing: 0.1em;
	margin: 0 0 3rem;
	text-transform: lowercase;
}

.shane-secrets-box {
	border: 4px solid #fff;
	padding: 4px;
	margin: 0 auto 3rem;
	display: inline-block;
}

.shane-secrets-box__inner {
	border: 2px solid #fff;
	padding: 2.5rem 3rem;
}

.shane-secrets-byline {
	font-family: "Press Start 2P", monospace;
	font-size: clamp(0.5rem, 1.5vw, 0.75rem);
	color: #fff;
	margin: 0 0 1.25rem;
	letter-spacing: 0.05em;
}

.shane-secrets-name {
	font-family: "Press Start 2P", monospace;
	font-size: clamp(0.85rem, 2.5vw, 1.25rem);
	margin: 0 0 1.5rem;
	letter-spacing: 0.05em;
	line-height: 1.6;
	animation: adventure-colors 1.8s steps(1) infinite;
}

.shane-secrets-year {
	font-family: "Press Start 2P", monospace;
	font-size: clamp(0.45rem, 1.2vw, 0.6rem);
	color: rgba(255, 255, 255, 0.35);
	margin: 0;
	letter-spacing: 0.1em;
}

.shane-secrets-dot {
	width: 16px;
	height: 16px;
	background: #fff;
	margin: 0 auto 3rem;
	animation: adventure-colors 1.8s steps(1) infinite;
	image-rendering: pixelated;
}

.shane-secrets-ref {
	font-family: "Press Start 2P", monospace;
	font-size: clamp(0.4rem, 1vw, 0.55rem);
	color: rgba(255, 255, 255, 0.25);
	line-height: 2.2;
	margin: 0;
}

.shane-secrets-ref__sub {
	color: rgba(255, 255, 255, 0.35);
}

.shane-secrets-ref__note {
	color: rgba(255, 255, 255, 0.15);
}

.shane-secrets-back {
	position: fixed;
	top: 1.5rem;
	left: 1.5rem;
	font-family: "Press Start 2P", monospace;
	font-size: clamp(0.4rem, 1vw, 0.5rem);
	color: rgba(255, 255, 255, 0.35);
	text-decoration: none;
	letter-spacing: 0.08em;
	z-index: 100;
	transition: color 0.2s;
}

.shane-secrets-back:hover {
	color: #fff;
}

.shane-secrets-eggs {
	margin-top: 4rem;
	border-top: 2px solid rgba(255, 255, 255, 0.1);
	padding-top: 3rem;
	text-align: left;
}

.shane-secrets-eggs__header {
	font-family: "Press Start 2P", monospace;
	font-size: clamp(0.45rem, 1vw, 0.6rem);
	color: rgba(255, 255, 255, 0.2);
	letter-spacing: 0.1em;
	margin: 0 0 2.5rem;
	text-align: center;
}

.shane-secrets-eggs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.shane-secrets-eggs__list li {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.shane-secrets-eggs__key {
	font-family: "Press Start 2P", monospace;
	font-size: clamp(0.6rem, 1.5vw, 0.85rem);
	letter-spacing: 0.05em;
	line-height: 1.6;
	animation: adventure-colors 1.8s steps(1) infinite;
	display: block;
}

.shane-secrets-eggs__desc {
	font-family: "Press Start 2P", monospace;
	font-size: clamp(0.48rem, 1.1vw, 0.65rem);
	color: rgba(255, 255, 255, 0.35);
	line-height: 2;
	letter-spacing: 0.03em;
	display: block;
}

.shane-secrets-eggs__list li:nth-child(2) .shane-secrets-eggs__key { animation-delay: -0.3s; }
.shane-secrets-eggs__list li:nth-child(3) .shane-secrets-eggs__key { animation-delay: -0.6s; }
.shane-secrets-eggs__list li:nth-child(4) .shane-secrets-eggs__key { animation-delay: -0.9s; }
.shane-secrets-eggs__list li:nth-child(5) .shane-secrets-eggs__key { animation-delay: -1.2s; }
.shane-secrets-eggs__list li:nth-child(6) .shane-secrets-eggs__key { animation-delay: -1.5s; }
.shane-secrets-eggs__list li:nth-child(7) .shane-secrets-eggs__key { animation-delay: -1.8s; }
.shane-secrets-eggs__list li:nth-child(8) .shane-secrets-eggs__key { animation-delay: -0.45s; }
.shane-secrets-eggs__list li:nth-child(9) .shane-secrets-eggs__key { animation-delay: -0.75s; }

@keyframes adventure-colors {
	0%    { color: #BC0000; }
	16%   { color: #BCBC00; }
	33%   { color: #00BC00; }
	50%   { color: #00BCBC; }
	66%   { color: #0000BC; }
	83%   { color: #BC00BC; }
	100%  { color: #BC0000; }
}

/* ── Easter eggs ──────────────────────────────────────────────────────────── */

/* Konami — CRT overlay */
.shane-egg-crt {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	animation: shane-crt-in 0.3s ease;
}
.shane-egg-crt::before {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 2px,
		rgba(0, 255, 0, 0.03) 2px,
		rgba(0, 255, 0, 0.03) 4px
	);
	pointer-events: none;
}
.shane-egg-crt--out { animation: shane-crt-out 0.7s ease forwards; }
.shane-egg-crt__msg { text-align: center; }
.shane-egg-crt__label {
	display: block;
	font-family: var(--wp--preset--font-family--monospace);
	font-size: clamp(1.4rem, 4vw, 2.5rem);
	font-weight: 700;
	color: #22FF44;
	letter-spacing: 0.15em;
	text-shadow: 0 0 20px rgba(34, 255, 68, 0.8);
	animation: shane-crt-flicker 0.12s infinite alternate;
}
.shane-egg-crt__sub {
	display: block;
	font-family: var(--wp--preset--font-family--monospace);
	font-size: 0.85rem;
	color: rgba(34, 255, 68, 0.6);
	margin-top: 0.75rem;
	letter-spacing: 0.05em;
}
@keyframes shane-crt-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes shane-crt-out {
	from { opacity: 1; }
	to   { opacity: 0; }
}
@keyframes shane-crt-flicker {
	from { opacity: 1; }
	to   { opacity: 0.85; }
}

/* Trogdor */
.shane-egg-trogdor {
	position: fixed;
	top: 30%;
	right: -280px;
	z-index: 99998;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	pointer-events: none;
	animation: shane-trogdor-fly 4.5s ease-in-out forwards;
}
.shane-egg-trogdor__text {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.8rem;
	font-weight: 700;
	color: #FF6600;
	text-shadow: 0 0 12px rgba(255, 102, 0, 0.7), 2px 2px 0 #1a1a1a;
	letter-spacing: 0.1em;
}
@keyframes shane-trogdor-fly {
	0%   { transform: translateX(0) translateY(0); }
	20%  { transform: translateX(-30vw) translateY(-20px); }
	50%  { transform: translateX(-60vw) translateY(15px); }
	80%  { transform: translateX(-90vw) translateY(-10px); }
	100% { transform: translateX(-120vw) translateY(0); }
}

/* DELETED! */
.shane-egg-deleted {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(5rem, 18vw, 13rem);
	font-weight: 700;
	color: #CC1111;
	letter-spacing: -0.02em;
	opacity: 0;
	transform: scale(3) rotate(-8deg);
	text-shadow: 4px 4px 0 #8a0000, 0 0 40px rgba(200, 0, 0, 0.5);
	transition: opacity 0.08s, transform 0.12s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}
.shane-egg-deleted--slam {
	opacity: 1;
	transform: scale(1) rotate(-5deg);
}
.shane-egg-deleted--out {
	opacity: 0;
	transform: scale(0.95) rotate(-5deg);
	transition: opacity 0.6s ease;
}

/* Site title secret */
.shane-egg-secret {
	position: fixed;
	bottom: 2.5rem;
	left: 50%;
	transform: translateX(-50%) translateY(2rem);
	z-index: 99999;
	background: #1a1a1a;
	border: 1px solid #333;
	border-radius: 6px;
	padding: 1rem 1.5rem;
	text-align: center;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.4s ease, transform 0.4s ease;
}
.shane-egg-secret--in {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
.shane-egg-secret--out {
	opacity: 0;
	transform: translateX(-50%) translateY(2rem);
}
.shane-egg-secret__main {
	font-family: var(--wp--preset--font-family--monospace);
	font-size: 0.9rem;
	color: #22CC55;
	margin: 0 0 0.25rem;
}
.shane-egg-secret__sub {
	font-family: var(--wp--preset--font-family--monospace);
	font-size: 0.7rem;
	color: #555;
	margin: 0;
}

/* 90s context menu */
.shane-egg-ctx {
	position: fixed;
	z-index: 99999;
	background: #C0C0C0;
	border: 2px solid;
	border-color: #fff #808080 #808080 #fff;
	min-width: 220px;
	font-family: "MS Sans Serif", "Segoe UI", Arial, sans-serif;
	font-size: 0.8rem;
	box-shadow: 2px 2px 0 #000;
	user-select: none;
}
.shane-egg-ctx__item {
	padding: 4px 20px 4px 8px;
	cursor: default;
	color: #000;
	white-space: nowrap;
}
.shane-egg-ctx__item:hover {
	background: #000080;
	color: #fff;
}
.shane-egg-ctx__item--muted {
	color: #808080;
}
.shane-egg-ctx__item--muted:hover {
	color: #808080;
	background: transparent;
	cursor: not-allowed;
}
.shane-egg-ctx__sep {
	height: 1px;
	background: #808080;
	margin: 2px 4px;
	border-top: 1px solid #fff;
}

/* Visitor counter */
.shane-visitor-count {
	position: fixed;
	bottom: 0.5rem;
	right: 0.75rem;
	font-family: var(--wp--preset--font-family--monospace);
	font-size: 0.6rem;
	color: var(--shane-secret);
	margin: 0;
	pointer-events: none;
	z-index: 10;
}


/* Command palette hidden command style */
.shane-palette__item--cmd {
	font-family: var(--wp--preset--font-family--monospace);
	font-size: 0.8rem;
	color: #22CC55 !important;
	background: #0A1A0A !important;
	cursor: default;
}
.shane-palette__item--cmd:hover { background: #0A1A0A !important; }

/* ── Terminal page ────────────────────────────────────────────────────────── */

html:has(.shane-terminal-page),
body:has(.shane-terminal-page) {
	background: #060e06 !important;
	margin-top: 0 !important;
}

.shane-terminal-page {
	padding: 0 !important;
	margin: 0 !important;
}

.shane-terminal__back {
	position: fixed;
	top: 1.25rem;
	left: 1.25rem;
	font-family: var(--wp--preset--font-family--monospace);
	font-size: 0.75rem;
	color: rgba(34, 204, 85, 0.4);
	text-decoration: none;
	z-index: 100;
	transition: color 0.2s;
}

.shane-terminal__back:hover {
	color: #22CC55;
}

.shane-terminal {
	background: #060e06;
	min-height: 100vh;
	padding: 1.5rem;
	font-family: var(--wp--preset--font-family--monospace);
	font-size: 0.85rem;
	color: #22CC55;
	overflow-y: auto;
	cursor: text;
}

.shane-terminal__out {
	white-space: pre-wrap;
	line-height: 1.6;
	margin-bottom: 0.25rem;
}

.shane-terminal__history-row {
	display: flex;
	gap: 0.5em;
	line-height: 1.6;
	margin-bottom: 0.1rem;
}

.shane-terminal__prompt {
	color: #4CAF50;
	white-space: nowrap;
	flex-shrink: 0;
}

.shane-terminal__cmd { color: #ccc; }

.shane-terminal__input-row {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin-top: 0.25rem;
}

.shane-terminal__input {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	color: #ccc;
	font-family: inherit;
	font-size: inherit;
	caret-color: #22CC55;
	padding: 0;
}

/* Terminal inline color tokens */
.t-accent { color: #22CC55; }
.t-dim    { color: rgba(34, 204, 85, 0.35); }
.t-label  { color: #4CAF50; }
.t-err    { color: #FF5555; }
.t-warn   { color: #FFAA00; }

/* @@ period_compy */
/* ── Period color variants ────────────────────────────────────────────────── */

.shane-period-blue .shane-title-period {
	color: #1a1a1a !important;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* ── Compy note ───────────────────────────────────────────────────────────── */

.shane-compy-note {
	font-family: var(--wp--preset--font-family--monospace);
	font-size: 0.75rem;
	color: #22CC55;
	background: #0A1A0A;
	border: 1px solid #1E3A1E;
	border-radius: 4px;
	padding: 0.45em 0.75em 0.45em 2.2em;
	position: relative;
	margin-top: 2.5rem;
	display: block;
}

.shane-compy-note::before {
	content: ">";
	position: absolute;
	left: 0.85em;
	top: 50%;
	transform: translateY(-50%);
	color: #22CC55;
	font-weight: 700;
}

/* The link keeps the phosphor look in both modes (it was ink-on-black in light mode). */
.shane-compy-note a,
.shane-compy-note a:visited {
	color: #9DFFB8 !important;
	text-decoration: underline;
	text-decoration-color: rgba(157, 255, 184, 0.5);
	text-underline-offset: 3px;
}

.shane-compy-note a:hover,
.shane-compy-note a:focus-visible {
	color: #FFFFFF !important;
	text-decoration-color: currentColor;
}


/* @@ stats_now_tags */
/* ── Stats row ────────────────────────────────────────────────────────────── */

.shane-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border: 1px solid var(--wp--preset--color--border, #e8e0d6);
	border-radius: 8px;
	overflow: hidden;
	margin-top: var(--wp--preset--spacing--50, 2.5rem);
}

.shane-stat {
	flex: 1 1 0;
	min-width: 120px;
	padding: 1.1rem 1.4rem;
	text-align: center;
	border-right: 1px solid var(--wp--preset--color--border, #e8e0d6);
}

.shane-stat:last-child {
	border-right: none;
}

.shane-stat__value {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent, #D4612E);
	line-height: 1.1;
}

.shane-stat__label {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--wp--preset--color--secondary, #888);
	margin-top: 0.2rem;
}

/* ── Now section ──────────────────────────────────────────────────────────── */

.shane-now p {
	border-left: 2px solid var(--wp--preset--color--border, #e8e0d6);
	padding-left: 1rem;
	margin-top: 0;
	margin-bottom: 0.6rem;
}

.shane-now p strong {
	color: var(--wp--preset--color--primary);
}

/* ── Interest tags ────────────────────────────────────────────────────────── */

.shane-interest-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.shane-tag {
	display: inline-block;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8rem;
	padding: 0.3rem 0.75rem;
	border: 1px solid var(--wp--preset--color--border, #e8e0d6);
	border-radius: 999px;
	color: var(--wp--preset--color--secondary, #888);
	background: transparent;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
	cursor: default;
}

.shane-tag:hover {
	border-color: var(--wp--preset--color--accent, #D4612E);
	color: var(--wp--preset--color--accent, #D4612E);
	background: rgba(212, 97, 46, 0.05);
}


/* @@ 404 */
/* ── 404 page ────────────────────────────────────────────────────────────── */

.shane-404-hero {
	padding: 3rem 0 2rem;
}

.shane-404__glitch {
	font-size: clamp( 5rem, 18vw, 11rem );
	font-family: var( --wp--preset--font-family--monospace, monospace );
	font-weight: 700;
	color: var( --wp--preset--color--primary, #1a1209 );
	position: relative;
	display: inline-block;
	line-height: 1;
	margin-bottom: 0.5rem;
	animation: shane-404-shake 5s infinite;
}

.shane-404__glitch::before,
.shane-404__glitch::after {
	content: attr( data-text );
	position: absolute;
	inset: 0;
	width: 100%;
}

.shane-404__glitch::before {
	color: var(--wp--preset--color--accent);
	animation: shane-404-glitch-top 5s infinite;
	clip-path: polygon( 0 0, 100% 0, 100% 42%, 0 42% );
	transform: translateX( -4px );
	opacity: 0;
}

.shane-404__glitch::after {
	color: #4aa8d8;
	animation: shane-404-glitch-btm 5s infinite;
	clip-path: polygon( 0 58%, 100% 58%, 100% 100%, 0 100% );
	transform: translateX( 4px );
	opacity: 0;
}

@keyframes shane-404-shake {
	0%,  87%,  100% { transform: none; }
	88%              { transform: skew( -1.5deg ) translateX( -2px ); }
	89%              { transform: none; }
	91%              { transform: skew( 0.8deg ) translateX( 1px ); }
	92%              { transform: none; }
}

@keyframes shane-404-glitch-top {
	0%,  87%,  100% { opacity: 0; transform: translateX( -4px ); }
	88%              { opacity: 1; transform: translateX( -7px ); }
	89.5%            { opacity: 0; }
	91%              { opacity: 1; transform: translateX( -3px ); }
	92%              { opacity: 0; }
}

@keyframes shane-404-glitch-btm {
	0%,  87%,  100% { opacity: 0; transform: translateX( 4px ); }
	88%              { opacity: 1; transform: translateX( 8px ); }
	89.5%            { opacity: 0; }
	91%              { opacity: 1; transform: translateX( 3px ); }
	92%              { opacity: 0; }
}

.shane-404__tagline {
	font-family: var( --wp--preset--font-family--monospace, monospace );
	font-size: 1.1rem;
	color: var( --wp--preset--color--secondary, #888 );
	margin: 0 0 2rem;
}

.shane-404__terminal {
	background: var( --wp--preset--color--base-alt, var(--wp--preset--color--base-alt) );
	border: 1px solid var( --wp--preset--color--border, #e8e0d6 );
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	max-width: 560px;
	margin-bottom: 2.5rem;
	font-family: var( --wp--preset--font-family--monospace, monospace );
	font-size: 0.875rem;
	line-height: 1.9;
}

.shane-404__line {
	white-space: pre;
}

.shane-404__line--cmd {
	color: var( --wp--preset--color--primary, #1a1209 );
}

.shane-404__line--out {
	color: var( --wp--preset--color--secondary, #888 );
	padding-left: 0;
}

.shane-404__line--err {
	color: #c0392b;
}

.shane-404__line--ai {
	color: var(--wp--preset--color--accent);
}

@keyframes shane-404-blink {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0; }
}

.shane-404__blink {
	animation: shane-404-blink 1s step-end infinite;
}


/* @@ deepdives_travel_reading_archive */
/* ── Deep Dives page ───────────────────────────────────────────────────────── */

.shane-deep-dives-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	margin-top: 8px;
}

.shane-dd-card {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.shane-dd-card:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.shane-dd-card__image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.shane-dd-card__badge {
	display: inline-block;
	font-family: var(--wp--preset--font-family--ui);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 3px;
	padding: 2px 7px;
}

.shane-dd-card__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.25rem, 3vw, 1.6rem);
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

.shane-dd-card__title a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.shane-dd-card__title a:hover {
	color: var(--wp--preset--color--accent);
}

.shane-dd-card__meta {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 12px;
	color: var(--wp--preset--color--muted);
	display: flex;
	gap: 8px;
}

.shane-dd-card__excerpt {
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	line-height: 1.65;
	color: var(--wp--preset--color--secondary);
	margin: 0;
}

.shane-dd-card__read-more {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.shane-dd-card__read-more:hover {
	text-decoration: underline;
}

@media ( min-width: 640px ) {
	.shane-deep-dives-grid {
		grid-template-columns: 1fr 1fr;
	}
	.shane-dd-card {
		padding-bottom: 0;
		border-bottom: none;
	}
}

/* ── Travel page (page-id-8885) ─────────────────────────────────────────── */

.page-id-8885 .wp-block-post-title {
	margin-bottom: 0.25rem !important;
}

/* Section label — works before and after JS wraps into .shane-travel-col-left */
.page-id-8885 .entry-content > h2:first-child,
.page-id-8885 .shane-travel-col-left > h2:first-child {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.7rem !important;
	font-family: var(--wp--preset--font-family--ui) !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	color: var(--wp--preset--color--muted) !important;
	margin-bottom: 1.5rem !important;
	margin-top: 2rem !important;
}
.page-id-8885 .entry-content > h2:first-child::after,
.page-id-8885 .shane-travel-col-left > h2:first-child::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--wp--preset--color--border);
}

/* Timeline entries */
.page-id-8885 .entry-content > p,
.page-id-8885 .shane-travel-col-left > p {
	position: relative;
	padding: 0.6rem 0 0.6rem 2rem !important;
	margin: 0 !important;
	border-left: 2px solid var(--wp--preset--color--border);
	font-family: var(--wp--preset--font-family--ui) !important;
	font-size: 0.925rem !important;
	line-height: 1.45 !important;
	color: var(--wp--preset--color--base-3, var(--wp--preset--color--secondary)) !important;
}
.page-id-8885 .entry-content > p::before,
.page-id-8885 .shane-travel-col-left > p::before {
	content: "";
	position: absolute;
	left: -5px;
	top: 1.05rem;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px var(--wp--preset--color--base);
}
.page-id-8885 .entry-content > p:last-of-type,
.page-id-8885 .shane-travel-col-left > p:last-of-type {
	border-left-color: transparent;
}

/* Right column — Addisons Walk prose */
.page-id-8885 .shane-travel-col-right > p {
	padding: 0 !important;
	margin-bottom: 1rem !important;
	border-left: none !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 1.05rem !important;
	line-height: 1.75 !important;
	color: var(--wp--preset--color--base-3) !important;
}
.page-id-8885 .shane-travel-col-right > p::before {
	display: none !important;
}

/* Addisons Walk heading */
.page-id-8885 .shane-travel-col-right > h2 {
	font-family: var(--wp--preset--font-family--display) !important;
	font-size: 1.6rem !important;
	font-weight: 700 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	color: var(--wp--preset--color--base-3) !important;
	margin-top: 1.5rem !important;
	margin-bottom: 0.75rem !important;
}
.page-id-8885 .shane-travel-col-right > h2::after {
	display: none !important;
}

/* Image */
.page-id-8885 .shane-travel-col-right img,
.page-id-8885 .entry-content > .wp-block-group img {
	border-radius: 8px;
	width: 100%;
	height: auto;
	display: block;
}

/* ── Dual-column layout (desktop) — columns injected by travel-page.js ── */
@media ( min-width: 783px ) {
	.shane-travel-columns {
		display: flex !important;
		gap: 3.5rem !important;
		align-items: flex-start !important;
	}
	.shane-travel-col-left {
		flex: 1 1 0 !important;
		min-width: 0 !important;
	}
	.shane-travel-col-right {
		flex: 1 1 0 !important;
		min-width: 0 !important;
	}
}

/* ── Reading page (page-id-8892) ─────────────────────────────────────────── */

.page-id-8892 .wp-block-post-title {
	margin-bottom: 0.25rem !important;
}

/* Section headings */
.page-id-8892 .entry-content > h2 {
	font-family: var(--wp--preset--font-family--display) !important;
	font-size: 1.3rem !important;
	font-weight: 700 !important;
	color: var(--wp--preset--color--base-3) !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	margin-top: 2.5rem !important;
	margin-bottom: 0.75rem !important;
	padding-bottom: 0.5rem !important;
	border-bottom: 2px solid var(--wp--preset--color--accent) !important;
}

/* Lead paragraph */
.page-id-8892 .entry-content > p {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 1.05rem !important;
	line-height: 1.75 !important;
	color: var(--wp--preset--color--base-3) !important;
}

/* Book list items */
.page-id-8892 .entry-content .wp-block-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 1.5rem !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
}
.page-id-8892 .entry-content .wp-block-list li {
	position: relative;
	padding: 0.7rem 0.75rem 0.7rem 2rem !important;
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--ui) !important;
	font-size: 0.9rem !important;
	line-height: 1.45 !important;
	border-bottom: 1px solid var(--wp--preset--color--border) !important;
	color: var(--wp--preset--color--base-3) !important;
	transition: background 120ms ease !important;
}
.page-id-8892 .entry-content .wp-block-list li:first-child {
	border-top: 1px solid var(--wp--preset--color--border) !important;
}
.page-id-8892 .entry-content .wp-block-list li:hover {
	background: var(--wp--preset--color--base-2, var(--wp--preset--color--base-alt)) !important;
}
.page-id-8892 .entry-content .wp-block-list li::before {
	content: "▸";
	position: absolute;
	left: 0.6rem;
	top: 0.75rem;
	font-size: 0.65rem;
	color: var(--wp--preset--color--accent);
	line-height: 1.45;
}
.page-id-8892 .entry-content .wp-block-list li a {
	font-weight: 600 !important;
	color: var(--wp--preset--color--base-3) !important;
	text-decoration: none !important;
}
.page-id-8892 .entry-content .wp-block-list li a:hover {
	color: var(--wp--preset--color--accent) !important;
	text-decoration: underline !important;
}

/* Image */
.page-id-8892 .entry-content > figure img {
	border-radius: 8px;
}

/* Dark mode adjustments */
html[data-theme="dark"] .page-id-8885 .entry-content > p,
html[data-theme="dark"] .page-id-8892 .entry-content .wp-block-list li {
	color: rgba(250, 248, 245, 0.75) !important;
}
html[data-theme="dark"] .page-id-8892 .entry-content .wp-block-list li:hover {
	background: rgba(255,255,255,0.04) !important;
}
html[data-theme="dark"] .page-id-8885 .entry-content > .wp-block-group ~ p,
html[data-theme="dark"] .page-id-8885 .entry-content > .wp-block-group ~ h2 ~ p {
	color: rgba(250, 248, 245, 0.75) !important;
}

/* ── Archive page — quadrant layout ─────────────────────────────────────────── */

.shane-archive-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto auto;
	border: 1px solid var(--wp--preset--color--border);
	max-width: 1060px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.shane-archive-quadrant {
	padding: 2.5rem 2rem 3rem;
	scroll-margin-top: 5rem;
	min-width: 0;
}

/* Search spans full width across both columns */
.shane-archive-quadrant--full {
	grid-column: 1 / -1;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

/* Recent (left) gets right border; Everything (right) gets nothing */
#recent.shane-archive-quadrant {
	border-right: 1px solid var(--wp--preset--color--border);
}

/* Quadrant header */
.shane-archive-qheader {
	margin-bottom: 1.75rem;
}

.shane-archive-qheader__eyebrow {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin: 0 0 10px;
}

.shane-archive-qheader__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: clamp(22px, 3vw, 30px);
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--wp--preset--color--primary);
	margin: 0 0 14px;
}

.shane-archive-qheader__rule {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--accent);
}

.shane-archive-qheader__rule::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--wp--preset--color--border);
}

/* Post list */
.shane-archive-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.shane-archive-list__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.shane-archive-list__item:last-child {
	border-bottom: none;
}

.shane-archive-list__title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9375rem;
	font-weight: 400;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	flex: 1;
	transition: color 0.15s;
}

.shane-archive-list__title:hover {
	color: var(--wp--preset--color--accent);
}

.shane-archive-list__meta {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.7rem;
	color: var(--wp--preset--color--muted);
	white-space: nowrap;
	flex-shrink: 0;
}

.shane-archive-list__sep {
	margin: 0 0.3rem;
	opacity: 0.4;
}

.shane-archive-list__views {
	color: var(--wp--preset--color--accent);
}

/* Year accordion */
.shane-archive-year {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.shane-archive-year__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem 0;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--wp--preset--color--primary);
	text-align: left;
	transition: opacity 0.15s;
}

.shane-archive-year__toggle:hover {
	opacity: 0.8;
}

.shane-archive-year__label {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

.shane-archive-year__count {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--base-alt, var(--wp--preset--color--base-alt));
	padding: 2px 7px;
}

.shane-archive-year__icon {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: var(--wp--preset--color--accent);
	color: #fff;
	font-family: var(--wp--preset--font-family--ui);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
	transition: background 0.15s;
}

.shane-archive-year.is-open .shane-archive-year__icon {
	background: var(--wp--preset--color--primary);
}

.shane-archive-year.is-year-hidden {
	display: none;
}

.shane-archive-years__more {
	width: 100%;
	margin-top: 0.75rem;
	padding: 0.6rem 1rem;
	background: none;
	border: 1px solid var(--wp--preset--color--border);
	cursor: pointer;
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	transition: border-color 0.15s, color 0.15s;
}

.shane-archive-years__more:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

.shane-archive-year__posts {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.35s ease;
}

.shane-archive-year__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.45rem 0 0.45rem 0.5rem;
	border-top: 1px solid var(--wp--preset--color--border);
}

.shane-archive-year__item .shane-archive-list__title {
	font-size: 0.875rem;
}

/* Search */
.shane-archive-search__input {
	width: 100%;
	padding: 0.7rem 0.875rem;
	font-family: var(--wp--preset--font-family--body);
	font-style: italic;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--base-alt, var(--wp--preset--color--base-alt));
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	outline: none;
	transition: border-color 0.15s;
	box-sizing: border-box;
}

.shane-archive-search__input:focus {
	border-color: var(--wp--preset--color--accent);
}

.shane-archive-search__results-wrap {
	margin-top: 0.875rem;
}

.shane-archive-search__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.shane-archive-search__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.shane-archive-search__item:last-child {
	border-bottom: none;
}

.shane-archive-search__status {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.8rem;
	font-style: italic;
	color: var(--wp--preset--color--muted);
	margin: 0.5rem 0 0;
}

/* Suggested ranking */
.shane-archive-suggested__item {
	align-items: flex-start;
}

.shane-archive-suggested__rank {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-size: 1.125rem;
	color: var(--wp--preset--color--accent);
	width: 1.5rem;
	flex-shrink: 0;
	line-height: 1.4;
}

.shane-archive-suggested__body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	flex: 1;
}

.shane-archive-suggested__body .shane-archive-list__meta {
	white-space: normal;
}

/* Mobile: stack to single column */
@media (max-width: 768px) {
	.shane-archive-grid {
		grid-template-columns: 1fr;
	}

	.shane-archive-quadrant--full {
		grid-column: 1;
	}

	#recent.shane-archive-quadrant {
		border-right: none;
		border-bottom: 1px solid var(--wp--preset--color--border);
	}

	.shane-archive-quadrant {
		padding: 2rem 1.5rem 2.5rem;
	}
}

/* Dark mode */
html[data-theme="dark"] .shane-archive-search__input {
	background: var(--wp--preset--color--base-alt, #241E19);
}

html[data-theme="dark"] .shane-archive-year__count {
	background: var(--wp--preset--color--base-alt, #241E19);
}

';
}


/* @@ doodle mode (Konami) ─────────────────────────────────────────────── */

.shane-doodle-mode .wp-site-blocks {
	filter: url(#shane-sketch);
}

.shane-egg-doodle {
	position: fixed;
	left: 50%;
	top: 22vh;
	z-index: 100000;
	transform: translateX(-50%) rotate(-2deg);
	padding: 1.1rem 1.6rem;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	border: 2.5px solid currentColor;
	border-radius: 14px 18px 12px 20px;
	box-shadow: 6px 6px 0 var(--wp--preset--color--blush);
	text-align: center;
	animation: shane-doodle-pop 0.45s cubic-bezier(.2,1.6,.4,1) both;
}

.shane-egg-doodle__main {
	margin: 0;
	font-family: var(--wp--preset--font-family--script);
	font-size: 2.4rem;
	line-height: 1;
	color: var(--wp--preset--color--accent);
}

.shane-egg-doodle__sub {
	margin: 0.4rem 0 0;
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.85rem;
}

.shane-egg-doodle--out {
	opacity: 0;
	transition: opacity 0.6s ease;
}

.shane-egg-chicken {
	position: fixed;
	bottom: 12px;
	left: -320px;
	z-index: 100000;
	display: flex;
	align-items: flex-end;
	gap: 18px;
	color: var(--wp--preset--color--primary);
	pointer-events: none;
	animation: shane-chicken-strut 7s linear forwards;
}

.shane-egg-chicken svg {
	animation: shane-chicken-bob 0.35s ease-in-out infinite alternate;
}

.shane-egg-chicken svg:nth-child(2) { animation-delay: 0.1s; }
.shane-egg-chicken svg:nth-child(3) { animation-delay: 0.2s; }

@keyframes shane-doodle-pop {
	from { transform: translateX(-50%) rotate(-8deg) scale(0.6); opacity: 0; }
}

@keyframes shane-chicken-strut {
	to { left: calc(100vw + 40px); }
}

@keyframes shane-chicken-bob {
	to { transform: translateY(-6px) rotate(-3deg); }
}

/* @@ reduced motion ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.shane-doodle-mode .wp-site-blocks { filter: none; }
	.shane-egg-chicken { animation-duration: 0.01s; display: none; }
	.shane-egg-doodle,
	.shane-egg-chicken svg,
	.shane-egg-trogdor,
	.shane-egg-crt,
	.shane-egg-deleted,
	.shane-404__glitch::before,
	.shane-404__glitch::after,
	.shane-404__blink {
		animation: none !important;
	}
}
