/* Styles for the pages the server writes: saved readings, confirmations, privacy and terms. */
@font-face {
  font-family: "IM Fell English";
  src: url("/fonts/im-fell-english-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url("/fonts/im-fell-english-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #170d19;
  --plum: #22132a;
  --bone: #ecdfc6;
  --dim: #b9a793;
  --gold: #d9a95b;
  --gold-bright: #efc888;
  --line: rgba(236, 223, 198, 0.2);
  --display: "IM Fell English", "Iowan Old Style", Palatino, Georgia, serif;
  --text: "EB Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --edge: clamp(20px, 5vw, 72px);
  color-scheme: dark;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(90, 22, 38, 0.5), transparent 70%),
    var(--night);
  background-repeat: no-repeat;
  color: var(--bone);
  font-family: var(--text);
  font-size: 1.25rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ol,
figure {
  margin: 0;
  padding: 0;
}

a {
  color: var(--bone);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

.top {
  padding: 22px var(--edge) 0;
}

.brand {
  font-family: var(--display);
  font-size: 1.75rem;
  text-decoration: none;
}

main {
  padding: 0 var(--edge);
}

.button {
  display: inline-block;
  background: var(--gold);
  color: var(--night);
  border: 0;
  border-radius: 999px;
  padding: 0.72em 1.6em;
  min-height: 48px;
  font: 500 1.125rem var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.button:hover {
  background: var(--gold-bright);
}

/* ---- a saved reading ---- */

.reading {
  max-width: 43rem;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 88px) 0 64px;
}

.when {
  font-style: italic;
  color: var(--dim);
  text-align: center;
}

.reading h1 {
  margin-top: 0.5rem;
  font: 400 clamp(2.6rem, 7vw, 4.5rem) / 1.02 var(--display);
  text-align: center;
  text-wrap: balance;
}

.question {
  margin-top: 1.2rem;
  text-align: center;
  font: italic 400 1.5rem/1.35 var(--display);
  color: var(--gold-bright);
  text-wrap: balance;
}

.opening {
  margin-top: 1.6rem;
  text-align: center;
  font-size: 1.375rem;
  line-height: 1.5;
}

.spread {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 30px);
  margin: clamp(36px, 7vw, 64px) 0;
}

.spread li {
  flex: 0 1 12.5rem;
  animation: deal 1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: calc(var(--i) * 0.16s + 0.2s);
}

.spread li:nth-child(odd) .card {
  rotate: -1.4deg;
}

.spread li:nth-child(even) .card {
  rotate: 1.1deg;
}

@keyframes deal {
  from {
    opacity: 0;
    translate: 0 46px;
    rotate: 5deg;
  }
}

.card {
  border-radius: 4.5% / 2.7%;
  overflow: hidden;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.5),
    0 18px 38px -8px rgba(0, 0, 0, 0.75),
    0 0 60px rgba(217, 169, 91, 0.1);
}

.card img {
  display: block;
  width: 100%;
  height: auto;
}

.card.reversed img {
  rotate: 180deg;
}

figcaption {
  margin-top: 1rem;
  text-align: center;
  line-height: 1.25;
}

figcaption em,
figcaption strong,
figcaption span {
  display: block;
}

figcaption em {
  font-size: 0.9375rem;
  color: var(--dim);
}

figcaption strong {
  font: 400 clamp(1.0625rem, 2.6vw, 1.375rem) var(--display);
}

figcaption span {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--gold);
}

.passage {
  margin-top: 2rem;
}

.passage h2 {
  font: 400 1.625rem/1.2 var(--display);
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.passage h2 em {
  font-size: 1.125rem;
}

.whole {
  margin-top: 2.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.guidance {
  margin-top: 1.1rem;
  font: italic 400 1.5625rem/1.4 var(--display);
  color: var(--gold-bright);
}

.pending {
  text-align: center;
  color: var(--dim);
  font-style: italic;
}

.again {
  margin-top: 2.8rem;
  text-align: center;
}

/* ---- larger spreads, follow-ups ---- */

.spread.many {
  flex-wrap: wrap;
  gap: 14px;
}

.spread.many li {
  flex: 0 1 6.6rem;
}

.spread.many figcaption em,
.spread.many figcaption span {
  font-size: 0.8125rem;
}

.spread.many figcaption strong {
  font-size: 0.9375rem;
}

.place {
  font-style: italic;
  color: var(--dim);
  font-size: 1.0625rem;
}

.follow {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.follow h2 {
  font: italic 400 1.5rem/1.3 var(--display);
  color: var(--gold-bright);
  margin-bottom: 0.4rem;
}

/* ---- journal and plans ---- */

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.top-link {
  font-size: 1.125rem;
}

.journal,
.upgrade {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 88px) 0 72px;
}

.journal h1,
.upgrade h1 {
  font: 400 clamp(2.6rem, 7vw, 4.25rem) / 1 var(--display);
  margin-bottom: 1.2rem;
}

.journal h2,
.upgrade h2 {
  font: 400 1.75rem/1.2 var(--display);
  color: var(--gold);
  margin: 2.6rem 0 0.8rem;
}

.journal h3 {
  font: 400 1.25rem/1.3 var(--display);
  margin: 1.6rem 0 0.6rem;
  color: var(--dim);
}

.journal .lede,
.upgrade .lede {
  font-size: 1.375rem;
  line-height: 1.5;
  margin-bottom: 1.6rem;
}

.welcome {
  color: var(--gold-bright);
  font-style: italic;
}

.facts,
.suits,
.repeat,
.entries,
.includes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2.4rem;
  margin-bottom: 1rem;
}

.facts strong {
  font: 400 2.25rem/1 var(--display);
  color: var(--bone);
  margin-right: 0.3rem;
  font-variant-numeric: tabular-nums;
}

.suits {
  margin-top: 1rem;
  display: grid;
  gap: 0.35rem;
}

.suits li {
  display: grid;
  grid-template-columns: 9rem 1fr 2rem;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.0625rem;
}

.suits i {
  height: 6px;
  width: var(--w);
  min-width: 2px;
  background: var(--gold);
  border-radius: 3px;
}

.suits b {
  font-weight: 400;
  color: var(--dim);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.repeat {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.8rem;
}

.repeat li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1.25;
}

.repeat em {
  display: block;
  color: var(--dim);
  font-size: 0.9375rem;
}

.thumb {
  display: inline-block;
  width: 2.5rem;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  flex: none;
}

.thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.thumb.reversed img {
  rotate: 180deg;
}

.entries li + li {
  border-top: 1px solid var(--line);
}

.entries a {
  display: block;
  padding: 1.1rem 0;
  text-decoration: none;
  line-height: 1.35;
}

.entries a:hover strong {
  color: var(--gold-bright);
}

.entries .when {
  display: block;
  font-size: 0.9375rem;
  color: var(--dim);
}

.entries strong {
  display: block;
  font: 400 1.5rem/1.25 var(--display);
}

.entries em {
  display: block;
  color: var(--dim);
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.6rem;
}

.thumbs .thumb {
  width: 1.9rem;
}

.account,
.signin {
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.signin label {
  display: block;
  font-style: italic;
  color: var(--dim);
}

.signin .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.3rem;
}

.signin input {
  flex: 1 1 13rem;
  min-height: 48px;
  background: rgba(10, 4, 11, 0.55);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  color: var(--bone);
  font: inherit;
}

.signin button,
.linkish {
  font: inherit;
  cursor: pointer;
}

.signin button {
  background: var(--gold);
  color: var(--night);
  border: 0;
  border-radius: 999px;
  padding: 0.6em 1.4em;
  min-height: 48px;
  font-weight: 500;
}

.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.status {
  min-height: 1.6em;
  margin-top: 0.7rem;
  color: var(--gold-bright);
}

.includes li {
  padding: 0.55rem 0 0.55rem 1.6rem;
  position: relative;
  border-top: 1px solid var(--line);
}

.includes li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.25rem;
  width: 7px;
  height: 7px;
  rotate: 45deg;
  background: var(--gold);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 18px;
  margin-top: 2rem;
}

.plan {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem;
  background: rgba(34, 19, 42, 0.6);
}

.plan h2 {
  margin-top: 0;
}

.price {
  font: 400 3rem/1 var(--display);
  margin-bottom: 1.2rem;
}

.price span {
  font: 400 1.125rem var(--text);
  color: var(--dim);
}

.saving {
  margin: -0.6rem 0 1.2rem;
  color: var(--gold-bright);
  font-style: italic;
}

.soon {
  margin-top: 2rem;
  font: italic 400 1.5rem/1.4 var(--display);
  color: var(--gold-bright);
}

.fine {
  font-size: 0.9375rem;
  color: var(--dim);
}

/* ---- header links, reading tools, invitation, birth card ---- */

/* The menu is the same on every page as on the home page: same items, order, size and underline. */
.top {
  padding: max(18px, env(safe-area-inset-top)) var(--edge) 0;
}

.top .brand {
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--bone);
}

.top-links {
  display: flex;
  align-items: baseline;
  gap: clamp(0.8rem, 2.4vw, 1.8rem);
  font-size: 1.125rem;
  white-space: nowrap;
}

.top-links a,
.top-links .linkish {
  display: inline-block;
  padding: 10px 2px;
  min-height: 44px;
  color: var(--bone);
  font-family: var(--text);
  font-size: inherit;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}

.top-links a:hover,
.top-links .linkish:hover {
  color: var(--gold-bright);
}

@media (max-width: 560px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-links {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.9375rem;
  }

  .top-links a,
  .top-links .linkish {
    min-height: 40px;
    padding: 6px 0;
  }
}

