/*
Theme Name: Pray Your Way
Theme URI: https://prayyourway.app
Author: Shawn Pomeroy
Description: A daily devotional practice. Christ-centered, scripture-rooted, denominationally quiet. Earth-tone palette rooted in the dust of first-century Galilee. EB Garamond + Inter typography. Built from the prototype in canon.md Part XIX.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: All rights reserved
Text Domain: pray-your-way
*/

/* ============================================================
   DESIGN TOKENS — the colors of His world
   See canon.md Part XVII for the full design system.
   ============================================================ */
:root {
  --linen:        #FAF7F0;
  --parchment:    #F5F1E8;
  --parchment-2:  #EFEADD;
  --olive-bark:   #3A3633;
  --stone:        #6B6661;
  --stone-light:  #A8A39E;
  --clay:         #9C6B3C;
  --clay-soft:    #C9986A;
  --clay-pale:    #EBD9C5;
  --sage:         #7A8A6E;
  --sage-pale:    #DDE3D5;
  --wheat:        #D4B97C;
  --hairline:     #E8E1D4;
  --hairline-2:   #D9D2C2;

  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --ease-quiet: cubic-bezier(0.4, 0, 0.2, 1);
  --slow:   600ms;
  --slower: 900ms;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--linen);
  color: var(--olive-bark);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; min-height: 100dvh; }

::selection { background: var(--clay); color: var(--linen); }

a { color: var(--clay); text-decoration: none; transition: color var(--slow) var(--ease-quiet); }
a:hover { color: var(--olive-bark); }

button { cursor: pointer; font: inherit; }

img { max-width: 100%; height: auto; }

/* WordPress admin bar offset */
body.admin-bar .menu-button { top: 54px; }
@media (max-width: 782px) {
  body.admin-bar .menu-button { top: 68px; }
}

/* ============================================================
   APP SHELL
   ============================================================ */
.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ============================================================
   HAMBURGER MENU
   ============================================================ */
.menu-button {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 50;
  width: 42px;
  height: 42px;
  background: var(--linen);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: all var(--slow) var(--ease-quiet);
}

.menu-button:hover { border-color: var(--clay); }

.menu-button span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--olive-bark);
  border-radius: 2px;
  transition: all var(--slow) var(--ease-quiet);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 54, 51, 0.4);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--slow) var(--ease-quiet);
}

.menu-overlay.open { opacity: 1; pointer-events: auto; }

.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: 80%;
  max-width: 320px;
  background: var(--linen);
  z-index: 101;
  transform: translateX(100%);
  transition: transform var(--slow) var(--ease-quiet);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.menu-drawer.open { transform: translateX(0); }

.menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--stone);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 0;
  margin-bottom: 24px;
}

.menu-mark {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone-light);
  margin-bottom: 8px;
  font-weight: 500;
}

.menu-name {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--olive-bark);
  margin: 0 0 32px;
  font-weight: 400;
}

.menu-section { margin-bottom: 28px; }

.menu-section-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-light);
  margin-bottom: 12px;
  font-weight: 500;
}

.menu-link {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--olive-bark);
  padding: 8px 0;
  text-decoration: none;
  transition: color var(--slow) var(--ease-quiet);
}

.menu-link:hover { color: var(--clay); }
.menu-link.active { color: var(--clay); font-style: italic; }

.menu-verse {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--stone);
  line-height: 1.6;
}

.menu-verse-cite {
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone-light);
  margin-top: 6px;
  font-style: normal;
  display: block;
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 0 80px;
}

.landing-mark {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
  margin-bottom: 56px;
}

.landing-sentence {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.45;
  color: var(--olive-bark);
  font-weight: 400;
  margin: 0 auto 56px;
  max-width: 520px;
  font-style: italic;
}

.landing-button, .primary-button {
  display: inline-block;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--linen);
  background: var(--olive-bark);
  border: none;
  padding: 16px 44px;
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--slow) var(--ease-quiet);
  letter-spacing: 0.04em;
  font-style: italic;
}

.landing-button:hover, .primary-button:hover { background: var(--clay); color: var(--linen); }
.landing-button:active, .primary-button:active { transform: scale(0.97); }

