/*
Theme Name: Embracing Aging
Theme URI: https://www.thepowerofembracingaging.com/
Author: 1938 Media
Description: Custom one-page theme for The Power of Embracing Aging — a video series and upcoming book by Don Saunders. Edit images, videos, accent color and the book sign-up form under Appearance › Customize › Embracing Aging.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: embracing-aging
*/

:root {
	--ea-green: #1F3A33;
	--ea-green-dark: #18302A;
	--ea-green-mid: #3E6B5E;
	--ea-green-line: #4F7A6D;
	--ea-mist: #DCE5E1;
	--ea-mist-2: #E9EEEA;
	--ea-sage: #B9CCC4;
	--ea-ink: #1B2420;
	--ea-text: #3A4642;
	--ea-muted: #4C5C56;
	--ea-bg: #F6F6F2;
	--ea-line: #E1E4DD;
	--ea-accent: #E8A93C;
	--ea-head: 'Bricolage Grotesque', system-ui, sans-serif;
	--ea-body: 'Source Sans 3', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ea-bg);
	color: var(--ea-ink);
	font-family: var(--ea-body);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ea-green); }
a:hover { color: #0F211C; }
:focus-visible { outline: 3px solid var(--ea-accent); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: #fff; color: var(--ea-ink);
}

.ea-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .ea-wrap { padding: 0 20px; } }

.ea-eyebrow {
	margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.14em;
	text-transform: uppercase; color: var(--ea-green-mid);
}
.ea-h2 {
	margin: 0; font-family: var(--ea-head); font-weight: 800;
	font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.02em;
	color: var(--ea-green);
}

