/* catholic.rip
   The page takes its colors from the liturgical season. Dark grounds for the
   seasons of waiting and penance; light grounds for Christmas, Easter, and Pentecost. */

/* EB Garamond, served from this site (SIL Open Font License, see assets/fonts/OFL.txt) */
@font-face {
  font-family: "EB Garamond"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/eb-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/eb-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/eb-garamond-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/eb-garamond-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root,
[data-season="ordinary"] {
  --ground: #0f1d17; --surface: #16291f; --ink: #e6ebe3; --muted: #9eb0a2;
  --accent: #cfae63; --rule: #28432f; color-scheme: dark;
}
[data-season="advent"] {
  --ground: #18132a; --surface: #211a37; --ink: #ede7f6; --muted: #a9a0bf;
  --accent: #baa2e2; --rule: #3a3056; color-scheme: dark;
}
[data-season="septuagesima"] {
  --ground: #1c1a20; --surface: #252229; --ink: #e8e4ea; --muted: #a59eab;
  --accent: #a990c0; --rule: #39343f; color-scheme: dark;
}
[data-season="lent"] {
  --ground: #16111b; --surface: #1f1826; --ink: #eae4ee; --muted: #a398ac;
  --accent: #a887c9; --rule: #33283f; color-scheme: dark;
}
[data-season="advent"][data-rose="true"],
[data-season="lent"][data-rose="true"] { --accent: #e7a6bd; }
[data-season="passion"] {
  --ground: #120c14; --surface: #1b131e; --ink: #e8e0e9; --muted: #9a8e9f;
  --accent: #cf7486; --rule: #2f2234; color-scheme: dark;
}
[data-season="triduum"] {
  --ground: #0b0909; --surface: #151111; --ink: #ece6e2; --muted: #9d928d;
  --accent: #d0544a; --rule: #2c211f; color-scheme: dark;
}
[data-season="christmas"] {
  --ground: #fbfaf6; --surface: #ffffff; --ink: #221d15; --muted: #6b6252;
  --accent: #86651b; --rule: #e5ddca; color-scheme: light;
}
[data-season="easter"] {
  --ground: #fdfcf7; --surface: #ffffff; --ink: #1e1a12; --muted: #686049;
  --accent: #8a6a12; --rule: #e8dfc6; color-scheme: light;
}
[data-season="pentecost"] {
  --ground: #fcf8f6; --surface: #ffffff; --ink: #27130f; --muted: #735450;
  --accent: #ae261c; --rule: #eed7d1; color-scheme: light;
}
[data-season="souls"] {
  --ground: #0e0c0b; --surface: #171412; --ink: #ede6db; --muted: #a59a8a;
  --accent: #d6ab5a; --rule: #2d2723; color-scheme: dark;
}

/* Vestment colors, used by the ribbon and the small beads */
[data-color="w"] { --vest: #f4efe2; --vest-edge: #c9bea3; }
[data-color="r"] { --vest: #b0261e; --vest-edge: #7d1a14; }
[data-color="v"] { --vest: #62409a; --vest-edge: #43296e; }
[data-color="g"] { --vest: #2f7148; --vest-edge: #1f4d31; }
[data-color="p"] { --vest: #dd8fab; --vest-edge: #b06a84; }
[data-color="k"] { --vest: #151414; --vest-edge: #5a5654; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ground);
  color: var(--ink);
  font-family: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 112.5%;
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
html.ready body { transition: background-color .6s ease, color .6s ease; }
body { margin: 0; background: var(--ground); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--surface); padding: .4rem .8rem; z-index: 10; }
.skip:focus { left: .5rem; }
.rubric { color: var(--accent); font-style: italic; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding-block: 1.25rem; border-bottom: 1px solid var(--rule);
}
.wordmark { font-size: 1.35rem; font-weight: 500; text-decoration: none; letter-spacing: .005em; }
/* The cross is drawn, to match the favicon: EB Garamond has no cross glyph */
.wordmark::before {
  content: ""; display: inline-block; width: .5em; height: .74em; margin-right: .5em; vertical-align: -.04em;
  background:
    linear-gradient(var(--accent), var(--accent)) 50% 0 / .13em 100% no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 30% / 100% .13em no-repeat;
}
.site-nav { display: flex; gap: 1.25rem; margin-right: auto; }
.site-nav a { text-decoration: none; color: var(--muted); padding-block: .2rem; }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px var(--accent); }
.site-nav a:hover { color: var(--ink); }

.cal-toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; }
.cal-toggle button {
  border: 0; background: transparent; padding: .25rem .9rem; border-radius: 999px;
  color: var(--muted); cursor: pointer; font-size: .95rem;
}
.cal-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--ground); }
.cal-toggle button:not([aria-pressed="true"]):hover { color: var(--ink); }

/* ---------- Day hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
  padding-right: clamp(3.5rem, 12vw, 10rem);
}
.ribbon-wrap {
  position: absolute; top: -1px; right: clamp(.5rem, 5vw, 4rem);
  filter: drop-shadow(0 0 .5px var(--vest-edge)) drop-shadow(0 6px 10px rgb(0 0 0 / .25));
}
.ribbon {
  width: clamp(22px, 2.6vw, 30px); height: clamp(150px, 26vw, 260px);
  background: var(--vest);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 87%, 0 100%);
  transition: background-color .6s ease;
}
html.ready .ribbon-wrap { animation: ribbon-drop .9s cubic-bezier(.2, .8, .25, 1) both; }
@keyframes ribbon-drop { from { transform: translateY(-105%); } to { transform: none; } }

.h-date { margin: 0; color: var(--muted); font-size: 1.05rem; }
.h-day { margin: .1rem 0 0; color: var(--muted); font-style: italic; }
.h-rank { margin: 1.6rem 0 .35rem; font-size: 1.15rem; min-height: 1.2em; }

/* An anniversary from the Requiescant page, lit by a small candle flame */
.h-rip { display: grid; gap: .35rem; margin: 1.1rem 0 0; max-width: 34em; }
.h-rip p { margin: 0; display: flex; align-items: baseline; gap: .7rem; font-size: 1.08rem; }
.h-rip a { color: var(--accent); }
.h-rip em { color: var(--muted); }
.rip-flame {
  flex: none; display: inline-block; width: .55rem; height: .85rem;
  border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 72%, #fff6d8 0 18%, #ffd36b 40%, #f08a24 70%, transparent 72%);
  box-shadow: 0 0 10px 3px rgb(255 190 90 / .28);
  transform-origin: 50% 90%; animation: flicker 3.2s ease-in-out infinite;
}
.dc-marks { display: inline-flex; align-items: center; gap: .4rem; }
.dc-marks .rip-flame { width: .45rem; height: .7rem; box-shadow: 0 0 6px 2px rgb(255 190 90 / .3); animation: none; }
.h-name {
  margin: 0; font-weight: 500; font-size: clamp(2.4rem, 6.4vw, 5.2rem);
  line-height: 1.02; letter-spacing: -.012em; text-wrap: balance; max-width: 16ch;
  font-variant-numeric: lining-nums;
}
.h-sub { margin: .6rem 0 0; font-size: clamp(1.1rem, 2vw, 1.35rem); font-style: italic; color: var(--muted); }
.h-desc {
  margin: 1.8rem 0 0; max-width: 34em; font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.62;
}
.h-desc::first-letter {
  float: left; font-size: 3.35em; line-height: .82; margin: .06em .09em 0 0;
  color: var(--accent); font-weight: 500;
}
.h-color { margin: 1.2rem 0 0; color: var(--muted); font-size: .95rem; font-style: italic; }

.hero.turn .h-name, .hero.turn .h-desc, .hero.turn .h-rank {
  animation: turn .45s ease both;
}
@keyframes turn { from { opacity: 0; transform: translateY(.25rem); } to { opacity: 1; transform: none; } }

.also { margin-top: 2.2rem; max-width: 34em; border-top: 1px solid var(--rule); padding-top: 1rem; }
.also h2 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 400; font-style: italic; color: var(--muted); }
.also ul, .detail-others { list-style: none; margin: 0; padding: 0; }
.also li, .detail-others li { display: flex; justify-content: space-between; gap: 1rem; padding-block: .3rem; }
.also-status { color: var(--muted); font-style: italic; white-space: nowrap; font-size: .95rem; }

/* ---------- Day strip ---------- */
.strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-block: 1rem 1.25rem; }
.strip-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.icon-btn {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--rule);
  background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 0 .2rem;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.text-btn { border: 0; background: none; color: var(--accent); cursor: pointer; font-style: italic; font-size: 1rem; }
.text-btn:hover { text-decoration: underline; }

.track {
  display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x proximity;
  padding: .25rem max(1.25rem, calc((100vw - 72rem) / 2)) .75rem;
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
  overscroll-behavior-x: contain;
}
.day-card {
  flex: 0 0 9rem; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: .75rem .85rem .9rem; border: 1px solid transparent; border-radius: .4rem;
  background: transparent; cursor: pointer; scroll-snap-align: center; min-height: 11.5rem;
}
.day-card:hover { border-color: var(--rule); }
.day-card[aria-pressed="true"] { background: var(--surface); border-color: var(--accent); }
.dc-top { display: flex; width: 100%; justify-content: space-between; align-items: center; }
.dc-wd { color: var(--muted); font-style: italic; font-size: .9rem; }
.dc-num { font-size: 2.3rem; line-height: 1.1; margin-top: .1rem; font-variant-numeric: lining-nums; }
.dc-mon { color: var(--muted); font-size: .85rem; }
.dc-name {
  margin-top: .45rem; font-size: .92rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dc-today { margin-top: auto; padding-top: .4rem; color: var(--accent); font-style: italic; font-size: .85rem; }

.bead {
  width: .6rem; height: .6rem; border-radius: 50%; flex: none;
  background: var(--vest); box-shadow: 0 0 0 1px var(--vest-edge);
}

/* ---------- Epigraph ---------- */
.epigraph { margin-block: clamp(3rem, 8vw, 5rem); text-align: center; }
.epigraph blockquote { margin: 0 auto; max-width: 36rem; }
.epigraph p { margin: 0; }
.epigraph [lang="la"] { font-style: italic; font-size: 1.3rem; line-height: 1.45; text-wrap: balance; }
.epigraph p + p { margin-top: .6rem; color: var(--muted); text-wrap: balance; }
.epigraph figcaption { margin-top: .8rem; font-size: .9rem; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule); padding-block: 2rem 2.5rem; color: var(--muted); font-size: .92rem;
  display: grid; gap: .6rem;
}
.site-footer p { margin: 0; max-width: 46em; }
.site-footer .tagline { color: var(--ink); font-style: italic; font-size: 1.05rem; }

/* ---------- Calendar page ---------- */
.cal-page { padding-block: clamp(2rem, 6vw, 4rem); }
.cal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.cal-head h1 {
  margin: 0; font-weight: 500; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.01em;
  font-variant-numeric: lining-nums;
}
.year-nav { display: flex; gap: .5rem; }
.year-nav button, .month-bar button {
  border: 1px solid var(--rule); background: transparent; border-radius: 999px;
  padding: .3rem .9rem; cursor: pointer; color: var(--muted);
}
.year-nav button:hover, .month-bar button:hover { color: var(--ink); border-color: var(--accent); }
.year-nav button:disabled, .month-bar button:disabled { opacity: .35; cursor: default; color: var(--muted); border-color: var(--rule); }
.cal-lede { margin: .75rem 0 0; color: var(--muted); max-width: 40em; }

.hdo-section { margin-top: 2.5rem; }
.section-title { font-size: 1.4rem; font-weight: 500; margin: 0 0 .25rem; }
.section-lede { margin: 0 0 1.25rem; color: var(--muted); }
.hdo-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .75rem;
}
.hdo {
  display: flex; gap: 1rem; padding: 1rem 1.1rem; background: var(--surface);
  border-radius: .4rem; border-left: 3px solid var(--accent);
}
.hdo.is-lifted { border-left-color: var(--rule); background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.hdo.is-moved { border-left-style: dashed; }
.hdo-date { display: flex; flex-direction: column; align-items: center; min-width: 3.5rem; text-decoration: none; }
.hdo-num { font-size: 2.3rem; line-height: 1; font-variant-numeric: lining-nums; }
.hdo-mon { font-size: .82rem; color: var(--muted); }
.hdo-body p { margin: 0; }
.hdo-name { font-size: 1.1rem; line-height: 1.3; }
.hdo-wd { color: var(--muted); font-style: italic; font-size: .95rem; }
.hdo-note { margin-top: .35rem !important; font-size: .88rem; color: var(--muted); }
.trad { margin-top: 1.5rem; }
.trad p { margin: 0 0 .5rem; color: var(--muted); max-width: 44em; }
.trad ul { list-style: none; margin: 0; padding: 0; }
.trad li { display: flex; justify-content: space-between; gap: 1rem; max-width: 30rem; padding-block: .25rem; border-bottom: 1px solid var(--rule); }
.trad-date { color: var(--muted); font-style: italic; }

.month-section { margin-top: 3.5rem; }
.month-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.month-bar h2 { margin: 0; font-weight: 500; font-size: 1.8rem; min-width: 11ch; font-variant-numeric: lining-nums; }
.month-bar button { width: 2.4rem; height: 2.4rem; padding: 0 0 .15rem; font-size: 1.35rem; line-height: 1; }
.grid-head, .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.grid-head span { color: var(--muted); font-style: italic; font-size: .9rem; padding: 0 .5rem .3rem; }
.cell {
  display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: .25rem;
  min-height: 6.75rem; padding: .5rem .55rem; border-radius: .35rem;
  border: 1px solid transparent; background: var(--surface); cursor: pointer;
}
.cell.is-blank { background: transparent; cursor: default; }
.cell:hover { border-color: var(--rule); }
.cell[aria-pressed="true"] { border-color: var(--accent); }
.cell-top { display: flex; justify-content: space-between; align-items: center; }
.cell-num {
  font-size: 1.15rem; font-variant-numeric: lining-nums;
  width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; margin: -.2rem 0 0 -.3rem;
}
.cell.is-sunday .cell-num { color: var(--accent); }
.cell.is-hdo .cell-num { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cell.is-today .cell-num { background: var(--accent); color: var(--ground); }
.cell-name {
  font-size: .8rem; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cell-name.is-minor { color: var(--muted); font-style: italic; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend .ring { width: 1.1rem; height: 1.1rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--accent); }

.detail {
  margin-top: 1.5rem; padding: 1.25rem 1.4rem; background: var(--surface); border-radius: .4rem; max-width: 40rem;
}
.detail h3 { margin: 0; font-weight: 400; color: var(--muted); font-size: 1rem; }
.detail-day { margin: .1rem 0 0; font-style: italic; color: var(--muted); }
.detail-main { margin: .6rem 0 0; font-size: 1.25rem; line-height: 1.35; }
.detail-main strong { font-weight: 500; }
.detail-hdo { margin: .4rem 0 0; color: var(--accent); }
.detail-others { margin-top: .75rem; border-top: 1px solid var(--rule); padding-top: .5rem; }
.detail-link { display: inline-block; margin-top: .9rem; color: var(--accent); }

.sub-section { margin-top: 3.5rem; }
.sub-list { list-style: none; margin: 0; padding: 0; max-width: 44rem; }
.sub-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem;
  padding-block: .6rem; border-bottom: 1px solid var(--rule);
}
.sub-list li:first-child { border-top: 1px solid var(--rule); }
.sub-name { min-width: 10rem; font-size: 1.1rem; }
.sub-list a { color: var(--accent); }
.sub-url { flex-basis: 100%; color: var(--muted); font-size: .88rem; user-select: all; overflow-wrap: anywhere; }

/* ---------- Requiescant ---------- */
.rq { padding-block: clamp(2.5rem, 7vw, 4.5rem) 0; max-width: 62rem; }
.rq-head { max-width: 40rem; margin-inline: auto; text-align: center; }
.candle { position: relative; width: 22px; height: 110px; margin: 0 auto 1.75rem; }
.candle .wax {
  position: absolute; bottom: 0; left: 0; width: 22px; height: 78px; border-radius: 3px 3px 1px 1px;
  background: linear-gradient(90deg, #d9cfbd, #f3ecdf 45%, #cfc3ae);
}
.candle .wick { position: absolute; bottom: 78px; left: 10px; width: 2px; height: 8px; background: #2b2420; }
.candle .flame {
  position: absolute; bottom: 84px; left: 4px; width: 14px; height: 24px;
  border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 72%, #fff6d8 0 18%, #ffd36b 40%, #f08a24 70%, transparent 72%);
  box-shadow: 0 0 22px 8px rgb(255 190 90 / .28);
  transform-origin: 50% 90%;
  animation: flicker 3.2s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-1deg); }
  30% { transform: scale(.96, 1.04) rotate(1.5deg); }
  55% { transform: scale(1.03, .97) rotate(-.5deg); }
  80% { transform: scale(.98, 1.02) rotate(1deg); }
}
.rq h1 { margin: 0; font-weight: 500; font-style: italic; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; }
.rq-lede { margin: .9rem auto 0; color: var(--muted); font-size: 1.15rem; max-width: 30em; text-wrap: balance; }
.rq-november {
  margin: 1.75rem auto 0; padding-block: .8rem; max-width: 34em;
  border-block: 1px solid var(--rule); color: var(--muted); font-size: .98rem; text-wrap: balance;
}

/* The portrait: arch-topped, in a thin gold frame, like a memorial card */
.rq-portrait { position: relative; width: min(17rem, 70vw); aspect-ratio: 3 / 4; margin: 0 auto 1.9rem; }
.rq-portrait img, .rq-portrait.is-initials span {
  display: block; width: 100%; height: 100%; border-radius: 999px 999px .4rem .4rem;
}
.rq-portrait img { object-fit: cover; background: var(--surface); filter: saturate(.85); }
.rq-portrait.is-initials span {
  display: grid; place-items: center; background: var(--surface);
  color: var(--accent); font-style: italic; font-size: 4.5rem; letter-spacing: .02em;
}
.rq-portrait::after {
  content: ""; position: absolute; inset: -9px; pointer-events: none;
  border: 1px solid var(--accent); border-radius: 999px 999px .7rem .7rem; opacity: .55;
  transition: opacity .6s ease, box-shadow .6s ease;
}
.is-today > .rq-portrait::after { opacity: 1; box-shadow: 0 0 28px 2px rgb(255 190 90 / .22); }

/* The featured person */
.rq-feature { max-width: 36rem; margin: clamp(2.75rem, 7vw, 4.5rem) auto 0; text-align: center; }
.rq-feature p { margin: 0; }
.rq-eyebrow { color: var(--accent); font-style: italic; font-size: 1.05rem; margin-bottom: 1.4rem !important; }
.rq-name { margin: 0; font-weight: 500; line-height: 1.08; text-wrap: balance; }
.rq-feature .rq-name { font-size: clamp(2.3rem, 6vw, 3.3rem); letter-spacing: -.01em; }
.rq-rel { margin-top: .35rem !important; color: var(--muted); font-style: italic; font-size: 1.15rem; }
.rq-dates { margin-top: .9rem !important; font-variant-numeric: lining-nums; }
.rq-age { color: var(--muted); white-space: nowrap; }
.rq-age::before { content: "·"; margin: 0 .5em; color: var(--accent); }
.rq-orn {
  display: flex; align-items: center; gap: .9rem; max-width: 13rem;
  margin: 1.5rem auto !important; color: var(--accent); font-size: .95rem;
}
.rq-orn::before, .rq-orn::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
/* Drawn rather than typed: EB Garamond has no ✠, and fallback fonts vary */
.rq-cross {
  width: .7rem; height: 1rem; flex: none;
  background:
    linear-gradient(var(--accent), var(--accent)) 50% 0 / 2px 100% no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 30% / 100% 2px no-repeat;
}
.rq-anniv { font-style: italic; font-size: 1.12rem; text-wrap: balance; }
.is-today .rq-anniv { color: var(--accent); }
.rq-feast { margin-top: .4rem !important; color: var(--muted); text-wrap: balance; }
.rq-note { margin: 1.6rem auto 0 !important; max-width: 31em; font-size: 1.15rem; line-height: 1.65; text-wrap: pretty; }

/* Everyone else */
.rq-others { margin-top: clamp(3.5rem, 8vw, 5rem); padding-top: 2.25rem; border-top: 1px solid var(--rule); }
.rq-others-title { margin: 0 0 2rem; text-align: center; font-weight: 400; font-style: italic; font-size: 1.15rem; color: var(--muted); }
.rq-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 17rem)); justify-content: center; gap: 3rem 2.25rem;
}
.rq-card { text-align: center; }
.rq-card p { margin: 0; }
.rq-card .rq-portrait { width: 9.5rem; margin-bottom: 1.25rem; }
.rq-card .rq-portrait::after { inset: -6px; }
.rq-card .rq-portrait.is-initials span { font-size: 2.6rem; }
.rq-card .rq-name { font-size: 1.55rem; }
.rq-card .rq-rel { font-size: 1rem; margin-top: .2rem !important; }
.rq-card .rq-dates { margin-top: .5rem !important; font-size: .95rem; }
.rq-card .rq-age { display: block; }
.rq-card .rq-age::before { content: none; }
.rq-card .rq-anniv { margin-top: .75rem !important; font-size: 1rem; }
.rq-card .rq-feast { font-size: .92rem; }
.rq-card .rq-note { margin-top: .85rem !important; font-size: 1rem; line-height: 1.55; }

