/*
Theme Name: Georgian Church
Theme URI: https://georgianchurch.ca
Author: Iveron Icon Parish
Description: A mobile-first theme for georgianchurch.ca, the English-language site of the Iveron Icon Georgian Orthodox parish in Toronto. Built around daily saints' lives, with a reading-optimised type system and the grapevine cross of St. Nino as its ornament.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iveron
Tags: church, blog, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root{
  --basalt:#221D1A;
  --basalt-2:#322A26;
  --limestone:#EFEBE3;
  --limestone-2:#E3DDD2;
  --oxide:#8C2B23;
  --oxide-deep:#6E1F19;
  --gilt:#B8892F;
  --ink:#1A1614;
  --muted:#6B6058;
  --rule:rgba(26,22,20,.13);

  --display:"Fraunces",Georgia,serif;
  --read:"Literata",Georgia,serif;
  --ui:"Archivo",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;

  --pad:clamp(20px,5vw,64px);
  --maxw:1180px;
  --readw:46rem;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--limestone);color:var(--ink);
  font-family:var(--read);font-size:17.5px;line-height:1.68;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--oxide)}
.disp{font-family:var(--display);font-variation-settings:'SOFT' 18,'WONK' 1;letter-spacing:-.016em}
.wrap{max-width:var(--maxw);margin:0 auto;padding-left:var(--pad);padding-right:var(--pad)}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed;top:8px;left:8px;z-index:999;background:#fff;color:var(--ink);padding:12px 18px;width:auto;height:auto;clip:auto}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2.5px solid var(--gilt);outline-offset:3px}

/* The parish mark — the Iveron Icon. Circular, with a thin gilt rim so it
   reads as an icon rather than a stray photograph. */
.mark{display:block;border-radius:50%;object-fit:cover;box-shadow:0 0 0 1px rgba(184,137,47,.55)}

/* Small ornament, used where the icon would be illegible */
.orn{display:inline-block;width:20px;height:2px;background:currentColor;opacity:.55;flex:none;border-radius:2px}

/* ============================================================
   2. HEADER
   ============================================================ */
