/* Coffee + Jesus — black / white / gold. Reverent, calm, one screen at a time. */

:root {
  --paper:    #0B0B0D;  /* page background — near-black */
  --panel:    #17171B;  /* cards, inputs — a subtle lift off black */
  --ink:      #FFFFFF;  /* primary text — white */
  --muted:    #9A9AA4;  /* secondary text — soft grey */
  --calm:     #E5B84E;  /* gold — structure / primary accent */
  --spark:    #E5B84E;  /* gold — warmth accent */
  --sage:     #E5B84E;  /* gold — done / carry highlight */
  --gold-deep:#CBA23F;  /* gold — hover / pressed */
  --hairline: #2B2B31;  /* subtle separators on black */
}

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

/* hidden must always win, even over display:flex classes */
[hidden] { display: none !important; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

body {
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.cup {
  width: 100%;
  max-width: 30rem;
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

/* ---- screens ---- */
.screen { display: none; text-align: center; }
.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: rise 0.5s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- type ---- */
.mark { width: 46px; height: 46px; }

.app-name {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lead { font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
.sub  { font-size: 1rem; color: var(--muted); }

.question {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.verse {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--ink);
}
.ref { font-size: 0.95rem; color: var(--calm); letter-spacing: 0.02em; }

.reflect {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--ink);
}

.kicker {
  font-size: 0.8rem;
  text-transform: lowercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.carry {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--sage);
}

/* ---- buttons ---- */
/* No 300ms double-tap-zoom delay on phones — taps feel instant. */
.btn, .state-btn, .interest-btn, .textlink { touch-action: manipulation; }

.btn {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 2rem;
  transition: transform 0.08s ease, opacity 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.97); }

.btn.primary {
  background: var(--calm);
  color: #0B0B0D;         /* black text on gold */
  font-size: 1.05rem;
  font-weight: 700;
}
.btn.primary:hover { background: var(--gold-deep); }

.btn.ghost {
  background: transparent;
  color: var(--calm);
  font-size: 1.6rem;
  border: 1px solid var(--hairline);
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  line-height: 1;
}
.btn.ghost:hover { border-color: var(--calm); }

/* ---- states ---- */
.states {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
.state-btn {
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  padding: 1.1rem;
  transition: border-color 0.15s ease, transform 0.08s ease;
}
.state-btn:hover  { border-color: var(--calm); }
.state-btn:active { transform: scale(0.98); }

/* ---- email ---- */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
.email-input {
  font: inherit;
  font-size: 1.1rem;
  text-align: center;
  padding: 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  background: var(--panel);
  color: var(--ink);
}
.email-input::placeholder { color: var(--muted); }
.email-input:focus { outline: none; border-color: var(--calm); }

.textlink {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}
.contact:hover { color: var(--calm); }

/* ---- one-time name ask ---- */
.name-ask {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  margin-top: 1.25rem;
}
/* the thank-you includes the user's name — don't lowercase "Maria" */
.name-ask .kicker { text-transform: none; }

/* these kickers carry real words — "God", names, dates, refs — never
   force them lowercase */
#jwrite-kicker, #vsheet-ref, #jentry-date, #jentry-testimony-kicker, #jday-kicker, #verse-kicker { text-transform: none; }

/* ---- nav (bible / journal) — visible, still calm ---- */
.navrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.25rem;
}
.navrow.solo { grid-template-columns: 1fr; }
.navrow .navdot { display: none; }
.navbtn {
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  padding: 0.85rem 0.6rem;
  transition: border-color 0.15s ease, transform 0.08s ease;
}
.navbtn:hover { border-color: var(--calm); }
.navbtn:active { transform: scale(0.98); }
.navbtn.wide { width: 100%; }

/* ---- journal ---- */
.jtext {
  font: inherit;
  font-size: 1.05rem;
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  background: var(--panel);
  color: var(--ink);
  resize: vertical;
}
.jtext:focus { outline: none; border-color: var(--calm); }

.jlist { display: flex; flex-direction: column; gap: 0.6rem; width: 100%; }
.jrow {
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.jrow:hover { border-color: var(--calm); }
.jrow-date {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.jrow-tag {
  color: #0B0B0D;
  background: var(--sage);
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
  font-size: 0.7rem;
}
.jrow-text { color: var(--ink); font-size: 1rem; }
.jread { text-align: left; width: 100%; white-space: pre-wrap; }
.sage { color: var(--sage); }
.twrap {
  width: 100%;
  border-top: 1px solid var(--hairline);
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* ---- bible reader ---- */
.blist { display: flex; flex-direction: column; gap: 0.45rem; width: 100%; }
.brow {
  font: inherit;
  font-size: 1.05rem;
  cursor: pointer;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 0.8rem;
  padding: 0.7rem;
}
.brow:hover { border-color: var(--calm); }
.bgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.45rem; width: 100%; }
.bcell {
  font: inherit;
  cursor: pointer;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 0.6rem;
  padding: 0.6rem 0;
}
.bcell:hover { border-color: var(--calm); }
.bread-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.bverses {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-bottom: 1rem;
}
.bv {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink);
  cursor: pointer;
  border-radius: 0.4rem;
  padding: 0.1rem 0.3rem;
}
.bv sup { color: var(--calm); font-size: 0.7em; margin-right: 0.15rem; }
.bv.hl { background: rgba(229, 184, 78, 0.18); }
.bv.flash { background: rgba(229, 184, 78, 0.35); }
.notemark { color: var(--sage); }
.bread-nav { display: flex; gap: 1rem; }
.btn.ghost[disabled] { opacity: 0.35; cursor: default; }
.linky { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* the ritual verse ref reads as a tappable pill, not hidden treasure */
.ref.linky {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  transition: border-color 0.15s ease;
}
.ref.linky::after { content: " →"; }
.ref.linky:hover { border-color: var(--calm); }

/* tap-a-verse action sheet */
.vsheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: 30rem;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-bottom: none;
  border-radius: 1rem 1rem 0 0;
  padding: 1rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 50;
}
.vsheet-row { display: flex; gap: 0.6rem; }
.vsheet-row .btn { flex: 1; }
/* highlight/note are choices, not the commit — keep gold for saving */
.vsheet-row .btn.primary {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--hairline);
  font-weight: 400;
}
.vsheet-row .btn.primary:hover { border-color: var(--calm); background: var(--panel); }

/* ---- thread + ebenezer ---- */
.thread { color: var(--spark); }

/* ---- prayers ---- */
.prow-actions { display: flex; gap: 0.5rem; margin-top: 0.55rem; }
.prow-actions .navbtn { flex: 1; font-size: 0.85rem; padding: 0.55rem 0.4rem; }
.jrow-answer {
  color: var(--sage);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

/* ---- community painted-door (interest test) ---- */
.community {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
.interest-btn {
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: border-color 0.15s ease, transform 0.08s ease;
}
.interest-btn:hover  { border-color: var(--calm); }
.interest-btn:active { transform: scale(0.98); }
.interest-btn.done {
  border-color: var(--calm);
  background: var(--panel);
  cursor: default;
}
.interest-label { font-size: 1.05rem; color: var(--ink); }
.interest-blurb { font-size: 0.9rem;  color: var(--muted); }
.interest-blurb:empty { display: none; }