.rq-empty { margin: 3rem 0 0; text-align: center; color: var(--muted); font-style: italic; }
.rq-sub { max-width: 34rem; margin: clamp(3rem, 7vw, 4.5rem) auto 0; padding-top: 2rem; border-top: 1px solid var(--rule); text-align: center; }
.rq-sub h2 { margin: 0; font-weight: 400; font-style: italic; font-size: 1.15rem; color: var(--muted); }
.rq-sub p { margin: .6rem 0 0; text-wrap: balance; }
.rq-sub-links { display: flex; justify-content: center; gap: 1.5rem; }
.rq-sub-links a { color: var(--accent); }
.rq-prayer { margin: clamp(3.5rem, 8vw, 5rem) auto clamp(3rem, 8vw, 5rem); }

/* ---------- Not found ---------- */
.nf { padding-block: clamp(2.5rem, 7vw, 5rem) 0; text-align: center; }
.nf-emblem { display: block; width: min(100%, 26rem); height: auto; margin: 0 auto 1.75rem; overflow: visible; }
.nf-emblem .arch { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.nf-emblem .arch-inner { stroke: var(--muted); stroke-width: 2; opacity: .6; }
.nf-emblem .cross rect { fill: var(--accent); }
.nf-emblem .halo { opacity: .35; }
.nf-emblem .halo-inner { stop-color: var(--accent); stop-opacity: .55; }
.nf-emblem .halo-outer { stop-color: var(--accent); stop-opacity: 0; }
.nf-ground { stroke: var(--rule); stroke-width: 2; stroke-linecap: round; }
/* The other error pages: the doorway alone, shut for 403 */
.nf-emblem.nf-door { width: min(55%, 11rem); }
.nf-emblem .door { fill: var(--surface); stroke: none; }
.nf-emblem .handle { fill: var(--accent); }
.nf-rank { margin: 0 0 .35rem; font-size: 1.15rem; }
.nf h1 { margin: 0; font-weight: 500; font-size: clamp(2.4rem, 6.4vw, 4rem); line-height: 1.05; letter-spacing: -.012em; }
.nf-lede { margin: 1rem auto 0; max-width: 30em; color: var(--muted); font-size: 1.15rem; text-wrap: balance; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.75rem; margin: 1.5rem 0 0; }
.nf-links a { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .nf-emblem .arch { stroke-dasharray: 1; stroke-dashoffset: 1; animation: nf-draw 2.4s ease-out .3s forwards; }
  .nf-emblem .arch-inner { animation-delay: .9s; }
  .nf-emblem .cross { opacity: 0; animation: nf-appear 1.2s ease-out 2.4s forwards; }
  .nf-emblem .halo { opacity: 0; animation: nf-appear 1.6s ease-out 2.6s forwards, nf-breathe 5s ease-in-out 4.2s infinite; }
}
@keyframes nf-draw { to { stroke-dashoffset: 0; } }
@keyframes nf-appear { to { opacity: 1; } }
@keyframes nf-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- Day page: notes and actions ---------- */
.h-notes { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: 34em; display: grid; gap: .6rem; }
.h-notes li { display: grid; gap: .05rem; padding-left: .9rem; border-left: 2px solid var(--rule); }
.n-label { font-size: 1.02rem; }
a.n-label { color: var(--accent); }
.n-note { color: var(--muted); font-size: .9rem; font-style: italic; }
.h-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.h-action {
  display: inline-flex; align-items: center; padding: .4rem 1.05rem; border: 1px solid var(--rule); border-radius: 999px;
  background: transparent; color: var(--ink); text-decoration: none; font-size: .98rem; cursor: pointer;
}
.h-action:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Calendar: fasting marks, anniversaries, day detail ---------- */
.cell-marks { display: inline-flex; align-items: center; gap: .3rem; }
.cell-marks .rip-flame, .legend .rip-flame { width: .42rem; height: .66rem; box-shadow: 0 0 6px 2px rgb(255 190 90 / .3); animation: none; }
/* A small diamond: filled for fast and abstinence, outlined for abstinence, half for a fast */
.pen { width: .5rem; height: .5rem; transform: rotate(45deg); flex: none; box-shadow: inset 0 0 0 1.5px var(--muted); }
.pen[data-kind="fa"] { background: var(--muted); }
.pen[data-kind="fp"] { background: linear-gradient(135deg, transparent 50%, var(--muted) 50%); }
.detail-notes { list-style: none; margin: .75rem 0 0; padding: .5rem 0 0; border-top: 1px solid var(--rule); color: var(--muted); display: grid; gap: .2rem; }
.detail-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .9rem 0 0; }
.detail-links .detail-link { margin-top: 0; }

