/*
Theme Name: The Peak Decades
Theme URI: https://thepeakdecades.com
Author: The Peak Decades
Description: Lightweight custom theme for The Peak Decades. No page builder, no jQuery, one stylesheet.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: peakdecades
*/

:root {
	--pd-cream: #FBF8F2;
	--pd-cream-2: #F3EEE4;
	--pd-ink: #1B1F22;
	--pd-text: #43494E;
	--pd-muted: #5E646A;
	--pd-line: #EDE6DA;
	--pd-green: #2F6B4F;
	--pd-green-dark: #1F4D38;
	--pd-mint: #E3EFE7;
	--pd-sand: #F3E6CF;
	--pd-sand-ink: #6B4310;
	--pd-sky: #E8ECF5;
	--pd-sky-ink: #34497A;
	--pd-white: #FFFFFF;
	--pd-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--pd-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--pd-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--pd-radius: 24px;
	--pd-radius-lg: 32px;
	--pd-wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--pd-cream); color: var(--pd-ink); font-family: var(--pd-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pd-green); }
a:hover { color: var(--pd-green-dark); }
h1, h2, h3, h4 { font-family: var(--pd-head); color: var(--pd-ink); line-height: 1.2; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--pd-green); outline-offset: 3px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto; background: var(--pd-ink); color: #fff; padding: 12px 18px; border-radius: 12px; }

