/* One phone-width column on true black, set like a bound missal printed on night. One violet light per screen. Single dark world by choice. */
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/CormorantGaramond-Variable.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/CormorantGaramond-Italic-Variable.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/EBGaramond-Variable.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/EBGaramond-Italic-Variable.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("fonts/Cinzel-Variable.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Unifraktur"; src: url("fonts/UnifrakturMaguntia.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --void: #000; --crypt: #0b0a0d; --vault: #151219; --nave: #26222c; --smoke: #635e6a;
  --bone: #ebe7ef; --ash: #a29da9; --cinder: #7c7783;
  --violet: #9400ff; --violet-text: #b46bff; --violet-deep: #2a0052; --violet-wax: #5a00a8; --blood: #e2454f;
  /* rubrication: the red of the old calendars, and the gilt of the binding */
  --red: #c2343e; --red-deep: #7a0d16; --red-wax: #9e0f1d; --gilt: #c9a45c; --gilt-hi: #e8cf8f; --gilt-deep: #6e5420;
  --warm: rgba(255, 168, 92, .16);
  --glow: 0 0 48px rgba(148, 0, 255, .35); --glow-faint: 0 0 24px rgba(148, 0, 255, .18);
  --liturgy: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --text: "EB Garamond", Georgia, serif;
  --rubric: Cinzel, "Cormorant Garamond", serif;
  --ledger: "IBM Plex Mono", ui-monospace, monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px;
  --rs: 1;
}
html, body { height: 100%; margin: 0; }
[hidden] { display: none !important; }
body { background: var(--void); color: var(--bone); font-family: var(--text); font-size: 18px; line-height: 28px; -webkit-font-smoothing: antialiased; font-feature-settings: "liga", "kern"; -webkit-tap-highlight-color: transparent; }
* { box-sizing: border-box; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 1px solid var(--violet-text); outline-offset: 3px; border-radius: 2px; }

.app { position: relative; height: 100%; max-width: 430px; margin: 0 auto; display: flex; flex-direction: column; background: var(--void); overflow: hidden; padding-top: env(safe-area-inset-top, 0px); }
.app::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 30; opacity: .06; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (min-width: 640px) { .app { border-left: 1px solid var(--nave); border-right: 1px solid var(--nave); } }
.view { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; position: relative; }
.view::-webkit-scrollbar { display: none; }
.view > section { animation: rise .5s ease-out both; }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
.pad { padding-inline: var(--s6); }
.center { text-align: center; }

/* type */
.display { font-family: var(--liturgy); font-weight: 300; font-size: 50px; line-height: 52px; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.headline { font-family: var(--liturgy); font-weight: 300; font-size: 46px; line-height: 48px; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
.rubric { font-family: var(--rubric); font-size: 11.5px; line-height: 16px; font-weight: 600; letter-spacing: .24em; color: var(--ash); }
.meta { font-family: var(--ledger); font-size: 11px; line-height: 16px; letter-spacing: .06em; color: var(--cinder); font-variant-numeric: tabular-nums; text-transform: uppercase; }
.soul { font-family: var(--ledger); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.small { font-size: 15px; line-height: 22px; color: var(--ash); margin: 0; }

/* plates */
.plate { position: relative; overflow: hidden; background: var(--void); }
.plate img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 100%); mask-image: linear-gradient(to bottom, #000 52%, transparent 100%); animation: rise 1.4s ease-out both; }
.plate.flip img { transform: rotate(180deg); -webkit-mask-image: linear-gradient(to top, #000 52%, transparent 100%); mask-image: linear-gradient(to top, #000 52%, transparent 100%); }
.caption { position: relative; margin-top: calc(-1 * var(--s8)); display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s3); align-items: baseline; }
.caption .no { font-family: var(--rubric); font-size: 10px; letter-spacing: .24em; font-weight: 600; color: var(--cinder); grid-row: span 3; padding-top: 3px; }
.caption .t { font-family: var(--liturgy); font-style: italic; font-size: 17px; line-height: 21px; color: var(--ash); }
.caption.wide { grid-template-columns: 1fr; }
.caption:not(.wide) .meta { grid-column: 2; }

/* the fallen star between parts */
.orn { display: flex; align-items: center; gap: var(--s4); margin: var(--s12) 0; }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; }
.orn::before { background: linear-gradient(to right, transparent, var(--nave)); }
.orn::after { background: linear-gradient(to left, transparent, var(--nave)); }
.orn img { height: 30px; opacity: .45; }

/* actions */
.btn { font-family: var(--rubric); font-size: 12.5px; line-height: 16px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; border-radius: 0; padding: 17px 22px; border: 1px solid transparent; transition: background .25s, opacity .25s, border-color .25s, color .25s; }
.btn.bone { background: var(--bone); color: var(--void); width: 100%; }
.btn.bone:hover { background: #fff; }
.btn.outline { border-color: var(--smoke); color: var(--bone); }
.btn.outline:hover { border-color: var(--bone); }
.btn.quiet { color: var(--ash); padding: 12px 0; }
.btn.quiet:hover { color: var(--bone); }
.btn.doom { border-color: var(--blood); color: var(--blood); width: 100%; }
.btn:disabled { opacity: .3; cursor: not-allowed; }

/* threshold and onboarding */
.threshold { min-height: 100%; display: flex; flex-direction: column; }
.threshold .plate { height: 64vh; min-height: 340px; max-height: 620px; }
.threshold .plate img { object-position: 50% 22%; -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); animation: rise 1.8s ease-out both, drift 38s 1.8s ease-in-out infinite alternate; transform-origin: 50% 30%; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.09) translateY(-1.5%); } }
.threshold .body { flex: 1; display: flex; flex-direction: column; gap: var(--s6); padding-bottom: var(--s8); margin-top: calc(-1 * var(--s16) - var(--s8)); position: relative; }
.threshold .body > * { animation: rise 1.2s ease-out both; }
.threshold .body > :nth-child(2) { animation-delay: .5s; }
.threshold .body > :nth-child(3) { animation-delay: 1s; }
.kicker { display: flex; align-items: center; gap: var(--s3); }
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--nave); max-width: 120px; }
.lockup { width: 300px; max-width: 100%; height: auto; display: block; }
.tagline { font-family: var(--liturgy); font-style: italic; font-size: 27px; line-height: 33px; color: var(--ash); margin: 0; }
.step { display: flex; justify-content: space-between; align-items: baseline; margin: var(--s4) 0 var(--s3); }
.stack { display: flex; flex-direction: column; gap: var(--s6); padding-bottom: var(--s12); }
.choices { display: flex; flex-direction: column; border-top: 1px solid var(--nave); }
.choice { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); width: 100%; text-align: left; border-bottom: 1px solid var(--nave); padding: 14px 0; font-family: var(--liturgy); font-size: 24px; line-height: 30px; color: var(--ash); transition: color .2s; }
.choice .end { display: flex; align-items: center; gap: var(--s4); flex: none; }
.tick { width: 11px; height: 11px; border: 1px solid var(--smoke); transform: rotate(45deg); flex: none; transition: background .2s, border-color .2s, box-shadow .2s; }
.choice[aria-checked="true"] { color: var(--bone); }
.choice[aria-checked="true"] .tick { background: var(--violet); border-color: var(--violet); box-shadow: var(--glow-faint); }
.choice:hover { color: var(--bone); }