.tools {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.8rem;
}

.tools .linkish {
  min-height: 44px;
}

.invite {
  margin-top: 2rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(34, 19, 42, 0.6);
}

.invite h2 {
  font: 400 1.75rem/1.2 var(--display);
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.invite-link {
  width: min(100%, 24rem);
  min-height: 48px;
  margin: 0.9rem 0.6rem 0.6rem 0;
  background: rgba(10, 4, 11, 0.55);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  color: var(--bone);
  font: inherit;
  font-size: 1rem;
}

.birth {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2rem 1.6rem;
}

.birth figure {
  margin: 0 0 0.9rem;
  text-align: center;
}

.birth .card {
  max-width: 13rem;
  margin: 0 auto 0.8rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.birth .card img {
  display: block;
  width: 100%;
  height: auto;
}

.birth figcaption em,
.birth figcaption strong {
  display: block;
}

.birth figcaption em {
  color: var(--dim);
  font-size: 0.9375rem;
}

.birth figcaption strong {
  font: 400 1.5rem/1.2 var(--display);
}

.keep {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  margin-top: 0.6rem;
  font-style: normal !important;
}

.keep input {
  flex: none !important;
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0 !important;
  padding: 0;
  accent-color: var(--gold);
}

.how {
  margin-top: 1.8rem;
  color: var(--dim);
  font-size: 0.9375rem;
}

/* ---- morning readings ---- */

.letter {
  position: relative;
  max-width: 68rem;
  margin: 0 auto 56px;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  min-height: 27rem;
  display: flex;
  align-items: flex-end;
}

.letter-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 50%;
  z-index: -2;
}

.letter::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgba(23, 13, 25, 0.93) 0%, rgba(23, 13, 25, 0.72) 42%, rgba(23, 13, 25, 0.05) 78%);
}

.letter-body {
  max-width: 31rem;
  padding: clamp(28px, 5vw, 56px);
}

.letter h2 {
  font: 400 clamp(2rem, 4.6vw, 3rem) / 1.05 var(--display);
  margin-bottom: 0.7rem;
}

.subscribe {
  margin-top: 1.3rem;
}

.subscribe label {
  display: block;
  font-style: italic;
  color: var(--dim);
}

.subscribe .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.25rem;
}

.subscribe input {
  flex: 1 1 13rem;
  min-height: 48px;
  background: rgba(10, 4, 11, 0.55);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  color: var(--bone);
  font: inherit;
}

.subscribe input:focus {
  outline: none;
  border-color: var(--gold-bright);
}

.subscribe button {
  flex: 1 1 auto;
  background: var(--gold);
  color: var(--night);
  border: 0;
  border-radius: 999px;
  padding: 0.6em 1.4em;
  min-height: 48px;
  font: 500 1.125rem var(--text);
  cursor: pointer;
}

.subscribe button:disabled {
  opacity: 0.6;
}

.subscribe .status {
  min-height: 1.6em;
  margin-top: 0.8rem;
  color: var(--gold-bright);
}

.subscribe .fine {
  font-size: 0.9375rem;
  color: var(--dim);
}

.subscribe.done label,
.subscribe.done .row,
.subscribe.done .fine {
  display: none;
}

/* ---- short messages, privacy, terms ---- */

.message {
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(64px, 16vh, 150px) 0 96px;
  text-align: center;
}

.message h1 {
  font: 400 clamp(2.4rem, 6.5vw, 4rem) / 1.04 var(--display);
  text-wrap: balance;
  margin-bottom: 1.2rem;
}

.message p,
.message form {
  margin-top: 1.4rem;
}

.legal {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 88px) 0 72px;
}

.legal h1 {
  font: 400 clamp(2.6rem, 7vw, 4.25rem) / 1 var(--display);
  margin-bottom: 1.4rem;
}

.legal h2 {
  font: 400 1.625rem/1.2 var(--display);
  color: var(--gold);
  margin: 2.2rem 0 0.4rem;
}

.legal p + p {
  margin-top: 0.9rem;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 28px var(--edge) 40px;
  font-size: 1rem;
  color: var(--dim);
  text-align: center;
}

.foot a {
  color: var(--dim);
  margin: 0 0.6em;
}