/* Buttons */
.ea-btn {
	display: inline-flex; align-items: center; gap: 10px; min-height: 52px;
	padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 17px;
	text-decoration: none; transition: transform .15s ease, filter .15s ease;
}
.ea-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.ea-btn--accent { background: var(--ea-accent); color: var(--ea-ink); }
.ea-btn--accent:hover { color: var(--ea-ink); }
.ea-btn--ghost { border: 1.5px solid #6F8F84; color: var(--ea-bg); font-weight: 600; }
.ea-btn--ghost:hover { color: #fff; border-color: var(--ea-sage); }

/* Header */
.ea-header { background: var(--ea-green); color: var(--ea-bg); }
.ea-header__inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 16px; padding-top: 20px; padding-bottom: 20px;
}
.ea-logo {
	color: var(--ea-bg); text-decoration: none; font-family: var(--ea-head);
	font-weight: 700; font-size: 20px; letter-spacing: -0.01em;
}
.ea-logo:hover { color: #fff; }
.ea-logo span { color: var(--ea-accent); }
.ea-logo img { max-height: 48px; width: auto; }
.ea-nav ul {
	list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
	align-items: center; gap: 8px 28px; font-size: 16px; font-weight: 500;
}
.ea-nav a { color: var(--ea-mist); text-decoration: none; }
.ea-nav a:hover { color: #fff; }
.ea-nav li:last-child a {
	color: var(--ea-ink); background: var(--ea-accent); font-weight: 700;
	padding: 10px 18px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
}
.ea-menu-toggle {
	display: none; background: none; border: 1.5px solid #6F8F84; color: var(--ea-bg);
	border-radius: 999px; min-height: 44px; padding: 8px 18px; font: inherit; font-size: 16px; cursor: pointer;
}
@media (max-width: 760px) {
	.ea-menu-toggle { display: inline-flex; align-items: center; }
	.ea-nav { display: none; width: 100%; }
	.ea-nav.is-open { display: block; }
	.ea-nav ul { flex-direction: column; align-items: flex-start; padding: 8px 0 12px; }
}

/* Hero */
.ea-hero { background: var(--ea-green); color: var(--ea-bg); }
.ea-hero__inner {
	display: flex; flex-wrap: wrap; align-items: center; gap: 64px;
	padding-top: 72px; padding-bottom: 112px;
}
.ea-hero__copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.ea-hero__eyebrow { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ea-sage); }
.ea-hero h1 {
	margin: 0; font-family: var(--ea-head); font-weight: 800;
	font-size: clamp(44px, 6vw, 84px); line-height: 1.0; letter-spacing: -0.03em;
}
.ea-hero h1 span { color: var(--ea-accent); }
.ea-hero__lede { margin: 0; font-size: 21px; line-height: 1.55; color: var(--ea-mist); max-width: 620px; }
.ea-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.ea-hero__art { flex: 1 1 300px; display: flex; justify-content: center; }

/* Book covers */
.ea-cover {
	width: 300px; height: 440px; border-radius: 6px 14px 14px 6px; background: var(--ea-bg);
	color: var(--ea-green); padding: 36px 30px; display: flex; flex-direction: column;
	justify-content: space-between; box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 10px 0 0 #E4E2D8;
	transform: rotate(-3deg);
}
.ea-cover__bar { width: 44px; height: 6px; background: var(--ea-accent); border-radius: 3px; margin-bottom: 14px; }
.ea-cover__title { margin: 0; font-family: var(--ea-head); font-weight: 800; font-size: 40px; line-height: .98; letter-spacing: -0.02em; }
.ea-cover__tag { margin: 0 0 6px; font-size: 14px; color: var(--ea-muted); line-height: 1.4; }
.ea-cover__author { margin: 0; font-weight: 700; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.ea-cover-img {
	width: 300px; border-radius: 6px 14px 14px 6px; transform: rotate(-3deg);
	box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.ea-cover--dark {
	width: 220px; height: 320px; padding: 26px 22px; background: var(--ea-green); color: var(--ea-bg);
	transform: none; border-radius: 4px 12px 12px 4px;
	box-shadow: 0 24px 48px rgba(31,58,51,.3), inset 8px 0 0 var(--ea-green-dark);
}
.ea-cover--dark .ea-cover__title { font-size: 29px; line-height: 1; }
.ea-cover--dark .ea-cover__author { font-size: 14px; letter-spacing: .06em; color: var(--ea-mist); }
.ea-cover--dark .ea-cover__bar { width: 34px; height: 5px; margin-bottom: 10px; }
.ea-cover-img--small { width: 220px; transform: none; box-shadow: 0 24px 48px rgba(31,58,51,.3); }

/* Sections */
.ea-section { padding: 112px 0; }
@media (max-width: 600px) { .ea-section { padding: 72px 0; } }
.ea-section--white { background: #fff; border-top: 1px solid var(--ea-line); border-bottom: 1px solid var(--ea-line); }

/* About */
.ea-about { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.ea-about__photo {
	flex: 1 1 340px; max-width: 440px; aspect-ratio: 4 / 5; border-radius: 20px; background: var(--ea-mist);
	overflow: hidden; display: flex; align-items: center; justify-content: center;
	color: var(--ea-muted); font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.ea-about__photo img { width: 100%; height: 100%; object-fit: cover; }
.ea-about__copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ea-about__copy p { margin: 0; color: var(--ea-text); }
.ea-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; padding-top: 8px; }
.ea-stat { background: #fff; border: 1px solid var(--ea-line); border-radius: 16px; padding: 20px 22px; }
.ea-stat strong { display: block; font-family: var(--ea-head); font-weight: 800; font-size: 40px; line-height: 1; color: var(--ea-green); }
.ea-stat span { display: block; margin-top: 6px; font-size: 16px; color: var(--ea-muted); }

/* Pillars */
.ea-pillars-head { margin: 0 0 48px; font-family: var(--ea-head); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ea-green); max-width: 760px; }
.ea-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.ea-pillar__num { margin: 0 0 10px; font-family: var(--ea-head); font-weight: 800; font-size: 20px; color: var(--ea-green-mid); }
.ea-pillar h3 { margin: 0 0 10px; font-size: 22px; font-weight: 700; }
.ea-pillar p { margin: 0; font-size: 17px; color: var(--ea-muted); }

/* Topics */
.ea-head-block { display: flex; flex-direction: column; gap: 16px; max-width: 680px; margin-bottom: 56px; }
.ea-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.ea-topic { background: #fff; border: 1px solid var(--ea-line); border-radius: 16px; padding: 24px; min-height: 120px; }
.ea-topic h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.ea-topic p { margin: 0; font-size: 16px; color: var(--ea-muted); line-height: 1.5; }
.ea-possible {
	margin-top: 56px; background: var(--ea-green); color: var(--ea-bg); border-radius: 24px;
	padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
}
.ea-possible__head { flex: 1 1 300px; }
.ea-possible__head p { margin: 0 0 12px; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ea-accent); }
.ea-possible__head h3 { margin: 0; font-family: var(--ea-head); font-weight: 800; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.ea-pills { flex: 999 1 420px; display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.ea-pills li { padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--ea-green-line); font-weight: 600; }

/* Videos */
.ea-section--watch { background: #fff; border-top: 1px solid var(--ea-line); }
.ea-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.ea-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--ea-green); }
.ea-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ea-video__play {
	position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; background: var(--ea-green);
	display: flex; align-items: center; justify-content: center;
}
.ea-video__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.ea-video__play span {
	position: relative; width: 72px; height: 72px; border-radius: 999px; background: var(--ea-accent);
	display: flex; align-items: center; justify-content: center; color: var(--ea-ink);
	box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .15s ease;
}
.ea-video__play:hover span { transform: scale(1.06); }
.ea-video[hidden] { display: none; }
.ea-videos__more { display: flex; justify-content: center; margin-top: 48px; }
.ea-btn--outline { border: 1.5px solid var(--ea-green); color: var(--ea-green); background: transparent; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; }
.ea-btn--outline:hover { background: var(--ea-green); color: var(--ea-bg); }
.ea-video h3 { margin: 16px 0 0; font-size: 21px; font-weight: 700; line-height: 1.3; }

/* Book */
.ea-book {
	background: var(--ea-mist-2); border-radius: 28px; padding: clamp(32px, 5vw, 72px);
	display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
}
.ea-book__copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ea-book__copy > p { margin: 0; color: var(--ea-text); max-width: 560px; }
.ea-badge {
	align-self: flex-start; margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--ea-green);
	color: var(--ea-bg); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.ea-book__art { flex: 1 1 220px; display: flex; justify-content: center; }
.ea-signup { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding-top: 4px; }
.ea-signup__field { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.ea-signup label { font-size: 15px; font-weight: 600; }
.ea-signup input[type="email"] {
	min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid #9AAEA6;
	background: #fff; font: inherit; font-size: 17px; color: var(--ea-ink);
}
.ea-signup button, .ea-book__form input[type="submit"], .ea-book__form button {
	min-height: 52px; padding: 12px 26px; border-radius: 12px; border: 0; background: var(--ea-green);
	color: var(--ea-bg); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
}
.ea-signup button:hover { background: #142a24; }

/* Tagline + footer */
.ea-tagline { background: var(--ea-accent); padding: 96px 0; }
.ea-tagline p {
	margin: 0; font-family: var(--ea-head); font-weight: 800; font-size: clamp(38px, 5.4vw, 76px);
	line-height: 1.02; letter-spacing: -0.03em; color: var(--ea-ink);
}
.ea-footer { background: var(--ea-green); color: var(--ea-sage); padding: 40px 0; font-size: 15px; }
.ea-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.ea-footer__name { margin: 0; font-family: var(--ea-head); font-weight: 700; font-size: 18px; color: var(--ea-bg); }
.ea-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.ea-footer a { color: var(--ea-mist); text-decoration: none; }
.ea-footer a:hover { color: #fff; }
.ea-footer p { margin: 0; }

/* Generic pages / posts */
.ea-content { padding: 80px 0 112px; }
.ea-content .ea-wrap { max-width: 760px; }
.ea-content h1 { font-family: var(--ea-head); font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; color: var(--ea-green); margin: 0 0 24px; }
.ea-content h2, .ea-content h3 { font-family: var(--ea-head); color: var(--ea-green); line-height: 1.15; }
.ea-content .entry-meta { color: var(--ea-muted); font-size: 15px; margin-bottom: 32px; }
.ea-post-list article { padding: 32px 0; border-bottom: 1px solid var(--ea-line); }
.ea-post-list h2 { margin: 0 0 8px; font-size: 28px; }
.ea-post-list h2 a { text-decoration: none; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }
