/*
Theme Name: Daily Prophecy
Theme URI: https://dailyprophecy.org/
Author: Daily Prophecy
Description: Premium editorial WordPress theme for Daily Prophecy and ContentLase-generated poster devotionals.
Version: 1.2.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: daily-prophecy
*/

:root {
  --dp-ink: #111111;
  --dp-muted: #66615a;
  --dp-gold: #d8a93f;
  --dp-gold-deep: #b88724;
  --dp-ivory: #fbfaf7;
  --dp-paper: #ffffff;
  --dp-line: #e9e5dd;
  --dp-shadow: 0 14px 40px rgba(0,0,0,.08);
  --dp-radius: 22px;
  --dp-max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--dp-ink);
  background: var(--dp-ivory);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.dp-shell { width: min(calc(100% - 40px), var(--dp-max)); margin-inline: auto; }
.dp-site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,247,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17,17,17,.06);
}
.dp-header-inner { min-height: 82px; display:flex; align-items:center; justify-content:space-between; gap:30px; }
.dp-brand { display:flex; align-items:center; gap:13px; font-family: Georgia, 'Times New Roman', serif; font-size:1.45rem; line-height:1; font-weight:700; letter-spacing:-.025em; white-space:nowrap; }
.dp-brand .custom-logo { width:44px; height:44px; object-fit:contain; border-radius:50%; }
.dp-nav { display:flex; gap:30px; align-items:center; font-size:.94rem; font-weight:650; }
.dp-nav a { color:#26221e; }
.dp-nav a:hover { color:var(--dp-gold-deep); }
.dp-menu-toggle { display:none; border:0; background:transparent; font-size:1.45rem; }

.dp-hero { padding: 108px 0 72px; text-align:center; }
.dp-eyebrow { text-transform:uppercase; letter-spacing:.24em; font-size:.76rem; font-weight:700; color:#6c665f; }
.dp-hero h1 { margin: 18px auto 20px; font: 700 clamp(4rem, 9vw, 7.8rem)/.9 Georgia, 'Times New Roman', serif; letter-spacing:-.055em; max-width:1000px; }
.dp-hero p { max-width:760px; margin:0 auto; font-size:clamp(1.15rem, 2vw, 1.7rem); color:#4e4944; line-height:1.5; }
.dp-button { display:inline-flex; align-items:center; justify-content:center; margin-top:32px; min-height:58px; padding:0 30px; border-radius:999px; background:#121212; color:#fff; font-weight:700; box-shadow:var(--dp-shadow); transition:.2s ease; }
.dp-button:hover { transform:translateY(-2px); background:#252525; }
.dp-button--light { background:#fff; color:#111; border:1px solid var(--dp-line); box-shadow:none; }

.dp-section { padding: 70px 0; }
.dp-section--white { background:var(--dp-paper); }
.dp-section-heading { display:flex; justify-content:space-between; align-items:end; gap:42px; margin-bottom:38px; }
.dp-section-heading h2 { margin:0; font:700 clamp(2.1rem, 4vw, 3.4rem)/1 Georgia, 'Times New Roman', serif; letter-spacing:-.035em; }
.dp-section-heading p { margin:0; max-width:540px; color:var(--dp-muted); }

.dp-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:30px; row-gap:58px; align-items:start; }
.dp-card { background:transparent; min-width:0; display:flex; flex-direction:column; }
.dp-card-media { position:relative; border-radius:18px; overflow:hidden; background:#eeeae2; aspect-ratio:4/5; box-shadow:0 10px 30px rgba(26,19,10,.075); border:1px solid rgba(17,17,17,.045); transition:transform .25s ease, box-shadow .25s ease; }
.dp-card-media img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.dp-card:hover .dp-card-media { transform:translateY(-3px); box-shadow:0 18px 38px rgba(26,19,10,.12); }
.dp-card:hover .dp-card-media img { transform:scale(1.012); }
.dp-card-body { padding:17px 3px 0; min-height:86px; }
.dp-card-title { margin:0; font:700 1.18rem/1.28 Georgia, 'Times New Roman', serif; letter-spacing:-.018em; text-wrap:balance; }
.dp-card-title a:hover { color:#8b641a; }
.dp-card-meta { margin-top:8px; font-size:.76rem; font-weight:700; letter-spacing:.075em; text-transform:uppercase; color:#8a8279; }

.dp-topics { display:flex; flex-wrap:wrap; gap:12px; }
.dp-topic { display:inline-flex; align-items:center; min-height:46px; padding:0 19px; border:1px solid var(--dp-line); background:#fff; border-radius:999px; font-weight:650; color:#312d29; }
.dp-topic:hover { border-color:var(--dp-gold); color:#8b641a; }

.dp-feature { display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); gap:52px; align-items:center; }
.dp-feature-media { border-radius:28px; overflow:hidden; box-shadow:var(--dp-shadow); }
.dp-feature-media img { width:100%; aspect-ratio:4/5; object-fit:cover; }
.dp-feature-copy .dp-eyebrow { color:#8a6a2a; }
.dp-feature-copy h2 { margin:15px 0 18px; font:700 clamp(2.7rem,5vw,4.7rem)/.98 Georgia, 'Times New Roman', serif; letter-spacing:-.045em; }
.dp-feature-copy p { color:#514c46; font-size:1.1rem; }
.dp-scripture { display:inline-block; margin:6px 0 6px; color:#8b641a; font-weight:750; text-transform:uppercase; letter-spacing:.08em; font-size:.82rem; }

.dp-gallery-hero { padding:88px 0 42px; text-align:center; border-bottom:1px solid rgba(17,17,17,.045); }
.dp-gallery-hero h1 { margin:10px 0 14px; font:700 clamp(3.2rem,7vw,6rem)/.95 Georgia,'Times New Roman',serif; letter-spacing:-.05em; }
.dp-gallery-hero p { max-width:760px; margin:auto; color:var(--dp-muted); font-size:1.08rem; line-height:1.75; }
.dp-filter-row { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin:32px 0 2px; scroll-margin-top:110px; }
.dp-filter-row .dp-topic.is-active { background:#111; color:#fff; border-color:#111; }
.dp-pagination { display:flex; gap:10px; justify-content:center; align-items:center; margin-top:42px; }
.dp-pagination .page-numbers { display:inline-flex; min-width:44px; height:44px; align-items:center; justify-content:center; border-radius:999px; border:1px solid var(--dp-line); background:#fff; }
.dp-pagination .current { background:#111; color:#fff; border-color:#111; }

.dp-single { padding:70px 0 90px; }
.dp-single-layout { display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); gap:60px; align-items:start; }
.dp-single-poster { position:sticky; top:105px; border-radius:28px; overflow:hidden; box-shadow:var(--dp-shadow); background:#eee; }
.dp-single-poster img { width:100%; }
.dp-single-copy h1 { margin:0 0 18px; font:700 clamp(2.7rem,5vw,4.8rem)/1 Georgia,'Times New Roman',serif; letter-spacing:-.04em; }
.dp-single-copy .dp-caption { font-size:1.08rem; color:#413c37; }
.dp-single-copy .dp-caption p { margin:0 0 1.25em; }
.dp-share { margin-top:28px; padding-top:24px; border-top:1px solid var(--dp-line); display:flex; gap:12px; flex-wrap:wrap; }
.dp-share a { border:1px solid var(--dp-line); padding:10px 15px; border-radius:999px; background:#fff; font-weight:650; }

.dp-related { padding:55px 0 85px; border-top:1px solid var(--dp-line); }
.dp-related h2 { font:700 2.4rem/1 Georgia,'Times New Roman',serif; margin:0 0 28px; }

.dp-standard { width:min(calc(100% - 40px), 840px); margin:70px auto; }
.dp-standard h1 { font:700 clamp(2.8rem,6vw,5rem)/1 Georgia,'Times New Roman',serif; letter-spacing:-.04em; }
.dp-standard .entry-content { font-size:1.08rem; }

.dp-site-footer { border-top:1px solid var(--dp-line); background:#f4f1eb; padding:50px 0; margin-top:40px; }
.dp-footer-inner { display:flex; align-items:flex-start; justify-content:space-between; gap:30px; }
.dp-footer-brand { font:700 1.7rem Georgia,'Times New Roman',serif; }
.dp-footer-copy { color:#716b64; font-size:.92rem; max-width:560px; }

.dp-empty { text-align:center; padding:70px 20px; color:var(--dp-muted); }
.screen-reader-text { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }


/* v1.1 editorial polish */
.dp-site-header { box-shadow:0 1px 0 rgba(17,17,17,.025); }
.dp-site-header .dp-shell { width:min(calc(100% - 48px), 1280px); }
.dp-hero { background:radial-gradient(circle at 50% 20%, #fff 0, rgba(255,255,255,.86) 34%, rgba(251,250,247,0) 72%); }
.dp-topics-section { border-top:1px solid rgba(17,17,17,.035); border-bottom:1px solid rgba(17,17,17,.035); }
.dp-card-media::after { content:""; position:absolute; inset:0; pointer-events:none; box-shadow:inset 0 0 0 1px rgba(255,255,255,.12); border-radius:inherit; }
.dp-pagination { padding-top:12px; }
.dp-pagination .page-numbers { transition:.2s ease; }
.dp-pagination a.page-numbers:hover { border-color:var(--dp-gold); color:#8b641a; transform:translateY(-1px); }
.dp-gallery-hero + .dp-section { padding-top:54px; }
.dp-section > .dp-shell > .dp-grid { margin-bottom:6px; }

@media (max-width: 900px) {
  .dp-grid { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:22px; row-gap:44px; }
  .dp-feature, .dp-single-layout { grid-template-columns:1fr; gap:32px; }
  .dp-single-poster { position:static; }
  .dp-nav { display:none; position:absolute; top:82px; left:0; right:0; background:var(--dp-ivory); padding:20px 24px 26px; border-bottom:1px solid var(--dp-line); flex-direction:column; align-items:flex-start; }
  .dp-nav.is-open { display:flex; }
  .dp-menu-toggle { display:block; }
  .dp-footer-inner { flex-direction:column; }
}
@media (max-width: 620px) {
  .dp-shell { width:min(calc(100% - 26px), var(--dp-max)); }
  .dp-hero { padding:72px 0 48px; }
  .dp-hero h1 { font-size:clamp(3.5rem,19vw,5.2rem); }
  .dp-hero p { font-size:1.05rem; }
  .dp-grid { grid-template-columns:1fr; row-gap:38px; }
  .dp-card { max-width:520px; width:100%; margin-inline:auto; }
  .dp-card-media { border-radius:15px; }
  .dp-card-body { padding-top:14px; min-height:0; }
  .dp-card-title { font-size:1.08rem; line-height:1.3; }
  .dp-card-meta { margin-top:7px; font-size:.72rem; }
  .dp-section { padding:40px 0; }
  .dp-section-heading { align-items:flex-start; flex-direction:column; }
  .dp-feature-copy h2 { font-size:3rem; }
  .dp-gallery-hero { padding:54px 0 32px; }
  .dp-gallery-hero h1 { font-size:clamp(3rem,15vw,4.6rem); }
  .dp-single { padding-top:35px; }
  .dp-single-copy h1 { font-size:3rem; }
}


/* v1.2 social discovery */
.dp-social-section { padding-top:54px; padding-bottom:82px; }
.dp-social-panel {
  display:grid; grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr); gap:48px; align-items:center;
  padding:48px 52px; border:1px solid var(--dp-line); border-radius:28px;
  background:linear-gradient(135deg,#fff 0%,#f8f4ec 100%); box-shadow:0 18px 55px rgba(28,22,13,.055);
}
.dp-social-panel h2 { margin:10px 0 14px; font:700 clamp(2.35rem,4.5vw,4rem)/1 Georgia,'Times New Roman',serif; letter-spacing:-.04em; }
.dp-social-panel p { margin:0; max-width:650px; color:var(--dp-muted); font-size:1.05rem; }
.dp-social-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.dp-social-link {
  min-height:58px; display:flex; align-items:center; gap:12px; padding:0 16px;
  border:1px solid #e6e0d6; border-radius:16px; background:#fff; font-weight:750; transition:.2s ease;
}
.dp-social-link:hover { transform:translateY(-2px); border-color:var(--dp-gold); box-shadow:0 10px 25px rgba(28,22,13,.07); }
.dp-social-mark {
  width:32px; height:32px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  background:#111; color:#fff; font-size:.79rem; font-weight:800; flex:0 0 32px;
}
.dp-footer-social { display:flex; gap:9px; margin-top:18px; }
.dp-footer-social a {
  width:36px; height:36px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid #ddd5c8; background:#fff; color:#222; font-weight:800; transition:.2s ease;
}
.dp-footer-social a:hover { border-color:var(--dp-gold); color:#8b641a; transform:translateY(-1px); }

@media (max-width:900px) {
  .dp-social-panel { grid-template-columns:1fr; gap:28px; padding:38px 32px; }
}
@media (max-width:620px) {
  .dp-social-section { padding-top:34px; padding-bottom:52px; }
  .dp-social-panel { padding:30px 22px; border-radius:22px; }
  .dp-social-links { grid-template-columns:1fr; }
}


/* v1.2.1 header social icons */
.dp-header-actions { display:flex; align-items:center; justify-content:flex-end; gap:18px; min-width:0; }
.dp-header-social { display:flex; align-items:center; gap:7px; padding-left:16px; border-left:1px solid var(--dp-line); }
.dp-header-social-link {
  width:34px; height:34px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  color:#1b1917; background:#fff; border:1px solid #e2ddd4; transition:transform .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.dp-header-social-link svg { width:17px; height:17px; display:block; }
.dp-header-social-link:hover { transform:translateY(-2px); border-color:var(--dp-gold); color:#8b641a; box-shadow:0 6px 15px rgba(28,22,13,.08); }
.dp-social-mark svg { width:17px; height:17px; display:block; }
.dp-footer-social a svg { width:17px; height:17px; display:block; }

@media (max-width: 1050px) {
  .dp-nav { gap:20px; }
  .dp-header-actions { gap:12px; }
  .dp-header-social { padding-left:11px; gap:5px; }
  .dp-header-social-link { width:32px; height:32px; }
}
@media (max-width: 900px) {
  .dp-header-actions { margin-left:auto; }
  .dp-header-social { border-left:0; padding-left:0; gap:6px; }
  .dp-header-social-link { width:32px; height:32px; }
}
@media (max-width: 620px) {
  .dp-header-inner { gap:8px; min-height:72px; }
  .dp-brand { font-size:1.16rem; gap:8px; }
  .dp-brand .custom-logo { width:36px; height:36px; }
  .dp-header-actions { gap:7px; }
  .dp-header-social { gap:4px; }
  .dp-header-social-link { width:29px; height:29px; }
  .dp-header-social-link svg { width:15px; height:15px; }
  .dp-menu-toggle { font-size:1.3rem; padding:4px; }
}
@media (max-width: 430px) {
  .dp-site-header .dp-shell { width:min(calc(100% - 20px), 1280px); }
  .dp-brand span { max-width:98px; overflow:hidden; text-overflow:ellipsis; }
  .dp-header-social-link { width:27px; height:27px; }
  .dp-header-social-link svg { width:14px; height:14px; }
}


/* v1.2.2 SEO-friendly About page */
.dp-about-hero { padding:96px 0 58px; border-bottom:1px solid rgba(17,17,17,.055); background:radial-gradient(circle at 72% 18%,#fff 0,rgba(255,255,255,.78) 32%,rgba(251,250,247,0) 70%); }
.dp-about-hero-inner { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr); gap:64px; align-items:end; }
.dp-about-hero h1 { margin:14px 0 0; max-width:780px; font:700 clamp(3.7rem,7vw,6.4rem)/.94 Georgia,'Times New Roman',serif; letter-spacing:-.052em; }
.dp-about-hero p { margin:0 0 7px; max-width:560px; color:#514c46; font-size:1.16rem; line-height:1.7; }
.dp-about-main { padding:72px 0 96px; }
.dp-about-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.65fr); gap:78px; align-items:start; }
.dp-about-content { max-width:780px; font-size:1.08rem; color:#37332f; }
.dp-about-content > p:first-child { font-size:1.32rem; line-height:1.7; color:#282420; margin-top:0; }
.dp-about-content h2 { margin:52px 0 16px; font:700 clamp(2rem,3.8vw,3rem)/1.05 Georgia,'Times New Roman',serif; letter-spacing:-.032em; color:#111; }
.dp-about-content p { margin:0 0 1.2em; }
.dp-about-content ul { margin:18px 0 30px; padding-left:1.25em; }
.dp-about-content li { margin:.55em 0; }
.dp-about-aside { position:sticky; top:112px; display:grid; gap:18px; }
.dp-about-card { padding:30px; border:1px solid var(--dp-line); border-radius:24px; background:#fff; box-shadow:0 16px 40px rgba(26,19,10,.055); }
.dp-about-card h2 { margin:10px 0 14px; font:700 2rem/1.05 Georgia,'Times New Roman',serif; letter-spacing:-.035em; }
.dp-about-card p { margin:0; color:var(--dp-muted); }
.dp-about-card .dp-button { margin-top:24px; min-height:52px; padding:0 22px; }
.dp-about-socials { display:grid; gap:9px; margin-top:18px; }
.dp-about-socials a { display:flex; align-items:center; gap:12px; min-height:46px; padding:0 12px; border-radius:13px; border:1px solid #e7e1d7; background:#fbfaf7; font-weight:700; }
.dp-about-socials a:hover { border-color:var(--dp-gold); color:#8b641a; }
.dp-about-socials span { width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:#111; color:#fff; }
.dp-about-socials svg { width:16px; height:16px; display:block; }

@media (max-width:900px) {
  .dp-about-hero-inner, .dp-about-layout { grid-template-columns:1fr; gap:34px; }
  .dp-about-hero { padding:68px 0 44px; }
  .dp-about-aside { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) {
  .dp-about-hero { padding:52px 0 34px; }
  .dp-about-hero h1 { font-size:clamp(3.1rem,16vw,4.5rem); }
  .dp-about-hero p { font-size:1.04rem; }
  .dp-about-main { padding:46px 0 70px; }
  .dp-about-content > p:first-child { font-size:1.17rem; }
  .dp-about-content h2 { margin-top:38px; }
  .dp-about-aside { grid-template-columns:1fr; }
  .dp-about-card { padding:24px; border-radius:20px; }
}
