/* Rookie Catholic - shares the Book of Saints palette */
[hidden] { display: none !important; }
:root {
  --stone: #eceaf1; --page: #f8f7fb; --ink: #1d1b33; --ink-soft: #55526e; --rule: #d3d0de;
  --lapis: #2b3a8f; --lapis-deep: #1c2766; --red: #a3122a; --gold: #b8892a; --gold-bright: #d4a93a;
  --gold-wash: #f3e8cc; --focus: #2b3a8f; --violet: #6a3f8f; --green: #2f6b3a;
  --display: "Metamorphous", "Alegreya", serif; --text: "Alegreya", Georgia, serif; --caps: "Alegreya SC", "Alegreya", serif;
  --measure: 38rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --stone: #14132a; --page: #1b1a35; --ink: #ecebf6; --ink-soft: #aaa7c4; --rule: #34325a;
    --lapis: #8f9ef0; --lapis-deep: #b6c0ff; --red: #ef5d73; --gold: #d9b05a; --gold-bright: #e9c46a;
    --gold-wash: #2f2a1c; --focus: #b6c0ff; --violet: #c39be6; --green: #7fc48b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --stone: #14132a; --page: #1b1a35; --ink: #ecebf6; --ink-soft: #aaa7c4; --rule: #34325a;
  --lapis: #8f9ef0; --lapis-deep: #b6c0ff; --red: #ef5d73; --gold: #d9b05a; --gold-bright: #e9c46a;
  --gold-wash: #2f2a1c; --focus: #b6c0ff; --violet: #c39be6; --green: #7fc48b; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--ink); font-family: var(--text); font-size: 1.15rem; line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
a { color: var(--lapis); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--page); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { background: #1c2766; color: #fff; border-bottom: 4px solid #d4a93a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .top { background: #0e0d22; } }
:root[data-theme="dark"] .top { background: #0e0d22; }
.top-in { max-width: 68rem; margin: 0 auto; padding: .8rem 1rem .6rem; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "mark theme" "nav nav"; gap: .4rem 1rem; align-items: center; }
.mark { grid-area: mark; text-decoration: none; color: #fff; display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.wordmark { font-family: var(--display); font-size: 1.7rem; line-height: 1; }
.tagline { font-family: var(--caps); color: #c9cff5; font-size: 1rem; }
.mark:hover .wordmark { color: #d4a93a; }
.nav { grid-area: nav; display: flex; gap: .3rem 1.3rem; flex-wrap: wrap; }
.nav a { color: #dfe3ff; text-decoration: none; font-family: var(--caps); font-size: 1.05rem; padding: .2rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: #d4a93a; }
.theme { grid-area: theme; background: transparent; border: 1px solid #4f5bb0; color: #dfe3ff; border-radius: 999px; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; cursor: pointer; }
.theme:hover { color: #fff; border-color: #d4a93a; }
.top :focus-visible { outline-color: #d4a93a; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; } :root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: block; } :root:not([data-theme="light"]) .i-moon { display: none; } }

main { flex: 1; width: 100%; max-width: 68rem; margin: 0 auto; padding: 2.2rem 1rem 3.5rem; }
.foot { border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 1rem; }
.foot-in { max-width: 68rem; margin: 0 auto; padding: 1.4rem 1rem 2rem; }
.foot p { margin: .25rem 0; }

h1, h2, h3 { font-weight: 400; line-height: 1.15; color: var(--lapis-deep); }
h1 { font-family: var(--display); font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 0 0 .6rem; letter-spacing: -.01em; }
h2 { font-family: var(--display); font-size: 1.7rem; margin: 2.2rem 0 .8rem; }
h3 { font-family: var(--caps); font-size: 1.3rem; margin: 1.6rem 0 .5rem; }
.kicker { font-family: var(--caps); color: var(--gold); letter-spacing: .04em; font-size: 1.02rem; margin: 0 0 .3rem; }
.lede { font-size: 1.3rem; color: var(--ink-soft); max-width: var(--measure); margin: 0 0 1.5rem; }
.muted { color: var(--ink-soft); }

/* home */
.home { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 820px) { .home { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
.side { display: grid; gap: 1.2rem; }
.card { background: var(--page); border: 1px solid var(--rule); border-radius: 6px; padding: 1.1rem 1.2rem; }
.card h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.card p { margin: .35rem 0; }
.today .lday { font-family: var(--caps); color: var(--ink-soft); display: flex; align-items: center; gap: .5rem; margin: 0 0 .4rem; }
.today .cele { display: block; font-size: 1.15rem; margin: .15rem 0; }
.today .rank { font-family: var(--caps); font-size: .9rem; color: var(--gold); margin-left: .4rem; }
.lc { width: .8rem; height: .8rem; border-radius: 50%; display: inline-block; border: 1px solid var(--rule); flex: none; }
.lc-white { background: #fff; } .lc-red { background: #b3172f; } .lc-green { background: #2f7a3b; } .lc-violet { background: #6a3f8f; } .lc-rose { background: #e48aa8; } .lc-black { background: #222; } .lc-gold { background: #d4a93a; }
.where { font-size: 1.05rem; }
.where b { color: var(--lapis-deep); }

/* entry lists */
.entries { list-style: none; padding: 0; margin: 0; }
.entries li { border-top: 1px solid var(--rule); padding: 1.1rem 0 1.2rem; }
.entries li:first-child { border-top: 0; padding-top: .2rem; }
.entries h3 { font-family: var(--display); font-size: 1.55rem; margin: .1rem 0 .35rem; }
.entries h3 a { text-decoration: none; color: var(--lapis-deep); }
.entries h3 a:hover { color: var(--red); }
.entries p { margin: 0; color: var(--ink-soft); max-width: var(--measure); }
.meta { font-family: var(--caps); font-size: .98rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .2rem .9rem; align-items: center; }
.chip { font-family: var(--caps); font-size: .92rem; border-radius: 999px; padding: .02rem .6rem; border: 1px solid var(--rule); text-decoration: none; color: var(--ink-soft); background: var(--page); }
a.chip:hover { border-color: var(--lapis); color: var(--lapis); }
.chip.s-inquiry { border-color: #8aa; } .chip.s-catechumenate { border-color: var(--lapis); color: var(--lapis); }
.chip.s-purification { border-color: var(--violet); color: var(--violet); } .chip.s-mystagogy { border-color: var(--gold); color: var(--gold); }
.empty { background: var(--page); border: 1px dashed var(--rule); border-radius: 6px; padding: 1.2rem; color: var(--ink-soft); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; }
.filters a[aria-current] { background: var(--lapis-deep); color: #fff; border-color: var(--lapis-deep); }
:root[data-theme="dark"] .filters a[aria-current] { color: #14132a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .filters a[aria-current] { color: #14132a; } }

/* single entry */
.entry { background: var(--page); border: 1px solid var(--rule); border-radius: 6px; padding: clamp(1.2rem, 4vw, 3rem); max-width: 48rem; margin: 0 auto; }
.entry header { margin-bottom: 1.6rem; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.1rem; }
.prose h2 { font-size: 1.5rem; } .prose h3 { font-size: 1.2rem; }
.prose blockquote { margin: 1.4rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--gold); color: var(--ink-soft); font-style: italic; }
.prose img { max-width: 100%; height: auto; border-radius: 4px; }
.prose hr { border: 0; text-align: center; margin: 2rem 0; }
.prose hr::after { content: "\2720"; color: var(--gold); font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose code { font-size: .9em; background: var(--stone); padding: .05rem .3rem; border-radius: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.6rem 0 0; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.2rem auto 0; max-width: 48rem; }
.pn a { display: block; background: var(--page); border: 1px solid var(--rule); border-radius: 6px; padding: .8rem 1rem; text-decoration: none; }
.pn a:hover { border-color: var(--lapis); }
.pn small { display: block; font-family: var(--caps); color: var(--ink-soft); }
.pn .next { text-align: right; grid-column: 2; }

/* note form */
.note { max-width: 48rem; margin: 2.2rem auto 0; }
.note form { display: grid; gap: .7rem; background: var(--page); border: 1px solid var(--rule); border-radius: 6px; padding: 1.2rem; }
.note .row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 560px) { .note .row { grid-template-columns: 1fr; } .pn { grid-template-columns: 1fr; } .pn .next { grid-column: 1; } }
label { display: grid; gap: .2rem; font-family: var(--caps); font-size: 1rem; color: var(--ink-soft); }
input, textarea, select { font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--stone); border: 1px solid var(--rule); border-radius: 4px; padding: .5rem .65rem; width: 100%; }
textarea { min-height: 8rem; resize: vertical; }
.btn { font: inherit; font-family: var(--caps); font-size: 1.05rem; background: var(--lapis-deep); color: #fff; border: 0; border-radius: 4px; padding: .5rem 1.1rem; cursor: pointer; justify-self: start; text-decoration: none; display: inline-block; }
:root[data-theme="dark"] .btn { color: #14132a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #14132a; } }
.btn:hover { background: var(--red); color: #fff; }
.hp { position: absolute; left: -9999px; }
.ok { color: var(--green); }

/* journey */
.road { list-style: none; padding: 0; margin: 1.5rem 0 0; position: relative; max-width: 46rem; }
.road::before { content: ""; position: absolute; left: .95rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--rule); }
.road > li { position: relative; padding: 0 0 1.8rem 3rem; }
.road .dot { position: absolute; left: .35rem; top: .35rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--page); border: 2px solid var(--rule); }
.road .done .dot { background: var(--gold); border-color: var(--gold); }
.road .here .dot { background: var(--lapis); border-color: var(--lapis); box-shadow: 0 0 0 5px color-mix(in srgb, var(--lapis) 25%, transparent); }
.road h2 { margin: 0 0 .2rem; font-size: 1.5rem; }
.road .rite { margin: .6rem 0 0 0; padding: .55rem .8rem; background: var(--gold-wash); border-radius: 4px; font-size: 1.02rem; }
.road .you { font-family: var(--caps); color: var(--lapis); font-size: 1rem; margin-left: .4rem; }
.road p { margin: .2rem 0; }
.road a.more { font-family: var(--caps); font-size: 1rem; }
