/* Inner pages: page heads, reading pages, post lists, characters, how to play, how Lilrose began. */

.lr-pagehead__back { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; margin-bottom: var(--s4); font-size: var(--t-small); font-weight: 800; }
.lr-more--back .lr-icon { order: -1; }
.lr-more--back:hover .lr-icon { transform: translateX(-4px); }
.lr-pagehead time { font-variant-numeric: tabular-nums; }

/* ---------- reading pages ---------- */
.lr-prose { padding-inline: var(--gutter); }
.lr-prose > * { max-width: var(--read); margin-inline: auto; }
.lr-prose > .lr-edge { max-width: none; }
.lr-prose .wp-block-post-content { max-width: none; }
.lr-prose .wp-block-post-content > .lr-spread { max-width: 62rem; }
.lr-prose .wp-block-post-content > * { max-width: var(--read); margin-inline: auto; }
.lr-prose .wp-block-post-content > * + * { margin-top: 1.25rem; }
.lr-prose h2 { font-size: var(--t-title); margin-top: 2.75rem !important; }
.lr-prose h3 { font-size: 1.375rem; margin-top: 2rem !important; }
.lr-prose a { color: var(--pink-deep); font-weight: 800; }
.lr-prose a:hover { color: var(--ink); }
.lr-prose ul, .lr-prose ol { padding-left: 1.3em; display: grid; gap: 0.6rem; }
.lr-prose ul { list-style: disc; }
.lr-prose ol { list-style: decimal; }
.lr-prose ul li::marker { color: var(--pink-deep); }
.lr-prose ol li::marker { font-family: var(--display); font-weight: 600; color: var(--pink-deep); }
.lr-prose img { border-radius: var(--r-md); }
.lr-prose figure { margin-inline: auto; }
.lr-prose figcaption { margin-top: 0.5rem; font-size: var(--t-small); color: var(--ink-soft); }
.lr-prose__image { margin-bottom: 2rem; }
.lr-prose__image img { width: 100%; box-shadow: var(--shadow-lift); }
.lr-prose table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lr-prose th, .lr-prose td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 2px solid var(--ink-line); vertical-align: top; }
.lr-prose kbd, .pg-controls kbd { display: inline-block; padding: 0.1em 0.55em; border-radius: 8px; background: var(--white); box-shadow: 0 3px 0 var(--ink-line), 0 0 0 2px var(--ink-line); font: 800 0.9em var(--body); white-space: nowrap; }
.lr-prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.lr-prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 3.25rem; padding: 0.6rem 1.6rem; border-radius: 999px; background: var(--pink); color: var(--ink); font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; font-size: 1.0625rem; box-shadow: 0 var(--lip) 0 var(--pink-deep), 0 14px 18px rgb(43 20 70 / 0.2); transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.lr-prose .is-style-teal .wp-block-button__link { background: var(--sky); box-shadow: 0 var(--lip) 0 var(--sky-deep), 0 14px 18px rgb(43 20 70 / 0.2); }
.lr-prose .wp-block-button__link:hover { transform: translateY(-2px); color: var(--ink); }
.lr-prose .wp-block-button__link:active { transform: translateY(var(--lip)); box-shadow: none; }
.lr-prose .is-style-storybook { font-family: var(--display); font-size: var(--t-title); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
/* Guides written for the old theme list a tool icon beside each line. */
.lr-prose li:has(> img) { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.lr-prose ul:has(> li > img) { list-style: none; padding-left: 0; }
.lr-prose li > img { width: 3rem; height: 3rem; padding: 0.5rem; border-radius: 50%; background: var(--ink); }
/* The story page: picture and words side by side, turn about. */
.lr-prose .lr-spread { max-width: 66rem; display: grid; gap: 1.5rem; align-items: center; margin-top: clamp(2.5rem, 6vw, 5rem) !important; }
.lr-prose .lr-spread:first-child { margin-top: 0 !important; }
.lr-prose .lr-spread figure { margin: 0; }
.lr-prose .lr-spread img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lift); }
.lr-prose .lr-spread .lr-doll-pic img { width: auto; max-height: 26rem; margin-inline: auto; box-shadow: none; border-radius: 0; }
.lr-prose .lr-spread .lr-grey img { filter: grayscale(1); }
.lr-prose .lr-spread__text > * + * { margin-top: 0.75rem; }
@media (min-width: 52rem) {
	.lr-prose .lr-spread { grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
	.lr-prose .lr-spread--flip > figure { order: 2; }
	.lr-prose .lr-spread:nth-child(odd) img { rotate: -1.2deg; } .lr-prose .lr-spread:nth-child(even) img { rotate: 1.2deg; }
}
.lr-prose .lr-note { margin-top: clamp(2.5rem, 6vw, 4rem) !important; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--sun); }
.lr-prose .lr-note h2 { margin-top: 0 !important; }
.lr-prose .lr-note > * + * { margin-top: 0.75rem; }
.lr-prose .lr-story__close { margin-top: clamp(2.5rem, 6vw, 4rem) !important; text-align: center; }
.lr-prose .lr-story__close .wp-block-buttons { justify-content: center; }

