/* Morning: psalm3418.com's one page (shared/templates/seasonal_morning.py), from the owner's 21 November handoff, direction 1a.
   Values are the handoff's, with its OKLCH colors as their sRGB hex equivalents. Fluid sizes run linearly from a 390px to a
   1280px page (the handoff's cqi expressions, written in vw so older Safari gets them too). */
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-normal-300-500-52b7d321a2.woff2") format("woff2");
  font-style: normal; font-weight: 300 600; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/hanken-grotesk-normal-400-700-e7ce1e652c.woff2") format("woff2");
  font-style: normal; font-weight: 400 750; font-display: swap; }

:root {
  --ink: #162631; --ink-hover: #1d4252; --lake: #1a5566; --body: #293741; --muted: #505d65; --line: #cbd6db;
  --sky: #e6f4fa; --mist: #eff9fb; --paper: #fcfaf3;
  --serif: "Newsreader", Georgia, serif; --sans: "Hanken Grotesk", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --side: max(clamp(22px, calc(-3.42px + 6.52vw), 80px), calc((100% - 1200px) / 2));
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--sky); }
body { margin: 0; background: linear-gradient(180deg, var(--sky) 0px, var(--mist) 900px, var(--paper) 2200px, var(--paper) 100%);
  color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-underline-offset: .22em; transition: color .4s ease; }
a:hover { color: var(--lake); }
:focus-visible { outline: 2px solid var(--lake); outline-offset: 3px; }

.m-page { position: relative; isolation: isolate; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.m-skip { position: absolute; left: -9999px; top: 12px; z-index: 5; padding: 10px 16px; border-radius: 999px; background: #fff;
  color: var(--ink); font-size: 14px; font-weight: 600; }
.m-skip:focus { left: 16px; }

/* Header: the publisher (with the Bible Steps cross), the QR code on computers and the app */
.m-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px var(--side); }
.m-pub { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 650; text-decoration: none; }
.m-logo { flex: none; width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(22, 38, 49, .12); }  /* the Bible Steps cross */
.m-head__r { display: flex; align-items: center; gap: 20px; }
.m-get, .m-read { display: inline-flex; align-items: center; border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 600; text-decoration: none; transition: background-color .5s ease, transform .5s var(--ease); }
.m-get { flex: none; min-height: 44px; padding: 0 20px; font-size: 15px; }
.m-get:hover, .m-read:hover { background: var(--ink-hover); color: #fff; }
.m-get:active, .m-read:active { transform: scale(.98); }

/* The verse */
.m-verse { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(56px, calc(27.96px + 7.19vw), 120px) var(--side) clamp(48px, calc(26.97px + 5.39vw), 96px); }
.m-light { position: absolute; left: 50%; top: 50%; z-index: -1; width: min(1180px, 170vw); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 253, 231, .95), rgba(255, 251, 230, .6) 40%, rgba(253, 250, 236, 0) 100%); }
.m-ref { display: flex; align-items: center; gap: 18px; color: var(--lake); }
.m-hair { width: clamp(28px, calc(12.22px + 4.04vw), 64px); height: 1px; background: currentColor; opacity: .5; }
.m-ref h1 { margin: 0; font: 400 clamp(22px, calc(19.37px + .67vw), 28px)/1.1 var(--serif); letter-spacing: .005em; }
.m-fig { margin: clamp(22px, calc(15.87px + 1.57vw), 36px) 0 0; display: flex; flex-direction: column; align-items: center; }
.m-fig blockquote { margin: 0; max-width: 15.5em; font: 300 clamp(38px, calc(21.35px + 4.27vw), 76px)/1.12 var(--serif);
  letter-spacing: -.028em; text-wrap: balance; }
.m-fig blockquote p { margin: 0; }
.m-fig figcaption { margin-top: clamp(16px, calc(12.49px + .9vw), 24px); font-size: 15px; font-weight: 600; letter-spacing: .01em; color: var(--lake); }
.m-fig cite { font-style: normal; }
.m-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 26px;
  margin-top: clamp(28px, calc(20.99px + 1.8vw), 44px); }
.m-read { min-height: 52px; padding: 0 28px; font-size: 16px;
  box-shadow: 0 1px 2px rgba(22, 38, 49, .12), 0 16px 32px -18px rgba(22, 38, 49, .5); }
