/* semantron.app: shared styles for the public site (decision 0042). Fonts are served from this site (OFL). */
@font-face { font-family:"EB Garamond"; font-weight:500; font-display:swap; src:url(fonts/eb-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family:"EB Garamond"; font-weight:600; font-display:swap; src:url(fonts/eb-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family:"Inter"; font-weight:400; font-display:swap; src:url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family:"Inter"; font-weight:500; font-display:swap; src:url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family:"Inter"; font-weight:600; font-display:swap; src:url(fonts/inter-latin-600-normal.woff2) format("woff2"); }

:root {
  /* the Publisher's own palette (publisher/app/homilyhost/static/admin/admin.css) */
  --lapis: #16140f;       /* the app's sidebar: the opening and the closing bands */
  --lapis-deep: #0c0b0a;
  --wood: #8c6a2c;        /* the app's accent gold, deep */
  --wood-light: #b38a45;
  --gold: #d6b16e;        /* the app's gold on dark */
  --paper: #f6f5f2;
  --ink: #1d1b18;
  --quiet: #57524a;
  --rule: #e6e2da;
  --soft: #f4ecdc;
  --serif: "EB Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.62 var(--sans); }
a { color: var(--wood); text-underline-offset: 3px; }
a:hover { color: #7a5c24; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.measure { max-width: 38em; }

/* header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.mark { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none;
        font: 600 25px/1 var(--serif); letter-spacing: .01em; }
.mark svg { width: 34px; height: 34px; border-radius: 8px; }
.top nav a { color: #c3bcb0; text-decoration: none; font: 500 15px var(--sans); margin-left: 26px; }
.top nav a:hover { color: #fff; }
.page .top { position: static; background: var(--lapis); }

/* hero */
.hero { background: radial-gradient(110% 90% at 78% 12%, #2a2419 0%, var(--lapis) 48%, var(--lapis-deep) 100%);
        color: #fff; padding: 112px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font: 500 clamp(38px, 5vw, 58px)/1.06 var(--serif); margin: 0 0 18px; letter-spacing: -.005em; }
.hero p { font-size: 19px; color: #c3bcb0; margin: 0; max-width: 31em; }
.hero .actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 6px; font: 600 15px var(--sans); text-decoration: none; }
.btn-gold { background: var(--gold); color: #17140e; }
.btn-gold:hover { background: #e2c083; }
.btn-line { color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-line:hover { border-color: #fff; }

.board { width: 100%; height: auto; display: block; }
.ring { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: ring 1.1s ease-out forwards; }
@keyframes ring { 0% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; opacity: 1; } }
.board-caption { margin-top: 14px; font: 15px/1.55 var(--serif); font-style: italic; color: #9a9284; text-align: center; }

/* sections */
section { padding: 44px 0; }
section + section { border-top: 1px solid var(--rule); }
h2 { font: 500 clamp(28px, 3.2vw, 38px)/1.15 var(--serif); margin: 0 0 10px; }
h3 { font: 600 21px/1.3 var(--serif); margin: 0 0 6px; }
.lede { font: 21px/1.6 var(--serif); color: var(--ink); }
p.quiet, .quiet { color: var(--quiet); }

/* the name */
.name .measure p:first-child { margin-top: 0; }
.name blockquote { margin: 0; padding-left: 22px; border-left: 3px solid var(--gold); font: 22px/1.55 var(--serif); }

/* a Sunday, in order */
.sunday { list-style: none; margin: 48px 0 0; padding: 0; position: relative; }
.sunday::before { content: ""; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.sunday li { display: grid; grid-template-columns: 100px 36px 1fr; gap: 0 0; padding: 0 0 34px; align-items: start; }
.sunday li:last-child { padding-bottom: 0; }
.sunday .when { font: 500 14px/1.9 var(--sans); color: var(--quiet); text-align: right; padding-right: 18px; }
.sunday .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--wood);
               margin: 7px 0 0 11px; position: relative; z-index: 1; }
.sunday li.approve .dot { background: var(--gold); border-color: var(--gold); }
.sunday .what h3 { margin-bottom: 4px; }
.sunday .what p { margin: 0; color: var(--quiet); max-width: 40em; }
.part { font: 600 12.5px var(--sans); color: var(--wood); letter-spacing: .02em; margin-left: 8px; white-space: nowrap; }

/* the parts */
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 28px; border-top: 2px solid var(--ink); }
.parts > div { padding: 26px 26px 6px 0; }
.parts > div + div { padding-left: 26px; border-left: 1px solid var(--rule); }
.parts .where { font: 500 14px var(--sans); color: var(--quiet); margin: 0 0 12px; }
.parts p { margin: 0 0 14px; }

/* clergy */
.clergy { background: var(--soft); }
.clergy .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 14px; }
.clergy ul { margin: 0; padding-left: 1.1em; }
.clergy li { margin: 0 0 8px; }

/* principles */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 48px; margin-top: 24px; }
.principles h3 { font-size: 20px; }
.principles p { margin: 0; color: var(--quiet); }

/* parishes */
.parishes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 18px; }
.parish { padding: 18px 0 0; border-top: 2px solid var(--wood); }
.parish p { margin: 4px 0 0; color: var(--quiet); }

/* youtube */
.yt ul { padding-left: 1.1em; margin: 14px 0; } .yt li { margin: 0 0 8px; }

/* closing */
.closing { background: var(--lapis); color: #fff; border-top: 0; }
.closing h2 { color: #fff; }
.closing p { color: #c3bcb0; }
.closing a.mail { color: #fff; font: 500 26px var(--serif); }

footer { background: var(--lapis-deep); color: #8f887c; font: 14px/1.6 var(--sans); padding: 26px 0 34px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
footer a { color: #c3bcb0; }

/* privacy page */
.doc { padding: 64px 0 88px; }
.doc h1 { font: 500 46px/1.1 var(--serif); margin: 0 0 6px; }
.doc .date { color: var(--quiet); font-size: 14px; margin: 0 0 36px; }
.doc h2 { font-size: 28px; margin: 44px 0 10px; }
.doc .measure > p, .doc li { font-size: 17px; }
.doc ul { padding-left: 1.2em; } .doc li { margin: 0 0 8px; }
.doc .box { border-left: 3px solid var(--gold); background: var(--soft); padding: 16px 22px; margin: 18px 0; }

@media (max-width: 860px) {
  .hero { padding: 100px 0 48px; }
  .hero .wrap, .clergy .cols, .principles, .parishes { grid-template-columns: 1fr; gap: 36px; }
  .parts { grid-template-columns: 1fr; }
  .parts > div, .parts > div + div { padding: 22px 0 6px; border-left: 0; }
  .parts > div + div { border-top: 1px solid var(--rule); }
  .top nav a:not(:last-child) { display: none; }
  section { padding: 36px 0; }
  .sunday::before { left: 18px; }
  .sunday li { grid-template-columns: 36px 1fr; }
  .sunday .when { grid-column: 2; grid-row: 1; text-align: left; padding: 0; }
  .sunday .dot { grid-column: 1; grid-row: 1 / span 2; }
  .sunday .what { grid-column: 2; }
}

/* the overview flow (from one Liturgy to the world) */
.overview { background: var(--paper); }
.flow { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 28px 1.15fr 28px 1.1fr 28px 1fr; align-items: stretch; }
.stage { display: flex; flex-direction: column; }
.stage-name { font: 500 14px var(--sans); color: var(--quiet); margin: 0 0 12px; }
.node { flex: 1; background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 22px 20px; }
.node h3 { font-size: 19px; margin: 0 0 4px; }
.node p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--quiet); }
.node-church { text-align: center; background: var(--lapis); border-color: var(--lapis); }
.node-church h3 { color: #fff; margin-top: 8px; } .node-church p { color: #c3bcb0; }
.church { width: 110px; height: auto; }
.node-suite { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--soft); border-color: #e3d2ad; }
.step { background: #fff; border-radius: 8px; padding: 12px 14px; border-left: 3px solid var(--wood); }
.step-approve { border-left-color: var(--gold); background: #fffdf8; }
.node-out { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.out { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.out svg { width: 30px; height: 30px; margin-top: 2px; }
.node-reach { display: flex; align-items: center; justify-content: center; padding: 14px; }
.rings { width: 100%; max-width: 230px; height: auto; }
.rings text { font: 500 12.5px var(--sans); fill: var(--ink); text-anchor: middle; }
.arrow { position: relative; }
.arrow::before { content: ""; position: absolute; left: 4px; right: 8px; top: calc(50% + 14px); height: 2px; background: var(--wood-light); }
.arrow::after { content: ""; position: absolute; right: 3px; top: calc(50% + 9px); border: 6px solid transparent; border-left: 8px solid var(--wood-light); border-right: 0; }
.flow-notes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px 40px; margin-top: 28px; }
.flow-notes p { margin: 0; color: var(--quiet); font-size: 16px; }
.flow-notes strong { display: block; color: var(--ink); font: 600 19px/1.35 var(--serif); margin-bottom: 4px; }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; max-width: 460px; }
  .arrow { height: 34px; }
  .arrow::before { left: calc(50% - 1px); right: auto; top: 4px; bottom: 10px; width: 2px; height: auto; }
  .arrow::after { left: calc(50% - 6px); right: auto; top: auto; bottom: 2px; border: 6px solid transparent; border-top: 8px solid var(--wood-light); border-bottom: 0; }
  .flow-notes { grid-template-columns: 1fr; }
}

/* how it works: three lanes, steps in order */
.lanes { margin: 28px 0 0; display: grid; grid-template-columns: minmax(0,1fr) 36px minmax(0,1fr) 36px minmax(0,1fr); align-items: start; }
.lane { background: #fff; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.lane-head { background: var(--lapis); color: #fff; padding: 16px 20px 14px; }
.lane-head h3 { color: #fff; margin: 0; font-size: 22px; }
.lane-head p { margin: 2px 0 0; font-size: 14px; color: #c3bcb0; }
.lane ol { list-style: none; margin: 0; padding: 18px 18px 8px; position: relative; }
.lane ol::before { content: ""; position: absolute; left: 33px; top: 30px; bottom: 34px; width: 2px; background: var(--rule); }
.lane li { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 12px; padding: 0 0 14px; position: relative; }
.lane .n { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--wood); color: var(--wood);
           font: 600 14px/28px var(--sans); text-align: center; position: relative; z-index: 1; }
.lane li.gold .n { background: var(--gold); border-color: var(--gold); color: #17140e; }
.lane li.gold > div { background: var(--soft); border-radius: 8px; padding: 6px 10px 8px; margin: -6px 0 0 -4px; }
.lane strong { display: block; font: 600 18px/1.3 var(--serif); margin-top: 4px; }
.lane li p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--quiet); }
.branch { display: inline-block; margin: 8px 6px 0 0; padding: 3px 10px; border-radius: 99px; background: var(--lapis);
          color: var(--gold); font: 500 12.5px var(--sans); white-space: nowrap; }
.lane-link { position: relative; align-self: stretch; }
.lane-link::before { content: ""; position: absolute; left: 6px; right: 10px; top: 60%; height: 2px; background: var(--wood-light); }
.lane-link::after { content: ""; position: absolute; right: 4px; top: calc(60% - 5px); border: 6px solid transparent; border-left: 8px solid var(--wood-light); border-right: 0; }
@media (max-width: 960px) {
  .lanes { grid-template-columns: minmax(0,1fr); max-width: 520px; }
  .lane-link { height: 34px; }
  .lane-link::before { left: calc(50% - 1px); right: auto; top: 4px; bottom: 10px; width: 2px; height: auto; }
  .lane-link::after { left: calc(50% - 6px); right: auto; top: auto; bottom: 2px; border: 6px solid transparent; border-top: 8px solid var(--wood-light); border-bottom: 0; }
}