@media (max-width: 640px) {
  body {
    font-size: 1.125rem;
  }

  .letter::after {
    background: linear-gradient(to top, rgba(23, 13, 25, 0.97) 0%, rgba(23, 13, 25, 0.86) 55%, rgba(23, 13, 25, 0.25) 100%);
  }

  .letter {
    min-height: 34rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Other ways of asking: rune stones, hexagrams, numbers ---- */

.card.stone,
.card.numeral,
.card.hexagram {
  aspect-ratio: 560 / 939;
  display: grid;
  place-items: center;
}

.card.stone {
  aspect-ratio: 4 / 5;
  margin: 12% 6%;
  border-radius: 46% 54% 50% 50% / 42% 44% 56% 58%;
  background:
    radial-gradient(120% 90% at 30% 18%, rgba(255, 244, 220, 0.2), transparent 55%),
    radial-gradient(90% 80% at 70% 90%, rgba(0, 0, 0, 0.55), transparent 60%),
    linear-gradient(155deg, #5b5148, #2c2622 62%, #1a1614);
  box-shadow:
    inset 0 2px 3px rgba(255, 240, 215, 0.22),
    inset 0 -10px 22px rgba(0, 0, 0, 0.6),
    0 22px 30px -10px rgba(0, 0, 0, 0.8);
}

.card.stone span {
  font-family: "Noto Sans Runic", "Segoe UI Historic", "Apple Symbols", "Segoe UI Symbol", sans-serif;
  font-size: clamp(3rem, 11vw, 5.6rem);
  line-height: 1;
  color: #1a120c;
  /* carved: dark cut, a lit lower lip, and gold leaf rubbed into the groove */
  text-shadow:
    0 1px 0 rgba(255, 236, 200, 0.35),
    0 -1px 1px rgba(0, 0, 0, 0.9),
    0 0 14px rgba(239, 200, 136, 0.35);
  -webkit-text-stroke: 1px rgba(217, 169, 91, 0.75);
}

.card.stone.reversed span {
  rotate: 180deg;
}

.card.numeral,
.card.hexagram {
  background:
    radial-gradient(90% 60% at 50% 30%, rgba(217, 169, 91, 0.16), transparent 70%),
    linear-gradient(170deg, #2e1a36, #170d19);
  outline: 1px solid rgba(217, 169, 91, 0.55);
  outline-offset: -9px;
}

.card.numeral span {
  font-family: var(--display);
  font-size: clamp(3.4rem, 12vw, 6.5rem);
  line-height: 1;
  color: var(--gold-bright);
  text-shadow: 0 0 30px rgba(217, 169, 91, 0.45);
}

.card.hexagram {
  grid-template-rows: repeat(6, 1fr);
  place-items: stretch;
  gap: 5.5%;
  padding: 30% 20%;
}

.hexagram i {
  display: block;
  border-radius: 2px;
  background: linear-gradient(#f3d6a0, #c8944a);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.hexagram i.yin {
  background:
    linear-gradient(90deg, transparent 42%, #20122a 42%, #20122a 58%, transparent 58%),
    linear-gradient(#f3d6a0, #c8944a);
  background: linear-gradient(90deg, #dcae66 0 42%, transparent 42% 58%, #dcae66 58% 100%);
  box-shadow: none;
}

.hexagram i.moving {
  filter: drop-shadow(0 0 7px rgba(255, 214, 140, 0.95)) brightness(1.2);
  animation: moving-line 2.4s ease-in-out infinite;
}

@keyframes moving-line {
  50% {
    opacity: 0.55;
  }
}

.thumb.glyph {
  display: grid;
  place-items: center;
  aspect-ratio: 56 / 94;
  background: linear-gradient(170deg, #2e1a36, #170d19);
  outline: 1px solid rgba(217, 169, 91, 0.4);
  outline-offset: -2px;
  color: var(--gold-bright);
  font-family: "Noto Sans Runic", "Segoe UI Historic", "Apple Symbols", var(--display);
  font-size: 1.05rem;
}

.doors {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: clamp(18px, 3vw, 34px) clamp(14px, 2.5vw, 26px);
  margin: 2.6rem 0;
  padding: 0;
}

.doors a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.doors .card {
  transition:
    translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.35s;
}

.doors a:hover .card,
.doors a:focus-visible .card {
  translate: 0 -8px;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.5),
    0 28px 44px -10px rgba(0, 0, 0, 0.85),
    0 0 70px rgba(217, 169, 91, 0.28);
}

.doors .card.stone {
  margin: 29% 6% 28.7%; /* the stone stands as tall in its row as a card does */
}

.doors h2 {
  margin-top: 1rem;
  font-size: 1.3rem;
}

.doors p {
  margin-top: 0.3rem;
  color: var(--dim);
  font-size: 0.975rem;
  line-height: 1.4;
}

.ways {
  max-width: 62rem;
}

.cast textarea {
  flex: 1 1 100%;
  background: rgba(10, 4, 11, 0.55);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: var(--bone);
  font: inherit;
  resize: vertical;
}

.cast label + .row {
  margin-bottom: 1rem;
}

.cast input[type="date"] {
  color-scheme: dark;
}

.cast .fine {
  color: var(--dim);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.cast.busy button {
  opacity: 0.6;
  pointer-events: none;
}

.cast .status:empty {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hexagram i.moving {
    animation: none;
  }
  .doors .card {
    transition: none;
  }
}

/* ================= The journal: a page to be looked at ================= */

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.bare main {
  padding: 0;
}

body.bare .top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
}

.jr {
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  overflow: clip;
}

.jr h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.02;
  color: var(--gold-bright);
  text-wrap: balance;
}

.jr-heading {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.jr-heading p {
  margin-top: 0.7rem;
  color: var(--dim);
}

.jr-heading strong {
  color: var(--bone);
  font-weight: 500;
}

.jr > section {
  padding: clamp(64px, 11vw, 140px) var(--edge) 0;
}

/* things rise into place as they are scrolled to */
.js .jr .reveal {
  opacity: 0;
  translate: 0 34px;
  transition: opacity 1.1s var(--ease), translate 1.1s var(--ease);
}

.js .jr .reveal.in {
  opacity: 1;
  translate: 0 0;
}

/* ---- opening scene ---- */

.jr-hero {
  position: relative;
  min-height: min(100svh, 62rem);
  display: grid;
  align-items: center;
  padding: 110px var(--edge) clamp(90px, 16vh, 170px);
  isolation: isolate;
  overflow: hidden;
}

.jr-scene {
  position: absolute;
  inset: -4%;
  z-index: -2;
  translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -10px + var(--scroll, 0) * 90px);
  transition: translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.jr-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 60%;
  animation: jr-breathe 26s ease-in-out infinite alternate;
}

@keyframes jr-breathe {
  from {
    scale: 1;
    filter: brightness(0.92);
  }
  to {
    scale: 1.08;
    filter: brightness(1.05);
  }
}

.jr-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(23, 13, 25, 0.9) 0%, rgba(23, 13, 25, 0.55) 38%, rgba(23, 13, 25, 0) 66%),
    linear-gradient(to top, var(--night) 0%, rgba(23, 13, 25, 0.5) 22%, rgba(23, 13, 25, 0) 48%),
    linear-gradient(to bottom, rgba(23, 13, 25, 0.7) 0%, rgba(23, 13, 25, 0) 20%);
}

.jr-motes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.jr-title {
  max-width: 40rem;
}

.jr-tonight {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-style: italic;
  color: var(--dim);
  animation: jr-fade 1.4s 0.2s both;
}

.moon {
  width: 1.35em;
  height: 1.35em;
  flex: none;
  filter: drop-shadow(0 0 6px rgba(239, 200, 136, 0.55));
}

.moon-dark {
  fill: rgba(236, 223, 198, 0.1);
  stroke: rgba(236, 223, 198, 0.3);
  stroke-width: 0.6;
}

.moon-lit {
  fill: #f4e3bd;
}

.jr-hero h1 {
  margin-top: 0.4rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.6rem, 9.5vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.015em;
  color: var(--bone);
  text-shadow: 0 2px 40px rgba(10, 4, 11, 0.8);
}

.jr-hero h1 .word {
  display: inline-block;
  white-space: nowrap;
}

.jr-hero h1 i {
  display: inline-block;
  font-style: normal;
  animation: jr-letter 1.3s calc(var(--i) * 0.055s + 0.35s) cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes jr-letter {
  from {
    opacity: 0;
    translate: 0 0.5em;
    rotate: 7deg;
    filter: blur(6px);
  }
}

@keyframes jr-fade {
  from {
    opacity: 0;
  }
}

.jr-hero .lede {
  margin-top: 1.2rem;
  max-width: 30rem;
  font-size: 1.3125rem;
  animation: jr-fade 1.6s 1.2s both;
}

.jr-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 26px;
  height: 44px;
  margin-left: -13px;
  border: 1px solid rgba(236, 223, 198, 0.45);
  border-radius: 14px;
  animation: jr-fade 1.6s 2s both;
}

.jr-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold-bright);
  animation: jr-cue 2.2s ease-in-out infinite;
}

@keyframes jr-cue {
  60% {
    translate: 0 16px;
    opacity: 0;
  }
  100% {
    translate: 0 0;
    opacity: 0;
  }
}

/* ---- the sky ---- */

.jr > .jr-sky {
  position: relative;
  padding-bottom: clamp(20px, 4vw, 50px);
}

.jr-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.jr-sky .jr-heading {
  position: relative;
}

.jr-chart {
  position: relative;
  height: clamp(300px, 46vw, 520px);
  max-width: 78rem;
  margin: 1rem auto 0;
}

.jr-chart::before {
  /* a faint band of light across the sky */
  content: "";
  position: absolute;
  inset: 10% -10%;
  background: radial-gradient(ellipse 60% 42% at 50% 50%, rgba(122, 52, 96, 0.34), rgba(217, 169, 91, 0.06) 55%, transparent 72%);
  rotate: -7deg;
  filter: blur(8px);
}

.jr-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.jr-chart polyline {
  fill: none;
  stroke: rgba(239, 200, 136, 0.5);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  /* with a non-scaling stroke the dashes are measured in screen pixels, so one dash longer than any line will do */
  stroke-dasharray: 9000;
  stroke-dashoffset: 9000;
  transition: stroke-dashoffset 7s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.jr-sky.in polyline,
html:not(.js) .jr-chart polyline {
  stroke-dashoffset: 0;
}

.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  display: grid;
  place-items: center;
  text-decoration: none;
  opacity: 0;
  scale: 0.2;
  transition: opacity 0.9s calc(var(--i) * 0.11s + 0.5s), scale 0.9s calc(var(--i) * 0.11s + 0.5s) cubic-bezier(0.2, 1.6, 0.4, 1);
}

.jr-sky.in .star,
html:not(.js) .star {
  opacity: 1;
  scale: 1;
}

.star::before {
  content: "";
  width: calc(var(--s) * 13px);
  height: calc(var(--s) * 13px);
  background: radial-gradient(circle, #fff7e2 0 18%, rgba(255, 221, 150, 0.9) 30%, rgba(239, 200, 136, 0) 70%);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  animation: jr-twinkle calc(3.2s + var(--i) * 0.37s) ease-in-out infinite;
  transition: scale 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.star::after {
  content: "";
  position: absolute;
  width: calc(var(--s) * 30px);
  height: calc(var(--s) * 30px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 140, 0.4), transparent 68%);
}

.star.latest::after {
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(255, 214, 140, 0.55), transparent 66%);
  animation: jr-pulse 3.4s ease-in-out infinite;
}

@keyframes jr-twinkle {
  50% {
    opacity: 0.55;
    rotate: 12deg;
  }
}

@keyframes jr-pulse {
  50% {
    scale: 1.35;
    opacity: 0.5;
  }
}

.star:hover::before,
.star:focus-visible::before {
  scale: 1.9;
}

.star b {
  position: absolute;
  bottom: 100%;
  left: 50%;
  translate: -50% 6px;
  width: max-content;
  max-width: 15rem;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(217, 169, 91, 0.4);
  background: rgba(23, 13, 25, 0.92);
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--bone);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, translate 0.3s;
  z-index: 2;
}

.star b em {
  display: block;
  font-family: var(--text);
  font-size: 0.875rem;
  color: var(--dim);
}

.star:hover b,
.star:focus-visible b,
.star.latest b {
  opacity: 1;
  translate: -50% 0;
}

/* near the edges the label opens inward, so it is never cut off */
.star.edge-r b {
  left: auto;
  right: 4px;
  translate: 0 6px;
}

.star.edge-l b {
  left: 4px;
  translate: 0 6px;
}

.star.edge-r:hover b,
.star.edge-r:focus-visible b,
.star.edge-r.latest b,
.star.edge-l:hover b,
.star.edge-l:focus-visible b,
.star.edge-l.latest b {
  translate: 0 0;
}

.jr-chart:has(.star:not(.latest):hover) .star.latest b {
  opacity: 0;
}

/* ---- three instruments ---- */

.jr-numbers ul {
  list-style: none;
  padding: 0;
  margin: clamp(30px, 5vw, 60px) auto 0;
  max-width: 68rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 56px);
  text-align: center;
}

.jr-numbers li {
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 1rem;
  color: var(--dim);
}

.jr-numbers strong {
  color: var(--bone);
  font-weight: 500;
}

.jr-numbers .count strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(5rem, 13vw, 9.5rem);
  line-height: 0.8;
  background: linear-gradient(180deg, #fbe7bd, #c98f43 70%, #7b4a1e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(217, 169, 91, 0.35));
}

.candles {
  display: flex;
  align-items: end;
  gap: clamp(8px, 1.4vw, 16px);
  height: 8.5rem;
}

.candles i {
  position: relative;
  width: 14px;
  height: 58px;
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(90deg, #6d5a3c, #cdb88a 45%, #5c4a30);
  opacity: 0.4;
}

.candles i:nth-child(3n + 1) {
  height: 46px;
}

.candles i:nth-child(4n + 2) {
  height: 70px;
}

.candles i:nth-child(5) {
  height: 52px;
}

.candles i.lit {
  opacity: 1;
  background: linear-gradient(90deg, #a87b2e, #ffe2a4 45%, #9a6c25);
  box-shadow: 0 -14px 34px 6px rgba(255, 180, 80, 0.28);
}

.candles i.lit::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  width: 11px;
  height: 24px;
  margin-left: -5.5px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 78%, #fffbe6 0 22%, #ffc94f 46%, #f2792b 72%, rgba(242, 121, 43, 0) 100%);
  transform-origin: 50% 100%;
  animation: jr-flame calc(1.1s + var(--i) * 0.13s) ease-in-out infinite alternate;
  filter: blur(0.3px);
}

.candles i::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1.5px;
  height: 5px;
  margin-left: -0.75px;
  background: #2b1d14;
}

@keyframes jr-flame {
  0% {
    transform: scale(1, 1) rotate(-3deg);
  }
  50% {
    transform: scale(0.9, 1.14) rotate(2deg);
  }
  100% {
    transform: scale(1.06, 0.93) rotate(4deg);
  }
}

.dial {
  height: 8.5rem;
  display: grid;
  place-items: center;
}

.dial img {
  width: 4.6rem;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 14px 26px -6px rgba(0, 0, 0, 0.8), 0 0 40px rgba(217, 169, 91, 0.18);
  transition: rotate 2.2s cubic-bezier(0.3, 1.3, 0.4, 1) 0.5s;
}

.jr-numbers.in .dial img,
html:not(.js) .dial img {
  rotate: var(--turn);
}

/* ---- the five medallions ---- */

.jr-suits ul {
  list-style: none;
  padding: 0;
  margin: clamp(30px, 5vw, 60px) auto 0;
  max-width: 76rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 2.4vw, 34px);
  text-align: center;
}