.pd-wrap { max-width: var(--pd-wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .pd-wrap { padding: 0 20px; } }

/* Buttons and forms */
.pd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--pd-green); color: #fff; font: 600 16px/1 var(--pd-body); text-decoration: none; cursor: pointer; transition: background .15s ease; }
.pd-btn:hover { background: var(--pd-green-dark); color: #fff; }
.pd-btn--small { height: 46px; padding: 0 20px; font-size: 15px; }
.pd-btn--light { background: var(--pd-cream); color: var(--pd-ink); }
.pd-btn--light:hover { background: #fff; color: var(--pd-ink); }

.pd-form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 560px; }
.pd-form input[type="email"] { flex: 1 1 240px; min-width: 0; height: 56px; padding: 0 22px; border: 2px solid var(--pd-line); border-radius: 999px; background: #fff; font: 16px var(--pd-body); color: var(--pd-ink); }
.pd-form input[type="email"]:focus { border-color: var(--pd-green); outline: none; }
.pd-form-note { margin: 12px 0 0; font-size: 14px; color: var(--pd-muted); }

/* Header */
.pd-header { background: var(--pd-cream); position: relative; z-index: 10; }
.pd-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.pd-logo { display: flex; align-items: center; gap: 10px; color: var(--pd-ink); text-decoration: none; }
.pd-logo:hover { color: var(--pd-ink); }
.pd-logo__mark { width: 40px; height: 40px; border-radius: 12px; background: var(--pd-mint); display: flex; align-items: center; justify-content: center; flex: none; }
.pd-logo__name { font: 800 20px/1 var(--pd-head); }
.pd-nav { display: flex; align-items: center; gap: 24px; }
.pd-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.pd-nav a { color: var(--pd-ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.pd-nav a:hover, .pd-nav .current-menu-item > a, .pd-nav .current-cat > a { color: var(--pd-green); }
.pd-menu-toggle { display: none; background: none; border: 2px solid var(--pd-line); border-radius: 12px; height: 44px; padding: 0 14px; font: 600 15px var(--pd-body); color: var(--pd-ink); cursor: pointer; }
@media (max-width: 900px) {
	.pd-menu-toggle { display: inline-flex; align-items: center; }
	.pd-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding: 8px 0 12px; }
	.pd-nav.is-open { display: flex; }
	.pd-nav ul { flex-direction: column; gap: 14px; }
	.pd-nav a { font-size: 17px; }
}

/* Hero */
.pd-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 88px; }
.pd-hero__text { flex: 999 1 520px; min-width: 0; }
.pd-hero__side { flex: 1 1 380px; min-width: 0; }
.pd-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--pd-sand); color: var(--pd-sand-ink); font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; margin: 0 0 22px; }
.pd-hero h1 { margin: 0; font-size: clamp(40px, 6vw, 66px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.pd-hero h1 span { color: var(--pd-green); }
.pd-hero__lead { margin: 24px 0 34px; font-size: 20px; color: var(--pd-text); max-width: 560px; }

.pd-wins { background: #fff; border-radius: 28px; padding: 32px; box-shadow: 0 20px 50px rgba(60, 45, 20, .10); }
.pd-wins__eyebrow { margin: 0; font-size: 14px; font-weight: 600; color: var(--pd-sand-ink); }
.pd-wins__title { margin: 6px 0 22px; font: 800 24px/1.25 var(--pd-head); }
.pd-wins__list { display: flex; flex-direction: column; gap: 12px; }
.pd-win { display: flex; align-items: center; gap: 14px; border-radius: 16px; padding: 16px 18px; cursor: pointer; }
.pd-win input { width: 22px; height: 22px; accent-color: var(--pd-green); flex: none; }
.pd-win strong { display: block; font-size: 16px; }
.pd-win small { display: block; font-size: 14px; color: var(--pd-muted); }
.pd-tint-mint { background: var(--pd-mint); }
.pd-tint-sand { background: var(--pd-sand); }
.pd-tint-sky { background: var(--pd-sky); }

/* Sections */
.pd-section { padding-top: 72px; padding-bottom: 72px; }
.pd-section__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.pd-section__head h2, .pd-h2 { margin: 0; font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.pd-section__head p { margin: 14px 0 0; font-size: 18px; color: var(--pd-text); }

.pd-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.pd-pillar { display: flex; gap: 18px; background: #fff; border-radius: var(--pd-radius); padding: 26px; color: var(--pd-ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.pd-pillar:hover { color: var(--pd-ink); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(60, 45, 20, .08); }
.pd-pillar__icon { flex: none; width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.pd-pillar__name { display: block; font: 700 20px/1.3 var(--pd-head); }
.pd-pillar__desc { display: block; margin-top: 6px; font-size: 15px; color: var(--pd-text); }

.pd-start { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 36px; }
.pd-start__main { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 340px; background: var(--pd-green); color: #fff; border-radius: 28px; padding: 40px; text-decoration: none; }
.pd-start__main:hover { color: #fff; background: var(--pd-green-dark); }
.pd-start__tag { align-self: flex-start; background: rgba(255, 255, 255, .18); font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.pd-start__title { display: block; font: 800 clamp(26px, 3vw, 36px)/1.15 var(--pd-head); }
.pd-start__dek { display: block; margin-top: 14px; font-size: 17px; color: var(--pd-mint); }
.pd-start__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pd-start__card { flex: 1; display: block; border-radius: 28px; padding: 28px; color: var(--pd-ink); text-decoration: none; }
.pd-start__card:hover { color: var(--pd-ink); }
.pd-start__card span { font-size: 14px; font-weight: 600; }
.pd-start__card strong { display: block; margin-top: 10px; font: 700 22px/1.3 var(--pd-head); }

.pd-founder { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; background: var(--pd-sand); border-radius: var(--pd-radius-lg); padding: 56px 48px; }
.pd-founder__photo { flex: none; width: 180px; height: 180px; border-radius: 999px; background: #E6D3B0; object-fit: cover; }
.pd-founder__text { flex: 1 1 420px; min-width: 0; }
.pd-founder__eyebrow { margin: 0; font-size: 14px; font-weight: 600; color: var(--pd-sand-ink); }
.pd-founder__quote { margin: 12px 0 0; font: 800 clamp(26px, 3vw, 34px)/1.2 var(--pd-head); }
.pd-founder__body { margin: 18px 0 0; font-size: 18px; color: var(--pd-text); max-width: 640px; }
.pd-founder a { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--pd-ink); }

.pd-newsletter { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; background: var(--pd-mint); border-radius: var(--pd-radius-lg); padding: 56px 48px; }
.pd-newsletter__text { flex: 1 1 380px; min-width: 0; }
.pd-newsletter h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); font-weight: 800; }
.pd-newsletter p { margin: 12px 0 0; font-size: 18px; color: var(--pd-text); }
.pd-newsletter .pd-form { flex: 1 1 420px; }
@media (max-width: 640px) {
	.pd-founder, .pd-newsletter { padding: 36px 24px; }
	.pd-founder__photo { width: 120px; height: 120px; }
}

/* Cards (archives, related) */
.pd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.pd-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--pd-radius); overflow: hidden; color: var(--pd-ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.pd-card:hover { color: var(--pd-ink); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(60, 45, 20, .08); }
.pd-card__img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--pd-mint); }
.pd-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pd-card__cat { font-size: 13px; font-weight: 600; color: var(--pd-green); }
.pd-card__title { margin: 0; font: 700 21px/1.3 var(--pd-head); }
.pd-card__excerpt { margin: 0; font-size: 15px; color: var(--pd-text); }
.pd-card__meta { margin-top: auto; font-size: 13px; color: var(--pd-muted); }

.pd-archive-head { padding-top: 48px; padding-bottom: 40px; }
.pd-archive-head h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.pd-archive-head p { margin: 14px 0 0; font-size: 19px; color: var(--pd-text); max-width: 680px; }

.pd-pagination { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px; }
.pd-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--pd-ink); text-decoration: none; font-weight: 600; }
.pd-pagination .page-numbers.current { background: var(--pd-green); color: #fff; }

/* Single article */
.pd-article-layout { display: flex; flex-wrap: wrap; gap: 64px; padding-top: 40px; padding-bottom: 96px; }
.pd-article { flex: 999 1 640px; min-width: 0; max-width: 760px; }
.pd-aside { flex: 1 1 280px; min-width: 0; }
.pd-aside__sticky { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 24px; }
.pd-breadcrumbs { font-size: 14px; color: var(--pd-muted); }
.pd-breadcrumbs a { color: var(--pd-muted); }
.pd-article__cat { display: inline-block; margin-top: 24px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pd-green); text-decoration: none; }
.pd-article h1 { margin: 12px 0 0; font-size: clamp(34px, 5vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; }
.pd-article__dek { margin: 20px 0 0; font-size: 20px; color: var(--pd-text); }
.pd-byline { margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--pd-line); border-bottom: 1px solid var(--pd-line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 14px; color: var(--pd-text); }
.pd-byline__author { display: flex; align-items: center; gap: 12px; }
.pd-byline__avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--pd-ink); color: var(--pd-cream); display: flex; align-items: center; justify-content: center; font: 800 16px var(--pd-head); overflow: hidden; }
.pd-byline__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pd-byline strong { color: var(--pd-ink); }
.pd-article__hero { margin: 32px 0 0; border-radius: var(--pd-radius); overflow: hidden; }

.pd-content { margin-top: 36px; font-family: var(--pd-serif); font-size: 20px; line-height: 1.75; color: #1F2427; }
.pd-content > * { margin-top: 0; margin-bottom: 1.1em; }
.pd-content h2 { margin: 2em 0 .6em; font-size: 32px; font-weight: 800; }
.pd-content h3 { margin: 1.6em 0 .5em; font-size: 24px; font-weight: 700; }
.pd-content h2, .pd-content h3, .pd-content h4 { font-family: var(--pd-head); }
.pd-content a { color: var(--pd-green); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
.pd-content strong { color: var(--pd-ink); }
.pd-content ul, .pd-content ol { padding-left: 1.3em; }
.pd-content li { margin-bottom: .4em; }
.pd-content img { border-radius: 20px; margin: 0 auto; }
.pd-content figure { margin: 2em 0; }
.pd-content figcaption { font: 14px var(--pd-body); color: var(--pd-muted); text-align: center; margin-top: 10px; }
.pd-content blockquote { margin: 2em 0; padding: 28px; background: #fff; border-radius: var(--pd-radius); font-family: var(--pd-head); font-size: 22px; font-weight: 700; line-height: 1.4; }
.pd-content blockquote p { margin: 0; }
.pd-content table { width: 100%; border-collapse: collapse; font: 15px var(--pd-body); display: block; overflow-x: auto; }
.pd-content th, .pd-content td { border-bottom: 1px solid var(--pd-line); padding: 12px; text-align: left; }
.pd-content th { background: var(--pd-mint); }
.pd-content .wp-block-rank-math-toc-block, .pd-content #rank-math-toc { background: #fff; border-radius: var(--pd-radius); padding: 24px 28px; font: 16px/1.7 var(--pd-body); }
.pd-content .wp-block-rank-math-toc-block h2, .pd-content #rank-math-toc h2 { margin-top: 0; font-size: 18px; }
.pd-content .rank-math-faq-item { background: #fff; border-radius: 20px; padding: 20px 24px; margin-bottom: 14px; }
.pd-content .rank-math-question { margin: 0 0 8px; font-size: 20px; }
.pd-content .pd-takeaways, .pd-content .is-style-takeaways { background: var(--pd-mint); border-radius: var(--pd-radius); padding: 24px 32px; font: 17px/1.7 var(--pd-body); }

.pd-disclaimer { margin-top: 48px; display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: var(--pd-radius); padding: 24px 28px; font-size: 15px; color: var(--pd-text); }
.pd-disclaimer svg { flex: none; margin-top: 2px; }
.pd-disclaimer p { margin: 0; }
.pd-disclaimer strong { color: var(--pd-ink); }

.pd-related { margin-top: 64px; }
.pd-related h2 { margin: 0 0 24px; font-size: 28px; font-weight: 800; }

.pd-box { background: #fff; border-radius: var(--pd-radius); padding: 24px; }
.pd-box--mint { background: var(--pd-mint); }
.pd-box__title { margin: 0; font: 700 20px/1.3 var(--pd-head); }
.pd-box p { margin: 8px 0 0; font-size: 15px; color: var(--pd-text); }
.pd-box .pd-form { margin-top: 14px; flex-direction: column; }
.pd-box .pd-form input[type="email"], .pd-box .pd-btn { flex: none; width: 100%; height: 50px; }
.pd-box ul { margin: 12px 0 0; padding-left: 18px; font-size: 15px; }
.pd-box li { margin-bottom: 6px; }

/* Pages */
.pd-page { max-width: 780px; padding-top: 48px; padding-bottom: 96px; }
.pd-page h1 { margin: 0 0 8px; font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.pd-page .pd-content { font-family: var(--pd-body); font-size: 18px; }

/* 404 and search */
.pd-empty { padding-top: 96px; padding-bottom: 120px; text-align: center; }
.pd-empty h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.pd-empty p { font-size: 19px; color: var(--pd-text); }
.pd-search { display: flex; gap: 12px; max-width: 520px; margin: 28px auto 0; }
.pd-search input[type="search"] { flex: 1; min-width: 0; height: 56px; padding: 0 22px; border: 2px solid var(--pd-line); border-radius: 999px; font: 16px var(--pd-body); }

/* Footer */
.pd-footer { background: var(--pd-cream-2); margin-top: 24px; }
.pd-footer__inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.pd-footer__brand { flex: 1 1 320px; min-width: 0; }
.pd-footer__name { margin: 0; font: 800 18px var(--pd-head); }
.pd-footer__tag { margin: 6px 0 0; font-size: 14px; color: var(--pd-muted); }
.pd-footer__legal { margin: 20px 0 0; font-size: 13px; color: var(--pd-muted); max-width: 520px; }
.pd-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; }
.pd-footer nav a { color: var(--pd-text); }
.pd-footer__copy { border-top: 1px solid var(--pd-line); padding-top: 20px; padding-bottom: 28px; font-size: 13px; color: var(--pd-muted); }

/* WordPress core */
.alignwide { max-width: 1000px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-image.alignfull, .alignfull { width: 100%; }
.wp-caption-text { font-size: 14px; color: var(--pd-muted); }
.sticky, .bypostauthor, .gallery-caption { }
