/* Daily Devotional — quiet Bible / open-devotional reading
   Warm, reverent, simple. Not a blog, card stack, Closet, or Past Book. */

.dd-page {
  --dd-ink: #2a2218;
  --dd-ink-soft: #3d3228;
  --dd-muted: #6f6254;
  --dd-paper: #faf6ee;
  --dd-paper-warm: #f3ebe0;
  --dd-scripture-paper: #f7f0e3;
  --dd-rule: rgba(78, 58, 38, 0.14);
  --dd-rule-strong: rgba(78, 58, 38, 0.24);
  --dd-accent: #6e4a2e;
  --dd-accent-deep: #54371f;
  --dd-gold: #9a7844;
  --dd-display: "Cormorant Garamond", "Literata", Georgia, "Times New Roman", serif;
  --dd-body: "Literata", Georgia, serif;
  --dd-ui: "Source Sans 3", "Segoe UI", sans-serif;

  position: relative;
  isolation: isolate;
  min-height: 70vh;
  padding: 1.25rem 0.75rem 2.85rem;
  color: var(--dd-ink);
  background:
    radial-gradient(ellipse 80% 42% at 50% 0%, rgba(255, 250, 240, 0.7), transparent 62%),
    linear-gradient(180deg, #f0e8da 0%, #e9dfcf 100%);
  overflow-x: hidden;
}

.dd-page--owner-preview {
  border-radius: 0.5rem;
  margin-top: 0.35rem;
  overflow: hidden;
}

.dd-reading,
.dd-archive {
  position: relative;
  max-width: 38.5rem;
  margin: 0 auto;
  padding: 1.85rem 1.15rem 2.1rem;
  background: linear-gradient(180deg, var(--dd-paper) 0%, var(--dd-paper-warm) 100%);
  border: 1px solid var(--dd-rule);
  box-shadow: 0 12px 28px rgba(55, 40, 22, 0.08);
  animation: dd-rise 0.55s ease-out both;
}

.dd-reading-header {
  text-align: center;
  margin-bottom: 1.65rem;
  padding: 0 0.2rem;
}

.dd-eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--dd-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dd-accent);
}

.dd-source-label {
  margin: -0.25rem 0 0.55rem;
  font-family: var(--dd-ui);
  font-size: 0.82rem;
  color: var(--dd-muted);
}

.dd-date {
  margin: 0 0 0.45rem;
  font-family: var(--dd-ui);
  font-size: 0.9rem;
  color: var(--dd-muted);
}

.dd-title {
  margin: 0;
  font-family: var(--dd-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 5.5vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: 0.005em;
  color: var(--dd-ink);
  text-wrap: balance;
}

.dd-lead {
  margin: 0.7rem 0 0;
  font-family: var(--dd-body);
  font-style: italic;
  color: var(--dd-muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

/* Small outlined cross + quiet Scripture divider — never dominant */
.dd-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.95rem auto 0;
}

.dd-ornament::before,
.dd-ornament::after {
  content: "";
  width: min(3.75rem, 16vw);
  height: 1px;
  background: var(--dd-rule-strong);
}

.dd-cross {
  display: block;
  width: 0.72rem;
  height: 0.95rem;
  flex: 0 0 auto;
  color: var(--dd-gold);
  opacity: 0.9;
}

.dd-cross svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dd-section-accent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 auto 0.75rem;
}

.dd-section-accent::before,
.dd-section-accent::after {
  content: "";
  width: 1.65rem;
  height: 1px;
  background: var(--dd-rule-strong);
}

/* Scripture — strongest visual after the title; open Bible-page inset, not a card */
.dd-scripture {
  position: relative;
  margin: 0 0 1.85rem;
  padding: 1.35rem 1.05rem 1.3rem;
  text-align: center;
  background: var(--dd-scripture-paper);
  border: 1px solid rgba(120, 88, 48, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 252, 245, 0.55),
    0 1px 2px rgba(70, 50, 28, 0.04),
    0 8px 18px rgba(70, 50, 28, 0.05);
  animation: dd-fade 0.65s ease-out 0.08s both;
}

.dd-scripture::before,
.dd-scripture::after {
  content: "";
  display: block;
  width: min(7rem, 42%);
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--dd-gold), transparent);
  opacity: 0.55;
}

.dd-scripture::before {
  margin-bottom: 0.95rem;
}

.dd-scripture::after {
  margin-top: 1rem;
}

.dd-scripture-ref {
  margin: 0 0 0.65rem;
  font-family: var(--dd-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--dd-accent);
}

.dd-scripture-text {
  margin: 0 auto;
  max-width: 31rem;
  font-family: var(--dd-display);
  font-size: clamp(1.18rem, 3.2vw, 1.38rem);
  line-height: 1.58;
  font-style: italic;
  font-weight: 500;
  color: var(--dd-ink-soft);
  text-wrap: pretty;
}

/* Body — calm long-form reading */
.dd-body {
  margin: 0 0 1.75rem;
  padding: 0 0.1rem;
  animation: dd-fade 0.7s ease-out 0.14s both;
}

.dd-body p {
  margin: 0 0 1.2rem;
  font-family: var(--dd-body);
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--dd-ink-soft);
  text-wrap: pretty;
}

.dd-body p:last-child {
  margin-bottom: 0;
}