/* pact */
.field { display: flex; flex-direction: column; gap: var(--s2); }
.input { background: var(--vault); border: 0; border-bottom: 1px solid var(--smoke); padding: 12px var(--s4); font-family: var(--text); font-size: 18px; line-height: 28px; color: var(--bone); border-radius: 0; width: 100%; }
.input:focus { outline: none; border-bottom-color: var(--bone); }
.input::placeholder { color: var(--cinder); font-style: italic; }
select.input { appearance: none; -webkit-appearance: none; }
.dob { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: var(--s3); }
.terms { font-family: var(--liturgy); font-size: 23px; line-height: 33px; margin: 0; }
.sign { position: relative; height: 150px; background: var(--vault); border-bottom: 1px solid var(--smoke); touch-action: none; transition: background .8s; }
.sign.active { border-bottom-color: var(--bone); }
.sign.sealed { background: var(--crypt); border-bottom-color: var(--violet-wax); }
.sign canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.sign .x { position: absolute; left: var(--s4); bottom: 10px; pointer-events: none; }
.sign .hint { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-family: var(--liturgy); font-style: italic; font-size: 20px; color: var(--cinder); transition: opacity .3s; }
.sigrow { display: flex; justify-content: space-between; align-items: baseline; }
.sealline { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); min-height: 20px; }
.sealline > * { animation: rise .9s ease-out both; }
.refusal { font-family: var(--liturgy); font-style: italic; font-size: 20px; color: var(--ash); text-align: center; margin: 0; }

