/*
Theme Name: Mocha Mary Jane
Theme URI: https://mochamaryjane.com
Author: The Dank Duchess
Description: A Gutenberg-first editorial theme for Mocha Mary Jane.
Version: 1.11.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: mocha-mary-jane
*/

:root {
	--mmj-cream: #fdefd5;
	--mmj-paper: #fff8e9;
	--mmj-espresso: #402312;
	--mmj-deep-brown: #150d04;
	--mmj-mocha: #643611;
	--mmj-cinnamon: #954c16;
	--mmj-green: #5da350;
	--mmj-plum: #6f3d63;
	--mmj-aubergine: #3c2033;
	--mmj-orange: #c86525;
	--mmj-brass: #b58a48;
	--mmj-ink: #281a13;
	--mmj-rule: rgba(64, 35, 18, .25);
	--mmj-content: 760px;
	--mmj-wide: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--mmj-paper);
	color: var(--mmj-ink);
	font-family: "Source Sans 3", "Trebuchet MS", Arial, sans-serif;
	font-size: 18px;
	line-height: 1.68;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--mmj-plum); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover, a:focus { color: var(--mmj-cinnamon); }
:focus-visible { outline: 3px solid var(--mmj-orange); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; z-index: 100000; top: 1rem; left: 1rem; width: auto; height: auto; padding: .75rem 1rem; clip: auto; background: #fff; }

h1, h2, h3, h4, h5, h6 {
	color: var(--mmj-espresso);
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.08;
	letter-spacing: -.025em;
}
h1 { font-size: clamp(2.8rem, 7vw, 6.6rem); }
h2 { font-size: clamp(2.15rem, 4.2vw, 4.25rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 2.15rem); }
p { margin: 0 0 1.3em; }
.site-wrap { width: min(100% - 2rem, var(--mmj-wide)); margin-inline: auto; }
.content-wrap { width: min(100% - 2rem, var(--mmj-content)); margin-inline: auto; }

.site-header {
	position: relative;
	z-index: 20;
	background: rgba(248, 234, 207, .97);
	border-bottom: 1px solid var(--mmj-rule);
}
.utility-bar {
	background: var(--mmj-aubergine);
	color: var(--mmj-cream);
	font-size: .78rem;
	letter-spacing: .11em;
	text-transform: uppercase;
}
.utility-bar .site-wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.masthead { display: grid; grid-template-columns: clamp(240px, 21vw, 400px) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 1.6vw, 2rem); width: 100%; margin: 0; padding: .7rem clamp(1rem, 2.25vw, 3rem); }
.site-logo { display: block; justify-self: start; width: 100%; max-width: 400px; line-height: 0; }
.site-logo img { display: block; width: 100%; max-width: none; max-height: none; height: auto; object-fit: contain; }
.primary-nav { min-width: 0; }
.primary-nav ul { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: clamp(.5rem, .85vw, 1rem); margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: var(--mmj-espresso); font-size: .82rem; font-weight: 750; letter-spacing: .045em; text-decoration: none; text-transform: uppercase; }
.newsletter-button, .button, .wp-block-button__link {
	display: inline-block;
	border: 1px solid var(--mmj-plum);
	border-radius: 0;
	background: var(--mmj-plum);
	color: #fff;
	font-weight: 750;
	letter-spacing: .04em;
	padding: .75rem 1.1rem;
	text-decoration: none;
}
.newsletter-button:hover, .button:hover, .wp-block-button__link:hover { background: var(--mmj-cinnamon); border-color: var(--mmj-cinnamon); color: #fff; }
.menu-toggle { display: none; border: 1px solid var(--mmj-espresso); background: transparent; color: var(--mmj-espresso); padding: .6rem .8rem; font-weight: 700; }

.hero {
	position: relative;
	min-height: min(760px, 82vh);
	display: grid;
	align-items: end;
	background: #140e0b url("assets/images/mmj-editorial-hero.png") center / cover no-repeat;
	color: var(--mmj-cream);
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,7,6,.94) 0%, rgba(10,7,6,.78) 35%, rgba(10,7,6,.12) 72%); }
.hero-inner { position: relative; z-index: 2; width: min(100% - 2rem, var(--mmj-wide)); margin-inline: auto; padding: clamp(4rem, 11vw, 8.5rem) 0 4.5rem; }
.hero-copy { max-width: 710px; }
.eyebrow { display: inline-block; margin-bottom: 1rem; color: var(--mmj-orange); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 690px; margin: 0 0 1.25rem; color: var(--mmj-cream); }
.hero p { max-width: 650px; font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.button.secondary { background: transparent; border-color: var(--mmj-cream); color: var(--mmj-cream); }

.editorial-section { padding: clamp(4rem, 8vw, 7rem) 0; border-bottom: 1px solid var(--mmj-rule); }
.section-heading { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(260px, .7fr); align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading h2 { margin: 0; }
.section-heading p { margin: 0; font-size: 1.08rem; }
.dark-section { background: var(--mmj-aubergine); color: var(--mmj-cream); }
.dark-section h2, .dark-section h3, .dark-section a { color: var(--mmj-cream); }
.plum-section { background: var(--mmj-plum); color: var(--mmj-cream); }
.plum-section h2, .plum-section h3, .plum-section a { color: var(--mmj-cream); }
.cream-section { background: var(--mmj-cream); }

.story-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.story-card { grid-column: span 4; border-top: 3px solid var(--mmj-espresso); padding-top: 1rem; }
.story-card.featured { grid-column: span 7; }
.story-card.side { grid-column: span 5; }
.story-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1rem; }
.story-card.featured img { aspect-ratio: 16 / 10; }
.story-card h3 { margin: .35rem 0 .65rem; }
.story-card h3 a { color: inherit; text-decoration: none; }
.story-card .excerpt { font-size: .95rem; }
.story-meta { color: var(--mmj-cinnamon); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.attention-list { border-top: 1px solid currentColor; }
.attention-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 1.5rem; padding: 1.35rem 0; border-bottom: 1px solid currentColor; }
.attention-item time { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.attention-item h3 { margin: 0; font-size: 1.45rem; }

.archive-header { padding: 5rem 0 3rem; background: var(--mmj-cream); border-bottom: 1px solid var(--mmj-rule); }
.archive-header h1 { max-width: 980px; margin: 0; }
.archive-description { max-width: 760px; font-size: 1.18rem; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 4rem 0 6rem; }

.article-header { padding: clamp(4rem, 9vw, 8rem) 0 3rem; background: var(--mmj-cream); }
.article-header-inner { width: min(100% - 2rem, 980px); margin-inline: auto; }
.article-header h1 { margin: .4rem 0 1.2rem; }
.article-deck { max-width: 800px; font-family: Georgia, serif; font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
.article-byline { font-size: .9rem; font-weight: 700; }
.article-featured { width: min(100% - 2rem, var(--mmj-wide)); margin: 0 auto 3.5rem; }
.article-featured img { width: 100%; max-height: 760px; object-fit: cover; }
.article-body { width: min(100% - 2rem, var(--mmj-content)); margin: 0 auto; padding-bottom: 5rem; }
.article-body > p:first-of-type { font-size: 1.15rem; }
.article-body blockquote { margin: 2.5rem -5vw; padding: 1.5rem 0 1.5rem 2rem; border-left: 6px solid var(--mmj-orange); color: var(--mmj-plum); font-family: Georgia, serif; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.3; }
.editorial-details { margin: 2rem 0; padding: 1.5rem; background: var(--mmj-cream); border-top: 3px solid var(--mmj-plum); }
.editorial-details dl { display: grid; grid-template-columns: minmax(140px, .35fr) 1fr; gap: .5rem 1rem; margin: 0; }
.editorial-details dt { font-weight: 800; }
.editorial-details dd { margin: 0; }

.site-footer { background: var(--mmj-deep-brown); color: var(--mmj-cream); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.site-footer h2, .site-footer h3, .site-footer a { color: var(--mmj-cream); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.footer-logo { max-width: 280px; margin-bottom: 1.5rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.25); font-size: .8rem; }

.mmj-newsletter { padding: 2rem; background: var(--mmj-plum); color: #fff; border-left: 6px solid var(--mmj-brass); }
.mmj-newsletter h2, .mmj-newsletter h3 { color: #fff; }
.mmj-mailpoet-form { margin-top: 1.5rem; }
.mmj-newsletter-setup-note { margin-top: 1.5rem; padding: 1rem 1.2rem; background: var(--mmj-cream); color: var(--mmj-espresso); border-left: 5px solid var(--mmj-brass); }
.mmj-newsletter-setup-note a { color: var(--mmj-plum); }
.mmj-pattern-note { padding: 1.25rem 1.5rem; background: var(--mmj-cream); border-left: 5px solid var(--mmj-cinnamon); }
.mmj-pull-quote { margin-block: 2.5rem; color: var(--mmj-plum); font-family: Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.25; }

@media (max-width: 1080px) {
	.masthead { grid-template-columns: 1fr auto; }
	.site-logo { width: min(360px, 100%); }
	.primary-nav { grid-column: 1 / -1; display: none; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { display: grid; grid-template-columns: repeat(2, 1fr); justify-items: start; padding: 1rem 0; }
	.menu-toggle { display: inline-block; }
}

@media (max-width: 960px) {
	.story-card, .story-card.featured, .story-card.side { grid-column: span 6; }
	.archive-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	body { font-size: 17px; }
	.utility-bar { display: none; }
	.masthead { gap: .75rem; }
	.site-logo { width: min(290px, 100%); }
	.primary-nav ul { grid-template-columns: 1fr; }
	.hero { min-height: 680px; background-position: 61% center; }
	.hero::after { background: linear-gradient(180deg, rgba(10,7,6,.18) 0%, rgba(10,7,6,.86) 60%, rgba(10,7,6,.98) 100%); }
	.hero-inner { padding-bottom: 2.5rem; }
	.section-heading { grid-template-columns: 1fr; }
	.story-card, .story-card.featured, .story-card.side { grid-column: 1 / -1; }
	.attention-item { grid-template-columns: 1fr; gap: .35rem; }
	.archive-grid { grid-template-columns: 1fr; }
	.article-body blockquote { margin-inline: 0; }
	.editorial-details dl { grid-template-columns: 1fr; }
	.editorial-details dd { margin-bottom: .75rem; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-about { grid-column: auto; }
}