.dd-section-label {
  margin: 0 0 0.55rem;
  font-family: var(--dd-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dd-accent);
  text-align: center;
}

/* Think About It — intentional, light accent, not a boxed card */
.dd-reflect {
  margin: 0 0 1.35rem;
  padding: 1.25rem 0.35rem 0.15rem;
  border-top: 1px solid var(--dd-rule);
  text-align: center;
}

.dd-reflect p {
  margin: 0 auto;
  max-width: 30rem;
  padding: 0.15rem 0.35rem 0.15rem 0.7rem;
  border-left: 2px solid rgba(154, 120, 68, 0.45);
  text-align: left;
  font-family: var(--dd-display);
  font-size: 1.22rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.48;
  color: var(--dd-ink);
}

/* Prayer — distinct, reverent inset */
.dd-prayer {
  margin: 0 0 0.5rem;
  padding: 1.2rem 1rem 1.15rem;
  border-top: 1px solid var(--dd-rule);
  background: rgba(154, 120, 68, 0.06);
  text-align: center;
}

.dd-prayer p {
  margin: 0 auto;
  max-width: 29rem;
  padding: 0 0.35rem 0 0.85rem;
  text-align: left;
  font-family: var(--dd-body);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.72;
  color: var(--dd-ink-soft);
}

.dd-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.65rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--dd-rule);
}

.dd-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  min-width: min(100%, 16.5rem);
  padding: 0.7rem 1.3rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(84, 55, 31, 0.35);
  background: var(--dd-accent-deep);
  color: #fff8ef !important;
  text-decoration: none !important;
  font-family: var(--dd-ui);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.015em;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.dd-cta:hover,
.dd-cta:focus-visible {
  background: #452c18;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(154, 120, 68, 0.28);
  outline: none;
}

.dd-cta--secondary {
  background: transparent;
  color: var(--dd-accent-deep) !important;
  border-color: rgba(84, 55, 31, 0.35);
  box-shadow: none;
}

.dd-cta--secondary:hover,
.dd-cta--secondary:focus-visible {
  background: rgba(154, 120, 68, 0.1);
  color: var(--dd-accent-deep) !important;
  box-shadow: 0 0 0 3px rgba(154, 120, 68, 0.22);
}

.dd-cta-arrow {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.9;
}

.dd-text-link {
  font-family: var(--dd-ui);
  font-size: 0.94rem;
  color: var(--dd-accent) !important;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.dd-text-link:hover,
.dd-text-link:focus-visible {
  color: var(--dd-accent-deep) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(154, 120, 68, 0.22);
  border-radius: 0.15rem;
}

.dd-empty {
  text-align: center;
  padding: 1.5rem 0.4rem 0.5rem;
}

.dd-empty p {
  margin: 0 0 1rem;
  font-family: var(--dd-body);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--dd-muted);
}

/* Archive — open journal list, not cards */
.dd-archive-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.dd-archive-item {
  display: block;
  padding: 1.05rem 0.15rem;
  border-bottom: 1px solid var(--dd-rule);
  text-decoration: none !important;
  color: inherit !important;
}

.dd-archive-item:hover,
.dd-archive-item:focus-visible {
  background: rgba(154, 120, 68, 0.05);
  outline: none;
}

.dd-archive-item:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(154, 120, 68, 0.28);
}

.dd-archive-date {
  display: block;
  font-family: var(--dd-ui);
  font-size: 0.8rem;
  color: var(--dd-muted);
  margin-bottom: 0.22rem;
}

.dd-archive-title {
  display: block;
  font-family: var(--dd-display);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.28;
  margin-bottom: 0.18rem;
  color: var(--dd-ink);
}

.dd-archive-ref {
  display: block;
  font-family: var(--dd-body);
  font-size: 0.94rem;
  font-style: italic;
  color: var(--dd-accent);
}

.dd-archive-foot {
  margin: 1.5rem 0 0;
  text-align: center;
}

@keyframes dd-rise {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dd-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .dd-reading,
  .dd-archive,
  .dd-scripture,
  .dd-body {
    animation: none;
  }

  .dd-cta {
    transition: none;
  }
}

@media (min-width: 768px) {
  .dd-page {
    padding: 2rem 1.5rem 3.5rem;
  }

  .dd-reading,
  .dd-archive {
    padding: 2.4rem 2.5rem 2.55rem;
  }

  .dd-scripture {
    padding: 1.55rem 1.55rem 1.45rem;
  }

  .dd-prayer {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }
}

@media (max-width: 420px) {
  .dd-page {
    padding: 0.65rem 0.4rem 2.25rem;
  }

  .dd-reading,
  .dd-archive {
    padding: 1.35rem 0.9rem 1.6rem;
  }

  .dd-title {
    font-size: clamp(1.7rem, 7.5vw, 2.05rem);
  }

  .dd-scripture {
    padding: 1.15rem 0.75rem 1.1rem;
  }

  .dd-scripture-text {
    font-size: 1.14rem;
  }

  .dd-body p {
    font-size: 1.05rem;
    line-height: 1.74;
  }

  .dd-reflect p {
    font-size: 1.12rem;
    padding-left: 0.55rem;
  }

  .dd-prayer {
    padding: 1.05rem 0.75rem 1rem;
  }

  .dd-prayer p {
    font-size: 1.02rem;
    padding-left: 0.55rem;
  }

  .dd-cta {
    width: 100%;
  }
}