.jr-suits li {
  transition: opacity 1s calc(var(--i) * 0.12s + 0.2s), translate 1s calc(var(--i) * 0.12s + 0.2s) var(--ease);
}

.js .jr-suits:not(.in) li {
  opacity: 0;
  translate: 0 30px;
}

.medal {
  position: relative;
  aspect-ratio: 1;
  max-width: 13rem;
  margin: 0 auto;
}

.medal img {
  position: absolute;
  inset: 9%;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  /* the medallions are painted on black: keep the disc, drop the corners */
  -webkit-mask-image: radial-gradient(circle closest-side, #000 84%, transparent 89%);
  mask-image: radial-gradient(circle closest-side, #000 84%, transparent 89%);
  animation: jr-turn 9s calc(var(--i) * -1.7s) ease-in-out infinite alternate;
}

@keyframes jr-turn {
  from {
    transform: perspective(600px) rotateY(-16deg) rotateX(4deg);
    filter: brightness(0.92);
  }
  to {
    transform: perspective(600px) rotateY(16deg) rotateX(-4deg);
    filter: brightness(1.12);
  }
}

.jr-suits li:first-child .medal img {
  /* this one is a pendant, a little smaller in its frame */
  inset: 3%;
  width: 94%;
  height: 94%;
  -webkit-mask-image: radial-gradient(circle closest-side at 50% 53%, #000 79%, transparent 83%);
  mask-image: radial-gradient(circle closest-side at 50% 53%, #000 79%, transparent 83%);
}

.jr-suits li.none .medal img {
  filter: grayscale(0.85) brightness(0.5);
  animation: none;
}

.jr-suits li.lead .medal::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 200, 136, 0.3), transparent 66%);
  animation: jr-pulse 4s ease-in-out infinite;
}

.medal svg {
  position: absolute;
  inset: 0;
  rotate: -90deg;
}

.medal circle {
  fill: none;
  stroke: rgba(236, 223, 198, 0.12);
  stroke-width: 1.2;
}

.medal .arc {
  stroke: var(--gold-bright);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: var(--share) 1;
  stroke-dashoffset: var(--share);
  filter: drop-shadow(0 0 4px rgba(239, 200, 136, 0.8));
  transition: stroke-dashoffset 2.2s cubic-bezier(0.3, 0, 0.2, 1) calc(var(--i) * 0.14s + 0.6s);
}

.jr-suits.in .arc,
html:not(.js) .arc {
  stroke-dashoffset: 0;
}

.jr-suits h3 {
  margin-top: 0.9rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  color: var(--bone);
}

.jr-suits li p {
  color: var(--dim);
  font-size: 0.975rem;
  line-height: 1.3;
  text-wrap: balance;
}

.jr-suits b {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--gold-bright);
}

/* ---- cards that return ---- */

.jr-repeat ul {
  list-style: none;
  padding: 0;
  margin: clamp(40px, 6vw, 70px) auto 0;
  display: flex;
  justify-content: center;
  text-align: center;
}

.jr-repeat li {
  --off: calc(var(--i) - (var(--n) - 1) / 2);
  flex: 0 1 12rem;
  margin: 0 -0.6rem;
  rotate: calc(var(--off) * 5deg);
  translate: 0 calc(var(--off) * var(--off) * 9px);
  transition: rotate 0.5s var(--ease), translate 0.5s var(--ease);
}

.jr-repeat li:hover {
  rotate: 0deg;
  translate: 0 -18px;
  z-index: 2;
}

.jr-repeat h3 {
  margin-top: 1rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
}

.jr-repeat li p {
  color: var(--gold-bright);
  font-style: italic;
}

/* ---- the thread of readings ---- */

.jr-thread ol {
  position: relative;
  list-style: none;
  padding: 0;
  margin: clamp(40px, 6vw, 80px) auto 0;
  max-width: 72rem;
}

.jr-thread ol::before,
.jr-thread ol::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(236, 223, 198, 0.14);
}

.jr-thread ol::after {
  width: 2px;
  margin-left: -0.5px;
  background: linear-gradient(to bottom, rgba(239, 200, 136, 0), var(--gold-bright) 12%, var(--gold-bright) 92%, #fff3d2);
  box-shadow: 0 0 12px rgba(239, 200, 136, 0.7);
  transform-origin: 50% 0;
  transform: scaleY(var(--p, 0));
}

.jr-thread li {
  position: relative;
  width: 50%;
  padding: 0 clamp(26px, 5vw, 70px) clamp(44px, 7vw, 90px) 0;
  text-align: right;
}

/* the two sides interleave, each reading starting beside the middle of the one before */
.jr-thread li + li {
  margin-top: calc(-1 * clamp(90px, 13vw, 180px));
}

.jr-thread li:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 clamp(44px, 7vw, 90px) clamp(26px, 5vw, 70px);
  text-align: left;
}

.jr-thread li::before {
  /* the knot where this reading hangs on the thread */
  content: "";
  position: absolute;
  top: 0.55rem;
  right: -6px;
  width: 11px;
  height: 11px;
  rotate: 45deg;
  background: var(--night);
  border: 1px solid var(--gold-bright);
  box-shadow: 0 0 12px rgba(239, 200, 136, 0.6);
  z-index: 1;
  transition: background-color 0.8s 0.4s;
}

.jr-thread li:nth-child(even)::before {
  right: auto;
  left: -6px;
}

.jr-thread li.in::before,
html:not(.js) .jr-thread li::before {
  background: var(--gold-bright);
}

.jr-thread a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.jr-thread .when {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  color: var(--dim);
  font-size: 1rem;
}

.jr-thread li:nth-child(even) .when {
  justify-content: flex-start;
}

.jr-thread .when em {
  color: var(--gold);
}

.jr-thread .when em::before {
  content: "· ";
  font-style: normal;
}

.jr-thread strong {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.08;
  color: var(--bone);
  text-wrap: balance;
  transition: color 0.3s;
}

.jr-thread a:hover strong,
.jr-thread a:focus-visible strong {
  color: var(--gold-bright);
}

.jr-thread q {
  display: block;
  margin-top: 0.35rem;
  font-style: italic;
  color: var(--dim);
}

.fan {
  --w: clamp(52px, 7vw, 84px);
  display: flex;
  justify-content: flex-end;
  margin-top: 1.3rem;
  padding: 0.6rem calc(var(--w) * 0.2) 0.4rem;
  min-height: calc(var(--w) * 1.9);
}

.jr-thread li:nth-child(even) .fan {
  justify-content: flex-start;
}

.fan-card {
  --off: calc(var(--i) - (var(--n) - 1) / 2);
  flex: 0 0 auto;
  width: var(--w);
  aspect-ratio: 560 / 939;
  margin-left: calc(var(--w) * -0.52);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: -4px 8px 16px rgba(0, 0, 0, 0.6);
  transform-origin: 50% 120%;
  rotate: 0deg;
  transition: rotate 0.9s calc(var(--i) * 0.05s + 0.25s) var(--ease), translate 0.5s var(--ease), margin 0.6s var(--ease);
}

.fan-card:first-child {
  margin-left: 0;
}

.jr-thread li.in .fan-card,
html:not(.js) .fan-card {
  rotate: calc(var(--off) * min(7deg, 40deg / var(--n)));
}

.jr-thread a:hover .fan-card,
.jr-thread a:focus-visible .fan-card {
  margin-left: calc(var(--w) * -0.3);
  translate: 0 -8px;
}

.jr-thread a:hover .fan-card:first-child,
.jr-thread a:focus-visible .fan-card:first-child {
  margin-left: 0;
}

.fan-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fan-card.reversed img {
  rotate: 180deg;
}

.fan-card.glyph b {
  font-weight: 400;
}

.fan-card.glyph.reversed b {
  rotate: 180deg;
}