.landing-scrollhint {
  margin-top: 80px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-light);
  font-weight: 400;
}

.landing-scrollhint::after {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: var(--stone-light);
  margin: 12px auto 0;
}

.landing-scroll {
  padding: 80px 0 60px;
  max-width: 540px;
  margin: 0 auto;
}

.landing-section { margin-bottom: 56px; }

.landing-section-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 18px;
  font-weight: 500;
}

.landing-section p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.75;
  color: var(--olive-bark);
  margin: 0 0 18px;
}

.landing-section .em { font-style: italic; color: var(--stone); }

.landing-closing-verse {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.7;
  color: var(--stone);
  text-align: center;
  margin: 70px auto 14px;
  max-width: 480px;
}

.landing-closing-cite {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone-light);
  text-align: center;
  margin-bottom: 56px;
}

.landing-bottom-button { text-align: center; margin-bottom: 60px; }

/* ============================================================
   SIGN IN
   ============================================================ */
.signin {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
  max-width: 420px;
  margin: 0 auto;
}

.signin-mark {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  text-align: center;
  margin-bottom: 32px;
  font-weight: 500;
}

.signin-title {
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  text-align: center;
  margin: 0 0 12px;
  color: var(--olive-bark);
  font-weight: 400;
}

.signin-sub {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--stone);
  text-align: center;
  margin: 0 0 36px;
  font-style: italic;
}

.signin input {
  width: 100%;
  padding: 16px 18px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--olive-bark);
  background: var(--linen);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  margin-bottom: 16px;
  text-align: center;
  -webkit-appearance: none;
  transition: border-color var(--slow) var(--ease-quiet);
}

.signin input:focus { outline: none; border-color: var(--clay-soft); }
.signin input::placeholder { color: var(--stone-light); font-style: italic; }

.signin button {
  width: 100%;
  padding: 16px;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--linen);
  background: var(--olive-bark);
  border: none;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  transition: background var(--slow) var(--ease-quiet);
}

.signin button:hover { background: var(--clay); }

.signin-note {
  text-align: center;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--stone);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ============================================================
   INTAKE
   ============================================================ */
.intake { padding: 36px 0 60px; }

.intake-mark {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  text-align: center;
  margin-bottom: 12px;
  font-weight: 500;
}

.intake-greeting {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.3;
  color: var(--olive-bark);
  text-align: center;
  margin: 0 0 8px;
  font-weight: 400;
  font-style: italic;
}

.intake-sub {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--stone);
  text-align: center;
  margin: 0 0 40px;
  font-style: italic;
}

.field { margin-bottom: 28px; }

.field-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 500;
}

.field-hint {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--stone-light);
  text-transform: none;
  letter-spacing: 0.04em;
  font-style: italic;
  font-weight: 400;
  transition: color var(--slow) var(--ease-quiet);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-family: var(--sans);
  font-size: 14px;
  padding: 9px 16px;
  border: 1px solid var(--hairline);
  background: var(--linen);
  color: var(--stone);
  border-radius: 999px;
  transition: all var(--slow) var(--ease-quiet);
  user-select: none;
  -webkit-user-select: none;
  font-weight: 400;
}

.chip:hover { border-color: var(--clay-soft); color: var(--olive-bark); }
.chip:active { transform: scale(0.96); }
.chip.selected { background: var(--olive-bark); color: var(--linen); border-color: var(--olive-bark); }

.chip .ord {
  font-size: 10px;
  margin-left: 7px;
  opacity: 0.65;
  font-family: var(--serif);
  font-style: italic;
}

textarea.note {
  width: 100%;
  min-height: 76px;
  padding: 14px 16px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--olive-bark);
  background: var(--linen);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  resize: vertical;
  -webkit-appearance: none;
  transition: border-color var(--slow) var(--ease-quiet);
}

textarea.note:focus { outline: none; border-color: var(--clay-soft); }
textarea.note::placeholder { color: var(--stone-light); font-style: italic; }