.site-head{position:sticky;top:0;z-index:60;background:var(--basalt);color:var(--limestone);border-bottom:1px solid rgba(184,137,47,.3)}
.head-inner{max-width:var(--maxw);margin:0 auto;padding:11px var(--pad);display:flex;align-items:center;gap:12px}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;margin-right:auto;min-width:0;color:inherit}
.brand .mark{width:40px;height:40px;flex:none}
.brand-txt{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.brand-a{font-family:var(--display);font-variation-settings:'SOFT' 18,'WONK' 1;font-size:17px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-b{font-family:var(--ui);font-size:9.5px;font-weight:500;letter-spacing:.15em;text-transform:uppercase;color:rgba(239,235,227,.58);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand img{max-height:44px;width:auto}

.ka-link{font-family:"Noto Serif Georgian",Georgia,serif;font-size:12.5px;color:rgba(239,235,227,.82);text-decoration:none;border:1px solid rgba(184,137,47,.5);border-radius:2px;padding:0 9px;flex:none;min-height:40px;display:flex;align-items:center;white-space:nowrap}

/* Narrow phones: drop the strapline so the parish name fits whole.
   A truncated name reads worse than no strapline. */
@media(max-width:520px){
  .brand-b{display:none}
  .brand-a{font-size:15.5px}
  .brand .mark{width:34px;height:34px}
  .head-inner{gap:9px;padding-left:16px;padding-right:16px}
  .ka-link{font-size:12px;padding:0 8px}
}
.ka-link:hover,.ka-link:focus{background:var(--gilt);color:var(--basalt);border-color:var(--gilt)}

.burger{width:44px;height:44px;flex:none;background:none;border:1px solid rgba(239,235,227,.3);border-radius:2px;display:grid;place-content:center;gap:5px;cursor:pointer;padding:0}
.burger span{display:block;width:19px;height:1.5px;background:var(--limestone);transition:transform .2s ease,opacity .2s ease}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}

.nav-desk{display:none}
.drawer{display:none;background:var(--basalt-2);border-top:1px solid rgba(184,137,47,.2)}
.drawer.open{display:block}
.drawer ul{list-style:none;margin:0;padding:0}
.drawer a{display:block;padding:15px var(--pad);font-family:var(--ui);font-size:15.5px;text-decoration:none;color:var(--limestone);border-bottom:1px solid rgba(239,235,227,.08)}
.drawer a:hover{background:rgba(239,235,227,.05)}
.drawer .current-menu-item > a{color:#fff;box-shadow:inset 3px 0 0 var(--gilt)}
.drawer .sub-menu a{padding-left:calc(var(--pad) + 18px);font-size:14.5px;color:rgba(239,235,227,.8)}

/* ============================================================
   3. HERO
   ============================================================ */
.hero{position:relative;background:var(--basalt);overflow:hidden}
.hero-img{position:absolute;inset:0;background-size:cover;background-position:center 46%;background-repeat:no-repeat}
.hero-img::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(20,15,13,.72) 0%,rgba(20,15,13,.18) 18%,rgba(20,15,13,0) 38%,rgba(20,15,13,.10) 55%,rgba(20,15,13,.66) 78%,rgba(20,15,13,.93) 100%)}
.hero-img.no-photo{background-image:radial-gradient(120% 90% at 50% 12%,rgba(58,48,42,.55) 0%,rgba(34,29,26,.9) 62%,var(--basalt) 100%),repeating-linear-gradient(101deg,rgba(184,137,47,.05) 0 2px,transparent 2px 9px),linear-gradient(168deg,#4A3D34 0%,#2C2420 48%,#181312 100%)}
.hero-inner{position:relative;max-width:var(--maxw);margin:0 auto;min-height:clamp(430px,72vh,560px);display:flex;flex-direction:column;justify-content:flex-end;padding:clamp(80px,20vw,150px) var(--pad) clamp(30px,7vw,52px);text-align:center;color:var(--limestone)}
.hero .mark{width:66px;height:66px;margin:0 auto 18px;box-shadow:0 0 0 1px rgba(184,137,47,.7),0 6px 24px rgba(0,0,0,.55)}
.hero h1{margin:0;font-family:var(--display);font-variation-settings:'SOFT' 18,'WONK' 1;font-weight:600;font-size:clamp(31px,8vw,60px);line-height:1.08;letter-spacing:-.022em;text-shadow:0 2px 18px rgba(16,12,10,.6)}
.hero-rule{width:48px;height:1px;background:var(--gilt);opacity:.75;margin:clamp(16px,4vw,24px) auto}
.hero-sub{margin:0 auto;max-width:34ch;font-family:var(--ui);font-size:15px;font-weight:500;letter-spacing:.03em;line-height:1.55;color:rgba(239,235,227,.86);text-shadow:0 1px 10px rgba(16,12,10,.7)}

/* ============================================================
   4. DAILY COMMEMORATION  (the signature block)
   ============================================================ */
.today{background:var(--oxide);color:#F7F1E8;position:relative;overflow:hidden}
.today .watermark{position:absolute;right:-40px;top:50%;transform:translateY(-50%);width:250px;height:250px;opacity:.10;pointer-events:none;box-shadow:none;filter:grayscale(.3)}
.today-inner{position:relative;max-width:var(--maxw);margin:0 auto;padding:clamp(26px,6vw,40px) var(--pad)}

/* fixed height, auto width, contain: icons of any shape, never cropped */
.icon-frame{height:158px;width:-moz-fit-content;width:fit-content;max-width:100%;margin:0 auto 22px;padding:7px;background:rgba(0,0,0,.2);border:1px solid rgba(247,241,232,.3);box-shadow:0 6px 22px rgba(0,0,0,.22);display:flex;align-items:center;justify-content:center;flex:none}
.icon-frame img{height:158px;width:auto;max-width:100%;object-fit:contain}
.icon-frame .mark{height:130px;width:130px;border-radius:50%;opacity:.55}

.today-eyebrow{font-family:var(--ui);font-size:10.5px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:rgba(247,241,232,.66);margin:0 0 12px}
.today-date{font-family:var(--ui);font-size:13.5px;font-weight:500;color:rgba(247,241,232,.78);margin:0 0 8px;letter-spacing:.02em}
.today-saint{margin:0;font-family:var(--display);font-variation-settings:'SOFT' 18,'WONK' 1;font-weight:600;font-size:clamp(26px,6.6vw,42px);line-height:1.16;letter-spacing:-.018em}
.today-saint a{color:inherit;text-decoration:none}
.today-saint a:hover{text-decoration:underline;text-underline-offset:4px}
.today-line{display:block;margin-top:9px;font-family:var(--read);font-weight:400;font-size:clamp(15px,3.7vw,17.5px);line-height:1.5;color:rgba(247,241,232,.8);letter-spacing:0}
.today-link{display:inline-flex;align-items:center;gap:9px;margin-top:19px;min-height:44px;font-family:var(--ui);font-size:14.5px;font-weight:600;color:#F7F1E8;text-decoration:none;border-bottom:1.5px solid rgba(247,241,232,.45)}
.today-link:hover{border-bottom-color:#F7F1E8}
.today-link .arw{transition:transform .22s ease}
.today-link:hover .arw{transform:translateX(4px)}

/* ============================================================
   5. SECTION FURNITURE
   ============================================================ */
.sec{padding:clamp(46px,10vw,84px) 0}
.sec-head{margin:0 0 clamp(24px,6vw,38px)}
.sec-eyebrow{display:flex;align-items:center;gap:10px;font-family:var(--ui);font-size:10.5px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--oxide);margin:0 0 11px}

.sec-title{margin:0;font-family:var(--display);font-variation-settings:'SOFT' 18,'WONK' 1;font-weight:600;font-size:clamp(26px,6.2vw,40px);line-height:1.15;letter-spacing:-.02em}
.sec-note{margin:11px 0 0;font-family:var(--ui);font-size:15px;color:var(--muted);max-width:54ch;line-height:1.55}

/* ============================================================
   6. SERVICES
   ============================================================ */
.services{background:var(--limestone-2)}
.svc-list{display:grid;gap:12px}
.svc{background:var(--limestone);border-left:3px solid var(--oxide);padding:18px 20px}
.svc.is-next{border-left-color:var(--gilt);background:#fff}
.svc-when{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;font-family:var(--ui);font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin:0 0 7px}
.tag{font-size:9.5px;letter-spacing:.14em;background:var(--gilt);color:#231C0C;padding:3px 7px;border-radius:2px}
.svc-what{margin:0;font-family:var(--display);font-variation-settings:'SOFT' 18,'WONK' 1;font-size:21px;font-weight:600;line-height:1.28;letter-spacing:-.012em}
.svc-time{font-family:var(--ui);font-size:15.5px;color:var(--oxide);font-weight:600;margin:5px 0 0}
.svc-where{display:inline-flex;align-items:center;gap:7px;margin-top:9px;min-height:36px;font-family:var(--ui);font-size:14px;color:var(--muted);text-decoration:none}
a.svc-where{border-bottom:1px solid rgba(107,96,88,.35)}
.svc-where:hover{color:var(--oxide);border-bottom-color:var(--oxide)}

/* ---------- Telegram ---------- */
.tg{margin-top:16px;background:var(--basalt);color:var(--limestone);padding:26px 22px;display:flex;flex-direction:column;gap:22px}
.tg-eyebrow{margin:0 0 9px;font-family:var(--ui);font-size:10.5px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--gilt)}
.tg-title{margin:0;font-family:var(--display);font-variation-settings:'SOFT' 18,'WONK' 1;font-size:clamp(20px,5vw,26px);font-weight:600;line-height:1.24;letter-spacing:-.016em}
.tg-text{margin:10px 0 0;font-family:var(--ui);font-size:14.5px;line-height:1.58;color:rgba(239,235,227,.72);max-width:46ch}
.tg-btn{display:inline-flex;align-items:center;gap:10px;margin-top:18px;min-height:50px;padding:13px 24px;border-radius:2px;background:#229ED9;color:#fff;text-decoration:none;font-family:var(--ui);font-size:15px;font-weight:600;transition:background .2s ease}
.tg-btn:hover{background:#1B87BA;color:#fff}
.tg-icon{width:19px;height:19px;flex:none}
.tg-handle{margin:11px 0 0;font-family:var(--ui);font-size:13px;color:rgba(239,235,227,.5)}

/* The QR is useless on the device you're holding — desktop only */
.tg-qr{display:none}
@media(min-width:820px){
  .tg{flex-direction:row;align-items:center;justify-content:space-between;gap:44px;padding:32px 34px}
  .tg-body{flex:1;min-width:0}
  .tg-qr{display:flex;flex-direction:column;align-items:center;gap:9px;flex:none}
  .tg-qr img{width:150px;height:150px;background:#fff;padding:11px;border-radius:3px}
  .tg-qr span{font-family:var(--ui);font-size:11px;letter-spacing:.15em;text-transform:uppercase;color:rgba(239,235,227,.55)}
}

/* ---------- Telegram featured post ----------
   Telegram blocks framing of the channel preview (t.me/s/...), so only their
   official single-post widget can be embedded. It supplies its own iframe. */
.tg-post{margin-top:16px;background:#fff;border:1px solid rgba(26,22,20,.12);padding:10px}
.tg-post iframe{display:block;width:100%!important;border:0}
@media(min-width:820px){ .tg-post{margin-top:20px;padding:14px} }

/* ============================================================
   7. LIBRARY CARDS
   ============================================================ */
.lib-grid{display:grid;gap:13px}
.card{position:relative;display:block;text-decoration:none;color:inherit;background:#fff;padding:24px 22px 26px;border:1px solid rgba(26,22,20,.09);transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease}
.card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(34,29,26,.13);border-color:rgba(140,43,35,.3)}
.card .orn{color:var(--oxide);opacity:.85;margin-bottom:15px;width:26px;height:2px;display:block}
.card h3{margin:0;font-family:var(--display);font-variation-settings:'SOFT' 18,'WONK' 1;font-size:22px;font-weight:600;line-height:1.22;letter-spacing:-.016em}
.card p{margin:10px 0 0;font-family:var(--ui);font-size:14.5px;line-height:1.55;color:var(--muted)}
.card .go{display:inline-block;margin-top:14px;font-family:var(--ui);font-size:13px;font-weight:600;letter-spacing:.05em;color:var(--oxide)}

/* ============================================================
   8. NEWS
   ============================================================ */
.news{background:var(--limestone-2)}
.news-item{display:block;text-decoration:none;color:inherit;padding:19px 0;border-top:1px solid var(--rule)}
.news-item:last-child{border-bottom:1px solid var(--rule)}
.news-date{font-family:var(--ui);font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin:0}
.news-item h3{margin:6px 0 0;font-family:var(--display);font-variation-settings:'SOFT' 18,'WONK' 1;font-size:19.5px;font-weight:600;line-height:1.32;letter-spacing:-.014em}
.news-item:hover h3{color:var(--oxide)}

/* ============================================================
   9. GIVE
   ============================================================ */
.give{background:var(--basalt);color:var(--limestone);text-align:center}
.give .mark{width:60px;height:60px;margin:0 auto 22px;box-shadow:0 0 0 1px rgba(184,137,47,.7)}
.give h2{margin:0;font-family:var(--display);font-variation-settings:'SOFT' 18,'WONK' 1;font-size:clamp(25px,5.8vw,36px);font-weight:600;line-height:1.2;letter-spacing:-.02em}
.give p{margin:16px auto 0;max-width:45ch;font-family:var(--ui);font-size:15.5px;line-height:1.62;color:rgba(239,235,227,.72)}
.btn{display:inline-block;margin-top:26px;background:var(--oxide);color:#F7F1E8;text-decoration:none;font-family:var(--ui);font-size:15.5px;font-weight:600;padding:15px 34px;min-height:52px;line-height:22px;border-radius:2px;transition:background .2s ease}
.btn:hover{background:var(--oxide-deep);color:#F7F1E8}
.give small{display:block;margin-top:14px;font-family:var(--ui);font-size:12.5px;color:rgba(239,235,227,.5)}

/* ============================================================
   10. READING VIEW — saints' lives, pages, posts
   ============================================================ */
.page-head{background:var(--basalt);color:var(--limestone);padding:clamp(52px,12vw,96px) 0 clamp(34px,8vw,56px);text-align:center}
.page-head .mark{width:56px;height:56px;margin:0 auto 20px;box-shadow:0 0 0 1px rgba(184,137,47,.7)}
.page-head h1{margin:0 auto;max-width:22ch;font-family:var(--display);font-variation-settings:'SOFT' 18,'WONK' 1;font-size:clamp(29px,7vw,50px);font-weight:600;line-height:1.13;letter-spacing:-.022em}
.page-head .meta{margin:16px 0 0;font-family:var(--ui);font-size:13px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:rgba(239,235,227,.6)}

.entry{max-width:var(--readw);margin:0 auto;padding:clamp(38px,9vw,64px) var(--pad)}
.entry>*{margin-top:0;margin-bottom:1.25em}
.entry p{font-size:1.02em;line-height:1.78;hyphens:auto;-webkit-hyphens:auto}
/* Let images breathe past the text column on wide screens */
.entry>figure,.entry>img,.entry .wp-caption{max-width:min(100%,var(--maxw))}
.entry h2{font-family:var(--display);font-variation-settings:'SOFT' 18,'WONK' 1;font-size:1.55em;font-weight:600;line-height:1.24;letter-spacing:-.018em;margin-top:2em}
.entry h3{font-family:var(--display);font-variation-settings:'SOFT' 18,'WONK' 1;font-size:1.25em;font-weight:600;margin-top:1.8em}
.entry a{text-underline-offset:3px}
.entry blockquote{margin-left:0;margin-right:0;padding:4px 0 4px 22px;border-left:3px solid var(--gilt);font-style:normal;color:#3A322D}
.entry img,.entry figure{margin-left:auto;margin-right:auto}
.entry figcaption{font-family:var(--ui);font-size:13.5px;color:var(--muted);text-align:center;margin-top:8px}
.entry ul,.entry ol{padding-left:1.35em}
.entry li{margin-bottom:.5em}
.entry hr{border:0;height:1px;background:var(--rule);margin:2.4em 0}

/* Index pages — directories of many links, not prose.
   Wider container, columned lists, tighter leading. */
.entry--index{max-width:var(--maxw)}
.entry--index h2{margin-top:1.8em;padding-bottom:10px;border-bottom:1px solid var(--rule);font-size:1.35em}
.entry--index h2:first-child{margin-top:0}
.entry--index ul,.entry--index ol{list-style:none;padding-left:0;margin-bottom:1.8em;display:grid;grid-template-columns:1fr;gap:0 40px;align-content:start}
.entry--index li{margin-bottom:0;line-height:1.42;font-size:.94em;padding:8px 0;border-bottom:1px solid rgba(26,22,20,.07)}
.entry--index li a{text-decoration:none;color:var(--ink);display:block;text-underline-offset:3px}
.entry--index li a:hover{color:var(--oxide);text-decoration:underline}
.entry--index li strong{font-weight:600;color:var(--ink)}
.entry--index li strong.d{color:var(--oxide);white-space:nowrap}
.entry--index p{max-width:var(--readw)}

/* Grid rather than CSS columns: items flow left-to-right along each row,
   which is the order the eye actually scans a list of dates in. */
@media(min-width:700px){
  .entry--index ul,.entry--index ol{grid-template-columns:1fr 1fr}
}
@media(min-width:1050px){
  .entry--index ul,.entry--index ol{grid-template-columns:repeat(3,1fr)}
}
@media(min-width:1500px){
  .entry--index{max-width:1440px}
  .entry--index ul,.entry--index ol{grid-template-columns:repeat(4,1fr);gap:0 44px}
}
@media(min-width:2000px){
  .entry--index{max-width:1800px}
  .entry--index ul,.entry--index ol{gap:0 56px}
  .entry--index li{font-size:1em}
}

/* Centred template — gallery pages (icon, caption, repeat) */
.entry--centred{text-align:center;max-width:44rem}
.entry--centred h2,.entry--centred h3{text-align:center}
.entry--centred p{text-align:center;margin-left:auto;margin-right:auto;max-width:38rem}
.entry--centred img{margin-left:auto;margin-right:auto}
.entry--centred figure{margin-left:auto;margin-right:auto;text-align:center}
.entry--centred ul,.entry--centred ol{list-style:none;padding-left:0;text-align:center}
.entry--centred blockquote{border-left:0;border-top:1px solid var(--gilt);border-bottom:1px solid var(--gilt);padding:18px 0;text-align:center}

/* Card grids (prayers, and any page using the same markup).

   These pages ship their own <style> block in the body, which loads after the
   theme stylesheet and wins at equal specificity — hence the deeper selectors
   here rather than reaching for !important. The stray icons and <br> tags are
   removed in PHP; see gchurch_clean_card_page(). */
.entry--cards{max-width:840px}
.entry--cards > p{max-width:40rem;margin:0 auto 2.6em;text-align:center;color:var(--muted);font-size:.97em}

.entry--cards h2,.entry--cards h3{
  font-family:var(--display);font-variation-settings:'SOFT' 18,'WONK' 1;
  color:var(--oxide);font-size:clamp(20px,4.4vw,26px);font-weight:600;
  letter-spacing:-.016em;margin:2.4em 0 .9em;padding-bottom:11px;
  border-bottom:1px solid rgba(184,137,47,.5);text-align:left;
}
.entry--cards h2:first-child,.entry--cards h3:first-child{margin-top:0}

.entry .prayers-grid{display:grid;grid-template-columns:1fr;gap:13px;margin:0 0 2.8em}

.entry .prayers-grid .prayer-card{
  position:relative;display:flex;align-items:center;min-height:98px;
  padding:22px 52px 22px 26px;background:#fff;color:var(--ink);
  border:1px solid rgba(26,22,20,.09);border-radius:3px;
  text-decoration:none;box-shadow:0 1px 2px rgba(26,22,20,.05);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease;
}
.entry .prayers-grid .prayer-card:hover{
  transform:translateY(-3px);box-shadow:0 12px 30px rgba(34,29,26,.13);
  border-color:rgba(140,43,35,.34);color:var(--oxide);
}

/* The icons are gone, so the card needs its own affordance. */
.entry .prayers-grid .prayer-card::after{
  content:"→";position:absolute;right:22px;top:50%;transform:translateY(-50%);
  font-family:var(--ui);font-size:18px;color:var(--oxide);opacity:.4;
  transition:opacity .2s ease,transform .2s ease;
}
.entry .prayers-grid .prayer-card:hover::after{opacity:1;transform:translateY(-50%) translateX(3px)}

.entry .prayers-grid .prayer-card .prayer-card__label{
  font-family:var(--display);font-variation-settings:'SOFT' 18,'WONK' 1;
  font-size:20.5px;font-weight:600;line-height:1.3;letter-spacing:-.014em;margin:0;
}

@media(min-width:640px){
  .entry .prayers-grid{grid-template-columns:1fr 1fr;gap:14px}
}
@media(min-width:960px){
  .entry--cards h2,.entry--cards h3{font-size:26px}
}

/* hymn block — troparion and kontakion */
.hymn{background:var(--limestone-2);border-left:3px solid var(--oxide);padding:20px 22px;font-size:.97em}
.hymn .label{display:block;font-family:var(--ui);font-size:10.5px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--oxide);margin-bottom:9px}
.hymn p:last-child{margin-bottom:0}

.entry-foot{max-width:var(--readw);margin:0 auto;padding:0 var(--pad) clamp(46px,10vw,80px);font-family:var(--ui);font-size:14px;color:var(--muted)}
.entry-foot .src{padding-top:20px;border-top:1px solid var(--rule);line-height:1.6}

/* ============================================================
   11. ARCHIVE LIST
   ============================================================ */
.arch{max-width:var(--maxw);margin:0 auto;padding:clamp(38px,9vw,64px) var(--pad)}
.arch-grid{display:grid;gap:14px}
.arch-item{display:flex;gap:16px;align-items:flex-start;background:#fff;border:1px solid rgba(26,22,20,.09);padding:16px;text-decoration:none;color:inherit;transition:border-color .2s ease,transform .2s ease}
.arch-item:hover{border-color:rgba(140,43,35,.3);transform:translateY(-2px)}
.arch-thumb{width:78px;height:96px;flex:none;background:var(--limestone-2);display:flex;align-items:center;justify-content:center;overflow:hidden}
.arch-thumb img{width:100%;height:100%;object-fit:cover}
.arch-thumb .mark{width:52px;height:52px;opacity:.45}
.arch-item h2{margin:0;font-family:var(--display);font-variation-settings:'SOFT' 18,'WONK' 1;font-size:19px;font-weight:600;line-height:1.26;letter-spacing:-.014em}
.arch-item .d{margin:5px 0 0;font-family:var(--ui);font-size:11.5px;font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}
.arch-item p{margin:8px 0 0;font-family:var(--ui);font-size:14px;line-height:1.5;color:var(--muted)}

.pagination{margin-top:34px;font-family:var(--ui);font-size:15px;display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;background:#fff;border:1px solid var(--rule);text-decoration:none;color:var(--ink)}
.pagination .current{background:var(--oxide);color:#F7F1E8;border-color:var(--oxide)}

/* ============================================================
   12. FOOTER
   ============================================================ */
.foot{background:var(--basalt-2);color:rgba(239,235,227,.76);font-family:var(--ui);font-size:14.5px}
.foot-inner{max-width:var(--maxw);margin:0 auto;padding:clamp(40px,9vw,64px) var(--pad)}
.foot-grid{display:grid;gap:30px}
.foot h4{margin:0 0 9px;font-family:var(--ui);font-size:10.5px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--gilt)}
.foot p{margin:0 0 5px;line-height:1.6}
.foot a{color:rgba(239,235,227,.76);text-decoration:none;border-bottom:1px solid rgba(239,235,227,.22)}
.foot a:hover{color:#fff;border-bottom-color:#fff}
.foot .ka{font-family:"Noto Serif Georgian",Georgia,serif}
.foot-base{margin-top:34px;padding-top:20px;border-top:1px solid rgba(239,235,227,.13);font-size:12.5px;color:rgba(239,235,227,.45)}

/* ============================================================
   13. MOTION
   ============================================================ */
.rv{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.rv.in{opacity:1;transform:none}
/* Very wide screens: a 46rem column looks stranded, so scale up */
@media(min-width:1500px){
  body{font-size:19px}
  :root{--readw:50rem}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none!important;transition:none!important}
  .rv{opacity:1;transform:none}
}

/* ============================================================
   14. BREAKPOINTS
   ============================================================ */
@media(min-width:560px) and (max-width:819px){
  .lib-grid{grid-template-columns:1fr 1fr}
  .svc-list{grid-template-columns:1fr 1fr}
  .foot-grid{grid-template-columns:1fr 1fr}
  .arch-grid{grid-template-columns:1fr 1fr}
}
@media(min-width:820px){
  body{font-size:18px}
  .entry>figure,.entry>img,.entry .wp-caption{width:calc(100% + 140px);max-width:calc(100vw - 2 * var(--pad));margin-left:-70px;margin-right:-70px}
  .burger{display:none}
  .drawer{display:none!important}
  .nav-desk{display:flex;align-items:center;gap:25px;margin-left:auto;margin-right:18px}
  .nav-desk ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:25px}
  .nav-desk li{position:relative}
  .nav-desk a{font-family:var(--ui);font-size:14px;font-weight:500;text-decoration:none;color:rgba(239,235,227,.84);padding:16px 0;display:inline-block;border-bottom:2px solid transparent}
  .nav-desk a:hover{color:#fff;border-bottom-color:var(--gilt)}
  .nav-desk .current-menu-item > a{color:#fff;border-bottom-color:var(--gilt)}
  .nav-desk .sub-menu{display:none;position:absolute;top:100%;left:-16px;min-width:216px;background:var(--basalt-2);border:1px solid rgba(184,137,47,.28);padding:6px 0;flex-direction:column;gap:0;z-index:70}
  .nav-desk li:hover>.sub-menu,.nav-desk li:focus-within>.sub-menu{display:flex}
  .nav-desk .sub-menu a{padding:10px 18px;border:0;display:block;white-space:nowrap}
  .brand{margin-right:34px}
  .brand .mark{width:46px;height:46px}
  .brand-a{font-size:19px}

  .today-inner{display:flex;align-items:center;gap:38px}
  .icon-frame{height:236px;margin:0}
  .icon-frame img{height:236px}
  .icon-frame .mark{height:190px;width:190px}
  .today-body{flex:1;min-width:0}

  .svc-list{grid-template-columns:repeat(3,1fr);gap:16px}
  .lib-grid{grid-template-columns:repeat(4,1fr);gap:18px}
  .foot-grid{grid-template-columns:1fr 1fr 1fr}
  .arch-grid{grid-template-columns:1fr 1fr}
  .arch-thumb{width:96px;height:118px}
}