.fan-card.glyph {
  display: grid;
  place-items: center;
  background: linear-gradient(170deg, #2e1a36, #170d19);
  outline: 1px solid rgba(217, 169, 91, 0.45);
  outline-offset: -3px;
  color: var(--gold-bright);
  font-family: "Noto Sans Runic", "Segoe UI Historic", "Apple Symbols", var(--display);
  font-size: calc(var(--w) * 0.42);
}

.jr > .jr-close {
  max-width: 46rem;
  margin: 0 auto;
  padding-bottom: clamp(50px, 8vw, 90px);
  text-align: center;
}

.jr-close .signin {
  text-align: left;
}

.jr .welcome {
  max-width: 40rem;
  margin: 2rem auto 0;
  padding: 0 var(--edge);
  text-align: center;
  color: var(--gold-bright);
}

@media (max-width: 760px) {
  .jr-hero::after {
    background:
      linear-gradient(to top, var(--night) 0%, rgba(23, 13, 25, 0.9) 34%, rgba(23, 13, 25, 0.25) 58%, rgba(23, 13, 25, 0) 72%),
      linear-gradient(to bottom, rgba(23, 13, 25, 0.7) 0%, rgba(23, 13, 25, 0) 20%);
  }

  .jr-scene img {
    object-position: 78% 50%;
  }

  .jr-hero {
    align-items: end;
    padding-bottom: 96px;
  }

  .jr-thread li + li {
    margin-top: 0;
  }

  .jr-numbers ul {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .jr-suits ul {
    grid-template-columns: repeat(6, 1fr);
    row-gap: 2rem;
  }

  .jr-suits li {
    grid-column: span 2;
  }

  .jr-suits li:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .jr-suits li p {
    display: none;
  }

  .jr-chart {
    height: 340px;
  }

  /* on a phone the sky keeps only the latest stars, so each can still be tapped */
  .star.far {
    pointer-events: none;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
  }

  .star.far::after {
    display: none;
  }

  .star b {
    max-width: 9.5rem;
    font-size: 0.95rem;
  }

  .jr-repeat ul {
    flex-wrap: wrap;
    row-gap: 2rem;
  }

  .jr-repeat li {
    flex-basis: 8.5rem;
  }

  .jr-thread ol::before,
  .jr-thread ol::after {
    left: 5px;
  }

  .jr-thread li,
  .jr-thread li:nth-child(even) {
    width: auto;
    margin-left: 0;
    margin-top: 0;
    padding: 0 0 3.4rem 30px;
    text-align: left;
  }

  .jr-thread li::before,
  .jr-thread li:nth-child(even)::before {
    left: 0;
    right: auto;
  }

  .jr-thread .when,
  .fan {
    justify-content: flex-start;
  }

  .jr-thread .when {
    flex-wrap: wrap;
  }
}

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

  .js .jr .reveal,
  .js .jr-suits:not(.in) li {
    opacity: 1;
    translate: 0 0;
  }

  .jr-chart polyline {
    stroke-dasharray: none;
  }

  .medal .arc {
    stroke-dashoffset: 0;
  }

  .star {
    opacity: 1;
    scale: 1;
  }

  .jr-thread ol::after {
    transform: none;
  }

  .jr-thread li::before {
    background: var(--gold-bright);
  }

  .fan-card {
    rotate: calc(var(--off) * min(7deg, 40deg / var(--n)));
  }

  .dial img {
    rotate: var(--turn);
  }
}

/* ---- forecast ---- */
.periods {
  margin: 0.4rem 0 1.2rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

.periods legend {
  padding: 0;
  font-style: italic;
  color: var(--dim);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.5rem;
}

.signin .chip {
  position: relative;
  display: inline-flex;
  font-style: normal;
  color: var(--bone);
  cursor: pointer;
}

.signin .chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 46px;
  padding: 0.35em 1.15em 0.4em 0.95em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 4, 11, 0.4);
  line-height: 1.2;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

/* A small moon on each chip, dark until it is chosen. */
.chip span::before {
  content: "";
  flex: none;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  border: 1px solid var(--dim);
  transition:
    background-color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.chip:hover span {
  border-color: rgba(217, 169, 91, 0.6);
}

.chip input:checked + span {
  border-color: var(--gold);
  background: rgba(217, 169, 91, 0.14);
  color: var(--gold-bright);
  box-shadow: 0 0 26px -6px rgba(217, 169, 91, 0.45);
}

.chip input:checked + span::before {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 0 10px rgba(239, 200, 136, 0.7);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.pick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 1rem;
}

.pick p {
  flex: 1 1 9rem;
  max-width: 16rem;
}

.pick select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 0.3rem;
  padding: 0.5rem 2.4rem 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23d9a95b' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.9rem center,
    rgba(10, 4, 11, 0.55);
  color: var(--bone);
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
}

.pick[hidden],
.pick [hidden] {
  display: none;
}

/* The month and the year are only asked for when a chip needs them. Without :has() they simply stay in view. */
@supports selector(:has(a)) {
  .periods:not(:has(input[value^="that-"]:checked)) .pick,
  .periods:has(input[value="that-year"]:checked) .pick-month {
    display: none;
  }
}

.cast .keep {
  margin: 0 0 0.6rem;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .chips {
    gap: 8px;
  }

  .chip span {
    padding-inline: 0.8em 0.95em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chip span,
  .chip span::before {
    transition: none;
  }
}
/* ---- end forecast ---- */

/* Another page has opened over this one (see /shell.js): this one waits underneath, out of sight. */
html.covered {
  overflow: hidden;
}

html.covered body {
  visibility: hidden;
}

/* ---- pages that are one screen tall ---- */

body.screen .foot {
  display: none;
}

.jr-empty .jr-hero {
  min-height: 100svh;
  padding-bottom: 40px;
}

.jr-empty .jr-begin {
  margin-top: 1.6rem;
}

.jr-empty .signin {
  margin-top: 1.4rem;
  max-width: 30rem;
  text-align: left;
}

@media (max-height: 760px) {
  .jr-empty .jr-title h1 {
    font-size: clamp(3rem, 12vh, 5rem);
  }
}

/* ---- more ways to ask: a hall of seven painted doors, all on one screen ---- */

.hall {
  height: 100svh;
  min-height: 34rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(14px, 2.4vh, 26px);
  padding: clamp(84px, 11vh, 112px) var(--edge) clamp(16px, 3vh, 30px);
}

.hall header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 2rem;
}

.hall h1 {
  font-size: clamp(2.2rem, 4.6vh + 1vw, 3.6rem);
  line-height: 1.05;
}

.hall .lede {
  margin: 0;
  color: var(--dim);
  font-size: 1.125rem;
}

.hall-doors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(6px, 0.8vw, 12px);
  min-height: 0;
}

.hall-doors li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(217, 169, 91, 0.22),
    0 24px 40px -18px rgba(0, 0, 0, 0.9);
  transition:
    flex-grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.5s;
  animation: door-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i) * 70ms);
}

@keyframes door-in {
  from {
    opacity: 0;
    translate: 0 26px;
  }
}

.hall-doors a {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--bone);
  text-decoration: none;
}

.hall-doors img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(0.85);
  scale: 1.02;
  transition:
    filter 0.7s,
    scale 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hall-doors a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 9, 20, 0.96) 0%, rgba(18, 9, 20, 0.7) 24%, rgba(18, 9, 20, 0) 58%);
}

.door-words {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 0 clamp(10px, 1.1vw, 18px) clamp(14px, 2.4vh, 24px);
  display: block;
}

.door-words b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.5vw, 1.6rem);
  line-height: 1.15;
  color: var(--gold-bright);
}

.door-words span {
  display: block;
  margin-top: 0.45rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--bone);
}

@media (hover: hover) and (min-width: 900px) {
  /* the words of a door appear as it opens */
  /* Every name ends on the same line, and the space under it is kept for its description, so nothing jumps. */
  .door-words b {
    min-height: 2.3em;
    display: flex;
    align-items: flex-end;
  }

  .door-words span {
    width: 21rem;
    max-width: calc(100vw / 3.6);
    height: 2.8em;
    text-wrap: balance;
    opacity: 0;
    transition: opacity 0.45s;
  }

  .hall-doors li:hover,
  .hall-doors li:focus-within {
    flex-grow: 2.4;
    box-shadow:
      0 0 0 1px rgba(240, 205, 135, 0.7),
      0 30px 60px -18px rgba(0, 0, 0, 0.95),
      0 0 80px rgba(217, 169, 91, 0.22);
  }

  .hall-doors li:hover img,
  .hall-doors li:focus-within img {
    filter: none;
    scale: 1.07;
  }

  .hall-doors li:hover .door-words span,
  .hall-doors li:focus-within .door-words span {
    opacity: 1;
    transition-delay: 0.2s;
  }
}

/* Without a pointer to hover with, or on a narrow screen: the doors stand in a row to be swiped through. */
@media (hover: none), (max-width: 899px) {
  .hall {
    padding-inline: 0;
  }

  .hall header {
    padding-inline: var(--edge);
  }

  .hall-doors {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--edge);
    padding-inline: var(--edge);
    scrollbar-width: none;
  }

  .hall-doors::-webkit-scrollbar {
    display: none;
  }

  .hall-doors li {
    flex: 0 0 min(74vw, 20rem);
    scroll-snap-align: start;
  }

  .hall-doors img {
    filter: brightness(0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hall-doors li {
    animation: none;
  }
}

/* ---- the journal as a book: every page one screen tall, turned sideways ---- */

.jr-book {
  position: relative;
  height: 100svh;
  overflow: hidden;
}

.jr-pages {
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.jr-pages::-webkit-scrollbar {
  display: none;
}

.jr-page {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  align-items: center;
  padding: 96px var(--edge) 84px;
}

.jr-fit {
  width: 100%;
  min-width: 0;
}

.jr-page.jr-cover {
  padding: 0;
  display: block;
}

.jr-cover .jr-hero {
  height: 100%;
  min-height: 0;
  padding-bottom: 96px;
}

.jr-book .jr-chart {
  height: min(clamp(280px, 46vw, 520px), 50svh);
}

.jr-book .jr-numbers ul,
.jr-book .jr-suits ul,
.jr-book .jr-repeat ul {
  margin-top: clamp(20px, 4.5vh, 56px);
}

.jr-last .jr-close {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}

.jr-last .again {
  margin-top: 2rem;
}

/* four readings to a page */
.leaf {
  text-align: left;
  list-style: none;
  margin: clamp(22px, 5vh, 56px) auto 0;
  padding: 0;
  max-width: 78rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
}

.leaf a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.2rem 0 0.4rem 1.1rem;
  border-left: 1px solid rgba(217, 169, 91, 0.35);
  color: var(--bone);
  text-decoration: none;
  transition: border-color 0.3s;
}

.leaf a:hover,
.leaf a:focus-visible {
  border-left-color: var(--gold-bright);
}

.leaf .when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.55rem;
  font-style: italic;
  font-size: 1rem;
  color: var(--dim);
}