/* app chrome */
.bar { display: grid; grid-template-columns: 84px 1fr 84px; align-items: center; padding: 4px var(--s3); min-height: 52px; position: sticky; top: 0; z-index: 5; background: linear-gradient(to bottom, rgba(0,0,0,.97) 60%, rgba(0,0,0,0)); }
.bar.solid { background: #000; box-shadow: 0 1px 0 var(--nave); }
.bar { transition: background .25s, box-shadow .25s; }
.bar .home { display: grid; place-items: center; width: 48px; height: 48px; }
.bar .home img { height: 26px; opacity: .85; }
.bar .title { text-align: center; color: var(--bone); }
.me { display: flex; align-items: center; justify-content: flex-end; gap: 7px; height: 48px; justify-self: end; padding: 0; }
.me .sigm svg { width: 36px; height: 20px; display: block; }
.under { margin-top: -60px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr auto 1fr 1fr; justify-items: center; border-top: 1px solid var(--nave); background: var(--void); padding: 0 var(--s2) env(safe-area-inset-bottom, 0px); flex: none; position: relative; z-index: 20; }
.tab { font-family: var(--rubric); font-size: 10.5px; letter-spacing: .2em; font-weight: 600; color: var(--cinder); padding: 15px 4px 17px; box-shadow: inset 0 1px 0 transparent; transition: color .2s; }
.tab:hover { color: var(--ash); }
.tab.cover { padding: 9px 10px 11px; display: grid; place-items: center; }
.tab.cover img { height: 30px; width: auto; opacity: .92; transition: transform .2s, opacity .2s; }
.tab.cover:hover img, .tab.cover:focus-visible img { opacity: 1; transform: translateY(-1px); }
.tab[aria-selected="true"] { color: var(--bone); box-shadow: inset 0 1px 0 var(--bone); }

/* home */
.home-hero { position: relative; height: 62vh; min-height: 400px; max-height: 620px; display: block; width: 100%; text-align: left; }
.home-hero .plate { position: absolute; inset: 0; }
.home-hero .plate img { object-position: 50% 26%; -webkit-mask-image: linear-gradient(to bottom, #000 28%, transparent 100%); mask-image: linear-gradient(to bottom, #000 28%, transparent 100%); animation: rise 1.6s ease-out both, drift 40s 1.6s ease-in-out infinite alternate; }
.home-hero .plate.flip img { -webkit-mask-image: linear-gradient(to top, #000 28%, transparent 100%); mask-image: linear-gradient(to top, #000 28%, transparent 100%); animation: rise 1.6s ease-out both; }
.home-hero .words { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--s6) var(--s2); display: flex; flex-direction: column; gap: var(--s2); }
.home-hero .day { display: flex; align-items: center; gap: var(--s3); color: var(--bone); }
.lit { width: 8px; height: 8px; transform: rotate(45deg); background: var(--violet); box-shadow: var(--glow); flex: none; }
.home-hero h1 { font-family: var(--liturgy); font-weight: 300; font-size: 56px; line-height: 56px; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.home-hero .charge { font-family: var(--liturgy); font-style: italic; font-size: 22px; line-height: 28px; color: var(--ash); margin: 0; text-wrap: balance; }
.homemark { display: flex; justify-content: space-between; align-items: center; padding: 6px var(--s3) 0 var(--s6); position: absolute; left: 0; right: 0; top: 0; z-index: 2; }
.homemark > img, .homemark > a > img { height: 34px; }
.contents { margin-top: var(--s8); border-top: 1px solid var(--nave); }
.entry-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 0 var(--s3); width: 100%; padding: 18px 0 17px; border-bottom: 1px solid var(--nave); text-align: left; }
.entry-row:hover .lbl { color: #fff; }
.entry-row .num { font-family: var(--rubric); font-size: 11px; letter-spacing: .16em; color: var(--cinder); font-weight: 600; }
.entry-row .lbl { font-family: var(--liturgy); font-size: 30px; line-height: 32px; color: var(--bone); transition: color .2s; }
.entry-row .sub { grid-column: 2 / 4; font-family: var(--liturgy); font-style: italic; font-size: 18px; line-height: 22px; color: var(--ash); margin-top: 4px; }
.entry-row .meta { white-space: nowrap; }
.colophon { display: flex; flex-direction: column; align-items: center; gap: var(--s3); padding: var(--s12) 0; }
.colophon img { width: 210px; opacity: .6; }

/* the devotion */
.dev .plate { height: 400px; }
.dev .plate img { object-position: 50% 30%; }
.dev-head { text-align: center; margin-top: var(--s12); display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.dev-head .charge { font-family: var(--liturgy); font-style: italic; font-size: 23px; line-height: 30px; color: var(--ash); margin: var(--s1) 0 0; max-width: 30ch; text-wrap: balance; }
.reading { margin-top: var(--s12); }
.reading p { font-size: calc(19.5px * var(--rs)); line-height: calc(32px * var(--rs)); margin: 0 0 var(--s6); text-wrap: pretty; -webkit-hyphens: auto; hyphens: auto; }
.reading p:last-child { margin-bottom: 0; }
.cap { font-family: var(--liturgy); font-weight: 400; color: var(--violet); float: left; font-size: calc(104px * var(--rs)); line-height: calc(80px * var(--rs)); margin: 7px 12px 0 -3px; text-shadow: 0 0 28px rgba(148, 0, 255, .35); }
.rite { background: var(--crypt); border: 1px solid var(--nave); padding: var(--s8) var(--s6) var(--s6); text-align: center; position: relative; }
.rite::before, .rite::after { content: ""; position: absolute; width: 7px; height: 7px; border: 1px solid var(--smoke); background: var(--void); transform: rotate(45deg); left: calc(50% - 4px); }
.rite::before { top: -4.5px; } .rite::after { bottom: -4.5px; }
.rite .kind { display: flex; justify-content: center; align-items: center; gap: var(--s3); }
.tier { display: inline-flex; gap: 6px; }
.tier i { width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid var(--smoke); }
.tier i.on { background: var(--ash); border-color: var(--ash); }
.act { font-family: var(--liturgy); font-style: italic; font-size: calc(27px * var(--rs)); line-height: calc(36px * var(--rs)); margin: var(--s4) 0 0; text-wrap: balance; }
.act .r { font-style: normal; }
.perform { margin-top: var(--s6); min-height: 54px; display: flex; justify-content: center; align-items: center; }
.hold { position: relative; overflow: hidden; border: 1px solid var(--smoke); padding: 16px 40px; font-family: var(--rubric); font-size: 12.5px; letter-spacing: .2em; font-weight: 700; text-transform: uppercase; color: var(--bone); user-select: none; -webkit-user-select: none; touch-action: none; }
.hold .fill { position: absolute; inset: 0; background: var(--bone); transform-origin: left; transform: scaleX(0); transition: transform .35s ease-out; }
.hold.down .fill { transform: scaleX(1); transition: transform 1.1s linear; }
.hold .lbl { position: relative; mix-blend-mode: difference; }
.done { font-family: var(--liturgy); font-style: italic; font-size: 22px; color: var(--ash); animation: rise .9s ease-out both; }
.testa .q { font-family: var(--liturgy); font-size: calc(26px * var(--rs)); line-height: calc(34px * var(--rs)); text-align: center; margin: var(--s4) 0 var(--s6); text-wrap: balance; }
.page { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; width: 100%; text-align: left; min-height: 222px; background-color: var(--crypt); background-image: linear-gradient(var(--crypt), var(--crypt)), repeating-linear-gradient(to bottom, transparent 0 33px, rgba(235, 231, 239, .08) 33px 34px); background-size: 100% 18px, 100% 100%; background-repeat: no-repeat, repeat; background-position: 0 0, 0 18px; border-top: 1px solid var(--nave); padding: 18px var(--s4) 44px; font-family: var(--liturgy); font-style: italic; font-size: 21px; line-height: 34px; color: var(--cinder); position: relative; transition: border-color .2s; }
.page:hover { border-top-color: var(--smoke); }
.page .ex { color: var(--bone); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.page .go { position: absolute; right: var(--s4); bottom: 12px; font-style: normal; }
.folio { text-align: center; font-family: var(--liturgy); font-size: 17px; color: var(--cinder); letter-spacing: .1em; padding-block: var(--s12) var(--s4); }
.proto { display: flex; justify-content: center; padding-bottom: var(--s12); }
.proto .btn { font-size: 10.5px; color: var(--cinder); }

/* editor */
.editor { position: absolute; inset: 0; z-index: 25; background: var(--void); display: flex; flex-direction: column; animation: rise .35s ease-out both; padding-top: env(safe-area-inset-top, 0px); }
.editor .top { display: flex; justify-content: space-between; align-items: center; padding: var(--s2) var(--s6); border-bottom: 1px solid var(--nave); }
.editor .body { flex: 1; overflow-y: auto; padding: var(--s6) var(--s6) var(--s8); display: flex; flex-direction: column; }
.editor .q { font-family: var(--liturgy); font-size: 25px; line-height: 32px; margin: var(--s3) 0 var(--s6); }
.editor textarea { flex: 1; min-height: 58vh; width: 100%; resize: none; border: 0; background: transparent; background-image: repeating-linear-gradient(to bottom, transparent 0 33px, rgba(235, 231, 239, .07) 33px 34px); background-attachment: local; background-position: 0 1px; padding: 0; font-family: var(--liturgy); font-size: 22px; line-height: 34px; color: var(--bone); outline: none; }
.editor textarea::placeholder { color: var(--cinder); font-style: italic; }
.editor .foot { display: flex; justify-content: space-between; padding: var(--s3) var(--s6) calc(var(--s3) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--nave); }

/* testament */
.search { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--nave); padding: 12px 0; font-family: var(--liturgy); font-style: italic; font-size: 21px; color: var(--bone); outline: none; -webkit-appearance: none; }
.search::placeholder { color: var(--cinder); }
.tools { display: flex; justify-content: space-between; align-items: center; margin: var(--s3) 0 0; }
.month { margin-top: var(--s8); }
.ent { display: block; width: 100%; text-align: left; padding: var(--s6) 0; border-bottom: 1px solid var(--nave); }
.ent .hd { display: flex; justify-content: space-between; gap: var(--s4); align-items: baseline; }
.ent .q { font-family: var(--liturgy); font-style: italic; font-size: 19px; line-height: 25px; color: var(--ash); margin: var(--s2) 0 0; }
.ent .tx { margin: var(--s2) 0 0; font-size: 18px; line-height: 28px; color: var(--bone); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.ago { margin-top: var(--s6); border: 1px solid var(--nave); padding: var(--s4); background: var(--crypt); }
.empty { display: flex; flex-direction: column; align-items: center; gap: var(--s6); text-align: center; }
.empty .plate { height: 320px; align-self: stretch; }
.empty .headline { font-size: 34px; line-height: 40px; font-style: italic; }

/* almanac */
.coming { margin-top: var(--s3); border-top: 1px solid var(--nave); }
.obs { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s4); width: 100%; text-align: left; padding: var(--s4) 0; border-bottom: 1px solid var(--nave); align-items: baseline; }
.obs .n { font-family: var(--liturgy); font-size: 23px; line-height: 28px; }
.obs .w { grid-column: 1 / 3; }
.months { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--s8) var(--s6); margin-top: var(--s12); }
.mo > .rubric { display: block; margin-bottom: var(--s3); color: var(--bone); }
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 3px; }
.mgrid span, .mgrid button { aspect-ratio: 1; display: grid; place-items: center; font-family: var(--ledger); font-size: 9.5px; color: var(--cinder); border-radius: 1px; position: relative; }
.mgrid button { color: var(--ash); }
.mgrid .pre { opacity: .3; }
.mgrid .k { background: var(--vault); color: var(--bone); }
.mgrid .t { background: var(--violet); color: var(--bone); box-shadow: var(--glow-faint); }
.mgrid .s::after { content: ""; position: absolute; bottom: 1px; width: 3px; height: 3px; border-radius: 50%; background: var(--ash); }
.mgrid .b { color: var(--bone); outline: 1px solid var(--smoke); outline-offset: -1px; }
.legend { display: flex; gap: var(--s4) var(--s6); margin-top: var(--s8); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: var(--s2); }
.legend i { width: 10px; height: 10px; display: inline-block; }

/* record */
.reg .plate { height: 270px; }
.reg .plate img { object-position: 50% 45%; }
.total { font-family: var(--liturgy); font-weight: 300; font-size: 68px; line-height: 64px; display: flex; align-items: baseline; gap: var(--s2) var(--s3); flex-wrap: wrap; font-variant-numeric: lining-nums; }
.total small { font-family: var(--liturgy); font-style: italic; font-size: 22px; line-height: 28px; color: var(--ash); font-weight: 400; }
.tally { margin-top: var(--s8); display: flex; flex-direction: column; gap: 12px; }
.tally .r { display: grid; grid-template-columns: 1fr auto; gap: 5px var(--s4); align-items: baseline; }
.tally .l { font-family: var(--liturgy); font-size: 18px; line-height: 22px; color: var(--ash); }
.tally .b2 { grid-column: 1 / 3; height: 1px; background: var(--nave); position: relative; }
.tally .b2 i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ash); }
.list { margin-top: var(--s8); border-top: 1px solid var(--nave); }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s1) var(--s4); align-items: baseline; padding: var(--s3) 0; border-bottom: 1px solid var(--nave); }
.row .soul { font-size: 13px; }
.row .name { font-family: var(--liturgy); font-size: 20px; line-height: 24px; min-width: 0; overflow-wrap: anywhere; }
.row .sub { grid-column: 2 / 4; }
.row.you { background: var(--violet-deep); margin-inline: calc(-1 * var(--s6)); padding-inline: var(--s6); border-bottom-color: var(--violet-deep); }
.row.you .meta { color: var(--ash); }
.row.you .tag { color: var(--violet-text); }
.row.anon .name { color: var(--ash); font-style: italic; }
.row.gone .name { color: var(--cinder); text-decoration: line-through; text-decoration-thickness: 1px; }
.row.new { animation: rise 1.4s ease-out both; }

