/* Verses for How You Feel: calm, mobile-first styles. No external fonts (offline + privacy). */
:root {
  --bg: #f7f4ef;
  --surface: #fffdf9;
  --text: #2f2b27;
  --muted: #625b53;
  --line: #e6dfd4;
  --accent: #4f6656;
  --accent-ink: #ffffff;
  --accent-soft: #e9efe9;
  --note-bg: #eef3f6;
  --note-line: #c9d6de;
  --draft-bg: #fff7e0;
  --draft-line: #e0b84f;
  --radius: 16px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 var(--sans);
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid #8aa394; outline-offset: 2px; }
.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { padding: 20px 0 8px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-family: var(--serif); font-size: 1.2rem; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.brand:hover { color: var(--accent); }

/* Translation toggle */
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 3px; }
.toggle button {
  border: 0; background: transparent; color: var(--muted); font: 600 .9rem var(--sans);
  min-width: 52px; min-height: 40px; border-radius: 999px; cursor: pointer; padding: 0 12px;
}
.toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

main { flex: 1; padding: 8px 0 32px; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.25; }
h1 { font-size: 1.75rem; margin: 20px 0 6px; }
.lede { color: var(--muted); margin: 0 0 22px; }

/* Feelings grid */
.feelings { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feeling-btn {
  width: 100%; min-height: 64px; padding: 12px 14px; display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  font: 600 1rem/1.25 var(--sans); cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 2px rgba(47, 43, 39, .04); transition: border-color .15s, background .15s, transform .05s;
}
.feeling-btn:hover { border-color: #c9d3c9; background: #fdfcf8; }
.feeling-btn:active { transform: scale(.98); }

/* Verse view */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; margin-top: 8px; color: var(--muted); text-decoration: none; font-weight: 600; background: none; border: 0; font-size: 1rem; cursor: pointer; }
.back:hover { color: var(--accent); }
.feeling-label { font: 600 .85rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 18px 0 10px; }
.verse-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px 24px 24px; box-shadow: 0 6px 24px rgba(47, 43, 39, .06); }
.verse-text { font-family: var(--serif); font-size: 1.45rem; line-height: 1.55; margin: 0; }
.verse-ref { margin: 18px 0 0; font: 600 1rem var(--sans); color: var(--muted); }
.verse-ref .tr { font-weight: 500; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.btn {
  min-height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 600 1rem var(--sans); cursor: pointer; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.btn.primary { grid-column: 1 / -1; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn:hover { filter: brightness(.98); }

/* Notes */
.crisis-note { margin-top: 22px; background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 14px; padding: 14px 16px; font-size: .95rem; }
.crisis-note p { margin: 0; }
.crisis-note a { font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; }
.toast.show { opacity: 1; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 28px; color: var(--muted); font-size: .88rem; }
.site-footer p { margin: 6px 0; }
.site-footer a { color: var(--muted); }

/* SEO pages */
.cta { display: block; margin: 18px 0; padding: 16px 18px; background: var(--accent); color: var(--accent-ink); border-radius: 14px; text-decoration: none; font-weight: 700; text-align: center; min-height: 52px; }
.cta:hover { filter: brightness(1.05); }
.verse-list { list-style: none; padding: 0; margin: 10px 0 0; counter-reset: v; }
.verse-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; margin: 0 0 12px; }
.verse-list blockquote { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.55; }
.verse-list cite { display: block; margin-top: 8px; font-style: normal; font-weight: 600; color: var(--muted); font-size: .95rem; }
.draft { margin: 26px 0; border: 2px dashed var(--draft-line); background: var(--draft-bg); border-radius: var(--radius); padding: 16px 18px; }
.draft-label { display: inline-block; font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .06em; color: #6b4e00; background: #ffe9a8; border-radius: 6px; padding: 4px 8px; margin-bottom: 8px; }
.draft p { margin: 10px 0; }
.related { padding-left: 18px; }
.related li { margin: 8px 0; }
.moment-list { list-style: none; padding: 0; }
.moment-list li { margin: 0 0 10px; }
.moment-list a { display: block; padding: 14px 16px; min-height: 52px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); font-weight: 600; }
.moment-list a span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; margin-top: 2px; }
.small { font-size: .9rem; color: var(--muted); }

@media (min-width: 560px) {
  .feelings { grid-template-columns: 1fr 1fr 1fr; }
  .verse-text { font-size: 1.6rem; }
  h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
