/*
Theme Name: New Day Focus
Theme URI: https://newdayfocus.com
Author: New Day Focus
Description: A peaceful, editorial WordPress theme for Gospel meditation, inspiration, and rest.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: new-day-focus
*/

:root {
  --ndf-ink: #252116;
  --ndf-deep: #1f2c32;
  --ndf-deep-soft: #304148;
  --ndf-cream: #f7f1e5;
  --ndf-paper: #fffdf8;
  --ndf-gold: #b8873f;
  --ndf-gold-light: #dbc089;
  --ndf-sage: #6e7a67;
  --ndf-line: rgba(37, 33, 22, 0.18);
  --ndf-shadow: 0 24px 70px rgba(29, 33, 30, 0.13);
  --ndf-display: "Bodoni Moda", Didot, "Times New Roman", serif;
  --ndf-smallcaps: "Cinzel", Georgia, serif;
  --ndf-body: "Libre Baskerville", Georgia, serif;
  --ndf-content: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ndf-paper);
  color: var(--ndf-ink);
  font-family: var(--ndf-body);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

a:hover { color: #755523; }

button,
input,
textarea { font: inherit; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  clip: auto;
  height: auto;
  width: auto;
  margin: 0;
  padding: 12px 18px;
  left: 16px;
  top: 16px;
  z-index: 10000;
  background: var(--ndf-paper);
}

.site-shell { width: var(--ndf-content); margin-inline: auto; }

.eyebrow,
.post-kicker,
.card-meta,
.hero-motto,
.footer-heading {
  font-family: var(--ndf-smallcaps);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.site-header {
  position: relative;
  z-index: 50;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--ndf-line);
}

.header-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.site-branding { display: inline-flex; flex-direction: column; text-decoration: none; }

.brand-name {
  font-family: var(--ndf-display);
  font-size: clamp(1.55rem, 2.3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-tagline {
  margin-top: 8px;
  font-family: var(--ndf-smallcaps);
  font-size: 0.58rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.primary-menu,
.footer-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a,
.header-youtube,
.footer-menu a {
  font-family: var(--ndf-smallcaps);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-youtube,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid currentColor;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border 180ms ease;
}

.header-youtube { color: var(--ndf-deep); }

.header-youtube:hover,
.button-dark:hover { background: var(--ndf-deep); color: #fffaf0; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ndf-line);
  background: transparent;
  color: var(--ndf-ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 21px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  content: "";
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 92px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #27323a center / cover no-repeat;
  color: #fffaf0;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 24, 25, 0.84) 0%, rgba(20, 28, 28, 0.48) 47%, rgba(20, 25, 24, 0.04) 76%), linear-gradient(0deg, rgba(12, 18, 17, 0.64) 0%, transparent 55%);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: clamp(88px, 14vw, 170px) 0 clamp(86px, 10vw, 128px);
}

.hero .eyebrow { color: #f2d49c; }

.hero-title {
  margin: 16px 0 20px;
  font-family: var(--ndf-display);
  font-size: clamp(3.1rem, 7.4vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.hero-summary {
  max-width: 610px;
  margin: 0 0 32px;
  color: rgba(255, 250, 240, 0.92);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.8;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.button {
  font-family: var(--ndf-smallcaps);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button-light { background: #fffaf0; color: var(--ndf-deep); border-color: #fffaf0; }
.button-light:hover { background: var(--ndf-gold-light); border-color: var(--ndf-gold-light); color: var(--ndf-ink); }
.button-ghost { color: #fffaf0; border-color: rgba(255, 250, 240, 0.58); }
.button-ghost:hover { background: rgba(255, 250, 240, 0.12); color: #fff; }
.button-dark { color: var(--ndf-deep); }

.hero-motto {
  position: absolute;
  z-index: 1;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 38px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: rgba(255, 250, 240, 0.82);
}

.hero-motto span + span::before { margin-right: 14px; color: var(--ndf-gold-light); content: "|"; }

.section { padding: clamp(76px, 10vw, 132px) 0; }
.section-cream { background: var(--ndf-cream); }
.section-deep { background: var(--ndf-deep); color: #f9f3e7; }

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 44px;
}

.section-title,
.entry-title,
.archive-title {
  margin: 8px 0 0;
  font-family: var(--ndf-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.section-title { font-size: clamp(2.55rem, 5.3vw, 4.6rem); }
.entry-title { font-size: clamp(2.7rem, 6vw, 5.5rem); }
.archive-title { font-size: clamp(2.6rem, 5vw, 4.4rem); }

.text-link {
  font-family: var(--ndf-smallcaps);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.devotional-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 24px;
}

.devotional-card { min-width: 0; }

.card-image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ndf-deep-soft);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}

.devotional-card:hover .card-image-wrap img { transform: scale(1.035); }

.play-mark {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.93);
  color: var(--ndf-deep);
  box-shadow: 0 8px 24px rgba(13, 20, 20, 0.28);
}

.play-mark::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  content: "";
}

.card-body { padding: 20px 4px 0; }
.card-meta { color: #756b58; }
.card-title { margin: 9px 0 10px; font-family: var(--ndf-display); font-size: clamp(1.55rem, 2.4vw, 2.05rem); font-weight: 500; line-height: 1.16; }
.card-title a { text-decoration: none; }
.card-excerpt { margin: 0; color: #5e594e; font-size: 0.91rem; line-height: 1.75; }

.pathways {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(42px, 8vw, 110px);
  align-items: center;
}

.pathway-intro p { max-width: 500px; color: #5d584d; }

.category-list { border-top: 1px solid var(--ndf-line); }

.category-link {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 2px;
  border-bottom: 1px solid var(--ndf-line);
  text-decoration: none;
}

.category-number { font-family: var(--ndf-smallcaps); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--ndf-gold); }
.category-name { font-family: var(--ndf-display); font-size: clamp(1.5rem, 3vw, 2.25rem); }
.category-count { font-family: var(--ndf-smallcaps); font-size: 0.7rem; letter-spacing: 0.11em; color: #746d60; text-transform: uppercase; }

.quiet-cta { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 60px; align-items: center; }
.quiet-cta p { max-width: 720px; color: rgba(249, 243, 231, 0.77); }
.quiet-cta .button { justify-self: end; color: #f9f3e7; }

.archive-hero,
.entry-header { padding: clamp(68px, 9vw, 118px) 0 48px; background: var(--ndf-cream); }
.archive-description { max-width: 720px; color: #625d52; }

.content-area { padding: 66px 0 110px; }

.entry-shell { width: min(860px, calc(100% - 40px)); margin-inline: auto; }
.entry-shell-wide { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }

.entry-featured { margin: 0 auto 56px; width: min(1180px, calc(100% - 40px)); box-shadow: var(--ndf-shadow); }
.entry-featured img { width: 100%; max-height: 690px; object-fit: cover; }

.video-frame { margin: 0 0 48px; aspect-ratio: 16 / 9; background: #111; box-shadow: var(--ndf-shadow); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1060px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2,
.entry-content h3 { font-family: var(--ndf-display); font-weight: 500; line-height: 1.15; }
.entry-content h2 { margin-top: 2em; font-size: clamp(2rem, 4vw, 3rem); }
.entry-content h3 { margin-top: 1.8em; font-size: 1.7rem; }
.entry-content blockquote { margin-top: 2.4em; margin-bottom: 2.4em; padding: 26px 34px; border-left: 2px solid var(--ndf-gold); background: var(--ndf-cream); font-family: var(--ndf-display); font-size: 1.45rem; line-height: 1.55; }

.scripture-chip { display: inline-flex; margin-top: 18px; padding: 8px 14px; border: 1px solid var(--ndf-line); font-family: var(--ndf-smallcaps); font-size: 0.7rem; letter-spacing: 0.11em; text-transform: uppercase; }

.pagination { margin-top: 56px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ndf-line); text-decoration: none; }
.page-numbers.current { background: var(--ndf-deep); color: #fff; }

.search-form { display: flex; max-width: 540px; }
.search-field { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ndf-line); background: #fff; }
.search-submit { min-width: 110px; border: 0; background: var(--ndf-deep); color: #fff; font-family: var(--ndf-smallcaps); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }

.ndf-contact-form {
  max-width: 760px;
  margin: 40px auto 0;
  padding: clamp(28px, 5vw, 52px);
  background: var(--ndf-cream);
  border: 1px solid var(--ndf-line);
}

.ndf-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.ndf-form-field { margin-bottom: 24px; }

.ndf-form-field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--ndf-smallcaps);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ndf-form-field input,
.ndf-form-field textarea {
  width: 100%;
  border: 1px solid rgba(37, 33, 22, 0.28);
  border-radius: 0;
  background: var(--ndf-paper);
  color: var(--ndf-ink);
  padding: 13px 14px;
}

.ndf-form-field textarea { min-height: 190px; resize: vertical; }

.ndf-form-field input:focus,
.ndf-form-field textarea:focus {
  outline: 2px solid var(--ndf-gold);
  outline-offset: 2px;
}

.ndf-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ndf-form-notice {
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--ndf-gold);
  background: var(--ndf-cream);
}

.ndf-form-notice.is-success { border-color: var(--ndf-sage); }

.site-footer { padding: 72px 0 26px; background: #172326; color: #f6efe2; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 0.7fr; gap: 48px; padding-bottom: 58px; }
.footer-brand { font-family: var(--ndf-display); font-size: clamp(2.25rem, 4vw, 3.8rem); letter-spacing: 0.02em; line-height: 1; text-transform: uppercase; }
.footer-copy { max-width: 460px; color: rgba(246, 239, 226, 0.68); font-size: 0.88rem; }
.footer-heading { margin: 0 0 18px; color: var(--ndf-gold-light); }
.footer-menu { flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-menu a { color: rgba(246, 239, 226, 0.82); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 22px; border-top: 1px solid rgba(246, 239, 226, 0.16); color: rgba(246, 239, 226, 0.52); font-size: 0.74rem; }
.footer-rights-note { max-width: 900px; margin: 14px 0 0; color: rgba(246, 239, 226, 0.52); font-size: 0.7rem; line-height: 1.65; }

@media (max-width: 960px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .header-youtube { display: none; }
  .site-navigation {
    position: fixed;
    inset: 92px 0 0;
    display: none;
    padding: 42px 24px;
    background: var(--ndf-paper);
  }
  .site-navigation.is-open { display: block; }
  .primary-menu { flex-direction: column; align-items: flex-start; gap: 22px; }
  .primary-menu a { font-size: 1rem; }
  .devotional-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pathways,
  .quiet-cta { grid-template-columns: 1fr; }
  .quiet-cta .button { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --ndf-content: min(100% - 28px, 1180px); }
  body { font-size: 16px; }
  .header-inner { min-height: 78px; }
  .brand-tagline { display: none; }
  .site-navigation { inset-block-start: 78px; }
  .hero { min-height: 710px; background-position: 62% center; }
  .hero::before { background: linear-gradient(0deg, rgba(13, 20, 20, 0.9) 0%, rgba(15, 22, 21, 0.43) 72%, rgba(15, 22, 21, 0.16) 100%); }
  .hero-content { padding-bottom: 116px; }
  .hero-title { font-size: clamp(3rem, 16vw, 4.6rem); }
  .hero-motto { left: 14px; right: 14px; bottom: 28px; justify-content: center; gap: 7px; font-size: 0.56rem; letter-spacing: 0.1em; }
  .hero-motto span + span::before { margin-right: 7px; }
  .section-heading-row { display: block; }
  .section-heading-row .text-link { display: inline-block; margin-top: 18px; }
  .devotional-grid { grid-template-columns: 1fr; }
  .category-link { grid-template-columns: 38px 1fr; }
  .category-count { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-intro { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .ndf-form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