/* ---------- Find a saint ---------- */
.find { padding-block: clamp(2rem, 6vw, 4rem); }
.find > * { max-width: 44rem; }
.find h1 { margin: 0 0 .25rem; font-weight: 500; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.01em; }
.find .find-input { margin-top: 1.5rem; }
.find-heading { margin-top: 1.25rem; }
.find-day { padding-block: .8rem; border-top: 1px solid var(--rule); }
.find-when { color: var(--accent); font-style: italic; }
.find-day ul { list-style: none; margin: .3rem 0 0; padding: 0; }
.find-day ul li { display: flex; justify-content: space-between; gap: 1rem; padding-block: .15rem; }
.find-input {
  width: 100%; padding: .65rem 1rem; font: inherit; font-size: 1.1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-radius: .4rem;
}
.find-input::placeholder { color: var(--muted); font-style: italic; }
.find-input:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.find-count { margin: .6rem 0 0; min-height: 1.4em; color: var(--muted); font-style: italic; font-size: .95rem; }
.find-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.find-item { padding-block: .85rem; border-top: 1px solid var(--rule); }
.find-item:last-child { border-bottom: 1px solid var(--rule); }
.find-item p { margin: 0; }
.find-name { font-size: 1.15rem; }
.find-sub { color: var(--muted); font-style: italic; }
.find-where { margin-top: .25rem !important; color: var(--muted); font-size: .95rem; }
.find-next { font-size: .95rem; }
.find-next a { color: var(--accent); }

