/* ---------- The reading: ink on the scroll (the paper itself is drawn in 3D) ---------- */
/* Scrolled only from js/scroll-control.js (touch, wheel, keys): a 3D-transformed box does not scroll natively everywhere. */
.scroll-window {
  container-type: inline-size;
  overflow: hidden;
  outline: none;
  user-select: text;
}
.letter {
  position: relative;
  padding: 40px 64px 56px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.58;
}
.letter p { margin: 0 0 1em; }
.letter h2, .letter h3 { font-weight: 400; margin: 0; }

.l-kicker { text-align: center; font-family: "IM Fell English SC", serif; color: var(--rubric); letter-spacing: .2em; font-size: 16px; margin-bottom: 6px !important; }
.l-title { text-align: center; font-family: "IM Fell English", serif; font-size: 62px; line-height: 1.04; letter-spacing: .01em; }
.l-title .initial { font-family: "IM Fell English", serif; color: var(--rubric); font-size: 1.12em; line-height: 0; margin-right: .01em; }
.l-intro { text-align: center; font-style: italic; color: var(--ink-soft); max-width: 34em; margin: 14px auto 0 !important; }

.fleuron { display: block; width: 220px; height: 26px; margin: 34px auto; overflow: visible; }

.l-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px !important; font-family: "IM Fell English SC", serif;
  font-size: 21px; letter-spacing: .1em; color: var(--rubric); }
.l-head svg { width: 26px; height: 18px; flex: none; overflow: visible; }

.l-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.l-cards li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: center; }
.l-cards img { width: 46px; aspect-ratio: 300 / 514; filter: drop-shadow(0 3px 3px rgb(60 30 10 / .35)); }
.l-cards .pos { display: block; font-family: "IM Fell English SC", serif; letter-spacing: .1em; font-size: 14px; color: var(--ink-soft); }
.l-cards b { font-family: "IM Fell English", serif; font-weight: 400; font-size: 22px; }
.l-cards .mean { display: block; font-style: italic; color: var(--ink-soft); font-size: 17px; line-height: 1.4; }

.dropcap::first-letter {
  float: left;
  margin: .1em .32em 0 0; padding: .1em .16em .02em;
  font-family: "IM Fell English", serif; font-size: 3.3em; line-height: .86;
  color: #f4dc9a;
  background: radial-gradient(circle at 50% 40%, #a62822, #6e1310);
  border: 2px double #d3a957;
  box-shadow: 0 0 0 3px #6e1310;
}
.l-arch b { font-variant: small-caps; letter-spacing: .04em; font-weight: 400; font-family: "IM Fell English", serif; font-size: 1.08em; }

.chart { display: block; width: 100%; height: auto; margin: 8px 0 6px; overflow: visible; }
.chart text { font-family: "IM Fell English", serif; fill: var(--ink); }
.chart .roman { font-family: "IM Fell English SC", serif; font-size: 15px; letter-spacing: .04em; }
.chart .cal { font-style: italic; font-size: 12.5px; fill: var(--ink-soft); }
.chart .lbl { font-style: italic; font-size: 15px; }
.chart .rub { fill: var(--rubric); }
.l-note { font-style: italic; color: var(--ink-soft); font-size: 15.5px; text-align: center; }

.jobs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; }
.job { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; }
.job .rn { grid-row: span 3; font-family: "IM Fell English SC", serif; color: var(--rubric); font-size: 24px; line-height: 1.2; text-align: right; }
.job .when { font-family: "IM Fell English SC", serif; letter-spacing: .08em; font-size: 14px; color: var(--ink-soft); }
.job .line { display: flex; align-items: baseline; gap: 10px; }
.job .t { font-family: "IM Fell English", serif; font-size: 21px; line-height: 1.3; }
.job .lead { flex: 1; min-width: 24px; border-bottom: 2px dotted rgb(43 29 20 / .45); translate: 0 -5px; }
.job .pay { white-space: nowrap; font-family: "IM Fell English", serif; font-size: 19px; color: var(--rubric); }
.job .why { font-style: italic; color: var(--ink-soft); font-size: 16.5px; line-height: 1.4; }

.moons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.moon { text-align: center; }
.moon svg { width: 54px; height: 54px; overflow: visible; }
.moon .ml { display: block; margin: 6px 0 4px; font-family: "IM Fell English SC", serif; letter-spacing: .08em; font-size: 15px; color: var(--rubric); }
.moon p { font-size: 16.5px; line-height: 1.42; margin: 0; }

.l-alt { font-size: 19px; }
.l-alt b { font-family: "IM Fell English SC", serif; font-weight: 400; color: var(--rubric); letter-spacing: .06em; }
.asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.asks li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; font-style: italic; }
.asks .manicule { margin-top: 5px; }

.disclaimer { text-align: center; font-style: italic; font-size: 15.5px; color: var(--ink-soft); max-width: 30em; margin: 30px auto 0 !important; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin-top: 26px; }
.actions button {
  display: inline-flex; align-items: center; gap: 10px; padding: 4px 2px; border: 0; background: none; cursor: pointer;
  font-family: "IM Fell English", serif; font-size: 20px; color: var(--ink);
  text-decoration: underline; text-decoration-color: rgb(142 31 26 / .55); text-underline-offset: 5px; text-decoration-thickness: 1.5px;
}
.actions button:hover { color: var(--rubric); }
.actions .manicule { width: 34px; height: 16px; }
.sign { display: grid; justify-items: center; gap: 4px; margin-top: 30px; font-family: "IM Fell English", serif; font-style: italic; color: var(--ink-soft); }
.sign svg { width: 46px; height: 46px; overflow: visible; }

@container (max-width: 560px) {
  .letter { padding: 28px 24px 40px; font-size: 17.5px; }
  .l-title { font-size: 40px; }
  .l-intro { font-size: 17px; }
  .l-head { font-size: 18px; }
  .job { grid-template-columns: 30px 1fr; }
  .job .rn { font-size: 20px; }
  .job .line { flex-wrap: wrap; }
  .job .t { flex-basis: 100%; font-size: 19px; }
  .job .lead { display: none; }
  .moons { grid-template-columns: 1fr; gap: 18px; }
  .moon { display: grid; grid-template-columns: 54px 1fr; gap: 0 14px; text-align: left; align-items: start; }
  .moon svg { grid-row: span 2; }
  .moon .ml { margin: 0; }
  .actions button { font-size: 18px; }
}

/* The title gets focus programmatically (for screen readers); no ring around it. */
.l-title:focus { outline: none; }
