/* Learnal Journal on the web. Brand: navy ink, off-white page, yellow pills, Fraunces. */
.page-main.lj { max-width: 46rem; margin: 0 auto; width: 100%; padding: var(--space-lg, 2.5rem) var(--gutter, 1.25rem) var(--space-xl, 4rem); text-align: center; }
.lj-title { margin: 0 0 .5rem; font-size: var(--text-2xl, 2.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.015em; }
.lj-art { display: block; width: min(19rem, 78vw); height: auto; margin: -3.2rem auto -3rem; }
.lj-lead { margin: 0 auto .9rem; max-width: 26rem; font-size: var(--text-xl, 1.7rem); font-weight: 700; line-height: 1.2; text-wrap: balance; }
.lj-p { margin: 0 auto 1rem; max-width: 34rem; font-size: var(--text-lg, 1.15rem); text-wrap: balance; }
.lj-h2 { margin: 1.5rem 0 .5rem; font-size: var(--text-xl, 1.7rem); font-weight: 800; }
.lj-intro { margin-top: 1.25rem; }
.lj-box { max-width: 40rem; margin: 1.5rem auto; padding: 1.25rem 1.5rem; background: #fff; border: 1.5px solid var(--ink, #1E3A5F); border-radius: 22px; text-align: left; }
.lj-box h2 { margin: 0 0 .6rem; font-size: 1.35rem; font-weight: 800; }
.lj-box p { margin: 0 0 .7rem; max-width: none; }
.lj-box p:last-child { margin-bottom: 0; }
.page-main .lj-signoff { margin: 1.75rem 0 .75rem; font-weight: 700; font-size: var(--text-lg, 1.2rem); line-height: inherit; }
.lj-app { margin-top: 0; text-align: left; }
.lj.lj-open .lj-intro, .lj.lj-open .lj-getwrap { display: none; }
.lj-soft { color: var(--soft, rgba(30,58,95,.65)); font-size: .95rem; margin: .5rem 0; }
.lj-error { color: #9b2c2c; margin: .5rem 0 0; min-height: 1.2em; }

/* pieces drop in, one after another, with a small bounce */
@keyframes lj-drop { 0% { opacity: 0; transform: translateY(-5rem) rotate(-2.5deg); } 55% { opacity: 1; transform: translateY(.7rem) rotate(.8deg); } 75% { transform: translateY(-.3rem) rotate(-.2deg); } 90% { transform: translateY(.1rem); } 100% { opacity: 1; transform: none; } }
.lj-js .lj-drop { opacity: 0; animation: lj-drop .95s cubic-bezier(.3, .8, .35, 1) both; }
/* below the fold they wait until they scroll into view */
.lj-js .lj-drop:not(.lj-in) { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .lj-js .lj-drop { opacity: 1; animation: none; } }

.lj-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.lj-btn, .page-main .lj-store { font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .55rem 1.75rem; border-radius: 999px; border: 1.5px solid var(--ink, #1E3A5F); background: var(--yellow, #FDE358); color: var(--ink, #1E3A5F); cursor: pointer; text-decoration: none; }
.lj-btn:hover, .lj-btn:focus-visible { background: var(--ink, #1E3A5F); color: var(--bg, #F8F9F0); }
.lj-btn[disabled] { opacity: .5; cursor: default; }
.lj-btn--white { background: #fff; }
.lj-btn--navy { background: var(--ink, #1E3A5F); color: var(--bg, #F8F9F0); }
.lj-btn--navy:hover, .lj-btn--navy:focus-visible { background: var(--yellow, #FDE358); color: var(--ink, #1E3A5F); }
.lj-link { font: inherit; font-weight: 700; background: none; border: 0; padding: .25rem 0; color: var(--ink, #1E3A5F); text-decoration: underline; cursor: pointer; }
.lj-link:hover, .lj-link:focus-visible { text-decoration-thickness: 2px; }

.lj-form { margin-inline: auto; display: grid; gap: .5rem; margin-bottom: 1rem; max-width: 30rem; }
.lj-key, .lj-search, .lj-write { font: inherit; width: 100%; color: var(--ink, #1E3A5F); background: var(--bg, #F8F9F0); border: 1.5px solid var(--ink, #1E3A5F); border-radius: 14px; padding: .8rem 1rem; }
.lj-key { letter-spacing: .06em; text-transform: uppercase; }
.lj-key::placeholder, .lj-search::placeholder, .lj-write::placeholder { color: var(--soft, rgba(30,58,95,.65)); text-transform: none; letter-spacing: 0; }
.lj-write { min-height: 9rem; resize: vertical; line-height: 1.5; }
.lj-key:focus-visible, .lj-search:focus-visible, .lj-write:focus-visible { outline: 3px solid var(--yellow, #FDE358); outline-offset: 1px; }

.lj-bar { display: flex; justify-content: space-between; margin-bottom: .75rem; }
.lj-saverow { display: flex; justify-content: flex-end; margin-top: .6rem; }
.lj-search { margin: 1.25rem 0 .5rem; }
.lj-list { display: grid; gap: .75rem; max-height: 34rem; overflow-y: auto; padding: .25rem 0; }
.lj-note { border: 1.5px solid var(--ink, #1E3A5F); border-radius: 14px; padding: .8rem 1rem; background: var(--bg, #F8F9F0); }
.lj-notehead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.lj-when { color: var(--soft, rgba(30,58,95,.65)); font-size: .9rem; }
.lj-del { font-size: .9rem; font-weight: 600; }
.lj-text { margin: .35rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.05rem; line-height: 1.5; }
.lj-empty { color: var(--soft, rgba(30,58,95,.65)); text-align: center; margin: 1rem 0; }

/* the delete pop-up, in the same style as the app's */
.lj-scrim { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1rem; background: rgba(30, 58, 95, .5); }
.lj-dialog { width: min(24rem, 100%); background: var(--bg, #F8F9F0); border: 1.5px solid var(--ink, #1E3A5F); border-radius: 24px; padding: 1.5rem; text-align: center; box-shadow: 0 14px 40px rgba(30,58,95,.35); }
.lj-dialog h2 { margin: 0 0 .5rem; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.lj-dialog p { margin: .25rem 0 1rem; }
.lj-dialog .lj-actions { justify-content: center; }

.page-main .lj-get { margin: 2.5rem 0 .75rem; font-weight: 700; font-size: var(--text-lg, 1.2rem); }
.lj-stores { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.page-main .lj-store { background: var(--ink, #1E3A5F); color: var(--bg, #F8F9F0); text-decoration: none; }
.page-main .lj-store:hover, .page-main .lj-store:focus-visible { background: var(--yellow, #FDE358); color: var(--ink, #1E3A5F); }

.lj-keyshow { margin: 1rem auto; padding: .9rem 1rem; max-width: 30rem; text-align: center; background: #fff; border: 1.5px solid var(--ink, #1E3A5F); border-radius: 14px; font-weight: 800; font-size: clamp(1.05rem, 4.2vw, 1.4rem); letter-spacing: .06em; overflow-wrap: anywhere; user-select: all; }
.lj-check { display: flex; align-items: center; gap: .6rem; justify-content: center; margin: 1.1rem 0; cursor: pointer; }
.lj-check input { width: 1.25rem; height: 1.25rem; accent-color: var(--ink, #1E3A5F); }

.page-main .lj-steps { margin: .2rem 0 0; padding: 0 0 0 1.4rem; display: grid; gap: .7rem; list-style: decimal; }
.page-main .lj-steps li { display: list-item; }
.lj-steps li::marker { font-weight: 800; }
.lj-warn { max-width: 40rem; margin: 1.25rem auto 0; padding: .9rem 1.2rem; background: var(--yellow, #FDE358); border: 1.5px solid var(--ink, #1E3A5F); border-radius: 22px; text-align: left; }
.lj-box .lj-jobs { margin-bottom: .4rem; text-decoration: underline; text-underline-offset: .2em; }
.lj-box .lj-once { font-weight: 800; font-size: 1.15em; }
.page-main .lj-steps li { margin: 0; padding: 0; }
.lj-box p { text-wrap: pretty; }
/* arty: the yellow warning is a sticker too */
.lj-warn { box-shadow: 7px 7px 0 var(--ink, #1E3A5F); rotate: .6deg; }
