@font-face {
  font-family: Monomakh;
  src: url("monomakh.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f9f7f2;
  --white: #fffdfa;
  --ink: #193652;
  --text: #293d4b;
  --muted: #516471;
  --line: #dedbd1;
  --gold: #b8913a;
  --soft: #eef2f4;
  --church: Monomakh, Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
  --width: 1184px;
  --gutter: clamp(16px, 4.4vw, 56px);
  background: var(--paper);
  color: var(--text);
  font: 100%/1.55 var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--ink); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #236598; outline-offset: 4px; }
h1, h2, h3, p, ul, dl { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-family: var(--church); font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(2.25rem, 5.4vw, 4.3rem); margin-bottom: .32em; letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); margin-bottom: .55em; letter-spacing: -.034em; }
h3 { font-size: 1.25rem; margin-bottom: .38em; line-height: 1.35; }
p { margin-bottom: 1em; }
li + li { margin-top: .35em; }
[id] { scroll-margin-top: 1rem; }
.wrap { width: min(var(--width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.icon { display: inline-block; width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 3; transform: translateY(-150%); padding: 10px 14px; background: var(--white); }
.skip:focus { transform: none; }
.quiet { color: var(--muted); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; gap: 1.5rem; justify-content: space-between; min-height: 83px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: .72rem; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand-mark { position: relative; width: 60px; height: 60px; flex: none; overflow: hidden; border: 1px solid #d5bc86; border-radius: 50%; background: #f1e9db; }
.brand-mark img { position: absolute; top: -4%; left: 50%; width: 210%; max-width: none; transform: translateX(-50%); }
.brand-name { display: block; font: 1.7rem/1.06 var(--church); }
.brand-sub { display: block; margin-top: .25rem; font: .95rem/1.25 var(--church); color: var(--muted); }
.header-tools { display: flex; align-items: center; gap: clamp(.7rem, 2.65vw, 2.2rem); }
.header-phone, .mode { display: inline-flex; align-items: center; gap: .48rem; font-size: .9rem; line-height: 1.25; }
.header-phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.mode { padding: .35rem 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: .2em; }
.mode:hover { background: var(--soft); }
.nav-row { border-top: 1px solid var(--line); }
.nav-inner { display: flex; align-items: stretch; flex-wrap: wrap; column-gap: clamp(.85rem, 2.5vw, 2.35rem); }
.nav-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; border-bottom: 2px solid transparent; padding-block: 6px; text-decoration: none; font: 1.13rem/1.23 var(--church); }
.nav-link:hover { border-bottom-color: var(--line); }
.nav-link.is-active { border-bottom-color: var(--gold); }
.nav-link--official { margin-inline-start: auto; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); margin-top: 22px; min-height: 275px; overflow: hidden; border-block: 1px solid #e3d8c5; background: #f1e9db; }
.hero-content { z-index: 1; align-self: center; padding: clamp(24px, 3.5vw, 45px); padding-inline-end: 0; }
.hero h1 { margin-bottom: .34em; font-size: clamp(2.2rem, 5.2vw, 4.3rem); letter-spacing: -.025em; }
.hero-kind { display: block; font-size: .64em; letter-spacing: -.02em; margin-bottom: .12em; }
.hero-name { display: block; }
.hero-info { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .965rem; color: var(--ink); }
.hero-info > a, .hero-info > span { display: inline-flex; align-items: flex-start; gap: .42rem; }
.hero-info .icon { margin-top: .16em; }
.hero-art { display: grid; place-items: end center; min-width: 0; }
.hero-art img { width: min(91%, 430px); margin: 0 auto 13px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.action-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; font-weight: 650; }

.quick { margin-block: 35px 55px; }
.quick h2 { letter-spacing: -.015em; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.quick-link { display: flex; align-items: flex-start; flex-direction: column; text-decoration: none; padding: .88rem 1rem; cursor: pointer; }
.quick-link + .quick-link { border-inline-start: 1px solid var(--line); }
.quick-link:hover, .quick-link:focus-visible { background: var(--soft); }
.quick-link:focus-visible { outline-offset: -3px; }
.quick-link:active { background: #e1eaf1; }
.quick-link strong { color: var(--link-accent, #285b85); font: 1.3rem/1.25 var(--church); }
.quick-link span { margin-top: .28rem; font-size: .93rem; color: var(--muted); }

.updates { margin-bottom: 56px; border-block: 1px solid var(--line); }
.updates-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.25rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.updates-header h2 { margin: 0; }
.updates-link { display: inline-flex; align-items: center; gap: .72rem; max-width: 100%; font-weight: 650; }
.updates-link img { width: 76px; flex: 0 0 76px; background: #fff; border: 1px solid var(--line); }
.vk-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: none; color: #fff; background: #0077ff; border-radius: 6px; }
.vk-mark > .icon { width: 26px; height: 26px; }
.news-body { --news-preview-height: 400px; position: relative; overflow: clip; }
.news-feed { max-width: 100%; }
.news-feed iframe { display: block; max-width: 100%; border: 0; }
.news-state { margin: 0; padding-block: 1rem; color: var(--muted); }
.news-veil { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .7rem; background: linear-gradient(145deg, var(--white), var(--paper)); color: var(--muted); font-size: .9375rem; }
.news-veil-track { width: 64px; height: 2px; overflow: hidden; background: var(--line); }
.news-veil-track::before { content: ''; display: block; width: 24px; height: 100%; background: var(--gold); transform: translateX(20px); }
.news-body[data-state="loading"] { height: var(--news-preview-height); }
.news-body[data-state="loading"] .news-feed { visibility: hidden; }
.news-body[data-state="ready"] { height: var(--news-height); }
.news-body[data-state="unavailable"] .news-feed,
.news-body[data-state="unavailable"] .news-veil,
.news-body:not([data-state="unavailable"]) .news-state { display: none; }
.news-body[data-state="ready"] .news-veil { opacity: 0; visibility: hidden; pointer-events: none; }

.page { padding-block: 24px 56px; }
.crumb { margin-bottom: 1.5rem; color: var(--muted); font-size: .92rem; }
.crumb a { margin-right: .45rem; }
.crumb span + span { margin-left: .45rem; }
.page-heading { margin-bottom: 1.6rem; }
.page-heading h1 { font-size: clamp(2rem, 4.7vw, 3.55rem); max-width: 25ch; overflow-wrap: anywhere; }
.page-heading > p { max-width: 65ch; font-size: 1.08rem; margin-bottom: 0; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); align-items: start; gap: clamp(16px, 3vw, 32px); }
.panel { min-width: 0; padding-block: 1.05rem; border-top: 1px solid var(--line); }
.panel + .panel { margin-top: 14px; }
.panel > :last-child { margin-bottom: 0; }
.panel--tint { padding-inline: 1rem; border-color: #dce4e8; background: var(--soft); }
.reading { max-width: 74ch; }
.info { display: grid; gap: 0; margin: 0; }
.info > div { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: .55rem 1rem; align-items: start; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.info > div:first-child { padding-top: 0; }
.info > div:last-child { border-bottom: 0; padding-bottom: 0; }
.info dt { color: var(--muted); }
.info dd { margin: 0; overflow-wrap: anywhere; }
.section-list { padding: 0; margin: 0; list-style: none; }
.section-list li { margin: 0; border-bottom: 1px solid var(--line); }
.section-list li:last-child { border-bottom: 0; }
.section-list a { display: flex; align-items: baseline; gap: .65rem; overflow-wrap: anywhere; padding: .74rem .2rem; text-decoration: none; }
.section-list a:hover { text-decoration: underline; }
.section-list .icon { align-self: center; }
.section-list [aria-current] { font-weight: 700; }
.disclosure-heading h1 { max-width: none; }
.disclosure { display: grid; grid-template-columns: minmax(225px, .64fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 54px); align-items: start; }
.disclosure-side { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
.disclosure-nav-group { border-top: 1px solid var(--line); padding-top: .8rem; }
.disclosure-nav-group + .disclosure-nav-group { margin-top: .8rem; }
.disclosure-nav-group h2 { margin: 0 .65rem .3rem; font-size: 1.12rem; letter-spacing: 0; }
.disclosure-nav-group ul { margin: 0; padding: 0; list-style: none; }
.disclosure-nav-group li { margin: 0; }
.disclosure-nav-group a { display: block; padding: .4rem .65rem; border-inline-start: 2px solid transparent; text-decoration: none; font-size: .94rem; line-height: 1.4; }
.disclosure-nav-group a:hover, .disclosure-nav-group a:focus-visible { background: var(--soft); }
.disclosure-nav-group a:focus-visible { outline-offset: -3px; }
.disclosure-nav-group a[aria-current] { background: var(--soft); border-inline-start-color: var(--gold); font-weight: 650; }
.disclosure-mobile { display: none; }
.disclosure-mobile label { display: block; margin-bottom: .35rem; font-weight: 650; }
.disclosure-mobile select { width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; }
.disclosure-content > section + section { margin-top: 14px; }
.disclosure-content > section[hidden] + section { margin-top: 0; }
.disclosure-content > section h2 { font-size: clamp(1.55rem, 2.85vw, 2.1rem); overflow-wrap: anywhere; }
.document-list { display: grid; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.document-list li { margin: 0; }
.document { display: flex; align-items: center; gap: .75rem; border-bottom: 1px solid var(--line); padding-block: .65rem; text-decoration: none; }
.document:hover { background: var(--soft); }
.document span { flex: 1; }
.document small { color: var(--muted); font-size: .875rem; }
.teacher { border-top: 1px solid var(--line); padding-top: .82rem; margin-top: .82rem; }
.teacher p { margin: 0; }
.teacher summary { color: var(--ink); cursor: pointer; margin-top: .45rem; }
.teacher details .info { padding-block: .8rem .2rem; }
.leader { display: grid; grid-template-columns: clamp(90px, 19vw, 145px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.leader-contact { margin-top: .9rem; }
.menu-picker { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; border-block: 1px solid var(--line); padding-block: .36rem; margin-bottom: 1.2rem; }
.menu-picker a { display: grid; justify-items: center; align-items: center; min-height: 44px; padding-inline: 2px; text-decoration: none; font-weight: 650; }
.menu-picker a:hover { background: var(--soft); }
.menu-picker a[aria-current] { background: var(--ink); color: #fff; }
.menu-days { overflow: clip; }
.menu-day + .menu-day { margin-top: 1.5rem; }
.menu-day h3 { font-size: 1.55rem; margin-bottom: .65rem; }
.menu-day .info > div { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); }
.menu-day dt { color: var(--ink); font-weight: 650; }
.pin-panel > .icon { width: 30px; height: 30px; color: var(--ink); margin-bottom: .6rem; }
.route-map { display: block; width: 100%; height: 310px; margin-bottom: .9rem; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.route-link { display: inline-block; font-weight: 650; }

.site-footer { background: var(--ink); color: #e2ebf0; }
.site-footer a, .site-footer h2 { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px 34px; padding-block: 29px 23px; }
.footer-brand h2 { font: 1.65rem/1.2 var(--church); margin-bottom: .55rem; }
.footer-brand p, .footer-links p { margin-bottom: .35rem; }
.footer-links { display: grid; align-content: start; gap: .35rem; font-size: .93rem; overflow-wrap: anywhere; }
.footer-links a { width: fit-content; }
.footer-bottom { border-top: 1px solid #ffffff3a; padding-block: 12px 16px; font-size: .875rem; }

html.is-readable { --paper: #fff; --white: #fff; --ink: #111; --text: #111; --muted: #222; --soft: #f2f2f2; --line: #454545; --gold: #111; --church: var(--sans); --link-accent: #111; font-size: 120%; }
.is-readable .hero { grid-template-columns: 1fr; background: #fff; border-color: var(--line); }
.is-readable .hero-content { padding-inline: var(--gutter); }
.is-readable .hero-art { display: none; }
.is-readable :focus-visible { outline-color: #000; }
.is-readable .site-footer { color: #fff; }
.is-readable .nav-link--official { margin-inline-start: 0; }

@media (max-width: 900px) {
  .nav-link--official { margin-inline-start: 0; }
  .hero { min-height: 220px; }
  .hero-art img { align-self: center; width: 95%; margin-bottom: 0; }
  .menu-picker { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .masthead { gap: .65rem; min-height: 72px; flex-wrap: wrap; }
  .brand-mark { width: 50px; height: 50px; }
  .brand-name { font-size: 1.46rem; }
  .header-tools { width: 100%; gap: .4rem .65rem; flex-wrap: wrap; justify-content: space-between; }
  .header-phone, .mode { font-size: .85rem; }
  .nav-link { font-size: 1rem; }
  .mode > span { max-width: 14ch; }
  .nav-inner { column-gap: clamp(.45rem, 2vw, .75rem); }
  .nav-link { min-height: 40px; }
  .nav-link--official { width: 100%; }
  .hero { margin-top: 16px; min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .hero-content { padding: 17px clamp(14px, 4vw, 27px) 20px; }
  .hero h1 { font-size: clamp(1.82rem, 8.25vw, 3.2rem); }
  .hero-kind { max-width: calc(100% - 98px); min-height: 2.25em; display: flex; align-items: center; margin-bottom: .08em; }
  .hero-art { position: absolute; top: 6px; right: 8px; width: 94px; height: 63px; background: transparent; }
  .hero-info { font-size: .9rem; }
  .is-readable .hero-kind { max-width: none; min-height: 0; }
  .quick { margin-block: 23px 36px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-link { padding: 11px 12px; }
  .quick-link:nth-child(odd) { border-inline-start: 0; }
  .quick-link:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .quick-link strong { font-size: 1.18rem; hyphens: auto; }
  .quick-link span { font-size: .9rem; }
  .updates { margin-bottom: 36px; }
  .updates-header { flex-wrap: wrap; }
  .news-body { --news-preview-height: 340px; }
  .page-layout, .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .menu-day .info > div { grid-template-columns: minmax(0, 1fr); gap: .18rem; }
  .footer-inner { gap: 12px; }
}

@media (max-width: 760px) {
  .disclosure { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .disclosure-side { position: static; max-height: none; overflow: visible; }
  .disclosure-mobile { display: block; }
  .disclosure-mobile:not([hidden]) + .disclosure-nav { display: none; }
  .disclosure-content > section { scroll-margin-top: 6rem; }
}

@media (max-width: 410px) {
  .info > div { grid-template-columns: minmax(0, 1fr); }
  .info > div { gap: .18rem; }
}

@media (max-width: 360px) {
  .nav-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-link--official { grid-column: 1 / -1; }
}

@view-transition { navigation: auto; }

@media (prefers-reduced-motion: no-preference) {
  :root { view-transition-name: none; }
  main { view-transition-name: page-content; }

  ::view-transition-group(page-content) { animation: none; }
  ::view-transition-old(page-content) {
    animation: page-out 140ms ease-in both;
    mix-blend-mode: normal;
  }
  ::view-transition-new(page-content) {
    animation: page-in 230ms ease-out both;
    mix-blend-mode: normal;
  }

  .nav-link { transition: border-color 160ms ease, color 160ms ease; }
  .quick-link, .menu-picker a, .disclosure-nav-group a { transition: background-color 160ms ease, color 160ms ease; }
  .news-veil { transition: opacity 240ms ease, visibility 240ms ease; }
  .news-body[data-state="loading"] .news-veil-track::before { animation: news-progress 1.35s ease-in-out infinite; }
  .news-body[data-state="ready"] { animation: news-expand 420ms cubic-bezier(.2, .65, .35, 1) 240ms both; }
}

@media (prefers-reduced-motion: reduce) {
  :root { view-transition-name: none; }
  ::view-transition-group(root),
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

@keyframes page-out {
  to { opacity: 0; transform: translateY(-3px); }
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(5px); }
}

@keyframes news-progress {
  from { transform: translateX(-24px); }
  to { transform: translateX(64px); }
}

@keyframes news-expand {
  from { height: var(--news-preview-height); }
  to { height: var(--news-height); }
}