.m-share { min-height: 44px; padding: 0 2px; border: 0; background: transparent; color: var(--ink); font: 600 16px var(--sans);
  text-decoration: underline; text-decoration-color: rgba(22, 38, 49, .3); text-decoration-thickness: 1.5px; text-underline-offset: .32em;
  cursor: pointer; transition: text-decoration-color .4s ease; }
.m-share:hover { text-decoration-color: var(--ink); }
.m-share[hidden] { display: none; }
.m-status { margin: 12px 0 0; min-height: 24px; font-size: 15px; line-height: 24px; color: var(--muted); }
.m-box { width: min(100%, 560px); min-height: 112px; margin-top: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; color: var(--ink); font: 15px/1.5 var(--sans); resize: vertical; }
.m-box[hidden] { display: none; }

/* Verse references, in captions and paragraphs: each opens that verse in the Bible Steps KJV reader. The padding widens the
   tap area without moving the line. */
.m-ref-link { padding-block: 4px; color: inherit; text-decoration: underline; text-decoration-color: rgba(26, 85, 102, .38);
  text-decoration-thickness: 1px; text-underline-offset: .22em; }
.m-ref-link:hover { text-decoration-color: currentColor; }

/* The reading */
.m-reading { display: flex; flex-direction: column; align-items: center; padding: 0 var(--side) clamp(72px, calc(47.46px + 6.29vw), 128px); }
.m-lead { width: 1px; height: clamp(40px, calc(26.85px + 3.37vw), 70px); background: linear-gradient(rgba(26, 85, 102, 0), rgba(26, 85, 102, .55)); }
.m-col { width: 100%; max-width: 680px; display: flex; flex-direction: column; gap: clamp(56px, calc(41.98px + 3.6vw), 88px);
  margin-top: clamp(28px, calc(22.74px + 1.35vw), 40px); font-size: clamp(17px, calc(16.12px + .22vw), 19px); line-height: 1.75; color: var(--body); }
.m-sec { display: flex; flex-direction: column; gap: 18px; }
.m-sec h2 { margin: 0 0 4px; font: 400 clamp(28px, calc(23.62px + 1.12vw), 38px)/1.15 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.m-sec p { margin: 0; text-wrap: pretty; }
.m-sec i { font-style: italic; }  /* the words the translators supplied, as the 1769 edition prints them */
.m-points { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: clamp(36px, calc(27.24px + 2.25vw), 56px); }
.m-points > li { display: grid; grid-template-columns: clamp(36px, calc(27.24px + 2.25vw), 56px) minmax(0, 1fr); align-items: start; }
.m-num { font: 300 clamp(34px, calc(29.62px + 1.12vw), 44px)/1 var(--serif); color: var(--lake); }
.m-point { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.m-point h3 { margin: 0; font-size: clamp(19px, calc(18.12px + .22vw), 21px); font-weight: 650; line-height: 1.35; color: var(--ink); }
.m-q { margin: 10px 0; display: flex; flex-direction: column; gap: 10px; }
.m-q blockquote { margin: 0; font: 400 clamp(22px, calc(19.37px + .67vw), 28px)/1.45 var(--serif); letter-spacing: -.01em;
  text-indent: -.42em; color: var(--ink); text-wrap: pretty; }
.m-q blockquote p { margin: 0; }
.m-q figcaption { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--lake); }

/* Footer */
.m-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 48px;
  padding: 24px var(--side) 28px; border-top: 1px solid var(--line); }
.m-foot p { flex: 1 1 420px; margin: 10px 0 0; max-width: 64ch; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.m-foot nav { display: flex; flex-wrap: wrap; column-gap: 24px; }
.m-foot nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600;
  text-decoration-color: rgba(22, 38, 49, .3); }

/* Motion: each part fades in, rises 14px and sharpens from a blur; the light breathes. Only with the "js" switch, so
   without scripts everything simply shows; never for readers who ask for reduced motion. */
@keyframes m-rise { from { opacity: 0; transform: translateY(14px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes m-breathe { from { transform: translate(-50%, -50%) scale(1); opacity: .78; } to { transform: translate(-50%, -50%) scale(1.07); opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .js .m-in { animation: m-rise 1700ms var(--ease) var(--d, 120ms) backwards; }
  .js .m-light { animation: m-breathe 9000ms ease-in-out infinite alternate; }
}
@media (prefers-reduced-motion: reduce) {
  .m-get:active, .m-read:active { transform: none; }
  .m-get, .m-read, .m-share, a { transition: none; }
}
