:root {
  --paper: #f3ecdc;
  --ink: #2b2b2b;
  --display: "Libre Caslon Display", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --text: "Libre Caslon Text", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --measure: 68rem;
  --page-pad: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.45;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  overflow-x: clip;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.4rem 0.7rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  transform: translateY(-150%);
  z-index: 2;
}

.skip:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.paper {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.15rem var(--page-pad) 2.25rem;
}

.masthead h1 a {
  color: inherit;
  text-decoration: none;
}

.masthead h1 a:hover,
.masthead h1 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.masthead h1 {
  margin: 0.35rem 0 0.05rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.45rem, 11.2vw, 3.35rem);
  line-height: 0.92;
  letter-spacing: 0.015em;
  text-align: center;
  text-wrap: balance;
  max-width: 8.2em;
  margin-inline: auto;
}

.motto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.28rem auto 0.4rem;
  max-width: 40rem;
  font-style: italic;
  font-size: clamp(0.98rem, 3.6vw, 1.22rem);
  line-height: 1.25;
  text-align: center;
}

.motto::before,
.motto::after {
  content: "";
  height: 1px;
  background: var(--ink);
  flex: 1 1 1.25rem;
  max-width: 6.5rem;
}

.motto span {
  flex: 0 1 auto;
}

.edition {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.3rem 0.85rem;
  margin: 0.15rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: lining-nums;
}

.edition time {
  flex: 1 0 100%;
  order: -1;
  text-align: center;
  letter-spacing: 0.08em;
}

.ticker {
  position: relative;
  max-width: 100%;
  margin: 0.2rem 0 0.05rem;
  border-top: 1px solid var(--ink);
  overflow: hidden;
  contain: inline-size;
}