button.begin {
  width: 100%;
  padding: 18px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--linen);
  background: var(--olive-bark);
  border: none;
  border-radius: 12px;
  margin-top: 12px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  font-style: italic;
  transition: background var(--slow) var(--ease-quiet);
}

button.begin:hover { background: var(--clay); }
button.begin:active { transform: scale(0.99); }

.door {
  display: block;
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
  text-align: center;
  margin-top: 16px;
  text-decoration: none;
  color: inherit;
}

.door-verse {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.65;
  color: var(--stone);
  margin: 0 0 10px;
  transition: color var(--slow) var(--ease-quiet);
}

.door:hover .door-verse { color: var(--clay); }

.door-cite {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-light);
  margin: 0;
}

/* ============================================================
   ENTRY VIEW
   ============================================================ */
.entry-page { padding: 32px 0 60px; }
.back-bar { margin-bottom: 24px; }

.back {
  background: none;
  border: none;
  color: var(--stone);
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 0;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--slow) var(--ease-quiet);
}

.back:hover { color: var(--clay); }

.depth-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 44px;
  justify-content: center;
}

.depth-tab {
  padding: 14px 4px;
  font-family: var(--serif);
  font-size: 17px;
  background: none;
  border: none;
  color: var(--stone-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--slow) var(--ease-quiet);
  font-style: italic;
}

.depth-tab:hover { color: var(--clay); }
.depth-tab.active { color: var(--olive-bark); border-bottom-color: var(--clay); }

.depth-content { display: none; }
.depth-content.active { display: block; }

.entry p {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.78;
  color: var(--olive-bark);
}

.entry .verse {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.65;
  color: var(--olive-bark);
  border-left: 2px solid var(--clay);
  padding: 8px 0 8px 24px;
  margin: 36px 0;
}

.entry .verse-cite {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  font-style: normal;
  margin-top: 12px;
  font-weight: 500;
}

.entry .prayer {
  background: var(--parchment);
  padding: 32px 30px;
  border-radius: 14px;
  margin: 40px 0 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.8;
  color: var(--olive-bark);
  border: 1px solid var(--hairline);
}

.entry .prayer-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  font-style: normal;
  margin-bottom: 16px;
  display: block;
  font-weight: 500;
}

.entry .carry {
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
  margin-top: 44px;
  text-align: center;
}

.entry .carry-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
  font-weight: 500;
}

.entry .carry-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--olive-bark);
  margin: 0;
}

.entry-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.entry-action {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--stone);
  background: var(--linen);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: all var(--slow) var(--ease-quiet);
}

.entry-action:hover { border-color: var(--clay); color: var(--clay); }

.pray-together {
  margin-top: 36px;
  padding: 22px 0 10px;
  text-align: center;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--stone);
  font-style: italic;
  border-top: 1px solid var(--hairline);
}

/* ============================================================
   LANDING PAGE — ADDITIONAL SECTIONS (depths grid, sample card,
   try-in-browser link, install hero variations)
   ============================================================ */
.landing-tagline {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-light);
  text-align: center;
  margin: -36px auto 0;
  font-weight: 400;
}

.landing-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.landing-secondary-link {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px dotted var(--stone-light);
  padding: 4px 2px;
  transition: color var(--slow) var(--ease-quiet),
              border-color var(--slow) var(--ease-quiet);
}
.landing-secondary-link:hover {
  color: var(--clay);
  border-color: var(--clay);
}

/* The three depths, presented as quiet cards */
.depths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 24px auto 0;
}

.depth-card {
  background: var(--parchment);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 28px 26px;
  text-align: left;
}

.depth-card-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--olive-bark);
  margin: 0 0 6px;
  font-weight: 400;
}

.depth-card-time {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 14px;
  font-weight: 500;
}

.depth-card-body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--olive-bark);
  margin: 0 0 12px;
}

.depth-card-echo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--stone);
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
  margin: 0;
}

/* Sample shareable verse card — visible on landing as a real preview
   of what the daily entry's "carry line" looks like */
.sample-card-frame {
  background: var(--linen);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 56px 36px 44px;
  text-align: center;
  max-width: 420px;
  margin: 32px auto;
  box-shadow: 0 1px 2px rgba(58, 54, 51, 0.04),
              0 8px 28px rgba(58, 54, 51, 0.06);
}