/* self */
.selfhead { height: 240px; }
.selfhead img { object-position: 50% 100%; -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%); mask-image: linear-gradient(to bottom, #000 30%, transparent 100%); }
.who { margin-top: -36px; position: relative; display: flex; flex-direction: column; gap: var(--s2); }
.who .headline { font-size: 40px; line-height: 44px; overflow-wrap: anywhere; }
.seal { margin-top: var(--s6); padding: var(--s6) 0; border-top: 1px solid var(--nave); border-bottom: 1px solid var(--nave); display: flex; justify-content: center; }
.seal svg { width: 100%; max-width: 300px; height: 104px; filter: drop-shadow(0 0 12px rgba(148, 0, 255, .5)); }
.count { margin-top: var(--s8); display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); }
.count .num { font-family: var(--liturgy); font-weight: 300; font-size: 112px; line-height: 96px; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.count .right { text-align: right; display: flex; flex-direction: column; gap: var(--s2); }
.records { margin-top: var(--s6); border-top: 1px solid var(--nave); }
.rec { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--nave); width: 100%; text-align: left; }
.rec .v { font-family: var(--ledger); font-size: 12.5px; letter-spacing: .04em; text-align: right; color: var(--bone); }
button.rec .v::after, a.rec .v::after { content: ""; display: inline-block; width: 5px; height: 5px; border-right: 1px solid var(--cinder); border-top: 1px solid var(--cinder); transform: rotate(45deg); margin-left: 10px; vertical-align: 2px; }
.grouplabel { margin: var(--s12) 0 0; display: block; }
.endmatter { display: flex; flex-direction: column; gap: var(--s4); padding-top: var(--s8); }
.protorow { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--nave); }
.protorow .input { padding: 8px 12px; font-size: 16px; }

