/* MASASHA homepage v2 — dark. Colors sampled from the live theme. Loaded on the front page only. */

:root {
	/* Surfaces sampled from the live theme */
	--ms-bg: #0e0e12;
	--ms-surface: #1a1922;
	--ms-raised: #292632;
	--ms-line: #2b2a35;
	/* Follow the GeneratePress global colors (with fallbacks) */
	--ms-red: var(--accent, #f03447);
	--ms-red-text: var(--accent-2, var(--accent, #f03447));
	--ms-gold: var(--gold, #f7b544);
	--ms-text: var(--contrast, #f2f2f5);
	--ms-soft: var(--contrast-2, #c9c8d2);
	--ms-muted: var(--contrast-3, #a2a1ae);
	/* Same fonts as the rest of the site (see site.css) */
	--ms-head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--ms-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.home { background-color: var(--ms-bg); }
.home .site-content { padding: 0; }
body.home .ms-home { margin: 0; padding: 28px 0 8px; font-family: var(--ms-body); color: var(--ms-text); }
body.home .ms-home > * { margin-bottom: 0; }
.ms-home a { text-decoration: none; color: inherit; }
.ms-home a:focus-visible { outline: 3px solid var(--ms-gold); outline-offset: 2px; }
.ms-home h2, .ms-home h3 { font-family: var(--ms-head); margin: 0; color: var(--ms-text); }
.ms-home p { margin: 0; }

/* ---------- Personal hello ---------- */
.ms-hello { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--ms-surface); border-radius: 12px; padding: 18px 22px; }
.ms-hello__avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--ms-gold); display: block; }
.ms-hello__title { font-family: var(--ms-head); font-weight: 800; font-size: 1.15rem; margin-bottom: 4px !important; }
.ms-hello__text p:last-child { color: var(--ms-soft); line-height: 1.55; max-width: 60ch; }
.ms-watching { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; max-width: 340px; }
.ms-watching span { font-size: .8rem; font-weight: 700; line-height: 1.4; color: var(--ms-gold); margin-right: 2px; }
.ms-watching a { font-size: .85rem; font-weight: 600; line-height: 1.4; padding: 5px 12px; border-radius: 999px; background: var(--ms-raised); }
.ms-watching a:hover { background: var(--ms-red); }

/* ---------- Section headings ---------- */
.ms-section { margin-top: 46px; }
.ms-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ms-head h2 { font-size: 1.3rem; font-weight: 800; line-height: 1.2; padding-left: 12px; border-left: 4px solid var(--ms-red); }
.ms-more { font-size: .9rem; font-weight: 700; color: var(--ms-red-text) !important; white-space: nowrap; }
.ms-more:hover { text-decoration: underline !important; }

/* ---------- Cards ---------- */
.ms-card { position: relative; }
.ms-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; background: var(--ms-surface); }
.ms-card__media img, .ms-ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.ms-card__media img { transition: transform .35s ease, filter .35s ease; }
.ms-card:hover .ms-card__media img { transform: scale(1.03); filter: brightness(1.08); }
.ms-ph { background: linear-gradient(135deg, var(--ms-raised), var(--ms-surface)); }
.ms-card__body { padding-top: 12px; }
.ms-card__title { font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 4px 0 6px !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ms-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.ms-card:hover .ms-card__title a { color: var(--ms-red-text); }
.ms-card__blurb { color: var(--ms-soft); font-size: .95rem; line-height: 1.55; margin: 0 0 8px !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ms-cat { position: relative; z-index: 2; font-size: .8rem; font-weight: 700; color: var(--ms-red-text) !important; }
.ms-cat:hover { text-decoration: underline !important; }
.ms-cat--solid { display: inline-block; background: var(--ms-gold); color: #14131a !important; padding: 3px 10px; border-radius: 4px; }
.ms-meta { display: block; font-size: .8rem; color: var(--ms-muted); }
.ms-meta--light { color: rgba(255, 255, 255, .78); }
.ms-badge { position: absolute; top: 0; left: 0; z-index: 1; min-width: 22px; padding: 2px 8px; background: var(--ms-gold); color: #0f0d14; font: 700 12px/1.5 var(--ms-head); border-radius: 0 0 8px 0; text-align: center; }
.ms-card--big .ms-card__title { font-size: 1.05rem; }

/* ---------- Hero ---------- */
.ms-hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: stretch; }
.ms-hero__main { position: relative; min-height: 380px; border-radius: 12px; overflow: hidden; background: var(--ms-surface); }
.ms-hero__main > img, .ms-hero__main > .ms-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ms-hero__main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 12, .94) 0%, rgba(8, 8, 12, .5) 45%, rgba(8, 8, 12, 0) 75%); }
.ms-hero__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 28px; }
.ms-hero__title { font-size: clamp(1.4rem, 2.6vw, 2.15rem); font-weight: 800; line-height: 1.15; margin: 10px 0 8px !important; }
.ms-hero__title a { color: #fff !important; }
.ms-hero__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.ms-hero__blurb { max-width: 62ch; font-size: .98rem; line-height: 1.5; color: rgba(255, 255, 255, .86); margin-bottom: 8px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ms-hero__side { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.ms-card--row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; align-items: start; }
.ms-card--row .ms-card__body { padding-top: 0; }
.ms-card--row .ms-card__title { font-size: .95rem; margin-top: 2px !important; }

/* ---------- Grids ---------- */
.ms-grid { display: grid; gap: 28px 22px; }
.ms-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.ms-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ms-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ms-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }

/* ---------- Tools ---------- */
.ms-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ms-tool { display: block; padding: 18px 20px; background: var(--ms-surface); border: 1px solid var(--ms-line); border-radius: 10px; transition: border-color .15s; }
.ms-tool:hover { border-color: var(--ms-red); }
.ms-tool strong { display: block; font-family: var(--ms-head); font-size: .95rem; line-height: 1.3; margin-bottom: 6px; }
.ms-tool span { font-size: .88rem; line-height: 1.45; color: var(--ms-muted); }

/* ---------- Buttons / CTA ---------- */
.ms-center { text-align: center; margin: 32px 0 0 !important; }
.ms-btn { display: inline-block; font-family: var(--ms-head); font-weight: 700; font-size: .92rem; padding: 12px 24px; border-radius: 999px; background: var(--ms-red); color: #fff !important; }
.ms-btn:hover { background: #d62639; }
.ms-btn--dark { background: #14131a; }
.ms-btn--dark:hover { background: #000; }
.ms-cta { margin-top: 52px; background: var(--ms-gold); border-radius: 12px; padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.ms-cta p { font-family: var(--ms-head); font-weight: 700; font-size: 1.05rem; color: #14131a; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.ms-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.ms-hello { grid-template-columns: auto 1fr; }
	.ms-watching { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
	.ms-hero { grid-template-columns: 1fr; }
	.ms-hero__main { min-height: 320px; }
	.ms-hero__body { padding: 20px; }
	.ms-grid--4, .ms-grid--3, .ms-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ms-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.ms-home { padding-left: 4px; padding-right: 4px; }
	.ms-hello { padding: 16px; gap: 14px; }
	.ms-hello__avatar { width: 56px; height: 56px; }
	.ms-hero__main { min-height: 280px; }
	.ms-hero__blurb { display: none; }
	.ms-grid--5, .ms-grid--4, .ms-grid--3, .ms-grid--2 { grid-template-columns: 1fr; gap: 18px; }
	.ms-grid .ms-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start; }
	.ms-grid .ms-card .ms-card__body { padding-top: 0; }
	.ms-grid .ms-card .ms-card__title { font-size: .95rem; margin-top: 0 !important; }
	.ms-grid .ms-card__blurb { display: none; }
	.ms-tools { grid-template-columns: 1fr; }
	.ms-section { margin-top: 36px; }
	.ms-cta { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .ms-tool, .ms-card__media img { transition: none; } .ms-card:hover .ms-card__media img { transform: none; } }