.sample-card-verse {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.55;
  color: var(--olive-bark);
  margin: 0 0 20px;
}

.sample-card-cite {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 28px;
  font-weight: 500;
}

.sample-card-mark {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone-light);
  margin: 0;
  font-weight: 400;
}

/* ============================================================
   PWA INSTALL MODAL
   Custom modal for iOS Safari (shows the Add-to-Home-Screen path)
   and for iOS-in-non-Safari (asks them to switch to Safari).
   Linen card, olive-bark body, clay accents — same family as everything.
   ============================================================ */
.pyw-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--slow) var(--ease-quiet);
  padding: 20px;
}

.pyw-modal.open { opacity: 1; pointer-events: auto; }

.pyw-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 54, 51, 0.55);
  backdrop-filter: blur(2px);
}

.pyw-modal-card {
  position: relative;
  background: var(--linen);
  border-radius: 20px;
  padding: 40px 32px 36px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 12px 48px rgba(58, 54, 51, 0.25);
  transform: translateY(20px);
  transition: transform var(--slow) var(--ease-quiet);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.pyw-modal.open .pyw-modal-card { transform: translateY(0); }

.pyw-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--stone-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--slow) var(--ease-quiet),
              background-color var(--slow) var(--ease-quiet);
}
.pyw-modal-close:hover {
  color: var(--olive-bark);
  background: var(--parchment);
}

.pyw-modal-mark {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
  margin: 0 0 8px;
}

.pyw-modal-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.3;
  color: var(--olive-bark);
  font-weight: 400;
  margin: 0 0 10px;
}

.pyw-modal-sub,
.pyw-modal-body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--olive-bark);
  margin: 0 0 24px;
  font-style: italic;
}

.pyw-modal-body { font-style: normal; }

.pyw-modal-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  counter-reset: pyw-step;
}

.pyw-modal-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.pyw-modal-steps li:last-child { border-bottom: none; }

.pyw-step-num {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
}

.pyw-step-text {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--olive-bark);
  flex: 1;
}

.pyw-step-text strong {
  font-weight: 500;
  font-style: italic;
}

.pyw-share-icon,
.pyw-add-icon {
  display: inline-block;
  vertical-align: middle;
  color: var(--clay);
  margin-left: 4px;
}

/* Animated arrow at the bottom pointing toward Safari's Share button */
.pyw-modal-arrow {
  position: fixed;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  color: var(--clay);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  animation: pywArrowBounce 1.6s var(--ease-quiet) infinite;
  z-index: 201;
}

.pyw-arrow-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 500;
}

@keyframes pywArrowBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.85; }
  50%      { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

@media (max-width: 480px) {
  .pyw-modal-card { padding: 32px 22px 28px; }
  .pyw-modal-title { font-size: 22px; }
  .pyw-step-text { font-size: 15px; }
}

/* ============================================================
   INLINE GLOSSES + SCRIPTURE REFERENCES (canon Part IV)
   Quiet dotted underline. Tap to expand definition / context inline.
   ============================================================ */
.gloss, .ref {
  border-bottom: 1px dotted var(--stone-light);
  cursor: pointer;
  transition: border-color var(--slow) var(--ease-quiet),
              background-color var(--slow) var(--ease-quiet);
  padding: 0 1px;
  border-radius: 2px;
}

.gloss:hover, .ref:hover {
  border-bottom-color: var(--clay);
  background-color: var(--parchment);
}

.gloss.open, .ref.open {
  border-bottom-color: var(--clay);
  background-color: var(--clay-pale);
}

.ref { color: var(--clay); }

.gloss-tip, .ref-tip {
  display: none;
  margin: 12px 0;
  padding: 14px 18px;
  background: var(--parchment);
  border-left: 2px solid var(--clay);
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--olive-bark);
  font-style: italic;
}

.gloss-tip.open, .ref-tip.open { display: block; animation: fadeIn 400ms var(--ease-quiet); }

.ref-tip { font-style: italic; color: var(--stone); }