.ticker-viewport {
  max-width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.ticker-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.ticker-viewport:focus-visible {
  outline-offset: 1px;
}

.ticker-marquee {
  display: flex;
  width: max-content;
  flex-wrap: nowrap;
}

.ticker-marquee.is-loop {
  animation: ticker-scroll var(--ticker-duration, 40s) linear infinite;
}

.ticker-marquee.is-driven {
  animation: none;
}

.ticker:hover .ticker-marquee,
.ticker-viewport:focus-within .ticker-marquee {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-track {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 1.35rem;
  width: max-content;
  margin: 0;
  padding: 0.32rem 1.35rem 0.28rem 0;
  list-style: none;
  font-size: 0.8rem;
  line-height: 1.2;
  font-variant-numeric: lining-nums tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-marquee,
  .ticker-marquee.is-loop {
    animation: none;
    transform: none;
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ticker-clone {
    display: none;
  }

  .ticker-track {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding-right: 0;
    row-gap: 0.2rem;
  }
}

.tick {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

.tick-sym {
  letter-spacing: 0.14em;
  text-decoration: none;
  color: inherit;
}

a.tick-sym:hover,
a.tick-sym:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.tick-px,
.tick-chg {
  letter-spacing: 0.03em;
}

.tick-chg.is-up {
  color: #245c38;
}

.tick-chg.is-down {
  color: #8a332c;
}

.rule {
  box-sizing: content-box;
  height: 0;
  margin: 0.45rem 0;
  border: 0;
  border-top: 1px solid var(--ink);
  background: transparent;
}

.rule.double {
  height: 3px;
  border-bottom: 1px solid var(--ink);
}

.front {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.15rem;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-width: 0;
}

.holysee,
.novena {
  min-width: 0;
  border: 4px double var(--ink);
  padding: 0.95rem 1rem 1.05rem;
}

.holysee-kicker {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.holysee h2,
.novena h2 {
  margin: 0.2rem 0 0.65rem;
  text-align: center;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.05;
}

.holysee-date {
  margin: 0 0 0.7rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: lining-nums;
}

.holysee-text,
.novena-text {
  margin: 0;
  font-family: var(--text);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.45;
}

.holysee-link {
  display: block;
  margin: 0.9rem 0 0;
  text-align: right;
  font-family: var(--text);
}

.holysee-link a,
.holysee-fallback a {
  color: inherit;
}

.holysee-fallback {
  margin: 0.4rem 0 0;
  text-align: center;
}

.games h2,
.publications h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1;
}

.publications {
  background: var(--ink);
  color: var(--paper);
  width: 100vw;
  margin-top: clamp(4.5rem, 11vw, 7.5rem);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 1.5rem 0 1.45rem;
  overflow: hidden;
}

.pub-inset {
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: var(--page-pad, 1rem);
}

.pub-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 0.85rem;
}

.publications h2 {
  margin: 0;
  padding: 0;
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  text-align: left;
  white-space: nowrap;
  border: 0;
}

.pub-head hr {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--paper);
  background: transparent;
}

.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.pub-row {
  overflow: visible;
  border: 0;
}

.pub-row + .pub-row {
  margin-top: 0.45rem;
}

.pub-line {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.7em;
  width: max-content;
  margin: 0;
  padding: 0.2rem 0;
  border: 0;
  position: relative;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.65rem, 5.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pub-echo-left {
  position: absolute;
  top: 0.2rem;
  right: calc(100% + 0.7em);
  margin: 0;
}

.pub-echo {
  color: var(--paper);
  opacity: 0.2;
  pointer-events: none;
  user-select: none;
  transition: opacity 200ms ease-out;
}

.pub {
  position: relative;
  color: var(--paper);
  text-decoration: none;
  transform-origin: left center;
  transition: transform 200ms ease-out;
}

.pub:hover,
.pub:focus,
.pub:focus-visible,
.pub:active,
.pub:visited {
  text-decoration: none;
}

.pub:hover,
.pub:focus-visible {
  transform: scale(1.03);
}

.pub-row:hover .pub-echo,
.pub-row:focus-within .pub-echo {
  opacity: 0.46;
}

.pub:focus-visible {
  outline: none;
}

.pub:focus-visible::before {
  content: "";
  position: absolute;
  right: calc(100% + 0.18em);
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.22em 0 0.22em 0.32em;
  border-color: transparent transparent transparent var(--paper);
  transform: translateY(-50%);
}

@media (prefers-reduced-motion: no-preference) {
  .js .pub-line {
    transition: none;
    will-change: transform;
  }

  .js .pub-row:nth-child(odd) .pub-line {
    transform: translate3d(-28vw, 0, 0);
  }

  .js .pub-row:nth-child(even) .pub-line {
    transform: translate3d(28vw, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pub-line,
  .js .pub-row:nth-child(odd) .pub-line,
  .js .pub-row:nth-child(even) .pub-line {
    transform: none;
    transition: none;
  }

  .pub,
  .pub-echo {
    transition: none;
  }

  .pub:hover,
  .pub:focus-visible {
    transform: none;
  }
}

.games-box {
  border: 4px double var(--ink);
  padding: 0.95rem 0.85rem 1rem;
}

.games h2 {
  text-align: center;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--ink);
}

.games-deck {
  margin: 0.7rem 0 0;
  text-align: center;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.35;
}

.puzzles {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.puzzles a,
.puzzles button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 4.6rem;
  padding: 0.65rem 0.45rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.puzzles a:hover,
.puzzles a:focus-visible {
  background-color: rgba(43, 43, 43, 0.06);
}

.puzzles a.is-started {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 5px,
    rgba(43, 43, 43, 0.28) 5px,
    rgba(43, 43, 43, 0.28) 6px
  );
  color: var(--ink);
}

.puzzles a.is-started .puzzle-label {
  background: var(--paper);
  padding: 0.12rem 0.42rem 0.16rem;
}

.puzzles a.is-started .puzzle-name {
  font-weight: 650;
}

.puzzles a.is-done {
  position: relative;
  background: var(--ink);
  color: var(--paper);
}

.puzzles a.is-done:hover,
.puzzles a.is-done:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline-color: var(--paper);
}

.done-mark {
  position: absolute;
  top: 0.28rem;
  right: 0.38rem;
  color: var(--paper);
  font-size: 0.85rem;
  line-height: 1;
}

.puzzles button:disabled {
  opacity: 1;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  cursor: default;
}

.puzzle-label {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.puzzle-name {
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.15;
}

.puzzle-soon {
  margin-top: 0.28rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.colophon {
  margin-top: 2.6rem;
  padding-bottom: 0.35rem;
  text-align: center;
  color: var(--ink);
  font-family: var(--text);
}

.colophon .rule {
  margin-bottom: 1rem;
}

.colophon-name {
  margin: 0;
  font-size: 0.78rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.colophon-motto {
  margin: 0.4rem 0 0;
  font-style: italic;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.colophon-copy {
  margin: 0.7rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#publications,
#games {
  scroll-margin-top: 0.75rem;
}

@media (min-width: 720px) {
  :root {
    --page-pad: 1.75rem;
  }

  .paper {
    padding: 1.75rem var(--page-pad) 2.75rem;
  }

  .edition time {
    flex: 1 1 auto;
    order: 0;
  }

  .puzzles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  :root {
    --page-pad: 2.15rem;
  }

  .paper {
    padding: 2rem var(--page-pad) 3.25rem;
  }

  .masthead h1 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(3.15rem, 4.85vw, 4.45rem);
    letter-spacing: 0.028em;
    margin-top: 0.4rem;
  }

  .motto {
    margin-top: 0.3rem;
    font-size: 1.28rem;
  }

  .motto::before,
  .motto::after {
    max-width: 8.5rem;
  }

  .front {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 1.7rem;
    align-items: start;
  }

  .holysee {
    grid-column: span 3;
  }

  .novena {
    grid-column: 1 / -1;
  }

  .rail {
    grid-column: span 1;
    width: auto;
    margin-left: 0;
    border-left: 1px solid var(--ink);
    padding-left: 1.35rem;
  }

  .puzzles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 359px) {
  :root {
    --page-pad: 0.75rem;
  }

  .paper {
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
  }

  .puzzles {
    grid-template-columns: 1fr;
  }

  .masthead h1 {
    font-size: 2.15rem;
    max-width: 9em;
  }
}

@media (forced-colors: active) {
  .motto::before,
  .motto::after {
    background: CanvasText;
  }

  .pub:focus-visible::before {
    border-left-color: CanvasText;
  }

  .tick-chg.is-up,
  .tick-chg.is-down {
    color: CanvasText;
  }
}

@media print {
  .skip {
    display: none;
  }

  body {
    background: #fff;
  }

  .paper {
    max-width: none;
    padding: 0;
  }

  a {
    text-decoration: none;
  }
}
