/*
Theme Name: Millennial Hobbies (Astra child)
Template: astra
Description: Child theme for millennialhobbies.com. Keeps all Astra settings, menus and URLs; adds the refreshed design.
Version: 0.5.1
Text Domain: millennialhobbies-child
*/

/* ---------- Tokens (shared with MH Gear plugin) ---------- */
:root {
	--mh-ink: #1d2721;
	--mh-muted: #59645d;
	--mh-line: #dde4de;
	--mh-bg: #fbfaf6;
	--mh-bg-soft: #f1f4ee;
	--mh-accent: #2f6b4f;
	--mh-accent-dark: #224f3a;
	--mh-accent-ink: #ffffff;
	--mh-award: #c4662a;
	--mh-radius: 10px;
	--mh-head: "Fraunces", Georgia, "Times New Roman", serif;
	--mh-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--mh-wide: 1180px;
}

body,
.ast-separate-container,
.ast-plain-container {
	background: var(--mh-bg);
	color: var(--mh-ink);
	font-family: var(--mh-body);
}
h1, h2, h3, h4,
.entry-title,
.site-title {
	font-family: var(--mh-head);
	color: var(--mh-ink);
	letter-spacing: -0.01em;
}
a { color: var(--mh-accent); }
a:hover, a:focus { color: var(--mh-accent-dark); }

/* ---------- Header ---------- */
.site-header .ast-primary-header-bar,
.main-header-bar {
	background: #fff;
	border-bottom: 1px solid var(--mh-line);
	box-shadow: none;
}
.main-header-menu .menu-link {
	font-family: var(--mh-body);
	font-weight: 600;
	font-size: .95rem;
	color: var(--mh-ink);
}
.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .current-menu-item > .menu-link { color: var(--mh-accent); }

/* ---------- Article layout ---------- */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
	background: transparent;
	padding-left: 0;
	padding-right: 0;
}
.single .entry-content,
.page .entry-content {
	font-size: 1.075rem;
	line-height: 1.75;
	color: var(--mh-ink);
}
.entry-content h2 { font-size: 1.85rem; margin-top: 2.6rem; }
.entry-content h3 { font-size: 1.35rem; margin-top: 2rem; }
.entry-content img { border-radius: var(--mh-radius); }
.entry-content blockquote {
	border-left: 4px solid var(--mh-accent);
	background: var(--mh-bg-soft);
	padding: 1rem 1.25rem;
	font-style: normal;
}

/* ---------- Article column ---------- */
.mh-article .site-content > .ast-container,
.mh-article.ast-separate-container .site-content > .ast-container { max-width: 880px; }
.mh-article .ast-article-single { padding-top: 1rem; }
.mh-article .entry-content > * { max-width: 100%; }
.mh-article .entry-content > p,
.mh-article .entry-content > ul,
.mh-article .entry-content > ol { max-width: none; }

/* Article header (breadcrumb, H1, byline) — built in functions.php */
.mh-article-head { margin: 1rem 0 1.75rem; }
.mh-article-head h1 {
	font-size: clamp(2rem, 4.2vw, 3rem);
	line-height: 1.1;
	margin: .35rem 0 1rem;
	letter-spacing: -0.02em;
}
.mh-crumbs { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mh-crumbs a { color: var(--mh-accent); text-decoration: none; }
.mh-crumbs span { color: var(--mh-line); margin: 0 .5rem; }
.mh-byline {
	display: flex;
	align-items: center;
	gap: .75rem;
	color: var(--mh-muted);
	font-size: .88rem;
	line-height: 1.35;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--mh-line);
}
.mh-byline img { border-radius: 50%; }
.mh-byline strong { color: var(--mh-ink); }

/* Lede, hero image and captions */
.entry-content .mh-lede { font-size: 1.2rem; line-height: 1.65; color: var(--mh-ink); }
.mh-article .entry-content > .wp-block-image:first-of-type img { width: 100%; max-height: 520px; object-fit: cover; }
.entry-content figcaption { font-size: .85rem; color: var(--mh-muted); text-align: left; margin-top: .5rem; }

