/*
Theme Name: Millionaire Mindset
Theme URI: https://formillionairemindset.com
Author: Millionaire Mindset
Description: Lightweight, script-free theme for formillionairemindset.com. Onyx, ivory and one touch of gold. Built for fast loading, clean semantic HTML and easy reading by people, search engines and AI assistants.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: mm-theme
*/

/* Fonts: Manrope variable, self-hosted (SIL OFL 1.1, see assets/fonts/OFL-LICENSE.txt) */
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/manrope-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/manrope-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--onyx: #0B0B0A;
	--charcoal: #141310;
	--line-dark: #2A2720;
	--gold: #C8A24A;
	--gold-deep: #96721F;
	--gold-ink: #6F5A2A;
	--ivory: #F4EFE4;
	--stone: #A39E90;
	--ink: #0B0B0A;
	--ink-soft: #2B2A26;
	--ink-muted: #4A4840;
	--line: #DDD6C8;
	--white: #FFFFFF;
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--content: 720px;
	--wide: 1120px;
	--pad: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--gold-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 2em 0 0.6em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 0; }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.5rem); }
p, ul, ol, blockquote, table, figure, pre, details { margin: 0 0 1.4em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto;
	background: var(--gold); color: var(--onyx); padding: 12px 18px; font-weight: 700;
}

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: calc(var(--content) + 2 * var(--pad)); }
.eyebrow {
	display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.24em;
	text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px;
}

/* Header */
.site-header { background: var(--onyx); color: var(--ivory); }
.site-header .wrap {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 14px 32px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ivory); text-decoration: none; }
.brand:hover { color: var(--ivory); }
.brand svg { width: 44px; height: 44px; flex-shrink: 0; }
.brand-name { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.28em; line-height: 1.5; text-transform: uppercase; }
.brand-name span { color: var(--gold); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
	display: inline-block; padding: 11px 12px; min-height: 44px; color: var(--ivory);
	font-size: 0.95rem; font-weight: 600; text-decoration: none;
}
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--gold); }

/* Hero */
.hero { background: var(--onyx); color: var(--ivory); padding: clamp(48px, 9vw, 104px) 0; border-top: 1px solid var(--line-dark); }
.hero .eyebrow { color: var(--gold); }
.hero h1 { max-width: 16ch; margin-bottom: 0.4em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { max-width: 56ch; color: var(--stone); font-size: 1.2rem; margin-bottom: 1.6em; }
.button {
	display: inline-block; background: var(--gold); color: var(--onyx); padding: 14px 26px; min-height: 48px;
	font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem;
}
.button:hover { background: var(--ivory); color: var(--onyx); }

/* Page head */
.page-head { padding: clamp(36px, 6vw, 64px) 0 clamp(20px, 3vw, 32px); }
.page-head p { color: var(--ink-muted); max-width: 60ch; }
.breadcrumbs { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 18px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--stone); }

/* Post list */
.post-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 28px; padding: 0 0 clamp(48px, 8vw, 88px); list-style: none; margin: 0;
}
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); margin: 0; }
.card-media { display: block; aspect-ratio: 16 / 9; background: var(--onyx); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.card-cat { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); text-decoration: none; }
.card h2, .card h3 { font-size: 1.3rem; margin: 0; letter-spacing: -0.01em; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { text-decoration: underline; }
.card p { font-size: 0.98rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.card-meta { margin-top: auto; padding-top: 8px; font-size: 0.84rem; color: var(--ink-muted); }

/* Article */
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.92rem; color: var(--ink-muted); margin: 0 0 28px; }
.entry-meta strong { color: var(--ink); font-weight: 700; }
.in-short { background: var(--onyx); color: var(--ivory); padding: 24px 28px; border-left: 8px solid var(--gold); margin: 0 0 32px; }
.in-short .eyebrow { color: var(--gold); margin-bottom: 8px; }
.in-short p { margin: 0; font-size: 1.12rem; line-height: 1.55; }
.entry-media { margin: 0 0 32px; }
.entry-media img { display: block; width: 100%; }
.entry-content { padding-bottom: 24px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { display: block; }
.entry-content figcaption { font-size: 0.86rem; color: var(--ink-muted); margin-top: 8px; }
.entry-content blockquote { border-left: 6px solid var(--gold); padding: 4px 0 4px 22px; font-size: 1.25rem; font-weight: 600; line-height: 1.45; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content .table-scroll, .entry-content .wp-block-table { overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.entry-content th { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.entry-content pre { background: var(--onyx); color: var(--ivory); padding: 18px; overflow-x: auto; font-size: 0.92rem; }
.entry-content details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: -1px 0 0; padding: 0; }
.entry-content details + :not(details) { margin-top: 1.4em; }
.entry-content summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 1.08rem; min-height: 44px; }
.entry-content details > :not(summary) { margin-bottom: 16px; }
.entry-content .alignwide { width: min(var(--wide), 100vw - 2 * var(--pad)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-footer { border-top: 1px solid var(--line); padding: 24px 0 8px; font-size: 0.94rem; color: var(--ink-muted); }
.entry-footer a { font-weight: 700; }
.author-box { display: flex; flex-direction: column; gap: 6px; background: var(--white); border: 1px solid var(--line); padding: 22px; margin: 24px 0 48px; font-size: 0.98rem; }
.author-box strong { font-size: 1.05rem; }
.related { background: var(--white); border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 64px) 0 0; }
.related > .wrap > h2 { margin-top: 0; }

/* Search form and pagination */
.search-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.search-form input[type="search"] {
	flex: 1 1 220px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ink-muted);
	background: var(--white); font: inherit; color: var(--ink);
}
.pagination { padding: 0 0 clamp(48px, 8vw, 88px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
	padding: 0 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 700;
}
.pagination .current { background: var(--onyx); color: var(--gold); border-color: var(--onyx); }

/* Footer */
.site-footer { background: var(--onyx); color: var(--stone); padding: clamp(40px, 6vw, 64px) 0 32px; font-size: 0.95rem; }
.site-footer a { color: var(--ivory); }
.site-footer a:hover { color: var(--gold); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.footer-tagline { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; margin: 14px 0 0; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0; }
.footer-nav a { display: inline-block; padding: 10px 0; min-height: 44px; text-decoration: none; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 24px; font-size: 0.86rem; }
.footer-bottom p { margin: 0; max-width: 70ch; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
	.site-header, .site-footer, .related, .breadcrumbs, .search-form { display: none; }
	body { background: #fff; font-size: 12pt; }
	.in-short { background: none; color: #000; border: 1px solid #000; border-left: 6px solid #000; }
	.in-short .eyebrow { color: #000; }
}
