/* ==========================================================================
   1minecraft.net skin — auto dark/light via light-dark()
   Display: Russo One · Body: Sora · Pixel accent: Silkscreen
   ========================================================================== */

/* ---- Fonts (self-hosted) ---- */
@font-face {
	font-family: 'Russo One';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/russo-one-v18-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
	font-family: 'Sora';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/sora-v17-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
	font-family: 'Sora';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/sora-v17-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
	font-family: 'Sora';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/sora-v17-latin_latin-ext-700.woff2') format('woff2');
}
@font-face {
	font-family: 'Silkscreen';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/silkscreen-v6-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
	font-family: 'Silkscreen';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/silkscreen-v6-latin_latin-ext-700.woff2') format('woff2');
}

/* ---- Tokens ---- */
:root {
	color-scheme: light dark;

	/* fallback (light) for browsers without light-dark() */
	--mc-bg: #f3f5f0;
	--mc-surface: #ffffff;
	--mc-surface-2: #e9eee5;
	--mc-border: #d7dfd1;
	--mc-text: #1d251a;
	--mc-muted: #5d6b57;
	--mc-green: #3a8a2e;
	--mc-green-bright: #4caf3c;
	--mc-green-deep: #2d6e23;
	--mc-gold: #c8930a;
	--mc-shadow: 0 1px 2px rgba(29, 37, 26, .06), 0 8px 24px rgba(29, 37, 26, .07);
}
:root {
	--mc-bg: light-dark(#f3f5f0, #11150f);
	--mc-surface: light-dark(#ffffff, #191f16);
	--mc-surface-2: light-dark(#e9eee5, #20281c);
	--mc-border: light-dark(#d7dfd1, #2c3727);
	--mc-text: light-dark(#1d251a, #e7ede2);
	--mc-muted: light-dark(#5d6b57, #9cab93);
	--mc-green: light-dark(#3a8a2e, #6cc644);
	--mc-green-bright: light-dark(#4caf3c, #82d75c);
	--mc-green-deep: light-dark(#2d6e23, #3f8a2c);
	--mc-gold: light-dark(#c8930a, #f0c33c);
	--mc-shadow-c1: light-dark(rgba(29, 37, 26, .06), rgba(0, 0, 0, .4));
	--mc-shadow-c2: light-dark(rgba(29, 37, 26, .07), rgba(0, 0, 0, .35));
	--mc-shadow: 0 1px 2px var(--mc-shadow-c1), 0 8px 24px var(--mc-shadow-c2);

	/* Re-point Blocksy's own tokens at ours */
	--theme-palette-color-1: var(--mc-green);
	--theme-palette-color-2: var(--mc-green-deep);
	--theme-palette-color-3: var(--mc-text);
	--theme-palette-color-4: var(--mc-text);
	--theme-palette-color-5: var(--mc-border);
	--theme-palette-color-6: var(--mc-surface-2);
	--theme-palette-color-7: var(--mc-bg);
	--theme-palette-color-8: var(--mc-surface);
	--theme-text-color: var(--mc-text);
	--theme-headings-color: var(--mc-text);
	--theme-link-initial-color: var(--mc-green);
	--theme-link-hover-color: var(--mc-green-bright);
	--theme-border-color: var(--mc-border);
	--theme-button-background-initial-color: var(--mc-green);
	--theme-button-background-hover-color: var(--mc-green-deep);
	--theme-font-family: 'Sora', sans-serif;
}

/* ---- Base ---- */
body {
	background-color: var(--mc-bg);
	font-family: 'Sora', sans-serif;
}
h1, h2, h3, .entry-title, .site-title {
	font-family: 'Russo One', 'Sora', sans-serif;
	font-weight: 400;
	letter-spacing: .01em;
}
::selection {
	background: var(--mc-green);
	color: #fff;
}

/* ---- Header: surface + signature grass edge ---- */
header.ct-header [data-row*="middle"],
header#header > div {
	background-color: var(--mc-surface);
}
header.ct-header {
	box-shadow: 0 1px 0 var(--mc-border);
}
header.ct-header::after {
	content: '';
	display: block;
	height: 4px;
	background: repeating-linear-gradient(
		90deg,
		var(--mc-green-bright) 0 10px,
		var(--mc-green) 10px 20px,
		var(--mc-green-deep) 20px 30px
	);
}
.ct-header .ct-menu-link {
	font-weight: 600;
	font-size: 14px;
}

/* ---- Entry cards (archives + front page share these classes) ---- */
.entry-card.card-content,
[data-cards="boxed"] .entry-card {
	background: var(--mc-surface);
	border: 1px solid var(--mc-border);
	border-radius: 6px;
	box-shadow: var(--mc-shadow);
	overflow: hidden;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.entry-card.card-content:hover {
	transform: translateY(-4px);
	border-color: var(--mc-green);
	box-shadow: 0 0 0 1px var(--mc-green), var(--mc-shadow);
}
.entry-card .entry-title {
	font-size: 17px;
	line-height: 1.35;
}
.entry-card .entry-title a {
	color: var(--mc-text);
}
.entry-card .entry-title a:hover {
	color: var(--mc-green);
}
.entry-card .entry-meta {
	font-family: 'Silkscreen', monospace;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--mc-muted);
}

/* ---- Minecraft 3D download buttons (Simple Download Monitor) ---- */
.sdm_download_item {
	background: var(--mc-surface);
	border: 1px solid var(--mc-border);
	border-radius: 6px;
	padding: 1.2em 1.4em;
	box-shadow: var(--mc-shadow);
}
a.sdm_download,
a.sdm_download.green {
	display: inline-block;
	background: linear-gradient(180deg, var(--mc-green-bright), var(--mc-green)) !important;
	color: #fff !important;
	font-family: 'Russo One', sans-serif;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: .04em;
	text-decoration: none;
	padding: 14px 30px 12px;
	border: none;
	border-radius: 4px;
	box-shadow: 0 5px 0 var(--mc-green-deep), 0 8px 16px rgba(0, 0, 0, .25);
	transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}
a.sdm_download:hover {
	filter: brightness(1.08);
	color: #fff !important;
}
a.sdm_download:active {
	transform: translateY(4px);
	box-shadow: 0 1px 0 var(--mc-green-deep), 0 2px 6px rgba(0, 0, 0, .25);
}
.sdm_download_size,
.sdm_download_size_label {
	font-family: 'Silkscreen', monospace;
	font-size: 11px;
	color: var(--mc-muted);
}

/* ---- Front page ---- */
.mc-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(1100px 420px at 75% -10%, light-dark(rgba(76, 175, 60, .18), rgba(108, 198, 68, .14)), transparent 65%),
		conic-gradient(from 90deg at 1px 1px, transparent 90deg, light-dark(rgba(58, 138, 46, .055), rgba(108, 198, 68, .05)) 0) 0 0 / 28px 28px,
		var(--mc-bg);
	padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 110px);
	text-align: center;
}
.mc-hero::after {
	/* pixel grass strip along the hero bottom */
	content: '';
	position: absolute;
	inset: auto 0 0 0;
	height: 10px;
	background:
		repeating-linear-gradient(90deg,
			var(--mc-green-bright) 0 14px,
			var(--mc-green) 14px 26px,
			var(--mc-green-deep) 26px 34px,
			var(--mc-green) 34px 48px);
}
.mc-hero-inner {
	max-width: 780px;
	margin: 0 auto;
	padding: 0 24px;
}
.mc-kicker {
	font-family: 'Silkscreen', monospace;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mc-green);
	display: inline-block;
	border: 1px solid var(--mc-border);
	background: var(--mc-surface);
	border-radius: 3px;
	padding: 6px 14px 4px;
	margin-bottom: 22px;
}
.mc-hero h1 {
	font-size: clamp(30px, 5vw, 52px);
	line-height: 1.12;
	margin: 0 0 14px;
	color: var(--mc-text);
}
.mc-hero h1 em {
	font-style: normal;
	color: var(--mc-green);
	text-shadow: 3px 3px 0 light-dark(rgba(58, 138, 46, .18), rgba(108, 198, 68, .22));
}
.mc-hero p {
	font-size: clamp(15px, 2vw, 18px);
	color: var(--mc-muted);
	margin: 0 auto 30px;
	max-width: 600px;
}
.mc-search {
	display: flex;
	max-width: 560px;
	margin: 0 auto 26px;
	border: 2px solid var(--mc-border);
	border-radius: 6px;
	background: var(--mc-surface);
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.mc-search:focus-within {
	border-color: var(--mc-green);
	box-shadow: 0 0 0 4px light-dark(rgba(58, 138, 46, .15), rgba(108, 198, 68, .18));
}
.mc-search input[type="search"] {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	color: var(--mc-text);
	font: 15px 'Sora', sans-serif;
	padding: 15px 18px;
}
.mc-search button {
	border: none;
	cursor: pointer;
	background: var(--mc-green);
	color: #fff;
	font-family: 'Russo One', sans-serif;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .05em;
	padding: 0 26px;
	transition: background .15s ease;
}
.mc-search button:hover {
	background: var(--mc-green-deep);
}
.mc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.mc-chips a {
	font-family: 'Silkscreen', monospace;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--mc-muted);
	background: var(--mc-surface);
	border: 1px solid var(--mc-border);
	border-radius: 3px;
	padding: 6px 12px 4px;
	text-decoration: none;
	transition: all .15s ease;
}
.mc-chips a:hover {
	color: #fff;
	background: var(--mc-green);
	border-color: var(--mc-green);
}

/* sections */
.mc-section {
	max-width: var(--theme-normal-container-max-width, 1290px);
	margin: 0 auto;
	padding: 30px 24px 10px;
}
.mc-section:first-of-type {
	padding-top: 56px;
}
.mc-section:last-of-type {
	padding-bottom: 70px;
}
.mc-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
	border-bottom: 2px solid var(--mc-border);
	padding-bottom: 12px;
	position: relative;
}
.mc-section-head::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 64px;
	height: 2px;
	background: var(--mc-green);
}
.mc-section-head h2 {
	font-size: clamp(20px, 2.6vw, 26px);
	margin: 0;
	color: var(--mc-text);
}
.mc-section-head h2::before {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 12px;
	background: var(--mc-green);
	box-shadow: 4px -4px 0 light-dark(rgba(58, 138, 46, .45), rgba(108, 198, 68, .5));
}
.mc-viewall {
	font-family: 'Silkscreen', monospace;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .06em;
	white-space: nowrap;
	color: var(--mc-green);
	text-decoration: none;
}
.mc-viewall:hover {
	color: var(--mc-gold);
}
.mc-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
@media (max-width: 999px) {
	.mc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 539px) {
	.mc-grid { grid-template-columns: 1fr; }
}
.mc-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
}
.mc-card .mc-thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

/* Generated pixel tiles (the site has no post images) — color-coded per category */
.mc-tile {
	--tile: #4caf3c;
	--tile-deep: #2d6e23;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		linear-gradient(160deg, rgba(255, 255, 255, .14), transparent 45%, rgba(0, 0, 0, .22)),
		conic-gradient(from 90deg at 2px 2px, transparent 90deg, rgba(0, 0, 0, .12) 0) 0 0 / 22px 22px,
		linear-gradient(180deg, var(--tile), var(--tile-deep));
	transition: filter .2s ease;
}
.mc-tile::after {
	/* darker "dirt" strip along the tile bottom, grass-block style */
	content: '';
	position: absolute;
	inset: auto 0 0 0;
	height: 18%;
	background:
		conic-gradient(from 90deg at 2px 2px, transparent 90deg, rgba(0, 0, 0, .18) 0) 0 0 / 11px 11px,
		var(--tile-deep);
	opacity: .85;
}
.mc-tile-label {
	font-family: 'Silkscreen', monospace;
	font-size: clamp(18px, 2.2vw, 26px);
	letter-spacing: .1em;
	color: rgba(255, 255, 255, .92);
	text-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
	z-index: 1;
}
.mc-card:hover .mc-tile {
	filter: brightness(1.1);
}
/* slight per-card rhythm so a section doesn't look like one flat block */
.mc-grid article:nth-child(2n) .mc-tile { filter: saturate(.88) brightness(.96); }
.mc-grid article:nth-child(3n) .mc-tile { filter: saturate(1.1) brightness(1.04); }
.mc-grid article:nth-child(2n):hover .mc-tile,
.mc-grid article:nth-child(3n):hover .mc-tile { filter: brightness(1.1); }

.mc-tile--grass    { --tile: #4caf3c; --tile-deep: #2d6e23; }
.mc-tile--diamond  { --tile: #35b8b0; --tile-deep: #1f7a74; }
.mc-tile--gold     { --tile: #e0a82e; --tile-deep: #9c7113; }
.mc-tile--amethyst { --tile: #9d6cd8; --tile-deep: #65409a; }
.mc-tile--lime     { --tile: #8bc34a; --tile-deep: #5a8a26; }
.mc-tile--redstone { --tile: #d8493e; --tile-deep: #93251d; }
.mc-tile--lapis    { --tile: #3f6fd8; --tile-deep: #24459a; }
.mc-card-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.mc-card .entry-title {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mc-card .entry-title a {
	color: var(--mc-text);
	text-decoration: none;
}
.mc-card:hover .entry-title a {
	color: var(--mc-green);
}
.mc-card time {
	font-family: 'Silkscreen', monospace;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--mc-muted);
	margin-top: auto;
}

/* ---- Footer ---- */
.ct-footer {
	background: var(--mc-surface);
	border-top: 1px solid var(--mc-border);
}
.mc-legal-bar {
	background: var(--mc-surface);
	border-top: 1px solid var(--mc-border);
	padding: 18px 24px;
}
.mc-legal-menu {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: var(--theme-normal-container-max-width, 1290px);
	display: flex;
	flex-wrap: wrap;
	gap: 6px 26px;
	justify-content: center;
}
.mc-legal-menu a {
	font-family: 'Silkscreen', monospace;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--mc-muted);
	text-decoration: none;
}
.mc-legal-menu a:hover {
	color: var(--mc-green);
}