.leaf .when em {
  flex-basis: 100%;
  color: var(--gold);
}

.leaf strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-top: 0.6rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  line-height: 1.15;
}

.leaf q {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--dim);
}

.leaf .fan {
  margin-top: auto;
  padding-top: 1.2rem;
  justify-content: flex-start;
}

/* the page turner */
.jr-turn {
  position: absolute;
  inset: auto 0 max(14px, env(safe-area-inset-bottom)) 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  pointer-events: none;
}

.jr-turn > * {
  pointer-events: auto;
}

.jr-turn button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(217, 169, 91, 0.55);
  background: rgba(23, 13, 25, 0.6);
  backdrop-filter: blur(6px);
  color: var(--gold-bright);
  cursor: pointer;
  transition:
    opacity 0.3s,
    background 0.3s,
    border-color 0.3s;
}

.jr-turn button:hover:not(:disabled) {
  background: rgba(217, 169, 91, 0.2);
  border-color: var(--gold-bright);
}

.jr-turn button:disabled {
  opacity: 0.25;
  cursor: default;
}

.jr-turn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jr-at {
  min-width: 5.5rem;
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  color: var(--bone);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

/* until the book has been opened, the way forward draws the eye */
.jr-book:not(.opened) .jr-turn button:last-child {
  animation: turn-me 2.4s ease-in-out infinite;
}

@keyframes turn-me {
  50% {
    box-shadow: 0 0 0 9px rgba(217, 169, 91, 0);
    border-color: var(--gold-bright);
  }

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(217, 169, 91, 0.45);
  }
}

@media (max-width: 1000px) {
  .leaf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .jr-page {
    padding: 112px var(--edge) 80px;
  }

  .jr-cover .jr-hero {
    padding-top: 120px;
  }

  .leaf {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
  }

  /* a reading is a row: its words on the left, its cards on the right */
  .leaf a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: center;
  }

  .leaf .when,
  .leaf strong {
    grid-column: 1;
  }

  .leaf .when {
    font-size: 0.9375rem;
  }

  .leaf strong {
    -webkit-line-clamp: 2;
    font-size: 1.25rem;
    margin-top: 0.3rem;
  }

  .leaf q {
    display: none;
  }

  .leaf .fan {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    padding: 0 6px 0 0;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jr-book:not(.opened) .jr-turn button:last-child {
    animation: none;
  }
}

.leaf .fan {
  --w: clamp(40px, 4.4vw, 64px);
}

@media (max-width: 560px) {
  .leaf .fan {
    --w: 34px;
  }

  .leaf .fan-card:nth-child(n + 5) {
    display: none;
  }

  /* the cards that return: three and two, standing straight, each with room for its name */
  .jr-book .jr-repeat ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 12px;
    margin-top: 22px;
  }

  .jr-book .jr-repeat li {
    flex: 0 0 calc((100% - 24px) / 3);
    margin: 0;
    rotate: none;
    translate: none;
  }

  .jr-book .jr-repeat h3 {
    margin-top: 0.5rem;
    font-size: 1rem;
    line-height: 1.2;
  }

  .jr-book .jr-repeat li p {
    font-size: 0.9375rem;
  }

  .jr-book .jr-heading p {
    margin-top: 0.4rem;
  }
}

/* short screens: the same pages with less air, before anything has to shrink */
@media (max-height: 720px) {
  .jr-page {
    padding-top: 84px;
    padding-bottom: 72px;
  }

  .jr-book h2 {
    font-size: clamp(1.6rem, 5.4vh, 2.4rem);
  }
}

@media (max-height: 720px) and (max-width: 560px) {
  .jr-page {
    padding-top: 100px;
  }

  .jr-book .jr-numbers ul {
    gap: 6px;
    margin-top: 10px;
  }
}

/* ---- the page behind each door: its painting on one side, the asking on the other, all on one screen ---- */

.stage {
  position: relative;
  height: 100svh;
  min-height: 28rem;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  overflow: hidden;
  isolation: isolate;
}

.stage-art {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, #000 58%, transparent 99%);
  mask-image: linear-gradient(to right, #000 58%, transparent 99%);
  animation: stage-dawn 1.6s ease-out both;
}

.stage-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 60% 40%;
  animation: stage-drift 34s ease-in-out infinite alternate;
}

/* candlelight breathing over the painting, and shade under the menu */
.stage-art i {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(18, 9, 20, 0.85), rgba(18, 9, 20, 0) 22%, rgba(18, 9, 20, 0) 78%, rgba(18, 9, 20, 0.8)),
    radial-gradient(60% 50% at 55% 40%, rgba(255, 190, 110, 0.2), rgba(255, 190, 110, 0) 70%);
  animation: stage-flicker 5.5s ease-in-out infinite;
}

@keyframes stage-dawn {
  from {
    opacity: 0;
  }
}

@keyframes stage-drift {
  from {
    scale: 1.03;
    translate: 0 0;
  }

  to {
    scale: 1.14;
    translate: -1.5% -2%;
  }
}

@keyframes stage-flicker {
  0%,
  100% {
    opacity: 0.75;
  }

  35% {
    opacity: 1;
  }

  60% {
    opacity: 0.6;
  }
}

.stage-words {
  min-width: 0;
  display: grid;
  align-items: center;
  padding: 100px var(--edge) 36px clamp(16px, 3.5vw, 56px);
}

.stage-fit {
  width: 100%;
  max-width: 35rem;
  animation: stage-arrive 1s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes stage-arrive {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

.stage .when {
  font-style: italic;
  color: var(--dim);
}

.stage .when a {
  color: var(--gold);
}

.stage h1 {
  margin-top: 0.3rem;
  font-size: clamp(2.8rem, 5.4vw, 5.2rem);
  line-height: 1;
}

.stage .lede {
  margin-top: 1.1rem;
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  line-height: 1.5;
}

.stage form.signin {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  max-width: none;
  text-align: left;
}

/* the birth card, once found: the cards take the screen and the painting falls back behind them */
.stage-found {
  grid-template-columns: minmax(0, 1fr);
}

.stage-found .stage-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-mask-image: none;
  mask-image: none;
  filter: brightness(0.28) saturate(0.8);
}

.stage-found .stage-words {
  padding-left: var(--edge);
  justify-items: center;
}

.stage-found .stage-fit {
  max-width: 68rem;
}

.stage-found h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.stage-found .lede {
  display: none;
}

.stage-found form.signin {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  max-width: 34rem;
}

.stage-found .birth {
  margin: 1.4rem 0 0;
  gap: clamp(16px, 3vw, 44px);
}

.stage-found .birth .card {
  max-width: min(11rem, 22svh);
}

.stage-found .how {
  margin-top: 1rem;
}

@media (max-width: 860px) {
  /* on a phone the painting fills the screen and the words stand in front of it */
  .stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage-art {
    position: absolute;
    inset: 0;
    z-index: -1;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .stage-art i {
    background:
      linear-gradient(to bottom, rgba(18, 9, 20, 0.9) 0%, rgba(18, 9, 20, 0.35) 26%, rgba(18, 9, 20, 0.82) 52%, rgba(18, 9, 20, 0.97) 100%),
      radial-gradient(70% 30% at 50% 22%, rgba(255, 190, 110, 0.22), rgba(255, 190, 110, 0) 70%);
  }

  .stage-words {
    align-items: end;
    padding: 118px var(--edge) max(22px, env(safe-area-inset-bottom));
  }

  .stage-fit {
    max-width: none;
  }

  .stage h1 {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }

  .stage form.signin {
    margin-top: 1.1rem;
    padding-top: 1rem;
  }

  .stage .row button {
    width: 100%;
  }

  .stage-found .stage-words {
    align-items: center;
  }

  .stage-found .birth .card {
    max-width: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-art,
  .stage-art img,
  .stage-art i,
  .stage-fit {
    animation: none;
  }
}

/* ---- the paintings move ---- */

.stage-art video,
.hall-doors video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s;
  pointer-events: none;
}

.stage-art video.on {
  opacity: 1;
}

.stage-art video {
  transform-origin: 60% 40%;
  animation: stage-drift 34s ease-in-out infinite alternate;
}

.stage-art img,
.stage-art video {
  transform: translate(calc(var(--px, 0) * -16px), calc(var(--py, 0) * -12px));
  transition:
    transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 1.2s;
}

.hall-doors video {
  scale: 1.07;
}

.hall-doors li:hover video.on,
.hall-doors li:focus-within video.on {
  opacity: 1;
}

@media (hover: none), (max-width: 899px) {
  .hall-doors video.on {
    opacity: 0.9;
  }
}

canvas.motes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hall {
  position: relative;
}

.hall > canvas.motes {
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .stage-art video,
  .hall-doors video {
    display: none;
  }
}

/* ---- one-screen pages: the words column is exactly the screen, so its contents can be fitted to it ---- */

.stage {
  grid-template-rows: minmax(0, 1fr);
}

.stage-words {
  min-height: 0;
  height: 100%;
}

.stage-fit,
.stage .when {
  text-align: left;
}

.stage-found .stage-fit {
  text-align: center;
}

.stage-found form.signin {
  margin-inline: auto;
}

.stage-found .birth {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.stage-found .birth p {
  font-size: 1.0625rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 860px) {
  .stage .lede {
    margin-top: 0.7rem;
    font-size: 1.0625rem;
    line-height: 1.42;
  }

  .stage .cast .chip span,
  .stage .cast .chip {
    font-size: 1rem;
  }

  .stage .cast .keep {
    font-size: 1rem;
    line-height: 1.35;
  }

  .stage .cast .fine {
    font-size: 0.875rem;
    line-height: 1.35;
  }

  .stage-found .birth {
    gap: 12px;
    margin-top: 1rem;
  }

  .stage-found .birth p {
    font-size: 0.9375rem;
    line-height: 1.35;
  }

  .stage-found .birth figcaption strong {
    font-size: 1.15rem;
  }

  .stage-found .how {
    font-size: 0.875rem;
  }
}

/* a short phone: the introduction gives way to the form */
@media (max-width: 860px) and (max-height: 720px) {
  .stage-words {
    padding-top: 104px;
  }

  .stage .lede {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .stage form.signin {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
  }
}

/* ---- a reading: a book over its own film ---- */

.rd-film {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.rd-film img,
.rd-film video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: stage-drift 40s ease-in-out infinite alternate;
}

.rd-film video {
  opacity: 0;
  transition: opacity 1.4s;
}

.rd-film video.on {
  opacity: 1;
}

/* the film is clear on the cover and falls back into shadow once the book is opened */
.rd-film::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 50% 50%, rgba(18, 9, 20, 0.5), rgba(18, 9, 20, 0.82)),
    linear-gradient(to bottom, rgba(18, 9, 20, 0.8), rgba(18, 9, 20, 0) 30%, rgba(18, 9, 20, 0) 70%, rgba(18, 9, 20, 0.9));
  transition: background-color 1.2s;
}

.rd.opened .rd-film::after {
  background-color: rgba(18, 9, 20, 0.72);
}

.rd .jr-pages {
  position: relative;
  z-index: 1;
}

.rd .jr-turn {
  z-index: 3;
}

.rd .jr-fit {
  margin: 0 auto;
}

/* the cover */
.rd-cover .jr-fit {
  max-width: 50rem;
  text-align: center;
  animation: stage-arrive 1.3s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.rd .when {
  font-style: italic;
  color: var(--gold);
}

.rd h1 {
  margin-top: 0.5rem;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 1.02;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7);
  text-wrap: balance;
}

.rd .question {
  margin-top: 1.3rem;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: var(--gold-bright);
}

.rd .opening {
  margin: 1.2rem auto 0;
  max-width: 38rem;
  font-size: clamp(1.125rem, 1.5vw, 1.3rem);
  line-height: 1.55;
}

/* the spread on the table */
.rd-table .jr-fit {
  max-width: 84rem;
}

.rd-spread {
  list-style: none;
  margin: clamp(18px, 4vh, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 10.5rem));
  justify-content: center;
  gap: clamp(14px, 2.4vh, 26px) clamp(10px, 1.6vw, 24px);
}

.rd-spread button,
.rd-spread div {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bone);
  font: inherit;
  text-align: center;
}