/* ---------- lists of posts ---------- */
.pl { padding-top: clamp(1rem, 3vw, 2rem); }
.pl__list { display: grid; border-top: 3px solid var(--ink); }
.pl-item { display: grid; gap: 0.35rem 2rem; padding: clamp(1.25rem, 3vw, 2rem) 0; border-bottom: 3px solid var(--ink); text-decoration: none; }
.pl-item time { font-size: var(--t-small); font-weight: 800; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pl-item__title { font-family: var(--display); font-size: var(--t-title); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; max-width: 22em; }
.pl-item__text { color: var(--ink-soft); max-width: 44em; }
.pl-item__go { display: inline-flex; align-items: center; gap: 0.2em; font-weight: 900; text-decoration: underline; text-underline-offset: 0.25em; }
.pl-item__go .lr-icon { width: 1.1em; height: 1.1em; transition: transform var(--mid) var(--ease); }
.pl-item:hover .pl-item__title { color: var(--pink-deep); }
.pl-item:hover .pl-item__go .lr-icon { transform: translateX(5px); }
@media (min-width: 56rem) { .pl-item { grid-template-columns: 7rem 1fr auto; align-items: baseline; } .pl-item__text { grid-column: 2; } .pl-item__go { grid-column: 3; grid-row: 1; } .pl-item:not(:has(time)) { grid-template-columns: 1fr auto; } .pl-item:not(:has(time)) .pl-item__text { grid-column: 1; } .pl-item:not(:has(time)) .pl-item__go { grid-column: 2; } }
.pl .pagination, .pl .navigation { margin-top: var(--s6); }
.pl .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pl .page-numbers { display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.9rem; border-radius: 999px; background: var(--white); font-weight: 900; text-decoration: none; }
.pl .page-numbers.current { background: var(--ink); color: var(--paper); }

/* ---------- lost ---------- */
.lost .lr-actions { margin-top: var(--s6); }

/* ---------- characters ---------- */
.ch-group__head { display: grid; gap: 0.5rem 3rem; align-items: end; }
@media (min-width: 52rem) { .ch-group__head { grid-template-columns: auto 1fr; } }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem); margin-top: var(--s7); align-items: end; }
.ch-tile { justify-items: center; text-align: center; gap: 0.5rem; }
.ch-tile .lu-doll__pic { height: clamp(14rem, 26vw, 20rem); width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.ch-tile .lu-doll__pic img { height: auto; width: auto; max-width: 100%; max-height: 100%; }
.ch-tile__name { font-family: var(--display); font-size: var(--t-title); font-weight: 600; line-height: 1.1; margin-top: 0.5rem; text-decoration: underline; text-decoration-color: var(--felt); text-decoration-thickness: 0.18em; text-underline-offset: 0.2em; }
.ch-tile__line { font-size: var(--t-small); font-weight: 700; max-width: 16em; }
.ch-next .lr-lead { margin-block: var(--s5) var(--s6); color: var(--on-dark-soft); }
.ch-next .lr-more { color: var(--paper); }

.ch-one__grid { display: grid; gap: var(--s7); align-items: center; }
.ch-one__text { margin-top: var(--s4); max-width: 34em; }
.ch-one__facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: var(--s5); }
.ch-one__dot { width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--felt); box-shadow: 0 0 0 2px var(--ink-line); }
.ch-one__stage { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; justify-items: center; padding: 2rem 1rem 1.25rem; border-radius: var(--r-xl); background: var(--paper); box-shadow: 0 10px 0 var(--sky-deep), var(--shadow-lift); rotate: 1.2deg; }
.ch-one__stage figure { margin: 0; display: grid; justify-items: center; gap: 0.75rem; }
.ch-one__stage img { height: clamp(15rem, 34vw, 24rem); width: auto; }
.ch-one__stage figcaption { font-size: var(--t-small); font-weight: 900; }
@media (min-width: 56rem) { .ch-one__grid { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); } }
.ch-one__nav { padding-block: clamp(2.5rem, 5vw, 4rem); }
.ch-one__nav .lr-wrap { display: flex; justify-content: space-between; gap: 1rem; }
.ch-one__nav a { display: inline-flex; align-items: center; gap: 0.4em; min-height: 3rem; font-family: var(--display); font-size: var(--t-title); font-weight: 600; text-decoration: none; }
.ch-one__nav a:hover { color: var(--pink-deep); }