/* sheet */
.veil { position: absolute; inset: 0; background: rgba(0, 0, 0, .82); display: flex; align-items: flex-end; z-index: 40; animation: rise .3s ease-out both; }
.sheet { width: 100%; background: var(--crypt); border-top: 1px solid var(--nave); padding: var(--s8) var(--s6) calc(var(--s8) + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: var(--s4); max-height: 88%; overflow-y: auto; }


/* ======================================================================
   Production additions. Same tokens, same rules: true black, bone, one
   violet thing per screen, Cinzel rubrics, hairlines, square corners.
   ====================================================================== */
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.notice { font-family: var(--liturgy); font-style: italic; font-size: 18px; line-height: 24px; color: var(--ash); text-align: center; margin: 0; min-height: 24px; }
.notice.err { color: var(--blood); }
.btn.link { color: var(--ash); padding: 8px 0; font-size: 11px; }
.btn.link:hover { color: var(--bone); }
.input.mono { font-family: var(--ledger); font-size: 17px; letter-spacing: .12em; text-transform: uppercase; }
.input.mono::placeholder { text-transform: none; letter-spacing: .02em; }

/* threshold: the way back */
.threshold .return { display: flex; justify-content: center; margin-top: var(--s2); }

/* the seal */
.sealcode { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: var(--s3) var(--s4); padding: var(--s8) 0; border-top: 1px solid var(--nave); border-bottom: 1px solid var(--nave); }
.sealcode span { font-family: var(--ledger); font-weight: 500; font-size: 22px; line-height: 28px; letter-spacing: .16em; color: var(--bone); font-variant-numeric: tabular-nums; }
.sealcode span.last { color: var(--bone); box-shadow: inset 0 -1px 0 var(--smoke); }
.confirm { display: grid; grid-template-columns: 1fr auto; gap: var(--s3); align-items: end; }
.confirm .input { width: 9.5ch; text-align: center; }

/* devotion additions */
.season { color: var(--ash); }
.dev-head .tools { display: flex; justify-content: center; gap: var(--s6); margin: 0; }
.dev-head .tools .btn { padding: 6px 0; font-size: 10.5px; color: var(--cinder); }
.dev-head .tools .btn:hover, .dev-head .tools .btn[aria-pressed="true"] { color: var(--bone); }
.perform { flex-direction: column; gap: var(--s2); }
.perform .refuse { font-size: 10.5px; color: var(--cinder); padding: 8px 0 0; }
.perform .refuse:hover { color: var(--ash); }
.status { font-family: var(--rubric); font-size: 11px; letter-spacing: .24em; font-weight: 600; color: var(--cinder); text-transform: uppercase; }
.sealed .act { color: var(--cinder); font-size: calc(21px * var(--rs)); line-height: calc(30px * var(--rs)); }
.sealed .prog { margin-top: var(--s2); display: block; }
.ended { font-family: var(--liturgy); font-style: italic; font-size: 22px; color: var(--ash); margin: 0; }
.pager { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding-block: var(--s12) var(--s4); }
.pager .folio { padding: 0; }
.pager button { height: 48px; display: grid; place-items: center; color: var(--cinder); transition: color .2s; }
.pager button:hover:not(:disabled) { color: var(--bone); }
.pager button:disabled { opacity: .25; cursor: default; }
.pager svg { width: 16px; height: 16px; }
.ago .lead { font-family: var(--liturgy); font-style: italic; font-size: 19px; color: var(--ash); display: block; margin-bottom: var(--s2); }
.ago .tx { -webkit-line-clamp: 12; }
.again { margin-top: var(--s8); display: flex; flex-direction: column; gap: var(--s3); align-items: stretch; }
.page.ro { cursor: default; }
.page[disabled] { cursor: default; }

/* home: the pact has run its year */
.home-hero.over { cursor: default; }
.home-hero .over-line { font-family: var(--liturgy); font-style: italic; font-size: 26px; line-height: 32px; color: var(--bone); margin: 0; }

/* refusal sheet and other sheets */
.sheet .headline { font-size: 38px; line-height: 42px; }
.sheet textarea.input { min-height: 160px; resize: none; font-family: var(--liturgy); font-size: 21px; line-height: 30px; }
.sheet .row2 { display: flex; justify-content: space-between; align-items: baseline; }

/* full screen moments: lock, conferral, plate viewer */
.moment { position: absolute; inset: 0; z-index: 50; background: var(--void); display: flex; flex-direction: column; animation: rise .8s ease-out both; padding-top: env(safe-area-inset-top, 0px); }
.lock { align-items: center; justify-content: center; gap: var(--s8); text-align: center; padding-inline: var(--s6); }
.lock .mark { height: 96px; opacity: .92; }
.lock .acts { display: flex; flex-direction: column; gap: var(--s3); width: 100%; max-width: 320px; }
.confer { align-items: center; justify-content: center; text-align: center; gap: var(--s4); padding-inline: var(--s6); }
.confer .numeral { font-family: var(--liturgy); font-weight: 300; font-size: 140px; line-height: 120px; color: var(--bone); letter-spacing: .02em; animation: rise 2.4s ease-out both; }
.confer .headline { animation: rise 2.4s .6s ease-out both; }
.confer .small { max-width: 28ch; animation: rise 2.4s 1.2s ease-out both; }
.confer .btn { margin-top: var(--s8); min-width: 220px; animation: rise 1.6s 2s ease-out both; }
.viewer { overflow-y: auto; }
.viewer .plate { height: 66vh; min-height: 380px; }
.viewer .plate img { object-position: 50% 30%; }
.viewer .top { position: absolute; top: env(safe-area-inset-top, 0px); right: 0; z-index: 2; padding: var(--s2) var(--s3); }
.viewer .info { display: flex; flex-direction: column; gap: var(--s3); padding-top: var(--s6); padding-bottom: var(--s12); }

/* the gallery */
.galhead { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-top: var(--s8); }
.galhead .total { font-size: 56px; line-height: 56px; }
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; margin-top: var(--s6); }
.tile { aspect-ratio: 4 / 5; position: relative; background: var(--crypt); overflow: hidden; display: grid; place-items: center; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: rise .9s ease-out both; }
.tile.flip img { transform: rotate(180deg); }
.tile .rn { font-family: var(--rubric); font-size: 9px; letter-spacing: .12em; font-weight: 600; color: var(--smoke); }
.tile.missed { background: var(--crypt) linear-gradient(to top right, transparent calc(50% - .5px), rgba(162, 157, 169, .22) 50%, transparent calc(50% + .5px)), linear-gradient(to top left, transparent calc(50% - .5px), rgba(162, 157, 169, .22) 50%, transparent calc(50% + .5px)); }
.tile.missed .rn { color: var(--nave); }
button.tile:hover img { opacity: .85; }
.feastgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feastgrid .tile { aspect-ratio: 4 / 5; }
.feastgrid .cap2 { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 6px; background: linear-gradient(to top, #000, transparent); font-family: var(--rubric); font-size: 8.5px; letter-spacing: .14em; font-weight: 600; color: var(--ash); text-align: left; text-transform: uppercase; }

/* self additions */
.order { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: center; margin-top: var(--s8); }
.order .numeral { font-family: var(--liturgy); font-weight: 300; font-size: 64px; line-height: 60px; min-width: 64px; text-align: center; color: var(--bone); }
.order > div { display: flex; flex-direction: column; gap: 2px; }
.order .oname { font-family: var(--liturgy); font-size: 32px; line-height: 36px; }
.order .prog { margin-top: var(--s2); display: flex; flex-direction: column; gap: 2px; }
.honors { margin-top: var(--s3); border-top: 1px solid var(--nave); }
.honor { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--nave); align-items: baseline; }
.honor .hn { font-family: var(--liturgy); font-size: 23px; line-height: 28px; }
.honor .hl { grid-column: 1 / 3; font-family: var(--liturgy); font-style: italic; font-size: 17px; line-height: 22px; color: var(--ash); }
.honors .none { font-family: var(--liturgy); font-style: italic; font-size: 18px; color: var(--cinder); padding: var(--s4) 0; border-bottom: 1px solid var(--nave); margin: 0; }
.rec .v.off { color: var(--cinder); }
.rec .hintline { display: block; }
.note { font-family: var(--liturgy); font-style: italic; font-size: 17px; line-height: 22px; color: var(--ash); padding: var(--s3) 0; border-bottom: 1px solid var(--nave); margin: 0; }
.about { font-family: var(--liturgy); font-style: italic; font-size: 22px; line-height: 28px; color: var(--ash); margin: var(--s4) 0 0; }
.seal.plain { border-bottom: 0; padding: 0; margin-top: var(--s4); }
.headline.anonymous { font-style: italic; color: var(--ash); }
.book-cta { display: flex; flex-direction: column; gap: var(--s2); }

/* re-signing */
.resign-prev { height: 120px; display: flex; justify-content: center; align-items: center; opacity: .22; border-bottom: 1px solid var(--nave); padding-bottom: var(--s4); }
.resign-prev svg { width: 100%; max-width: 300px; height: 96px; }

/* record extras */
.row .order-tag { color: var(--cinder); }
.more { height: 40px; }

.homemark { background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,0)); padding-bottom: 14px; }
.viewer .top { left: 0; display: flex; justify-content: flex-end; background: linear-gradient(to bottom, rgba(0,0,0,.75), rgba(0,0,0,0)); padding-bottom: var(--s6); }