/* ---------- Prayers ---------- */
.pr { padding-block: clamp(2rem, 6vw, 4rem); }
.pr-head { max-width: 46rem; }
.pr-date { margin: 0; color: var(--muted); font-size: 1.05rem; }
.pr h1 { margin: .2rem 0 0; font-weight: 500; font-size: clamp(2.3rem, 5.5vw, 3.8rem); line-height: 1.05; letter-spacing: -.01em; }
.pr-day { margin: .6rem 0 0; color: var(--muted); font-style: italic; font-size: 1.1rem; }
.pr-day a { color: var(--accent); font-style: normal; }
.pr-nav { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.pr-list { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.pr-empty { color: var(--muted); font-style: italic; }
.prayer { padding-block: 1.75rem; border-top: 1px solid var(--rule); max-width: 62rem; }
.prayer h2 { margin: 0; font-weight: 500; font-size: 1.55rem; line-height: 1.2; }
.pr-rubric { margin: .3rem 0 0; color: var(--accent); font-style: italic; font-size: 1rem; max-width: 46em; }
.pr-text { margin-top: 1rem; max-width: 36em; }
.pr-text.has-la { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2.5rem; max-width: none; }
.pr-text p { margin: 0 0 .7rem; line-height: 1.6; font-size: 1.1rem; }
.pr-text p:last-child { margin-bottom: 0; }
.pr-la p { font-style: italic; }
.pr-text .pr-vr { margin-bottom: .2rem; }
.vr { color: var(--accent); font-style: normal; font-weight: 500; }

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
  html { font-size: 106%; }
  .site-header { gap: .75rem 1.25rem; }
  /* Two rows: the wordmark and calendar toggle, then the tabs */
  .site-nav { margin-right: 0; order: 3; flex-basis: 100%; gap: .9rem; font-size: .96rem; }
  .cal-toggle { margin-left: auto; order: 2; }
  .hero { padding-right: 2.75rem; }
  .day-card { flex-basis: 7.5rem; min-height: 10.5rem; }
  .grid-head, .grid { gap: .2rem; }
  .grid-head span { padding-inline: .2rem; text-align: center; font-size: .8rem; }
  .cell { min-height: 3.2rem; padding: .35rem .2rem; align-items: center; }
  .cell-top { flex-direction: column; gap: .2rem; }
  .cell-num { margin: 0; }
  .cell-name { display: none; }
  .cell-marks { gap: .2rem; }
  .pr-text.has-la { grid-template-columns: 1fr; }
  .pr-la { padding-bottom: 1rem; border-bottom: 1px dashed var(--rule); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  :root, [data-season] { --ground: #fff; --surface: #fff; --ink: #000; --muted: #444; --accent: #6b4e10; --rule: #bbb; color-scheme: light; }
  html { font-size: 11pt; }
  body { min-height: 0; }
  .skip, .site-nav, .cal-toggle, .strip, .icon-btn, .text-btn, .year-nav, .month-bar button, .h-actions,
  .ribbon-wrap, .sub-section, .find-section, .pr-nav, .candle, .detail-links { display: none !important; }
  .site-header { padding-block: 0 .5rem; }
  .hero { padding: 1rem 0 0; }
  .h-name { font-size: 28pt; }
  .cell { min-height: 5.5rem; border: 1px solid #ccc; break-inside: avoid; }
  .cell[aria-pressed="true"] { border-color: #ccc; }
  .hdo { break-inside: avoid; box-shadow: inset 0 0 0 1px #ccc; }
  .prayer { break-inside: avoid; }
  .rq-card, .rq-feature { break-inside: avoid; }
  .rip-flame { box-shadow: none; animation: none; }
  a { color: inherit; text-decoration: none; }
  .site-footer { border-top: 1px solid #ccc; }
}