/* Section rhythm */
.mh-article .entry-content > h2 { padding-top: 1.75rem; border-top: 1px solid var(--mh-line); }
.mh-article .entry-content > .mh-callout + h2,
.mh-article .entry-content > h2:first-of-type { border-top: 0; padding-top: 0; }
.mh-article .entry-content strong { color: var(--mh-ink); }

/* Quick picks list */
.mh-callout ul { list-style: none; padding: 0; margin: .5rem 0 0; }
.mh-callout li { padding: .6rem 0; border-bottom: 1px dashed var(--mh-line); margin: 0; }
.mh-callout li:last-child { border-bottom: 0; }
.mh-callout li a { font-weight: 700; }

/* Product cards sit a touch above the page */
.mh-card { box-shadow: 0 1px 2px rgba(20, 35, 27, .04), 0 8px 24px rgba(20, 35, 27, .06); }

/* "Quick picks" / "How we chose" callouts — use a Group block with class mh-callout */
.mh-callout {
	background: #fff;
	border: 1px solid var(--mh-line);
	border-left: 5px solid var(--mh-accent);
	border-radius: var(--mh-radius);
	padding: 1.1rem 1.35rem;
	margin: 1.75rem 0;
}
.mh-callout > :first-child { margin-top: 0; }
.mh-callout > :last-child { margin-bottom: 0; }
.mh-callout h2, .mh-callout h3 { font-size: 1.2rem; margin-top: 0; }

/* Author box */
.mh-author-box {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 1rem;
	align-items: start;
	background: #fff;
	border: 1px solid var(--mh-line);
	border-radius: var(--mh-radius);
	padding: 1.25rem;
	margin: 3rem 0 1rem;
}
.mh-author-box img { border-radius: 50%; }
.mh-author-box h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.mh-author-box p { margin: 0; color: var(--mh-muted); font-size: .95rem; }

/* ---------- Homepage (front-page.php) ---------- */
.mh-home { font-family: var(--mh-body); width: 100%; }
/* Let the homepage run edge to edge instead of inside Astra's boxed container. */
.home .site-content > .ast-container { max-width: none; padding: 0; display: block; }
.mh-wrap { max-width: var(--mh-wide); margin: 0 auto; padding: 0 20px; }
.mh-hero {
	position: relative;
	color: #fff;
	background: var(--mh-accent-dark) center/cover no-repeat;
	padding: 6rem 0 5rem;
}
.mh-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,32,24,.82), rgba(17,32,24,.35)); }
.mh-hero .mh-wrap { position: relative; }
.mh-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; max-width: 16ch; margin: 0 0 1rem; }
.mh-hero p { font-size: 1.2rem; max-width: 46ch; margin: 0 0 1.75rem; opacity: .95; }
.mh-hero .mh-btn-lg {
	display: inline-block; background: #fff; color: var(--mh-accent-dark);
	font-weight: 700; padding: .85rem 1.3rem; border-radius: 8px; text-decoration: none;
}
.mh-section { padding: 3.5rem 0; }
.mh-section h2 { font-size: 2rem; margin: 0 0 .4rem; }
.mh-section .mh-sub { color: var(--mh-muted); margin: 0 0 1.75rem; }
.mh-hubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.mh-hub {
	display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 220px; padding: 1rem; border-radius: var(--mh-radius);
	color: #fff !important; text-decoration: none; position: relative; overflow: hidden;
	background: var(--mh-accent) center/cover no-repeat;
}
.mh-hub::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,20,14,.8), rgba(10,20,14,.05) 65%); }
.mh-hub > * { position: relative; }
.mh-hub strong { font-family: var(--mh-head); font-size: 1.35rem; }
.mh-hub span { font-size: .85rem; opacity: .9; }
.mh-hub:hover { transform: translateY(-2px); transition: transform .15s; }
.mh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mh-tile { background: #fff; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); overflow: hidden; text-decoration: none; color: var(--mh-ink); display: flex; flex-direction: column; }
.mh-tile img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 0; display: block; }
.mh-tile div { padding: 1rem 1.1rem 1.2rem; }
.mh-tile small { color: var(--mh-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.mh-tile h3 { font-size: 1.15rem; margin: .3rem 0 0; line-height: 1.3; }
.mh-tile:hover h3 { color: var(--mh-accent); }
.mh-about { background: var(--mh-bg-soft); }
.mh-about .mh-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; align-items: center; }
.mh-about img { width: 100%; border-radius: var(--mh-radius); }
.mh-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--mh-muted); font-size: .92rem; margin-top: 1rem; }