/* ---------- how to play ---------- */
.lr-pagehead .lr-actions { margin-top: var(--s6); }
.lr-pagehead .lr-pill { max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
.pg-steps__list { counter-reset: step; display: grid; gap: var(--s6); margin-top: var(--s7); list-style: none; padding: 0; }
.pg-steps__list li { counter-increment: step; position: relative; padding-left: 4.5rem; }
.pg-steps__list li::before { content: counter(step); position: absolute; left: 0; top: -0.2rem; width: 3.25rem; height: 3.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--pink); box-shadow: 0 5px 0 var(--pink-deep); font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.pg-steps__list li:nth-child(2)::before { background: var(--sky); box-shadow: 0 5px 0 var(--sky-deep); }
.pg-steps__list li:nth-child(3)::before { background: var(--sun); box-shadow: 0 5px 0 var(--sun-deep); }
.pg-steps__list p { margin-top: 0.4rem; max-width: 24em; }
@media (min-width: 56rem) { .pg-steps__list { grid-template-columns: repeat(3, 1fr); } }
.pg-controls .lr-lead { margin-top: var(--s5); }
.pg-controls__cols { display: grid; gap: var(--s7); margin-top: var(--s7); }
.pg-controls dl { margin: var(--s4) 0 0; border-top: 3px solid var(--ink); }
.pg-controls dl > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 3px solid var(--ink); }
.pg-controls dt { font-weight: 900; }
.pg-controls dd { margin: 0; }
.pg-controls__pad, .og-care { display: flex; align-items: center; gap: 0.6em; margin-top: var(--s6); font-weight: 800; }
@media (min-width: 56rem) { .pg-controls__cols { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); } }
.pg-ticks { display: grid; gap: 0.9rem; margin-block: var(--s6); font-size: var(--t-lead); }
.pg-ticks li { display: flex; gap: 0.6em; align-items: start; }
.pg-ticks .lr-icon { color: var(--grass-deep); margin-top: 0.15em; }

/* ---------- how Lilrose began ---------- */
.og-head__grid, .og-kit__grid, .og-bridge__grid { display: grid; gap: var(--s7); align-items: center; }
.og-head__pic { width: 100%; border-radius: var(--r-lg); border: 10px solid var(--white); box-shadow: var(--shadow-lift); rotate: 2deg; }
.og-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.og-photos li:first-child { grid-column: 1 / -1; }
.og-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); aspect-ratio: 3 / 4; }
.og-photos li:first-child img { aspect-ratio: 7 / 5; }
.og-steps .lr-lead { margin-top: var(--s4); }
.og-steps__list { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--s6) var(--s5); margin-top: var(--s7); padding: 0; list-style: none; }
.og-steps__list li { counter-increment: step; }
.og-steps__list img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-md); border: 8px solid var(--white); box-shadow: var(--shadow-soft); }
.og-steps__list li:nth-child(odd) img { rotate: -1.5deg; } .og-steps__list li:nth-child(even) img { rotate: 1.5deg; }
.og-steps__list h3 { margin-top: var(--s5); }
.og-steps__list h3::before { content: counter(step) ". "; }
.og-steps__list p { margin-top: 0.4rem; }
.og-bridge__grid { grid-template-columns: 1.3fr 0.7fr; }
.og-bridge__grid > div { grid-column: 1 / -1; }
.og-bridge figure { margin: 0; display: grid; gap: 0.6rem; justify-items: center; font-weight: 900; font-size: var(--t-small); }
.og-bridge figure img { border-radius: var(--r-md); max-height: 22rem; width: auto; }
.og-bridge figure:first-child img { border: 8px solid var(--white); box-shadow: var(--shadow-lift); rotate: -2deg; }
.og-bridge .lr-lead { margin-block: var(--s5) var(--s6); }
@media (min-width: 56rem) {
	.og-head__grid, .og-kit__grid { grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
	.og-bridge__grid { grid-template-columns: auto auto 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
	.og-bridge__grid > div { grid-column: auto; }
}
