/*
Theme Name: Job Justification Girl
Theme URI: https://www.amazon.com/dp/B0GXGPVM8T
Author: Stephanie Haas
Description: Author and book website for "Don't Be a Job Justification Girl" by Stephanie Haas. Includes a book landing page, blog, and Meet the Author page.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: jjg
*/

:root {
	--blue: #2F5896;          /* cover blue */
	--blue-deep: #1C3663;     /* deeper band color */
	--blue-ink: #13254A;      /* text on light */
	--yellow: #EDD46A;        /* cover yellow scribble */
	--yellow-bright: #F4D443;
	--cream: #FAF7EE;
	--paper: #FFFFFF;
	--muted: #5A6784;
	--line: rgba(19, 37, 74, .14);
	--serif: "Fraunces", Georgia, serif;
	--sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
	--hand: "Patrick Hand", "Comic Sans MS", cursive;
	--wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--blue-ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }
.screen-reader-text { position: absolute; left: -9999px; }
.eyebrow {
	font-family: var(--sans); font-size: 12px; font-weight: 700;
	letter-spacing: .22em; text-transform: uppercase; color: var(--blue);
	margin-bottom: 14px; display: block;
}
.hand { font-family: var(--hand); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block; font-family: var(--sans); font-weight: 700;
	font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
	padding: 15px 30px; border-radius: 2px; text-decoration: none;
	transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow-bright); color: var(--blue-ink); }
.btn--yellow:hover { background: #fff; color: var(--blue-ink); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); color: #fff; }
.btn--ghost { border: 1.5px solid currentColor; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--blue-deep); }