@media (max-width: 960px) {
	.mh-hubs { grid-template-columns: repeat(2, 1fr); }
	.mh-grid { grid-template-columns: repeat(2, 1fr); }
	.mh-about .mh-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.mh-hubs, .mh-grid { grid-template-columns: 1fr; }
	.mh-hub { min-height: 150px; }
	.mh-hero { padding: 4rem 0 3.5rem; }
	.mh-author-box { grid-template-columns: 56px 1fr; }
}

/* Homepage: no gap between header and hero. */
.home #primary.mh-home { margin: 0; padding: 0; }

/* Our article header replaces Astra's post meta line on articles. */
.mh-article .entry-header { display: none; }

/* Astra's transparent header is on for the homepage; keep the header in normal flow so it doesn't cover the hero. */
.home.ast-theme-transparent-header #masthead { position: relative; }

/* Hub pages: guide grid inside the article column */
.mh-article .mh-guides { grid-template-columns: repeat(2, 1fr); margin: 1.5rem 0 2rem; }
.mh-guides .mh-tile { text-decoration: none !important; }
.mh-guides .mh-tile h3 { margin: .3rem 0 .4rem; font-size: 1.1rem; }
.mh-guides .mh-tile p { margin: 0; font-size: .9rem; color: var(--mh-muted); line-height: 1.5; }
.mh-guides .mh-tile img { margin: 0; }
@media (max-width: 600px) { .mh-article .mh-guides { grid-template-columns: 1fr; } }

/* Mobile: comfortable article header and padding */
@media (max-width: 600px) {
	.mh-article-head h1 { font-size: 1.9rem; }
	.entry-content .mh-lede { font-size: 1.08rem; }
	.mh-card { padding: 1rem; }
}

/* Right-side dropdowns open leftward so they stay on screen. */
@media (min-width: 922px) {
	.main-header-menu > .menu-item:nth-last-child(-n+4) > .sub-menu { left: auto; right: 0; }
}

/* ======================= Homepage v2 ======================= */
.main-header-menu .menu-link { color: var(--mh-ink) !important; }
.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .current-menu-item > .menu-link { color: var(--mh-accent) !important; }

