:root {
  --paper: #f7f2e8;
  --paper-2: #fffdf8;
  --ink: #20231f;
  --muted: #6a6a62;
  --green: #30473a;
  --green-2: #3e5d4b;
  --gold: #a78342;
  --gold-soft: #eadfc7;
  --line: #ddd4c4;
  --shadow: 0 18px 50px rgba(38, 34, 27, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 10%, rgba(167,131,66,.08), transparent 28%), linear-gradient(180deg, var(--paper) 0%, #f1ebdf 100%); color: var(--ink); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, textarea { font: inherit; }
button { cursor: pointer; }
.site-shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; position: sticky; top: 0; z-index: 20; background: rgba(247,242,232,.86); backdrop-filter: blur(14px); }
.brand, .brand-button { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-button { border: 0; background: transparent; padding: 0; }
.top-actions { display: flex; gap: 14px; align-items: center; }
.cross { position: relative; display: inline-block; width: 15px; height: 20px; flex: 0 0 15px; }
.cross::before, .cross::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--gold); border-radius: 1px; transform: translate(-50%, -50%); }
.cross::before { width: 3px; height: 20px; }
.cross::after { width: 15px; height: 3px; top: 43%; }
.large-cross { transform: scale(1.6); margin-bottom: 18px; }
.text-button, .back-button { border: 0; background: transparent; color: var(--green); font-weight: 800; padding: 9px 4px; }
.count-pill { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: var(--green); color: white; font-size: .68rem; margin-left: 3px; }
.hero { padding: 68px 0 52px; text-align: center; }
.eyebrow, .card-kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 800; margin: 0 0 14px; }
h1, h2, blockquote { font-family: "Libre Baskerville", Georgia, serif; }
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 1.05; letter-spacing: -.045em; max-width: 900px; margin: 0 auto 20px; }
h2 { letter-spacing: -.03em; }
.subhead { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.75; }
.search-card { width: min(780px, 100%); margin: 38px auto 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: 24px; padding: 16px; box-shadow: var(--shadow); text-align: left; }
textarea { width: 100%; min-height: 160px; resize: vertical; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 10px 10px 6px; font-size: 1.08rem; line-height: 1.6; }
textarea::placeholder { color: #9a978f; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 8px 0; }
.char-count { color: #8a877f; font-size: .82rem; }
.primary-button, .secondary-button { border: 0; border-radius: 999px; padding: 13px 20px; font-weight: 800; }
.primary-button { background: var(--green); color: white; }
.primary-button:hover { background: var(--green-2); }
.secondary-button { background: #e5ddd0; color: var(--ink); }
.secondary-button:hover { background: #dad0c0; }
.compact { padding: 10px 16px; white-space: nowrap; }
.quick-wrap { margin: 34px auto 0; max-width: 860px; }
.quick-wrap p { color: var(--muted); font-size: .9rem; }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.chip { border: 1px solid var(--line); background: rgba(255,255,255,.42); color: var(--green); border-radius: 999px; padding: 10px 14px; font-weight: 700; }
.chip:hover { background: var(--paper-2); border-color: #c9baa2; }
.daily-card { width: min(780px, 100%); margin: 42px auto 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.42); display: flex; align-items: center; justify-content: space-between; gap: 18px; text-align: left; }
.daily-card .card-kicker { margin-bottom: 8px; }
.daily-ref { font-weight: 800; color: var(--green); margin: 0 0 6px; }
.daily-text { margin: 0; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hidden { display: none !important; }
.result-section, .saved-section { padding: 40px 0 80px; }
.back-button { margin-bottom: 22px; }
.verse-card { border-radius: 30px; padding: clamp(28px, 6vw, 58px); background: var(--green); color: #fff; box-shadow: 0 24px 70px rgba(35, 49, 40, .16); position: relative; overflow: hidden; }
.verse-card::before, .verse-card::after { content: ""; position: absolute; background: rgba(255,255,255,.035); border-radius: 6px; pointer-events: none; }
.verse-card::before { width: 44px; height: 210px; right: 72px; bottom: -34px; }
.verse-card::after { width: 150px; height: 44px; right: 19px; bottom: 92px; }
.result-topline, .verse-footer-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; position: relative; z-index: 1; }
.theme-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 8px 11px; background: rgba(255,255,255,.11); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.translation { color: rgba(255,255,255,.68); font-size: .82rem; }
blockquote { font-size: clamp(1.65rem, 4vw, 3.35rem); line-height: 1.35; letter-spacing: -.03em; margin: 42px 0 28px; max-width: 900px; position: relative; z-index: 1; }
.verse-ref { font-weight: 800; color: #e3d2aa; margin: 0; }
.favorite-button { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: white; border-radius: 999px; padding: 9px 13px; font-weight: 800; }
.favorite-button.saved { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--green); }
.reflection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.reflection-card, .deeper-card, .mini-item, .saved-item { background: rgba(255,255,255,.52); border: 1px solid var(--line); border-radius: 22px; }
.reflection-card { padding: 26px; }
.reflection-card p:last-child { line-height: 1.7; margin-bottom: 0; }
.prayer-card { background: #eee7da; }
.deeper-card { margin-top: 18px; padding: 0 24px; }
.deeper-card summary { padding: 20px 0; color: var(--green); font-weight: 800; cursor: pointer; }
.deeper-content { border-top: 1px solid var(--line); padding: 22px 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.deeper-content p:last-child { color: var(--muted); line-height: 1.65; margin-bottom: 0; }
.result-actions { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.result-copy { margin-left: 2px; }
.recent-section { width: min(780px, 100%); margin: 52px auto 0; text-align: left; }
.section-heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-heading-row h2 { margin: 0; font-size: 1.7rem; }
.mini-list { display: grid; gap: 10px; margin-top: 18px; }
.mini-item { padding: 16px 18px; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.mini-item button { border: 0; background: transparent; text-align: left; color: var(--ink); padding: 0; flex: 1; }
.mini-item strong { display: block; color: var(--green); margin-bottom: 4px; }
.mini-item span { color: var(--muted); font-size: .87rem; }
.saved-heading { margin: 16px 0 30px; }
.saved-heading h1 { margin: 0 0 10px; text-align: left; font-size: clamp(2.4rem, 6vw, 4.6rem); }
.saved-subhead { margin: 0; text-align: left; }
.saved-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.saved-item { padding: 22px; }
.saved-item .saved-theme { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 800; }
.saved-item h3 { font-family: "Libre Baskerville", Georgia, serif; margin: 10px 0 9px; color: var(--green); }
.saved-item p { color: var(--muted); line-height: 1.6; }
.saved-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.saved-actions button { border: 0; background: transparent; color: var(--green); padding: 0; font-weight: 800; }
.saved-actions .remove { color: #81594e; }
.empty-state { text-align: center; border: 1px dashed var(--line); border-radius: 24px; padding: 64px 24px; }
.empty-state h2 { margin: 8px 0; }
.empty-state p { color: var(--muted); }
.footer-note { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: .86rem; line-height: 1.6; }
#aboutDialog { width: min(620px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 24px; padding: 34px; background: var(--paper-2); color: var(--ink); box-shadow: var(--shadow); }
#aboutDialog::backdrop { background: rgba(22,24,21,.45); backdrop-filter: blur(4px); }
#aboutDialog h2 { font-size: 2rem; line-height: 1.2; margin: 0 0 18px; }
#aboutDialog p { line-height: 1.7; color: var(--muted); }
.dialog-close { position: absolute; right: 18px; top: 14px; border: 0; background: transparent; font-size: 1.8rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 720px) {
  .site-shell { width: min(100% - 22px, 1080px); }
  .topbar { padding: 18px 0; }
  .brand-button span:last-child { font-size: .94rem; }
  .top-actions { gap: 8px; }
  .hero { padding-top: 44px; }
  .search-card { border-radius: 19px; }
  .form-footer { align-items: flex-end; }
  .primary-button { padding-inline: 17px; }
  .reflection-grid, .deeper-content, .saved-grid { grid-template-columns: 1fr; }
  .verse-card { border-radius: 22px; }
  .result-topline { align-items: flex-start; }
  .verse-footer-row { align-items: flex-end; }
  .daily-card { padding: 18px; }
  .result-actions { gap: 9px; }
  .result-actions .secondary-button { width: 100%; }
}