/* moderation: report and hide */
.report { margin-top: var(--s12); border-top: 1px solid var(--nave); padding-top: var(--s4); }
.report summary { list-style: none; cursor: pointer; display: block; text-align: center; }
.report summary::-webkit-details-marker { display: none; }
.report form { display: flex; flex-direction: column; gap: var(--s4); margin-top: var(--s4); }
.report .choice { cursor: pointer; font-size: 21px; }
.report .choice input { position: absolute; opacity: 0; pointer-events: none; }
.report .choice:has(input:checked) { color: var(--bone); }
.report .choice:has(input:checked) .tick { background: var(--violet); border-color: var(--violet); box-shadow: var(--glow-faint); }
.colophon .legal { display: flex; gap: var(--s6); }
.colophon .legal a { font-family: var(--rubric); font-size: 10.5px; letter-spacing: .2em; font-weight: 600; color: var(--cinder); text-decoration: none; text-transform: uppercase; }
.colophon .legal a:hover { color: var(--ash); }
.row .rep { grid-column: 1; grid-row: 2; justify-self: start; align-self: baseline; font-family: var(--rubric); font-size: 9px; line-height: 16px; letter-spacing: .18em; font-weight: 600; color: var(--smoke); text-transform: uppercase; padding: 0; }
.row .rep:hover, .row .rep:focus-visible { color: var(--ash); }
.rec a.v, a.rec { text-decoration: none; }

/* the Home Screen: the band on Home and the steps in the sheet */
.install-band { margin: var(--s6) var(--s6) 0; padding: var(--s4) var(--s4) var(--s3); border: 1px solid var(--nave); border-left: 2px solid var(--violet); background: var(--crypt); display: flex; flex-direction: column; gap: var(--s2); }
.install-band p { margin: 0; font-family: var(--liturgy); font-style: italic; font-size: 19px; line-height: 25px; color: var(--bone); }
.install-band .acts { display: flex; align-items: center; gap: var(--s6); margin-top: var(--s1); }
.install-band .btn.outline { padding: 10px 18px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: var(--s3); }
.steps li { counter-increment: st; position: relative; padding-left: 40px; font-size: 18px; line-height: 26px; color: var(--bone); }
.steps li::before { content: counter(st, upper-roman); position: absolute; left: 0; top: 1px; width: 28px; font-family: var(--rubric); font-size: 13px; letter-spacing: .08em; color: var(--violet-text); }
.steps b { font-weight: 600; }
.glyph { display: inline-block; vertical-align: -2px; height: 18px; width: auto; color: var(--violet-text); font-weight: 400; letter-spacing: .05em; }
b.glyph { height: auto; vertical-align: 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--violet-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nowrap { white-space: nowrap; }
.terms .mono { font-family: var(--ledger); font-style: normal; font-size: .82em; letter-spacing: .04em; color: var(--bone); white-space: nowrap; }

/* portraits: the reader's chosen head from the plates, or the silhouette */
.pt { --pt: 40px; width: var(--pt); height: var(--pt); border-radius: 50%; overflow: hidden; display: inline-block; flex: none; background: var(--vault); box-shadow: 0 0 0 1px var(--smoke); vertical-align: middle; position: relative; }
.pt img, .pt svg { width: 100%; height: 100%; display: block; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.96); }
.pt::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), inset 0 -10px 18px rgba(0,0,0,.35); pointer-events: none; }
.me .pt { box-shadow: 0 0 0 1px var(--smoke); }
.who { flex-direction: row; align-items: flex-end; gap: var(--s4); }
.who .who-t { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; padding-bottom: 2px; }
.who > .pt { box-shadow: 0 0 0 1px var(--smoke), 0 0 0 4px var(--void), 0 0 0 5px var(--nave); }
.ptbtn { position: relative; padding: 0; flex: none; border-radius: 50%; }
.ptbtn .pt { box-shadow: 0 0 0 1px var(--smoke), 0 0 0 4px var(--void), 0 0 0 5px var(--nave); transition: box-shadow .2s; }
.ptbtn:hover .pt, .ptbtn:focus-visible .pt { box-shadow: 0 0 0 1px var(--violet-text), 0 0 0 4px var(--void), 0 0 0 5px var(--violet-wax); }
.ptbtn .pen { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); background: var(--void); border: 1px solid var(--nave); padding: 1px 8px; font-size: 9px; line-height: 15px; letter-spacing: .2em; color: var(--ash); white-space: nowrap; }
.ptprev { display: flex; align-items: center; gap: var(--s6); padding: var(--s2) 0 var(--s4); border-bottom: 1px solid var(--nave); }
.ptprev .pt.big { box-shadow: 0 0 0 1px var(--violet-text), 0 0 0 5px var(--crypt), 0 0 0 6px var(--violet-wax), var(--glow-faint); }
.ptcap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ptname { font-family: var(--liturgy); font-size: 28px; line-height: 32px; color: var(--bone); }
.ptgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 8px; padding: var(--s2) 0; justify-items: center; }
.pttile { padding: 3px; border-radius: 50%; line-height: 0; }
.pttile .pt { box-shadow: 0 0 0 1px var(--nave); transition: box-shadow .15s, filter .15s; }
.pttile[aria-pressed="false"] .pt img { filter: grayscale(1) brightness(.78); }
.pttile:hover .pt img { filter: grayscale(1) brightness(1); }
.pttile[aria-pressed="true"] .pt { box-shadow: 0 0 0 1px var(--violet-text), 0 0 0 3px var(--crypt), 0 0 0 4px var(--violet); }
.row .name .rp { --pt: 26px; margin-right: 10px; vertical-align: -6px; }
.row .sub .badge { vertical-align: -3px; margin-right: 6px; }

/* the badges of the orders */
.order .obadge { line-height: 0; }
.ladder { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: var(--s4) 0 var(--s2); margin-top: var(--s4); border-top: 1px solid var(--nave); }
.ladder span { line-height: 0; opacity: .3; transition: opacity .2s; }
.ladder span.on { opacity: 1; }
.ladder:hover span:not(.on) { opacity: .35; }
.cbadge { line-height: 0; animation: rise 2.4s ease-out both; }
.orders { display: flex; flex-direction: column; border-top: 1px solid var(--nave); }
.ord { display: grid; grid-template-columns: 44px 1fr; gap: var(--s4); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--nave); }
.ord > div { display: flex; flex-direction: column; gap: 2px; }
.ord .oname { font-family: var(--liturgy); font-size: 21px; line-height: 26px; color: var(--ash); }
.ord.on .oname { color: var(--bone); }
.ord.cur .oname { color: var(--violet-text); }
.ord:not(.on) .badge { opacity: .3; }

/* the header plate on Self, chosen from the Gallery */
.under { position: relative; }
.hdbtn { position: absolute; right: var(--s4); bottom: 72px; z-index: 2; background: rgba(0,0,0,.55); border: 1px solid var(--smoke); padding: 3px 10px; font-size: 9px; line-height: 15px; letter-spacing: .2em; color: var(--ash); }
.hdbtn:hover, .hdbtn:focus-visible { color: var(--bone); border-color: var(--ash); }
.hdprev { display: flex; flex-direction: column; gap: var(--s3); padding-bottom: var(--s4); border-bottom: 1px solid var(--nave); }
.hdview { height: 150px; }
.hdview img { object-position: 50% 100%; }
.hdgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hdtile { aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 1px solid var(--nave); line-height: 0; }
.hdtile img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.75); transition: filter .15s; }
.hdtile.flip img { transform: rotate(180deg); }
.hdtile:hover img { filter: brightness(1); }
.hdtile[aria-pressed="true"] { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), var(--glow-faint); }
.hdtile[aria-pressed="true"] img { filter: none; }