.rd-spread button {
  cursor: pointer;
}

.rd-face {
  display: block;
  container-type: inline-size;
}

.rd-face .card {
  margin: 0;
  rotate: none;
}

.rd-face .card.stone {
  margin: 17% 6%;
}

.rd-face .card.stone span {
  font-size: 44cqw;
}

.rd-face .card.numeral span {
  font-size: 50cqw;
}

.rd-spread .rd-face {
  transition:
    translate 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.4s;
}

.rd-spread button:hover .rd-face,
.rd-spread button:focus-visible .rd-face {
  translate: 0 -10px;
  filter: drop-shadow(0 0 26px rgba(217, 169, 91, 0.45));
}

.rd-spread em,
.rd-spread strong,
.rd-spread li span:not(.rd-face) {
  display: block;
}

.rd-spread em {
  margin-top: 0.7rem;
  font-size: 0.9375rem;
  color: var(--dim);
}

.rd-spread strong {
  font: 400 1.2rem/1.2 var(--display);
}

.rd-spread li > * > span:last-child:not(.rd-face) {
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--gold);
}

/* dealt one after another when the page is reached */
.js .rd-table:not(.in) .rd-spread li {
  opacity: 0;
  translate: 0 46px;
  rotate: 7deg;
}

.rd-spread li {
  transition:
    opacity 0.7s,
    translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    rotate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(0.25s + var(--i) * 0.11s);
}

/* a page for each card: the card turns over as the page arrives, then floats */
.rd-card .jr-fit {
  max-width: 68rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
}

.rd-card .rd-face {
  width: min(21rem, 30vw, 40svh);
  transform: perspective(1100px) rotateY(calc(var(--tx, 0) * 16deg)) rotateX(calc(var(--ty, 0) * -12deg));
  transition:
    transform 1.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.9s;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 46px rgba(217, 169, 91, 0.22));
}

.js .rd-card:not(.in) .rd-face {
  opacity: 0;
  transform: perspective(1100px) rotateY(-95deg) translateY(30px) scale(0.92);
}

.rd-card.in .rd-face .card {
  animation: rd-float 7s ease-in-out infinite;
}

@keyframes rd-float {
  50% {
    translate: 0 -10px;
  }
}

/* a slow glint that crosses the face of the card */
.rd-card .card:not(.stone) {
  position: relative;
  overflow: hidden;
}

.rd-card .card:not(.stone)::after {
  content: "";
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(105deg, rgba(255, 240, 210, 0) 42%, rgba(255, 240, 210, 0.3) 50%, rgba(255, 240, 210, 0) 58%);
  translate: -70% 0;
  animation: rd-glint 6.5s 1.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes rd-glint {
  0%,
  55% {
    translate: -70% 0;
  }

  100% {
    translate: 70% 0;
  }
}

.rd-text {
  text-align: left;
}

.rd .place {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gold);
}

.rd-text h2 {
  margin-top: 0.2rem;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.05;
  color: var(--bone);
}

.rd-text h2 em {
  font-size: 0.5em;
  color: var(--gold);
}

.rd-text p:last-child {
  margin-top: 1.2rem;
  max-width: 34rem;
  font-size: clamp(1.125rem, 1.45vw, 1.3rem);
  line-height: 1.6;
}

.rd-text > * {
  transition:
    opacity 0.9s,
    translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rd-text > :nth-child(2) {
  transition-delay: 0.25s;
}

.rd-text > :nth-child(3) {
  transition-delay: 0.45s;
}

.js .rd-card:not(.in) .rd-text > * {
  opacity: 0;
  translate: 0 18px;
}

/* the whole of it */
.rd-whole .jr-fit,
.rd-follow .jr-fit,
.rd-wait .jr-fit {
  max-width: 44rem;
  text-align: center;
}

.rd .synthesis {
  margin-top: 1.4rem;
  font-size: clamp(1.125rem, 1.45vw, 1.3rem);
  line-height: 1.6;
}

.rd .guidance {
  position: relative;
  margin-top: 1.8rem;
  padding-top: 1.8rem;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.7vw, 2.3rem);
  line-height: 1.25;
  color: var(--gold-bright);
  text-wrap: balance;
}

.rd .guidance::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 9px;
  height: 9px;
  rotate: 45deg;
  translate: -50% -50%;
  background: var(--gold);
  box-shadow:
    -60px 60px 0 -4px var(--gold),
    60px -60px 0 -4px var(--gold);
}

.rd .tools {
  margin-top: 1.6rem;
  justify-content: center;
}

.rd .again {
  margin-top: 1.4rem;
}

.rd-wait .rd-face {
  width: min(12rem, 26svh);
  margin: 0 auto 1.4rem;
}

.rd-letter .jr-fit {
  max-width: 62rem;
}

.rd-letter .letter {
  margin: 0;
}

@media (max-width: 760px) {
  .rd-spread {
    grid-template-columns: repeat(var(--mcols), minmax(0, 6.4rem));
    gap: 12px 10px;
  }

  .rd-spread em {
    margin-top: 0.4rem;
    font-size: 0.8125rem;
  }

  .rd-spread strong {
    font-size: 0.9375rem;
  }

  .rd-card .jr-fit {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 18px;
  }

  .rd-card .rd-face {
    width: min(46vw, 25svh);
  }

  .rd-text {
    text-align: center;
  }

  .rd-text p:last-child {
    margin-top: 0.8rem;
    font-size: 1.0625rem;
    line-height: 1.5;
  }

  .rd .synthesis {
    margin-top: 0.8rem;
    font-size: 1.0625rem;
    line-height: 1.5;
  }

  .rd .guidance {
    margin-top: 1.3rem;
    padding-top: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rd-film img,
  .rd-film video,
  .rd-cover .jr-fit,
  .rd-card.in .rd-face .card,
  .rd-card .card::after {
    animation: none;
  }

  .rd-film video {
    display: none;
  }
}

/* the spread is centred row by row, so a last short row sits in the middle */
.rd-spread {
  --g: clamp(10px, 1.6vw, 24px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 2.4vh, 26px) var(--g);
}

.rd-spread li {
  flex: 0 0 min(10.5rem, calc((100% - (var(--cols) - 1) * var(--g)) / var(--cols)));
  min-width: 0;
}

.rd.opened .rd-film::after {
  background-color: rgba(18, 9, 20, 0.5);
}

@media (max-width: 760px) {
  .rd-spread {
    --g: 10px;
    gap: 12px var(--g);
  }

  .rd-spread li {
    flex-basis: min(6.4rem, calc((100% - (var(--mcols) - 1) * var(--g)) / var(--mcols)));
  }
}

/* a large spread lies in two rows, each card small enough for both rows to stand on the screen */
.rd-spread.two li {
  flex-basis: min(8.2rem, 13.5svh, calc((100% - (var(--cols) - 1) * var(--g)) / var(--cols)));
}

.rd-spread.two strong {
  font-size: 1rem;
}

.rd-spread.two em {
  font-size: 0.8125rem;
}

@media (max-width: 760px) {
  .rd-spread.two li {
    flex-basis: min(4.6rem, 11svh, calc((100% - (var(--mcols) - 1) * var(--g)) / var(--mcols)));
  }

  .rd-spread.two em {
    display: none;
  }

  .rd-spread.two strong {
    margin-top: 0.3rem;
    font-size: 0.8125rem;
  }
}

/* small print never leaves one word alone on a last line */
.fine,
.lede,
.jr-heading p {
  text-wrap: pretty;
}

.fine {
  text-wrap: balance;
}

/* ---- the casting: a film that takes the whole screen while a reading is being written ---- */

.ritual {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #120914;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.ritual.on {
  opacity: 1;
}

.ritual video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* a soft dark frame, so the film reads as a scene and the words below stay legible */
.ritual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(18, 9, 20, 0) 45%, rgba(18, 9, 20, 0.75) 100%),
    linear-gradient(to bottom, rgba(18, 9, 20, 0.55), rgba(18, 9, 20, 0) 22%, rgba(18, 9, 20, 0) 66%, rgba(18, 9, 20, 0.92));
  pointer-events: none;
}