.mh-hero { padding: 7rem 0 6rem; }
.mh-hero::before { background: linear-gradient(90deg, rgba(14,28,20,.88) 0%, rgba(14,28,20,.6) 45%, rgba(14,28,20,.15) 100%); }
.mh-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem !important; font-weight: 700; opacity: .85; margin-bottom: .75rem !important; }
.mh-hero h1 { max-width: 18ch; }
.mh-hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.mh-btn-lg--ghost { background: transparent !important; color: #fff !important; border: 2px solid rgba(255,255,255,.8); }
.mh-btn-lg--ghost:hover { background: rgba(255,255,255,.12) !important; }

.mh-trustbar { background: #fff; border-bottom: 1px solid var(--mh-line); }
.mh-trustbar .mh-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-top: 1.1rem; padding-bottom: 1.1rem; font-size: .92rem; color: var(--mh-muted); }
.mh-trustbar strong { color: var(--mh-accent); }

.mh-section__head { margin-bottom: 1.75rem; }
.mh-featured { grid-template-columns: repeat(3, 1fr); }
.mh-pick { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); overflow: hidden; text-decoration: none !important; color: var(--mh-ink); transition: box-shadow .15s, transform .15s; }
.mh-pick:hover { box-shadow: 0 10px 30px rgba(20,35,27,.10); transform: translateY(-2px); }
.mh-pick__img { background: #fff; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; padding: 1.5rem; border-bottom: 1px solid var(--mh-line); }
.mh-pick__img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 0; }
.mh-pick__body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.mh-pick__body small { color: var(--mh-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; }
.mh-pick__body h3 { font-size: 1.2rem; line-height: 1.25; margin: 0; }
.mh-pick__top { margin: .25rem 0 0; font-size: .92rem; }
.mh-pick__top span { display: inline-block; background: var(--mh-award); color: #fff; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .45rem; border-radius: 4px; margin-right: .35rem; vertical-align: 1px; }
.mh-pick__meta { margin: auto 0 0; padding-top: .5rem; font-size: .8rem; color: var(--mh-muted); }

.mh-topic { background: #fff; border-top: 1px solid var(--mh-line); }
.mh-topic--alt { background: var(--mh-bg); }
.mh-topic__inner { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; align-items: center; }
.mh-topic--alt .mh-topic__inner { grid-template-columns: 7fr 5fr; }
.mh-topic--alt .mh-topic__photo { order: 2; }
.mh-topic__photo { position: relative; display: block; min-height: 380px; border-radius: var(--mh-radius); background: var(--mh-accent-dark) center/cover no-repeat; overflow: hidden; text-decoration: none !important; }
.mh-topic__photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,20,14,.7), rgba(10,20,14,0) 55%); }
.mh-topic__photo span { position: absolute; left: 1.25rem; bottom: 1rem; color: #fff; font-family: var(--mh-head); font-size: 1.6rem; font-weight: 700; }
.mh-topic__list h2 { font-size: 1.9rem; margin: 0 0 .35rem; }
.mh-topic__list ul { list-style: none; margin: 1.25rem 0; padding: 0; columns: 2; column-gap: 2rem; }
.mh-topic__list li { break-inside: avoid; padding: .45rem 0; border-bottom: 1px solid var(--mh-line); margin: 0; font-size: .95rem; }
.mh-topic__list li a { color: var(--mh-ink); text-decoration: none; font-weight: 600; }
.mh-topic__list li a:hover { color: var(--mh-accent); }
.mh-textlink { font-weight: 700; text-decoration: none; }

.mh-about__inner { display: grid !important; grid-template-columns: 160px 1fr; gap: 2rem; align-items: center; max-width: 900px !important; }
.mh-about__logo { width: 160px; height: 160px; object-fit: cover; border-radius: 50% !important; }

/* Footer: dark green instead of black */
.site-footer, .site-below-footer-wrap, .site-primary-footer-wrap { background: var(--mh-accent-dark) !important; }
.site-footer, .site-footer a, .site-footer p { color: #e7efe9 !important; }
.site-footer .wp-block-button__link { background: var(--mh-award) !important; color: #fff !important; border-radius: 6px; }

@media (max-width: 960px) {
	.mh-featured { grid-template-columns: repeat(2, 1fr); }
	.mh-topic__inner, .mh-topic--alt .mh-topic__inner { grid-template-columns: 1fr; gap: 1.5rem; }
	.mh-topic--alt .mh-topic__photo { order: 0; }
	.mh-topic__photo { min-height: 240px; }
}
@media (max-width: 600px) {
	.mh-featured { grid-template-columns: 1fr; }
	.mh-topic__list ul { columns: 1; }
	.mh-about__inner { grid-template-columns: 1fr; text-align: center; }
	.mh-about__logo { margin: 0 auto; width: 120px; height: 120px; }
	.mh-hero { padding: 4.5rem 0 4rem; }
}

/* Fixes: square about logo; footer button colors */
.mh-about .mh-about__logo { width: 160px !important; height: 160px !important; max-width: 160px; aspect-ratio: 1 / 1; object-fit: cover; }
.site-footer .wp-block-button__link, .site-footer .wp-element-button, .site-footer a.wp-block-button__link { background: var(--mh-award) !important; color: #fff !important; border: 0 !important; }
@media (max-width: 600px) { .mh-about .mh-about__logo { width: 120px !important; height: 120px !important; } }