/* the infernal orders: medals, the ladder, the codex, rewards */
.order .obadge { line-height: 0; }
.olatin { font-family: var(--rubric); font-size: 10px; letter-spacing: .32em; color: var(--cinder); }
.lbno { color: #c9a45c; letter-spacing: .14em; }
.ladder { position: relative; flex-wrap: wrap; row-gap: var(--s2); }
.ladder span { filter: grayscale(1) brightness(.55); opacity: .5; }
.ladder span.on { filter: none; opacity: 1; }
.ladder span.cur { transform: scale(1.18); }
.ladder .lnote { flex-basis: 100%; filter: none; opacity: 1; font-size: 9px; letter-spacing: .24em; color: var(--cinder); text-align: center; line-height: 16px; }
.ladder:hover .lnote { color: var(--ash); }
.ord { grid-template-columns: 64px 1fr; align-items: start; padding: var(--s4) 0; }
.ord .om { line-height: 0; padding-top: 4px; }
.ord .om .badge { filter: none; }
.ord:not(.on) .om { filter: saturate(.55) brightness(.62); }
.ord:not(.on) .badge { opacity: 1; }
.ord .ot { display: flex; flex-direction: column; gap: 2px; }
.ord .oname { font-size: 24px; line-height: 28px; }
.olore { font-family: var(--liturgy); font-style: italic; font-size: 17px; line-height: 23px; color: var(--ash); margin: var(--s2) 0 var(--s1); }
.ord .ost { color: var(--cinder); }
.ord.cur .ost { color: var(--violet-text); }
.ogifts { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.ogifts span { font-family: var(--ledger); font-size: 11px; line-height: 16px; letter-spacing: .06em; color: #c9a45c; }
.ogifts span::before { content: "\2726  "; color: var(--violet-text); }
.ord:not(.on) .ogifts span { color: var(--smoke); }
.confer .olatin { margin-top: -8px; animation: rise 2.4s .6s ease-out both; }
.confer .olore { max-width: 30ch; text-align: center; animation: rise 2.4s 1s ease-out both; }
.confer .ogifts { align-items: center; animation: rise 2.4s 1.3s ease-out both; }
.confer .lbno { animation: rise 2.4s 1.4s ease-out both; }
.pttile { position: relative; }
.pttile.locked .pt img { filter: grayscale(1) brightness(.32) blur(.3px); }
.ptlock { position: absolute; right: -2px; bottom: -2px; line-height: 0; }
.ptprev .pt.sealed img { filter: grayscale(1) brightness(.4); }
.ptprev .opens { color: var(--violet-text); }
.ptgl { margin-top: var(--s2); }
#ptdone:disabled { opacity: .35; }
.seal.blood svg { filter: drop-shadow(0 0 12px rgba(179, 18, 31, .55)); }
.seal.gilt svg { filter: drop-shadow(0 0 12px rgba(201, 164, 92, .5)); }
.tone-violet .name, .headline.tone-violet { color: var(--violet-text); }
.tone-gilt .name, .headline.tone-gilt { color: #d9b770; }


/* ======================================================================
   Rubrication and gilt. Feasts, degrees and rubrics in the red of the old
   calendars; what the reader has kept in gilt; violet stays the one light.
   ====================================================================== */
.red, .rubric.red { color: var(--red); }
.tier i.on { background: var(--red); border-color: var(--red); }
.rite.sealed .tier i.on { background: var(--red-deep); border-color: var(--red-deep); }
::selection { background: var(--violet-deep); color: #fff; }

/* the initial, in blackletter and red, as a rubricator would have painted it */
.cap { font-family: "Unifraktur", var(--liturgy); font-weight: 400; color: var(--red); font-size: calc(92px * var(--rs)); line-height: calc(78px * var(--rs)); margin: 6px 12px 0 -2px; text-shadow: 0 0 22px rgba(194, 52, 62, .28); }

/* candlelight: a warm breath at the foot of every plate, invisible on the black */
.plate::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 70% at 50% 108%, var(--warm), transparent 62%), radial-gradient(90% 60% at 18% 0%, rgba(255, 190, 120, .05), transparent 70%); mix-blend-mode: soft-light; }
.tile .ghost + .rn, .tile img + .rn { position: relative; }

/* the seal pressed on a kept day */
.sealday { display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.sealday .dayseal { display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.sealday.stamp .dayseal { animation: stamp .62s cubic-bezier(.2, .9, .25, 1.2) both; }
.sealday.stamp .done { animation: rise 1s .45s ease-out both; }
@keyframes stamp { 0% { transform: scale(1.9) rotate(-14deg); opacity: 0; filter: blur(3px) drop-shadow(0 18px 18px rgba(0,0,0,.2)); } 55% { opacity: 1; filter: blur(0) drop-shadow(0 6px 10px rgba(0,0,0,.6)); } 72% { transform: scale(.94) rotate(2deg); } 100% { transform: scale(1) rotate(0); } }
.perform:has(.sealday) { min-height: 140px; }

/* the Almanac, set as a breviary kalendar */
.alm .coming { margin-top: var(--s3); }
.obs { grid-template-columns: 44px 1fr auto; gap: 2px var(--s4); padding: var(--s3) 0; align-items: center; }
.obs .th { grid-row: 1 / 3; width: 44px; height: 54px; overflow: hidden; background: var(--crypt); box-shadow: 0 0 0 1px var(--nave); line-height: 0; display: grid; place-items: center; }
.obs .th img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(.9) contrast(1.05); }
.obs .th.flip img { transform: rotate(180deg); }
.obs .th svg { width: 22px; height: 22px; }
.obs .n { color: var(--red); font-size: 24px; line-height: 28px; align-self: end; }
.obs .when { align-self: end; }
.obs .w { grid-column: 2 / 4; align-self: start; }
button.obs:hover .n { color: #e0505a; }
.calhead { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--s12); padding-bottom: var(--s3); border-bottom: 1px solid var(--nave); }
.months { gap: var(--s8) var(--s6); margin-top: var(--s6); }
.mh { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); }
.mh .mn { font-family: var(--liturgy); font-size: 25px; line-height: 28px; color: var(--bone); }
.mh .my { font-size: 9.5px; letter-spacing: .2em; color: var(--cinder); }
.mo > .rubric { display: none; }
.mgrid { gap: 2px; }
.mgrid .dow { aspect-ratio: auto; height: 16px; font-family: var(--rubric); font-size: 8px; letter-spacing: .1em; font-weight: 600; color: var(--smoke); }
.mgrid span, .mgrid button { font-family: var(--text); font-size: 13px; font-variant-numeric: lining-nums tabular-nums; color: var(--cinder); }
.mgrid button { color: var(--ash); }
.mgrid button:hover { color: var(--bone); background: var(--crypt); }
.mgrid .k { background: none; color: var(--gilt-hi); }
.mgrid .k::before, .mgrid .rf::before { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; transform: rotate(45deg); background: var(--gilt); }
.mgrid .rf { color: var(--ash); }
.mgrid .rf::before { background: none; border: 1px solid var(--ash); width: 3px; height: 3px; }
.mgrid .s { color: var(--red); font-weight: 600; }
.mgrid .s::after { display: none; }
.mgrid .s.k { color: var(--red); }
.mgrid .t { background: var(--violet); color: #fff; box-shadow: var(--glow-faint); }
.mgrid .t::before { background: #fff; }
.mgrid .b { outline: 1px solid var(--gilt-deep); outline-offset: -2px; }
.legend { gap: var(--s3) var(--s6); }
.legend i { width: 10px; height: 10px; display: inline-block; position: relative; }
.legend .lg-k { width: 6px; height: 6px; transform: rotate(45deg); background: var(--gilt); }
.legend .lg-rf { width: 5px; height: 5px; transform: rotate(45deg); border: 1px solid var(--ash); }
.legend .lg-t { background: var(--violet); }
.legend .lg-s { width: auto; height: auto; font-style: normal; font-family: var(--text); font-size: 13px; font-weight: 600; color: var(--red); }
.legend .lg-b { outline: 1px solid var(--gilt-deep); outline-offset: -1px; }

/* the Gallery: gilt for the collected, ghosts for the rest */
.galhead { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s6); }
.galhead .total small { font-size: 20px; }
.galbar { height: 2px; background: var(--nave); position: relative; overflow: hidden; }
.galbar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(to right, var(--gilt-deep), var(--gilt), var(--gilt-hi)); box-shadow: 0 0 8px rgba(201, 164, 92, .5); }
.grid { gap: 4px; }
.tile { background: #060507; }
.tile .ghost { opacity: .1; filter: blur(.6px) grayscale(1); animation: none; }
.tile.flip .ghost { transform: rotate(180deg); }
.tile .rn { position: relative; z-index: 1; font-size: 8.5px; color: var(--smoke); text-shadow: 0 0 6px #000; }
.tile.got { box-shadow: inset 0 0 0 1px var(--gilt), inset 0 0 0 3px #000, inset 0 0 0 4px var(--gilt-deep); }
.tile.got img { z-index: 0; }
.tile.got::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--gilt), inset 0 0 0 3px rgba(0,0,0,.85), inset 0 0 0 4px rgba(110, 84, 32, .9), inset 0 -18px 18px -10px rgba(0,0,0,.7); pointer-events: none; z-index: 1; }
.tile.got .rn { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; color: var(--gilt-hi); z-index: 2; }
.tile.missed { background: #060507; }
.tile.missed .ghost { opacity: .06; }
.tile.missed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - .6px), rgba(194, 52, 62, .55) 50%, transparent calc(50% + .6px)); pointer-events: none; }
.tile.missed .rn { color: var(--red-deep); }
.feastgrid .tile.got .cap2 { z-index: 2; }

/* ink: a screen arrives the way ink settles into paper */
@keyframes ink { from { opacity: 0; filter: blur(2.5px); transform: translateY(3px); } to { opacity: 1; filter: none; transform: none; } }
.view > section { animation: ink .55s ease-out both; }
.veil .sheet { animation: sheetup .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sheetup { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.entry-row[data-go=almanac] .sub { color: var(--red); }
.meta .red { color: var(--red); }

/* red marginal glosses, as in a glossed Bible */
.reading sup.gn { font-family: var(--rubric); font-size: 9.5px; font-weight: 700; line-height: 0; color: var(--red); margin-left: 1px; letter-spacing: .02em; vertical-align: super; }
.reading .gloss { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 14px; margin: calc(-1 * var(--s4)) 0 var(--s6); padding-top: 6px; border-top: 1px solid rgba(194, 52, 62, .22); font-family: var(--liturgy); font-style: italic; font-size: 14.5px; line-height: 20px; color: var(--red); text-align: right; }
.reading .gloss span { white-space: nowrap; }
.reading .gloss b { font-family: var(--rubric); font-style: normal; font-weight: 700; font-size: 9px; margin-right: 4px; vertical-align: 1px; }

/* the motto: the serpent's promise, Genesis 3:5 in the Vulgate */
.motto { font-family: var(--rubric); font-size: 10.5px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--red); }
.threshold .motto { margin-top: calc(-1 * var(--s3)); }
.colophon .motto { font-size: 9.5px; }

.bringurl { font-family: var(--ledger); font-size: 13px; line-height: 20px; letter-spacing: .02em; color: var(--bone); background: var(--vault); border-bottom: 1px solid var(--smoke); padding: 12px var(--s4); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.sealband { border-left-color: var(--red); }

/* the pact, as signed, under the signature on Self */
.seal:has(+ .instrument) { border-bottom: 0; padding-bottom: var(--s2); }
.instrument { display: flex; flex-direction: column; align-items: center; gap: var(--s3); text-align: center; padding: 0 var(--s2) var(--s6); border-bottom: 1px solid var(--nave); }
.instrument .terms { font-style: italic; font-size: 19px; line-height: 28px; color: var(--ash); text-wrap: pretty; }

/* the legal links: present, and as quiet as they can be */
.fineprint { display: flex; justify-content: center; gap: 22px; margin: var(--s6, 32px) 0 0; font-family: var(--rubric); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.fineprint a { color: var(--smoke); text-decoration: none; opacity: .7; }
.fineprint a:hover, .fineprint a:focus-visible { color: var(--ash); opacity: 1; }
.accept { margin: calc(var(--s2, 8px) * -1) 0 0; text-align: center; font-family: var(--liturgy); font-style: italic; font-size: 15px; line-height: 22px; color: var(--smoke); }
.accept a { color: inherit; text-decoration: underline; text-decoration-color: var(--nave); text-underline-offset: 3px; }
.accept a:hover, .accept a:focus-visible { color: var(--ash); }

/* switches: a row with a label, an optional hint and a little switch */
.rec.tog { align-items: center; cursor: pointer; }
.rec.tog .tl { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rec.tog .th { font-family: var(--liturgy); font-style: italic; font-size: 13.5px; line-height: 1.25; color: var(--smoke); }
.sw { position: relative; flex: none; width: 40px; height: 22px; border-radius: 11px; background: #17141b; border: 1px solid #3a3441; transition: background .25s, border-color .25s, box-shadow .25s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #6d6676; transition: transform .25s cubic-bezier(.3, .7, .3, 1), background .25s; }
.rec.tog[aria-checked="true"] .sw { background: rgba(148, 0, 255, .22); border-color: var(--violet); box-shadow: 0 0 12px rgba(148, 0, 255, .35); }
.rec.tog[aria-checked="true"] .sw::after { transform: translateX(18px); background: #e4d3ff; }
.rec.tog:focus-visible .sw { outline: 2px solid var(--violet); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .sw, .sw::after { transition: none; } }

/* plate credits, quieter */
.caption .t { font-size: 14px; line-height: 18px; color: var(--smoke); }
.caption .meta { font-size: 10.5px; opacity: .65; }
.caption .no { font-size: 9px; opacity: .65; }
