/* ============================================
   9:15 Devotional — The Journal
   Blog stylesheet. Matches the main site's
   navy / gold / serif design language.
   ============================================ */

:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f1ebdf;
  --color-surface: #ffffff;
  --color-text: #1f2933;
  --color-text-soft: #52606d;
  --color-muted: #8a94a0;
  --color-accent: #1a4870;
  --color-accent-dark: #123354;
  --color-gold: #b8893d;
  --color-gold-soft: #d8b370;
  --color-border: #e6e0d2;
  --shadow-sm: 0 2px 6px rgba(31, 41, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 41, 51, 0.08);
  --shadow-lg: 0 18px 48px rgba(31, 41, 51, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1100px;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }

/* ---------- Header ---------- */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 24px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--color-accent);
}

.logo-mark {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.5px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.logo-tag {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--color-border);
}

.nav { display: flex; gap: 28px; align-items: center; }

.nav a {
  color: var(--color-text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav a:hover { color: var(--color-accent); }
.nav a.active { color: var(--color-accent); border-bottom-color: var(--color-gold); }

/* ---------- Page hero ---------- */

.page-hero {
  padding: 70px 0 44px;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  text-align: center;
}

.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--color-gold);
  font-weight: 600;
  margin: 0 0 14px;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--color-accent);
  letter-spacing: -0.5px;
}

.lede {
  font-size: 19px;
  color: var(--color-text-soft);
  max-width: 640px;
  margin: 0 auto 8px;
  line-height: 1.55;
}

/* ---------- Host strip ---------- */

.host-strip {
  padding: 26px 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.host-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.host-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 2px solid var(--color-gold);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.host-photo img { width: 100%; height: 100%; object-fit: cover; }

.host-text { text-align: left; }

.host-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
}

.host-name {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.3px;
}

/* ---------- Search bar ---------- */

.search-bar {
  margin: 24px auto 0;
  max-width: 540px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-family: var(--font-sans);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 72, 112, 0.12);
}

.search-count { display: block; margin-top: 10px; font-size: 13px; color: var(--color-muted); }

/* ---------- Post grid (blog listing) ---------- */

.post-archive { padding: 40px 0 80px; }

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

@media (max-width: 920px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.post-card .thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}

.post-card .thumb-wrap img,
.post-card .thumb-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.post-card .card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card .card-date {
  font-size: 12px;
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.post-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--color-accent);
  line-height: 1.25;
}

.post-card .summary { font-size: 14px; color: var(--color-text-soft); margin: 0; flex: 1; }

.post-card .read-more {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

/* ---------- Featured (latest) post ---------- */

.featured-post { padding: 30px 0 50px; }

.featured-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}

@media (max-width: 760px) { .featured-card { grid-template-columns: 1fr; } }

.featured-card .thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.featured-card .thumb-wrap img,
.featured-card .thumb-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.featured-card .featured-meta {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card .card-date {
  font-size: 13px;
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.featured-card h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--color-accent);
  line-height: 1.2;
}

.featured-card .summary { color: var(--color-text-soft); font-size: 15px; margin: 0 0 16px; }

/* ---------- Section heads ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  color: var(--color-accent);
}

.view-all { font-size: 15px; font-weight: 500; color: var(--color-accent); }

/* ---------- Single post article ---------- */

.post-hero {
  padding: 50px 0 30px;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.post-hero .container.narrow { text-align: left; }

.post-hero .card-date {
  font-size: 13px;
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.post-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--color-accent);
  line-height: 1.15;
}

.post-hero .scriptures {
  font-size: 15px;
  color: var(--color-text-soft);
  margin: 0;
}

.scriptures-label { font-weight: 600; color: var(--color-text); }

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 30px 0 10px;
}

.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-body { padding: 20px 0 60px; }

.post-body .container.narrow { }

.post-body p {
  font-size: 17px;
  color: var(--color-text);
  margin: 0 0 22px;
  line-height: 1.75;
}

.post-body h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--color-accent);
  margin: 40px 0 16px;
}

.post-body blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 21px;
  color: var(--color-accent);
  border-left: 4px solid var(--color-gold);
  margin: 30px 0;
  padding: 4px 0 4px 24px;
}

.post-tags { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--color-border); }

.post-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-bg-alt);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 8px 8px 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
  font-family: var(--font-sans);
}

.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--color-accent); color: white; }
.btn-primary:hover { background: var(--color-accent-dark); color: white; }

.btn-ghost { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn-ghost:hover { background: var(--color-accent); color: white; }

.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ---------- Cross-link CTA (to main site) ---------- */

.crosslink-cta {
  background: var(--color-accent);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.crosslink-cta h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 12px;
  color: white;
}

.crosslink-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 24px;
}

.crosslink-cta .btn-primary { background: var(--color-gold); color: white; }
.crosslink-cta .btn-primary:hover { background: var(--color-gold-soft); }

/* ---------- Loading / empty ---------- */

.loading, .empty-state {
  color: var(--color-muted);
  font-style: italic;
  font-size: 15px;
  text-align: center;
  padding: 30px;
  grid-column: 1 / -1;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-accent-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner p { margin: 0; font-size: 14px; }

.footer-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px !important;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links { display: flex; gap: 18px; }
.footer-links a { color: rgba(255, 255, 255, 0.75); font-size: 14px; }
.footer-links a:hover { color: white; }

/* ---------- Mobile ---------- */

@media (max-width: 580px) {
  .header-inner { flex-direction: column; gap: 12px; padding: 14px 20px; }
  .nav { gap: 18px; font-size: 14px; }
  .page-hero { padding: 50px 0 34px; }
  .featured-card .featured-meta { padding: 24px; }
  .post-body p { font-size: 16px; }
}
