:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#233f36;background:#f8f8f2;font-synthesis:none;--green:#193e36;--muted:#6d7a71;--gold:#ab792d;--line:#dde2d8}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,.file-label{cursor:pointer}button{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #af7c2d;outline-offset:4px}button{border:0}button:disabled{opacity:.6;cursor:wait}a{color:inherit}.site-header{padding:24px max(5%,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:12px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;font-family:Georgia,serif;font-size:25px;font-weight:bold}.brand img{border-radius:12px}.brand small{display:block;font:9px system-ui;letter-spacing:2px;color:var(--muted);margin-top:5px}main{max-width:1280px;margin:auto;padding:0 5%}.intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:48px 0 32px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2.1px;color:#7e765c;margin:0 0 13px}h1,h2,h3{font-family:Georgia,"Times New Roman",serif;font-weight:400}h1{font-size:clamp(36px,4.7vw,59px);line-height:1.12;letter-spacing:-1.8px;margin:0}h1 em{color:#7d8b63;font-weight:400}h2{font-size:26px;margin:0}h3{font-size:23px;margin-bottom:12px}.subtitle{font-size:14px;color:var(--muted);margin:18px 0 0}.primary,.secondary,.text-button,.danger{border-radius:9px;padding:13px 20px;font-size:13px;font-weight:600;min-height:44px}.primary{background:var(--green);color:white;box-shadow:0 4px 10px #193e3613}.primary:hover{background:#2c5748}.primary span{font-size:21px;margin-right:6px;vertical-align:-1px}.secondary{background:#edf0e7;color:var(--green);border:1px solid #d5dece}.text-button{background:transparent;color:var(--green)}.text-button:hover{background:#e8ede3}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 30px}.stat{display:flex;align-items:center;gap:16px;text-align:left;background:#fffefa;border:1px solid var(--line);border-radius:12px;padding:20px}.stat.active{border-color:#9caa85;box-shadow:inset 0 0 0 1px #9caa8530}.stat-symbol{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;font:27px Georgia}.all-symbol{background:#edf0e5;color:#6b7c4c}.miracle{color:#9e6d1e;background:#f9edcf}.prayer{color:#976c84;background:#f2e7ee}.path{color:#4b7f76;background:#e1eeea}.stat strong{font:28px Georgia;display:block}.stat small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.map-card{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:#fffefa}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 26px}.section-heading .eyebrow{font-size:9px;margin-bottom:9px}.local-badge{font-size:10px;color:#617d61;background:#eef2e7;padding:8px 11px;border-radius:20px;white-space:nowrap}#map-wrap{position:relative;background:#e9f1ed;overflow:hidden}#world-map{display:block;width:100%;height:390px;touch-action:none;cursor:grab}#world-map:active{cursor:grabbing}.map-controls{position:absolute;right:17px;top:17px;display:grid;box-shadow:0 2px 8px #193e3615;border-radius:8px;overflow:hidden}.map-controls button{width:42px;height:42px;background:#fffef9;color:#3a5549;font-size:23px;border-bottom:1px solid #e6e9df}.map-controls button:last-child{border:0}.map-empty{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;background:#fffef9ed;border:1px solid #e0e5d6;padding:22px 30px;border-radius:14px;box-shadow:0 8px 40px #193e360c;width:max-content;max-width:85%}.map-empty>span{display:block;color:#9b854b;font:36px Georgia;margin-bottom:8px}.map-empty strong{font:22px Georgia}.map-empty p{font-size:12px;line-height:1.8;color:var(--muted)}.map-empty button{font-size:11px;padding:7px 10px}.map-credit{position:absolute;bottom:5px;right:8px;background:#e9f1edcc;font-size:8px;color:#5e7568;padding:3px}.map-footer{display:flex;justify-content:space-between;padding:15px 24px;gap:14px}.legend{display:flex;gap:22px;flex-wrap:wrap;font-size:10px;color:#647166}.legend span{display:flex;align-items:center;gap:6px}.legend i{font-style:normal;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;font-size:16px}.map-hint{font-size:10px;color:#7d8579;align-self:center}.journal{margin-top:28px}.journal .section-heading{padding:8px 0 22px}.search input{padding:11px 15px;border:1px solid var(--line);border-radius:9px;background:#fffefa;width:230px;font-size:12px}.journal-empty{padding:32px;text-align:center;border:1px dashed #d2d9c9;border-radius:12px;color:var(--muted);font-size:13px}.journal-empty strong{display:block;color:#56694e;font:23px Georgia;margin-bottom:10px}.entry-card{display:flex;gap:16px;padding:20px;margin-bottom:12px;border:1px solid var(--line);border-radius:12px;background:#fffefa;text-align:left;width:100%;color:inherit}.entry-card:hover{border-color:#9caa85}.entry-copy{min-width:0;flex:1}.entry-copy h3{margin:0 0 7px;font-size:22px;overflow-wrap:anywhere}.entry-copy p{color:var(--muted);font-size:13px;margin:0 0 10px;overflow-wrap:anywhere;white-space:pre-wrap}.entry-meta{font-size:10px;display:flex;gap:14px;flex-wrap:wrap;color:#7f806e}.chevron{align-self:center;color:#8f9b82;font-size:24px}.page-footer{display:flex;justify-content:space-between;gap:12px;padding:30px 0 max(30px,env(safe-area-inset-bottom));font-size:10px;color:#8a8d7a}dialog{border:1px solid var(--line);border-radius:19px;padding:28px;max-width:600px;width:calc(100% - 24px);max-height:90dvh;color:#233f36;background:#fffef9;box-shadow:0 20px 100px #102e3530}dialog::backdrop{background:#132d2866;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.dialog-heading .eyebrow{margin-bottom:8px}.close{font-size:27px;background:#edf0e7;color:var(--green);width:44px;height:44px;border-radius:50%;flex-shrink:0}label{display:block;font-size:12px;font-weight:600}input:not([type=radio]):not([type=file]),textarea{width:100%;background:#fff;border:1px solid #d5ddcf;border-radius:8px;padding:12px;margin:8px 0 18px;color:#263e34;min-height:44px}input:focus,textarea:focus{outline:2px solid #879e70;outline-offset:1px}textarea{resize:vertical;line-height:1.6}fieldset{border:0;padding:0;margin:0 0 20px}legend{font-size:12px;font-weight:600;margin-bottom:10px}.category-choice{display:flex;align-items:center;gap:12px;padding:11px;border:1px solid var(--line);border-radius:9px;margin-bottom:8px;cursor:pointer}.category-choice:has(input:checked){background:#f1f3e9;border-color:#94a17b}.category-choice input{accent-color:var(--green)}.category-choice .stat-symbol{width:35px;height:35px;font-size:23px}.category-choice strong{font-size:12px}.category-choice small{display:block;font-size:10px;font-weight:400;line-height:1.5;color:var(--muted);margin-top:4px}.location-box{border:1px solid var(--line);border-radius:12px;padding:17px;background:#f7f8f0}.location-box strong{font-size:13px}.location-box p{font-size:11px;line-height:1.7;color:var(--muted)}details{font-size:11px;margin:12px 0}summary{cursor:pointer;padding:7px 0}.coordinate-fields{display:flex;gap:12px}.coordinate-fields label{width:50%}.place-label{margin-top:12px}.place-label input{margin-bottom:0!important}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.danger{background:#f8e9e3;color:#994632;margin-right:auto}.inline-error{background:#f9eae3;color:#97452c;padding:12px;border-radius:8px;font-size:12px}.backup-actions{display:flex;gap:12px;flex-wrap:wrap}.file-label{display:inline-flex;align-items:center}.file-label input{position:absolute;width:1px;height:1px;opacity:0}#help-dialog p,#help-dialog li{font-size:13px;color:#5f7064;line-height:1.8}#detail-content h2{overflow-wrap:anywhere;font-size:32px;margin:18px 0}#detail-content .story{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.9}#detail-content .entry-meta{line-height:1.8}#toast{position:fixed;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:var(--green);color:white;padding:13px 22px;border-radius:10px;box-shadow:0 5px 30px #193e3633;font-size:13px;z-index:10;max-width:90%;width:max-content}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}.map-pin{cursor:pointer;outline:none}.map-pin:focus .pin-body,.map-pin:hover .pin-body{stroke:#193e36;stroke-width:3}.map-pin text{pointer-events:none}
@media(min-width:1200px){#world-map{height:440px}}
@media(max-width:700px){.site-header{padding:17px 5%}.brand{font-size:22px;gap:9px}.brand small{font-size:7px;letter-spacing:1.4px}.brand img{width:36px;height:36px}.site-header>.text-button{font-size:10px;padding:6px}.intro{padding-top:30px;display:block}h1{font-size:42px}.intro>.primary{margin-top:23px}.stats{grid-template-columns:repeat(2,1fr);gap:9px;margin-bottom:20px}.stat{padding:14px;gap:12px}.stat strong{font-size:25px}.stat small{font-size:10px}.stat-symbol{width:37px;height:37px}.section-heading{padding:20px 17px;align-items:flex-start}.section-heading h2{font-size:23px}.local-badge{font-size:0;padding:7px}.local-badge:first-letter{font-size:10px}#world-map{height:340px}.map-footer{padding:12px;display:block}.legend{gap:12px;font-size:9px}.map-hint{display:none}.journal .section-heading{display:block}.search input{width:100%;margin:16px 0 0!important}.page-footer{font-size:9px;display:block;line-height:2}.page-footer span{display:block}dialog{padding:20px}.map-empty{padding:18px}.map-empty strong{font-size:20px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,border-color .15s}dialog[open]{animation:appear .18s ease-out}@keyframes appear{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}}
