/*
Theme Name: Deepa (Lamp)
Theme URI: https://psychologyforeveryone.com
Author: Satish Zope
Description: A dusk-indigo theme lit by the diya on the book cover: the cover painting as the hero, and the ten volumes as spines on a shelf. Built for the Psychology for Everyone plugin.
Version: 1.0.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: pfe-deepa
*/

:root {
	--pfe-bg: #1b2340;
	--pfe-surface: #222b4c;
	--pfe-surface-2: #2a345a;
	--pfe-ink: #f1e8d6;
	--pfe-ink-2: #d9cfbd;
	--pfe-muted: #a9a2b6;
	--pfe-line: rgba(241, 232, 214, .14);
	--pfe-accent: #e7aa3c;
	--pfe-accent-ink: #1d1406;
	--pfe-accent-2: #e7aa3c;
	--pfe-focus: #ffd27a;
	--pfe-ok: #7fcf9b;
	--pfe-good: #8fb6ff;
	--pfe-warn: #f0c060;
	--pfe-bad: #f08a7e;
	--pfe-radius: 6px;
	--pfe-radius-sm: 4px;
	--pfe-shadow: 0 10px 30px rgba(6, 10, 26, .35);
	--pfe-font-body: "Fraunces", Georgia, serif;
	--pfe-font-head: "Fraunces", Georgia, serif;
	--pfe-font-ui: "Mukta", system-ui, sans-serif;
	--night: #121933;
}
html { background: var(--pfe-bg); }
body { margin: 0; background: var(--pfe-bg); color: var(--pfe-ink); font-family: var(--pfe-font-ui); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--pfe-accent); }
img { max-width: 100%; height: auto; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100001; background: var(--pfe-accent); color: var(--pfe-accent-ink); padding: 10px 16px; clip: auto; clip-path: none; width: auto; height: auto; }
.pfe-kicker { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 500; font-style: italic; font-family: var(--pfe-font-body); }
.pfe-title { font-weight: 400; font-variation-settings: "opsz" 144, "SOFT" 50; }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--night) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--pfe-line); }
.site-header-in { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 20px; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pfe-ink); font-family: var(--pfe-font-head); font-size: 1.2rem; }
.site-mark { width: 14px; height: 22px; border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%; background: radial-gradient(ellipse at 50% 70%, #fff6d5 0%, #ffd27a 40%, #e98a1e 75%); box-shadow: 0 0 16px #ffb84d; }
.site-logo { width: 40px; height: 40px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.site-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-menu a { display: block; padding: 8px 12px; color: var(--pfe-ink-2); text-decoration: none; border-radius: 4px; }
.site-menu a:hover, .site-menu .current-menu-item a { color: var(--pfe-ink); background: var(--pfe-surface); }
.site-tools { display: flex; gap: 8px; }
.site-tools a { display: inline-flex; align-items: center; gap: 6px; color: var(--pfe-ink); text-decoration: none; padding: 8px 12px; border: 1px solid var(--pfe-line); border-radius: 999px; }
.site-tools a:hover { border-color: var(--pfe-accent); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--pfe-ink); cursor: pointer; }
@media (max-width: 980px) {
	.menu-toggle { display: block; }
	.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--night); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--pfe-line); }
	.pfe-menu-open .site-nav { display: flex; }
	.site-menu { flex-direction: column; }
	.site-tools { margin-top: 8px; }
}

/* home hero: the cover painting, with the lamp at its foot */
.deepa-hero { position: relative; background: radial-gradient(ellipse 60% 70% at 78% 80%, rgba(231, 170, 60, .16), transparent 70%), var(--night); overflow: hidden; }
.deepa-hero-in { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) 20px clamp(48px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.deepa-hero-text { grid-column: 1; grid-row: 1; min-width: 0; }
.deepa-window { grid-column: 2; grid-row: 1; margin: 0; aspect-ratio: 4 / 5; border-radius: 240px 240px 6px 6px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(231, 170, 60, .25); }
.deepa-window img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 78%; display: block; }
@media (max-width: 820px) { .deepa-hero-in { grid-template-columns: 1fr; } .deepa-window { grid-row: 1; grid-column: 1; max-width: 320px; aspect-ratio: 1; justify-self: center; } .deepa-hero-text { grid-row: 2; } }
.deepa-hero h1 { font-family: var(--pfe-font-head); font-weight: 300; font-size: clamp(3rem, 9vw, 7.2rem); line-height: .95; letter-spacing: -.02em; margin: 0 0 18px; max-width: 9ch; font-variation-settings: "opsz" 144, "SOFT" 100; color: #fff6e6; text-shadow: 0 2px 30px rgba(0, 0, 0, .4); }
.deepa-tag { font-family: var(--pfe-font-head); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--pfe-accent); margin: 0 0 12px; }
.deepa-intro { font-size: 1.15rem; max-width: 46ch; color: var(--pfe-ink-2); margin: 0 0 8px; }
.deepa-hero .pfe-searchbox { margin-top: 18px; background: rgba(34, 43, 76, .85); }