/* ---------- Header ---------- */
.site-header { background: var(--blue-deep); color: #fff; position: relative; z-index: 20; }
.site-header .wrap {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	min-height: 92px;
}
.header-left a, .main-nav a {
	color: #fff; text-decoration: none; font-size: 12px; font-weight: 600;
	letter-spacing: .2em; text-transform: uppercase;
}
.header-left a:hover, .main-nav a:hover { color: var(--yellow); }
.site-title {
	font-family: var(--serif); font-size: 30px; letter-spacing: .06em;
	text-transform: uppercase; color: #fff; text-decoration: none; font-weight: 400;
	text-align: center; line-height: 1;
}
.site-title:hover { color: #fff; }
.site-title small { display: block; font-family: var(--hand); font-size: 15px; letter-spacing: .04em; text-transform: none; color: var(--yellow); margin-top: 6px; }
.main-nav { justify-self: end; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.main-nav a { white-space: nowrap; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--yellow); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; justify-self: end; }

/* ---------- Hero ---------- */
.hero {
	background: var(--blue-deep); color: #fff; position: relative; z-index: 5;
	padding: 40px 0 0;
}
.hero-words {
	position: absolute; inset: 40px 0 auto 0; text-align: center; pointer-events: none;
	font-family: var(--serif); font-size: clamp(38px, 6.2vw, 78px); line-height: 1.02;
	text-transform: uppercase; color: rgba(255,255,255,.07); white-space: nowrap;
	letter-spacing: -.01em; overflow: hidden;
}
.hero-words span { display: block; }
.hero-words span:nth-child(even) { transform: translateX(-6%); }
.hero-inner { position: relative; display: flex; justify-content: center; z-index: 2; }
.hero-book {
	width: min(330px, 70vw); margin-bottom: -150px;
	box-shadow: 0 30px 60px rgba(8, 18, 40, .45), 0 6px 14px rgba(8,18,40,.3);
	transform: rotate(-1.5deg);
}
.hero-tag {
	position: absolute; right: calc(50% - 330px); top: 60px; z-index: 3;
	font-family: var(--hand); color: var(--yellow); font-size: 22px; line-height: 1.1;
	transform: rotate(6deg); text-align: left;
}
.hero-tag::before { content: "↙"; display: block; font-size: 30px; margin-left: -8px; transform: rotate(40deg); width: 20px; }

/* Marquee band */
.marquee {
	background: var(--yellow); color: var(--blue-ink); overflow: hidden; margin-top: 0;
	border-top: 1px solid var(--blue-ink); border-bottom: 1px solid var(--blue-ink);
	position: relative; z-index: 1;
}
.marquee-track {
	display: flex; width: max-content; animation: marquee 38s linear infinite;
	font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
	padding: 12px 0;
}
.marquee-track span { padding: 0 18px; }
.marquee-track span::after { content: "·"; margin-left: 36px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Book intro ---------- */
.intro { background: var(--cream); padding: 190px 0 90px; text-align: center; }
.intro h2 { font-size: clamp(32px, 4.4vw, 50px); max-width: 780px; margin: 0 auto 36px; }
.intro h2 em { font-style: italic; color: var(--blue); }
.intro-cols {
	display: grid; grid-template-columns: 1fr 1fr; gap: 44px; text-align: left;
	max-width: 900px; margin: 0 auto 40px; font-size: 16px; color: #33415f;
}
.intro-cols > div:first-child p:first-child::first-letter {
	font-family: var(--serif); float: left; font-size: 62px; line-height: .8;
	padding: 6px 10px 0 0; color: var(--blue);
}

/* ---------- Pull quote band ---------- */
.quote-band { background: var(--blue); color: #fff; padding: 100px 0; text-align: center; position: relative; }
.quote-band blockquote {
	margin: 0 auto; max-width: 820px; font-family: var(--serif);
	font-size: clamp(26px, 3.4vw, 40px); line-height: 1.3; font-weight: 400;
}
.quote-band blockquote strong { font-weight: 500; color: var(--yellow); }
.quote-band cite { display: block; margin-top: 26px; font-style: normal; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.squiggle { display: block; margin: 0 auto 26px; width: 70px; }

/* ---------- Personas ---------- */
.personas { background: var(--blue-deep); color: #fff; padding: 96px 0; }
.personas-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: end; margin-bottom: 50px; }
.personas-head h2 { font-size: clamp(32px, 4vw, 48px); margin: 0; }
.personas-head h2 .num { font-family: var(--hand); color: var(--yellow); font-size: 1.3em; }
.personas-head p { color: rgba(255,255,255,.78); margin: 0; }
.personas .eyebrow { color: var(--yellow); }
.persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.persona {
	border: 1px solid rgba(255,255,255,.18); padding: 28px 24px 26px; border-radius: 4px;
	background: rgba(255,255,255,.03); transition: background .2s ease, border-color .2s ease;
}
.persona:hover { background: rgba(237, 212, 106, .08); border-color: var(--yellow); }
.persona .n { font-family: var(--hand); color: var(--yellow); font-size: 22px; }
.persona h3 { font-size: 24px; margin: 6px 0 10px; }
.persona p { font-size: 15px; color: rgba(255,255,255,.72); margin: 0; }
.persona--more { background: var(--yellow); color: var(--blue-ink); border-color: var(--yellow); display: flex; flex-direction: column; justify-content: center; }
.persona--more:hover { background: var(--yellow-bright); }
.persona--more p { color: var(--blue-ink); }
.persona--more a { color: var(--blue-ink); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-top: 14px; display: inline-block; }

/* ---------- Mirror (who it's for) ---------- */
.mirror { padding: 96px 0; background: var(--paper); }
.mirror .center { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.mirror h2 { font-size: clamp(30px, 3.6vw, 44px); }
.mirror-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mirror-card { border-top: 3px solid var(--blue); padding-top: 22px; }
.mirror-card .k { font-family: var(--hand); font-size: 26px; color: var(--blue); }
.mirror-card h3 { font-size: 22px; margin: 4px 0 10px; }
.mirror-card p { color: #3f4c69; font-size: 16px; }
.mirror-outcomes { margin-top: 60px; background: var(--cream); padding: 34px 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-left: 5px solid var(--yellow-bright); }
.mirror-outcomes p { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.35; }

/* ---------- Author teaser ---------- */
.author-teaser { background: var(--cream); padding: 96px 0; }
.author-grid { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.author-photo { position: relative; }
.author-photo img, .author-photo .ph { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; border-radius: 4px; position: relative; z-index: 1; }
.author-photo::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--yellow-bright); border-radius: 4px; }
.ph {
	background: var(--blue); color: var(--yellow); display: flex; align-items: center; justify-content: center;
	font-family: var(--serif); font-size: 96px; letter-spacing: .02em;
}
.author-grid h2 { font-size: clamp(32px, 4vw, 46px); }
.author-grid .lede { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--blue); }

/* ---------- Latest posts ---------- */
.latest { background: var(--paper); padding: 90px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 0; }
.link-arrow { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.post-card { display: flex; flex-direction: column; }
.post-card .thumb { display: block; aspect-ratio: 3/2; background: var(--blue); overflow: hidden; border-radius: 3px; margin-bottom: 18px; position: relative; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .thumb .noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--hand); color: var(--yellow); font-size: 64px; }
.post-meta { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.post-meta a { color: var(--blue); text-decoration: none; }
.post-card h3 { font-size: 23px; margin-bottom: 10px; }
.post-card h3 a { color: var(--blue-ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); }
.post-card p { font-size: 15.5px; color: #44506b; }
.empty-note { background: var(--cream); padding: 30px; border-radius: 4px; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* ---------- CTA ---------- */
.cta { background: var(--blue); color: #fff; padding: 80px 0; }
.cta-grid { display: grid; grid-template-columns: 200px 1fr auto; gap: 48px; align-items: center; }
.cta img { box-shadow: 0 18px 40px rgba(0,0,0,.35); transform: rotate(-3deg); }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 10px; }
.cta p { margin: 0; color: rgba(255,255,255,.82); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-ink); color: rgba(255,255,255,.7); padding: 56px 0 30px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { font-family: var(--serif); font-size: 24px; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: #fff; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.footer-nav a:hover { color: var(--yellow); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Page banners ---------- */
.page-banner { background: var(--blue-deep); color: #fff; padding: 80px 0 70px; text-align: center; position: relative; overflow: hidden; }
.page-banner h1 { font-size: clamp(38px, 5.4vw, 64px); margin: 0 auto; max-width: 820px; }
.page-banner p { color: rgba(255,255,255,.78); max-width: 620px; margin: 18px auto 0; }
.page-banner .eyebrow { color: var(--yellow); }
.page-banner .scribble { position: absolute; right: -40px; top: -40px; width: 240px; opacity: .22; }

/* ---------- Blog listing ---------- */
.blog-main { padding: 80px 0 100px; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: -8px 0 50px; }
.cat-filter a { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 9px 16px; border: 1px solid var(--line); border-radius: 30px; color: var(--blue-ink); background: #fff; }
.cat-filter a:hover, .cat-filter a.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination { margin-top: 60px; display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); text-decoration: none; color: var(--blue-ink); background: #fff; }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Single post / page ---------- */
.article { padding: 70px 0 90px; }
.article-header { text-align: center; margin-bottom: 40px; }
.article-header h1 { font-size: clamp(34px, 4.6vw, 54px); }
.article-hero { margin: 0 auto 50px; max-width: 980px; }
.article-hero img { width: 100%; aspect-ratio: 2/1; object-fit: cover; border-radius: 4px; }
.entry-content { font-size: 18px; line-height: 1.75; color: #28365a; }
.entry-content h2 { font-size: 32px; margin-top: 1.6em; }
.entry-content h3 { font-size: 25px; margin-top: 1.4em; }
.entry-content blockquote { margin: 1.6em 0; padding: 6px 0 6px 26px; border-left: 4px solid var(--yellow-bright); font-family: var(--serif); font-size: 24px; line-height: 1.45; color: var(--blue); }
.entry-content a { text-decoration-color: var(--yellow-bright); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content img { border-radius: 4px; margin: 1.4em 0; }
.post-book-box { margin-top: 60px; background: var(--blue); color: #fff; padding: 30px; border-radius: 4px; display: grid; grid-template-columns: 100px 1fr; gap: 26px; align-items: center; }
.post-book-box h3 { font-size: 22px; margin-bottom: 6px; }
.post-book-box p { margin: 0 0 14px; color: rgba(255,255,255,.8); font-size: 15px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); font-size: 15px; }
.post-nav a { text-decoration: none; font-weight: 600; }

/* ---------- Author page ---------- */
.about-main { padding: 90px 0; }
.about-body .lede { font-family: var(--serif); font-size: 24px; line-height: 1.45; color: var(--blue); margin-bottom: 1.2em; }
.about-body h2 { font-size: 30px; margin-top: 1.5em; }
.fact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 70px; }
.fact { background: #fff; padding: 28px; border-radius: 4px; border-top: 3px solid var(--yellow-bright); }
.fact .big { font-family: var(--serif); font-size: 44px; color: var(--blue); line-height: 1; }
.fact p { margin: 10px 0 0; font-size: 15px; color: #44506b; }
.signature { font-family: var(--hand); font-size: 32px; color: var(--blue); margin-top: 20px; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 60px; }
.comments-area input[type=text], .comments-area input[type=email], .comments-area input[type=url], .comments-area textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 3px; font: inherit; background: #fff; }
.comments-area .submit { background: var(--blue); color: #fff; border: 0; padding: 14px 26px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; cursor: pointer; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }

/* ---------- WP core alignments ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.persona-grid { grid-template-columns: repeat(2, 1fr); }
	.author-grid { grid-template-columns: 1fr; gap: 50px; }
	.author-photo { max-width: 340px; }
	.cta-grid { grid-template-columns: 140px 1fr; }
	.cta-grid .btn { grid-column: 1 / -1; justify-self: start; }
	.hero-tag { display: none; }
}
@media (max-width: 780px) {
	.site-header .wrap { grid-template-columns: auto 1fr auto; min-height: 76px; }
	.header-left { display: none; }
	.site-title { font-size: 22px; text-align: left; }
	.site-title small { font-size: 13px; }
	.nav-toggle { display: block; }
	.main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--blue-deep); display: none; padding: 10px 24px 24px; border-top: 1px solid rgba(255,255,255,.1); }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
	.intro-cols, .personas-head, .mirror-grid, .post-grid, .fact-row { grid-template-columns: 1fr; }
	.persona-grid { grid-template-columns: 1fr; }
	.mirror-outcomes { flex-direction: column; align-items: flex-start; padding: 28px; }
	.intro { padding-top: 170px; }
	.cta-grid { grid-template-columns: 1fr; text-align: left; }
	.cta img { width: 150px; }
	.post-book-box { grid-template-columns: 1fr; }
	.post-book-box img { width: 90px; }
}