/* ============================================================
   STANDARD PAGE LAYOUT
   ============================================================ */
.standard-page { padding: 32px 0 80px; }

.page-header { margin-bottom: 36px; text-align: center; }

.page-mark {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 10px;
  font-weight: 500;
}

.page-title {
  font-family: var(--serif);
  font-size: 32px;
  font-style: italic;
  color: var(--olive-bark);
  margin: 0 0 8px;
  font-weight: 400;
}

.page-sub {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--stone);
  font-style: italic;
  margin: 0;
}

/* Library entry cards, buckets, look-back, cover, etc. — all
   selectors below are used by future page templates. Safe to
   leave unused on the landing page; they cost nothing. */

.lib-entry {
  display: block;
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0;
  text-decoration: none;
  color: inherit;
  transition: all var(--slow) var(--ease-quiet);
}

.lib-entry:first-child { border-top: 1px solid var(--hairline); }

.lib-entry:hover {
  background: var(--parchment);
  padding-left: 12px;
  padding-right: 12px;
  margin: 0 -12px;
  border-radius: 8px;
  border-color: transparent;
}

.lib-entry-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--stone-light);
  letter-spacing: 0.06em;
}

.lib-entry-date { text-transform: uppercase; letter-spacing: 0.12em; }
.lib-entry-source { font-style: italic; color: var(--clay); }
.lib-entry-source.received { color: var(--sage); }

.lib-entry-verse {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--olive-bark);
  margin: 0 0 8px;
  line-height: 1.5;
}

.lib-entry-line {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--stone);
  margin: 0 0 10px;
  line-height: 1.6;
}

.lib-entry-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.lib-tag {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--stone);
  background: var(--parchment);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.buckets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 32px; }

.bucket-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--parchment);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  transition: all var(--slow) var(--ease-quiet);
  min-height: 130px;
}

.bucket-card:hover { border-color: var(--clay); background: var(--parchment-2); }

.bucket-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--olive-bark);
  line-height: 1.4;
  margin: 0 0 8px;
}

.bucket-count {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Psalm 139 door + look-back room */
.door-room {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.door-room-prayer {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.7;
  color: var(--olive-bark);
  max-width: 540px;
  margin: 0 auto 36px;
}

.door-room-cite {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone-light);
  margin-bottom: 48px;
}

.door-room-button {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--clay);
  background: none;
  border: 1px solid var(--clay);
  padding: 14px 32px;
  border-radius: 999px;
  margin: 0 auto;
  text-decoration: none;
  transition: all var(--slow) var(--ease-quiet);
}

.door-room-button:hover { background: var(--clay); color: var(--linen); }

/* Loading state */
.loading { text-align: center; padding: 140px 20px; }

.loading-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--stone);
  margin-bottom: 28px;
}

.loading-dots {
  display: inline-block;
  font-size: 22px;
  color: var(--clay);
  letter-spacing: 8px;
  animation: pulse 2s var(--ease-quiet) infinite;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

main, .page-wrap { animation: fadeIn var(--slower) var(--ease-quiet); }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .app { padding: 0 20px; }
  .menu-button { top: 16px; right: 16px; }
  body.admin-bar .menu-button { top: 62px; }
  .landing-sentence { font-size: 24px; }
  .landing-section p { font-size: 17px; }
  .intake-greeting { font-size: 26px; }
  .page-title { font-size: 26px; }
  .entry p { font-size: 17px; }
  .entry .verse { font-size: 19px; padding-left: 18px; }
  .entry .prayer { padding: 26px 22px; font-size: 17px; }
  .entry .carry-line { font-size: 20px; }
  .depth-tabs { gap: 20px; }
  .depth-tab { font-size: 16px; }
  .buckets-grid { grid-template-columns: 1fr; }
  .door-room-prayer { font-size: 19px; }
  textarea.note { font-size: 16px; }
  .signin input { font-size: 16px; }
}

@media (max-width: 360px) {
  .landing-sentence { font-size: 22px; }
  .intake-greeting { font-size: 23px; }
  .page-title { font-size: 23px; }
}