.deepa-section { padding-top: 64px; padding-bottom: 32px; }
.deepa-h { font-family: var(--pfe-font-head); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 12px; }
.deepa-sub { color: var(--pfe-muted); margin: 0 0 24px; }
.deepa-why { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-top: 72px; }
.deepa-why h2 { font-family: var(--pfe-font-head); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 16px; }
.deepa-why p { font-family: var(--pfe-font-body); font-size: 1.15rem; line-height: 1.75; color: var(--pfe-ink-2); max-width: 60ch; }
.deepa-facts { border-left: 2px solid var(--pfe-accent); padding-left: 24px; font-size: 1.05rem !important; font-family: var(--pfe-font-ui) !important; color: var(--pfe-ink) !important; }
@media (max-width: 820px) { .deepa-why { grid-template-columns: 1fr; gap: 16px; } }

/* the bookshelf */
.deepa-shelf-wrap { padding: 64px 0 24px; }
.deepa-shelf { display: flex; gap: 10px; align-items: flex-end; overflow-x: auto; padding: 8px 20px 0; max-width: 1240px; margin: 0 auto; scroll-snap-type: x mandatory; border-bottom: 14px solid #3a2a18; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .8); }
.deepa-spine { scroll-snap-align: start; flex: 0 0 auto; width: clamp(74px, 8.6vw, 104px); height: clamp(300px, 34vw, 380px); background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.08) 18%, rgba(0,0,0,0) 40%, rgba(0,0,0,.28)), var(--c); border-radius: 3px 3px 0 0; color: #fbf3e2; text-decoration: none; display: flex; flex-direction: column; align-items: center; padding: 16px 0 14px; transition: transform .25s ease; position: relative; }
.deepa-spine:nth-child(3n) { height: clamp(280px, 32vw, 350px); }
.deepa-spine:nth-child(4n+1) { height: clamp(320px, 36vw, 400px); }
.deepa-spine::after { content: ""; position: absolute; left: 8px; right: 8px; top: 64px; border-top: 1px solid rgba(255, 235, 200, .5); }
.deepa-spine:hover, .deepa-spine:focus-visible { transform: translateY(-14px); outline-offset: 4px; }
.deepa-spine-n { font-family: var(--pfe-font-head); font-size: 2rem; line-height: 1; color: #ffe2a8; }
.deepa-spine-t { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--pfe-font-head); font-size: 1.02rem; margin-top: 44px; letter-spacing: .01em; }

.deepa-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: start; }
.deepa-media .pfe-unlock { margin: 0; grid-template-columns: 1fr; }
@media (max-width: 900px) { .deepa-media { grid-template-columns: 1fr; } }
.deepa-test { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--pfe-line); border-bottom: 1px solid var(--pfe-line); margin-top: 48px; padding-bottom: 56px; }
.deepa-test p { max-width: 62ch; color: var(--pfe-ink-2); }
.deepa-book { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.deepa-book img { width: 100%; border-radius: 4px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
@media (max-width: 700px) { .deepa-book { grid-template-columns: 1fr; } .deepa-book img { max-width: 220px; } }
.deepa-contact { background: var(--night); padding: 56px 0; margin-top: 56px; text-align: center; }
.deepa-contact h2 { font-family: var(--pfe-font-head); font-weight: 400; font-size: 2rem; margin: 0 0 8px; }
.deepa-contact p { font-size: 1.1rem; color: var(--pfe-ink-2); max-width: 70ch; margin: 0 auto; }

@media (min-width: 900px) { .deepa-home .pfe-paths { grid-template-columns: repeat(3, 1fr); } }
.deepa-book .pfe-author { grid-template-columns: 1fr; margin-top: 0; }
.deepa-book .pfe-author-mark { display: none; }

/* components on dark */
.pfe-searchbox, .pfe-card, .pfe-vcard, .pfe-path, .pfe-topic, .pfe-mcard, .pfe-pn, .pfe-stat, .pfe-test-run, .pfe-chip, .pfe-table { background: var(--pfe-surface); }
.pfe-path .pfe-ico { color: var(--pfe-accent); }
.pfe-unlock { background: linear-gradient(160deg, #2c2a3f, var(--pfe-surface)); border-color: rgba(231, 170, 60, .35); }
.pfe-verse { background: rgba(231, 170, 60, .08); border-color: rgba(231, 170, 60, .3); }
.pfe-callout { background: var(--pfe-surface-2); }
.pfe-fig img { background: #f6f1e7; }
.pfe-ring::before { background: var(--pfe-bg); }
.pfe-btn-ghost { color: var(--pfe-ink) !important; border-color: rgba(241, 232, 214, .4); }
.pfe-btn-ghost:hover { border-color: var(--pfe-accent); color: var(--pfe-accent) !important; background: transparent; }

/* pages */
.page-head { margin-bottom: 8px; }
.page-content > p, .page-content > ul, .page-content > h2 { max-width: 72ch; }
.page-content h2 { font-family: var(--pfe-font-head); font-weight: 400; }

/* footer */
.site-footer { background: var(--night); border-top: 1px solid var(--pfe-line); padding: 56px 20px 24px; color: var(--pfe-ink-2); font-size: .95rem; }
.site-footer-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .site-menu { flex-direction: column; gap: 0; }
.site-footer .site-menu a { padding: 4px 0; background: none; }
.foot-title { font-family: var(--pfe-font-head); color: var(--pfe-ink); font-size: 1.1rem; margin: 0 0 8px; }
.foot-col p { margin: 0 0 14px; }
.foot-col a { color: var(--pfe-ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--pfe-accent); }
.foot-base { max-width: 1240px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--pfe-line); font-size: .85rem; color: var(--pfe-muted); }
@media (max-width: 860px) { .site-footer-in { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer-in { grid-template-columns: 1fr; } }