.ritual-line {
  position: absolute;
  inset: auto var(--edge) max(9svh, calc(env(safe-area-inset-bottom) + 40px));
  z-index: 2;
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: var(--bone);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9);
  text-wrap: balance;
  opacity: 0;
  translate: 0 10px;
  transition:
    opacity 0.45s,
    translate 0.45s;
}

.ritual-line.in {
  opacity: 1;
  translate: 0 0;
  transition-duration: 1.1s;
}

.ritual canvas.motes {
  z-index: 1;
}

/* ---- the journal: a painted scene behind every page ---- */

.jr-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* the scene stands on the lower part of the page and dissolves into the dark above it */
  translate: 0 var(--drop, 22%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 6%, #000 46%);
  mask-image: linear-gradient(to bottom, transparent 6%, #000 46%);
}

.jr-art img,
.jr-art video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}

.jr-art video {
  opacity: 0;
  transition: opacity 1.4s;
}

.jr-art video.on {
  opacity: 1;
}

.jr-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 9, 20, var(--veil, 0.18));
}

/* candlelight breathing over the stills */
.jr-art-candles img,
.jr-art-book img,
.jr-art-key img {
  animation: jr-candlelight 5.5s ease-in-out infinite;
}

@keyframes jr-candlelight {
  0%,
  100% {
    filter: brightness(1);
  }
  23% {
    filter: brightness(1.09);
  }
  41% {
    filter: brightness(0.95);
  }
  68% {
    filter: brightness(1.06);
  }
  84% {
    filter: brightness(0.98);
  }
}

/* the sky fills its whole page */
.jr-art-sky {
  --drop: 0%;
  --veil: 0.12;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
}

.jr-art-key {
  --drop: 14%;
}

.jr-art-key img {
  object-position: 100% 100%;
}

.jr-book .jr-page > .jr-fit {
  position: relative;
  z-index: 1;
}

/* pages with a scene keep their words above it */
.jr-book .jr-numbers,
.jr-book .jr-suits,
.jr-book .jr-repeat,
.jr-book .jr-leaf,
.jr-book .jr-last {
  padding-bottom: max(84px, 21svh);
}

.jr-book .jr-heading,
.jr-book .jr-numbers li,
.jr-book .jr-suits li,
.leaf a {
  text-shadow: 0 1px 14px rgba(10, 4, 12, 0.95);
}

.jr-book .jr-numbers li,
.jr-book .jr-suits li p {
  color: var(--bone);
}

/* seven real candles: one lit for each day in a row */
.candles {
  gap: 0;
  height: 9.5rem;
}

.candles img {
  width: 3.1rem;
  height: 9.5rem;
  object-fit: cover;
  mix-blend-mode: lighten;
  filter: brightness(0.55) saturate(0.6);
}

.candles img.lit {
  filter: none;
  animation: jr-candlelight calc(3.2s + var(--i) * 0.37s) ease-in-out infinite;
}

.dial {
  height: 9.5rem;
}

.dial img {
  width: 5.4rem;
}

/* five gilded medallions */
.jr-suits .medal img,
.jr-suits li:first-child .medal img {
  inset: 7%;
  width: 86%;
  height: 86%;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 95%, transparent 99%);
  mask-image: radial-gradient(circle closest-side, #000 95%, transparent 99%);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.7));
}

.jr-suits li.none .medal img {
  filter: grayscale(0.7) brightness(0.45);
}

.jr-suits .medal {
  max-width: 11.5rem;
}

.jr-last .jr-close {
  margin-left: max(0px, calc(50% - 30rem));
  text-align: left;
}

@media (max-width: 760px) {
  .jr-art {
    --drop: 30%;
  }

  .jr-art-sky {
    --drop: 0%;
  }

  .jr-book .jr-numbers,
  .jr-book .jr-suits,
  .jr-book .jr-repeat,
  .jr-book .jr-leaf,
  .jr-book .jr-last {
    padding-bottom: max(84px, 15svh);
  }

  .jr-art::after {
    background: rgba(18, 9, 20, 0.4);
  }

  .candles,
  .candles img {
    height: 6.4rem;
  }

  .candles img {
    width: 2.1rem;
  }

  .jr-last .jr-close {
    margin-left: auto;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jr-art img,
  .candles img.lit {
    animation: none;
  }

  .jr-art video {
    display: none;
  }
}

/* the words sit straight on the scene (no layer of their own), so the candles can blend into it */
.jr-book .jr-page > .jr-fit {
  z-index: auto;
}

.jr-numbers .count strong {
  text-shadow: none;
}

.jr-art::after {
  background:
    linear-gradient(to top, rgba(18, 9, 20, 0.8), rgba(18, 9, 20, 0) 24%),
    rgba(18, 9, 20, var(--veil, 0.18));
}

.jr-art-candles {
  --drop: 36%;
}

.jr-art-emblems {
  --drop: 28%;
}

@media (max-width: 760px) {
  .jr-art::after {
    background:
      linear-gradient(to top, rgba(18, 9, 20, 0.85), rgba(18, 9, 20, 0) 30%),
      rgba(18, 9, 20, 0.4);
  }

  .jr-art-candles,
  .jr-art-emblems {
    --drop: 40%;
  }
}

.candles img {
  mix-blend-mode: normal;
}

.jr-numbers .count strong {
  line-height: 1.15;
  padding-bottom: 0.08em;
}

/* ---- Other languages run longer than English: room for them on a phone ---- */
h1,
h2,
h3,
.button,
button {
  overflow-wrap: break-word;
}

:root:not([lang="en"]) .legal h1 {
  font-size: min(clamp(2.6rem, 7vw, 4.25rem), 9vw);
}

@media (max-width: 560px) {
  .upgrade {
    padding: 24px 0 16px;
  }

  .upgrade h1 {
    font-size: 2.3rem;
    margin-bottom: 0.8rem;
  }

  .upgrade .lede {
    font-size: 1.2rem;
    line-height: 1.42;
    margin-bottom: 0.9rem;
  }

  .upgrade .includes li {
    line-height: 1.35;
  }

  .upgrade .soon {
    margin-top: 1rem;
    font-size: 1.2rem;
    line-height: 1.35;
  }

  :root:not([lang="en"]) .stage .lede {
    -webkit-line-clamp: 4;
  }
}

@media (max-height: 800px) {
  .upgrade {
    padding: 20px 0 12px;
  }

  .upgrade h1 {
    font-size: 2.3rem;
    margin-bottom: 0.7rem;
  }

  .upgrade .lede {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
  }

  .upgrade .includes li {
    padding-block: 0.45rem;
    line-height: 1.3;
  }

  .upgrade .soon {
    margin-top: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.3;
  }
}

@media (max-height: 700px) and (max-width: 560px) {
  .upgrade h1 {
    font-size: 1.9rem;
  }

  .upgrade .lede,
  .upgrade .soon {
    font-size: 1.02rem;
  }

  .upgrade .includes li {
    font-size: 0.95rem;
    padding-block: 0.32rem;
  }
}

/* ---- about ---- */

.about-date {
  color: var(--dim);
  font-style: italic;
  margin-bottom: 1rem;
}

.about-facts {
  width: 100%;
  margin: 1.6rem 0 0.4rem;
  border-collapse: collapse;
}

.about-facts caption {
  text-align: start;
  font: 400 1.625rem/1.2 var(--display);
  color: var(--gold);
  padding-bottom: 0.5rem;
}

.about-facts th,
.about-facts td {
  text-align: start;
  vertical-align: top;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-weight: 400;
}

.about-facts th {
  color: var(--dim);
  padding-right: 1.4rem;
}

.about-go {
  margin-top: 2rem;
}

/* The often-asked button sits at the end of the question's label row. */
form.cast {
  position: relative;
}

form.cast > .asks-open {
  position: absolute;
  top: -0.75rem;
  right: 0;
}

.upgrade .trial {
  margin: 1.2rem 0 0.2rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--bone);
  font-size: 1.0625rem;
  line-height: 1.4;
}
