@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:wght@400;500;600;700&family=Bricolage+Grotesque:wght@600&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');
:root{font-family:"Atkinson Hyperlegible Next",system-ui,sans-serif;color:#19283a;background:#f7f4ec;--ink:#19283a;--paper:#fdfbf5;--muted:#505d68;--line:#d9d4c8;--gold:#ae8a57;--serif:"Crimson Text",Georgia,serif;--heading:"Bricolage Grotesque","Avenir Next",system-ui,sans-serif}
*{box-sizing:border-box}
body{margin:0;min-width:280px}
button,input,select{font:inherit}
button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{cursor:pointer}
a{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #946b32;outline-offset:3px}
[hidden]{display:none!important}
i[data-icon],span[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-style:normal}
i svg,span[data-icon] svg{width:19px;height:19px}
.topbar{background:#19283a;color:#faf5e9}
.top-inner{max-width:1130px;min-height:68px;margin:auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:inline-flex;align-items:center;gap:9px;color:inherit;font:600 1.36rem/1.1 var(--heading);letter-spacing:.015em;text-decoration:none}
.brand img{width:34px;height:34px;flex:none}
.tabs{display:flex;gap:26px;align-self:stretch}
.tabs a{display:flex;align-items:center;gap:7px;text-decoration:none;color:#e3e6e8;border-bottom:2px solid transparent;padding:2px 2px 0;font-weight:600}
.tabs a:hover,.tabs a[aria-current="page"]{color:#f5dfb7;border-color:#d9b97f}
.top-action{display:inline-flex;align-items:center;gap:7px;padding:8px 9px;background:transparent;border:1px solid #667280;border-radius:4px;color:#fffbf1;font-weight:600;font-size:.92rem}
.top-action:hover{background:#2a3b51}
.content{max-width:990px;margin:auto;padding:39px 28px 60px}
.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;border-bottom:1px solid var(--line);padding-bottom:19px;margin-bottom:23px}
.page-heading h1,.feature h2,.section h2,.modal h2,.reading-page h2{font:600 clamp(2.05rem,5.2vw,3.25rem)/1.12 var(--heading);letter-spacing:.006em;margin:0 0 7px;overflow-wrap:anywhere}
.page-heading p{margin:0;color:var(--muted);line-height:1.45}
.page-heading .eyebrow{margin:0 0 9px}
.eyebrow{letter-spacing:.105em;text-transform:uppercase;font-size:.82rem;font-weight:700}
.feature{position:relative;isolation:isolate;overflow:hidden;min-height:209px;padding:24px 29px;border-radius:5px;color:#fffaf0;background:radial-gradient(ellipse at 85% 50%,#304764,transparent 64%),#19283a;display:flex;align-items:center}
.feature .eyebrow{color:#e0be86;margin:0 0 8px}
.feature>div{width:min(100%,calc(100% - 175px))}
.feature h2{font-size:clamp(1.65rem,4.4vw,2.8rem);margin:0 0 6px}
.feature p:not(.eyebrow){margin:0 0 16px;color:#ede9df;max-width:32rem}
.feature-mark{position:absolute;z-index:-1;right:5%;top:50%;transform:translateY(-50%);width:146px;height:auto;filter:drop-shadow(0 9px 20px #0c1a2c60)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:7px 12px;border:1px solid #c7c1b3;border-radius:4px;background:var(--paper);color:var(--ink);font-weight:700;font-size:.93rem;text-decoration:none;line-height:1.18}
.btn:hover{background:#eae5d7}
.btn svg{width:16px;height:16px}
.btn.primary{background:var(--ink);border-color:var(--ink);color:#fffaf0}
.btn.primary:hover{background:#31475f}
.btn.quiet{background:transparent;border-color:transparent}
.btn.quiet:hover{background:#eae5d7}
.btn.danger{color:#8b392b}
.section{margin-top:27px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:9px}
.section h2{font-size:1.43rem;margin:0}
.section-head p{color:var(--muted);margin:6px 0 0}
.panel,.index-list{border-top:1px solid var(--line)}
.entry,.empty{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}
.entry time{font-variant-numeric:tabular-nums;font-weight:700;min-width:4rem}
.entry strong,.empty strong{display:block;font-size:1.05rem}
.prayer-entry strong{font:600 1.12rem/1.18 var(--heading);margin-bottom:4px;overflow-wrap:anywhere}
.entry p,.empty p,.empty-line{margin:3px 0 0;color:var(--muted);line-height:1.42}
.entry p.prayer-desc{margin-top:4px}
.empty-line{padding:12px 0;border-bottom:1px solid var(--line)}
.entry-text{flex:1;min-width:0}
.entry-actions,.filters,.modal-actions,.reader-controls{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.entry-actions{justify-content:flex-end}
.icon-tile{width:41px;height:41px;border:1px solid #ddd1b9;border-radius:50%;background:#f0e8d7;color:#584321}
.library-tools{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:0 0 15px}
.search-field{width:min(100%,300px)}
.filter{min-height:36px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--muted);padding:5px 9px;font-weight:700}
.filter:hover,.filter[aria-pressed="true"]{color:var(--ink);background:#ede6d6;border-color:#dacdb3}
.conf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);background:var(--paper)}
.conf-card{padding:16px}
.conf-card+.conf-card{border-left:1px solid var(--line)}
.conf-card h3{font:600 1.05rem/1.2 var(--heading);margin:10px 0 5px}
.conf-card p,.calendar-note{margin:0;color:var(--muted);line-height:1.5}
.calendar-note{margin-top:9px}
.notice{border-left:3px solid var(--gold);background:#f0e9d9;padding:10px 13px;line-height:1.5}
dialog{width:min(94vw,565px);max-height:90dvh;color:var(--ink);border:1px solid var(--line);border-radius:7px;background:var(--paper);padding:0;box-shadow:0 18px 65px #17263830}
dialog::backdrop{background:#0b1525a8}
.modal{padding:22px}
.modal-head{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:13px}
.modal h2{font-size:1.55rem;margin:0}
.modal h3{margin:15px 0 4px;font-size:1rem}
.modal p{color:var(--muted);line-height:1.55;margin:0 0 12px}
.modal-actions{margin-top:16px}
.modal .plan-preview,.modal .plan-error{margin:9px 0 0;font-size:.9rem}
.plan-preview:empty{display:none}
.modal .plan-error{color:#8b392b}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
fieldset,.field{margin:0;padding:0;border:0;min-width:0}
.field{display:grid;gap:5px;font-weight:700;font-size:.93rem}
.field input,.field select{min-width:0;width:100%;min-height:42px;border-radius:4px;border:1px solid #c9c4ba;padding:7px 9px;color:var(--ink);background:#fff;box-sizing:border-box}
.field select{appearance:none;padding-right:27px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%2319283a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 8px center/15px}
.weekdays{margin:13px 0 0}
.weekdays legend{font-weight:700;margin-bottom:7px}
.week-row{display:flex;gap:6px;flex-wrap:wrap}
.week-row label{cursor:pointer;position:relative}
.week-row input{position:absolute;opacity:0}
.week-row span{display:inline-flex;min-width:43px;min-height:35px;align-items:center;justify-content:center;border:1px solid #c9c4ba;border-radius:4px}
.week-row input:checked+span{background:#e9e2d0;border-color:#9d7b48}
.week-row input:focus-visible+span{outline:2px solid #946b32;outline-offset:3px}
dialog.reader{width:min(94vw,750px);height:92dvh;max-height:92dvh;border-radius:4px}
.reader-bar{position:sticky;z-index:1;top:0;display:flex;justify-content:space-between;align-items:center;padding:6px 12px;border-bottom:1px solid var(--line);background:var(--paper)}
.reading-page{max-width:630px;margin:auto;padding:31px 30px 48px}
.reading-page .eyebrow{color:#705127;margin:0 0 8px}
.reading-page h2{font-size:clamp(1.95rem,6vw,3.25rem);margin-bottom:23px}
.reading-page section{margin:20px 0}
.reading-page section h3{font:600 .99rem/1.25 var(--heading);margin:0 0 5px}
.reading-page section p{font:400 var(--reading-size,1.25rem)/1.52 var(--serif);margin:0}
.reader-day{max-width:9rem}
#toast{display:none;position:fixed;z-index:5;right:18px;bottom:18px;padding:11px 16px;border-radius:4px;background:var(--ink);color:#fffaf0;max-width:min(420px,calc(100vw - 36px))}
#toast.show{display:block}
@media(max-width:680px){
  .top-inner{min-height:53px;padding:0 15px}.brand{font-size:1.18rem}.brand img{width:29px;height:29px}
  .tabs{position:fixed;z-index:2;bottom:0;left:0;right:0;justify-content:space-around;gap:0;background:#19283a;padding:0 5px env(safe-area-inset-bottom)}
  .tabs a{flex:1;min-height:57px;justify-content:center;flex-direction:column;gap:2px;border-bottom:0;border-top:2px solid transparent;padding:3px 0;font-size:.89rem}
  .tabs a[aria-current="page"]{border-top-color:#d9b97f;background:#263a50}
  .content{padding:25px 15px calc(84px + env(safe-area-inset-bottom))}
  .page-heading{align-items:flex-start;flex-wrap:wrap;gap:11px;padding-bottom:14px;margin-bottom:16px}
  .feature{padding:19px 15px;min-height:180px}.feature>div{width:100%;padding-right:55px}.feature-mark{right:12px;top:17px;transform:none;width:54px}
  .feature p:not(.eyebrow){max-width:24ch}.section{margin-top:21px}.section h2{font-size:1.24rem}
  .library-tools{align-items:start;flex-direction:column;gap:8px}.search-field{width:100%}
  .entry{gap:8px}.entry time{min-width:3rem}
  .entry:not(.agenda-list .entry){flex-wrap:wrap}.entry:not(.agenda-list .entry) .entry-actions{width:100%;justify-content:flex-start;padding-left:48px}
  .conf-grid{grid-template-columns:1fr}.conf-card{padding:11px 13px}.conf-card+.conf-card{border-left:0;border-top:1px solid var(--line)}
  dialog.reader{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}
  .reading-page{padding:23px 19px 34px}.modal{padding:16px}
  #toast{bottom:calc(67px + env(safe-area-inset-bottom))}
}
