:root {
	--paper: #f6efe2;
	--paper-deep: #ebdfcd;
	--card: #fffaf1;
	--ink: #263238;
	--ink-soft: #617076;
	--coral: #d75b48;
	--coral-dark: #ad3f31;
	--blue: #335d7e;
	--sage: #648259;
	--ochre: #d58d2d;
	--plum: #8c5067;
	--line: rgb(58 65 67 / 14%);
	--shadow-sm: 0 2px 9px rgb(54 43 29 / 9%);
	--shadow-md: 0 12px 34px rgb(54 43 29 / 14%);
	--radius-sm: 12px;
	--radius: 20px;
	--radius-lg: 30px;
	--header-height: 74px;
	--nav-height: 72px;
	--content-width: 1040px;
	font-family: Inter, ui-rounded, "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
	font-synthesis: none;
	color: var(--ink);
	background: var(--paper);
}

* {
	box-sizing: border-box;
}

html {
	background: var(--paper);
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	background:
		radial-gradient(circle at 3% 12%, rgb(213 141 45 / 9%) 0 80px, transparent 82px),
		radial-gradient(circle at 96% 27%, rgb(51 93 126 / 8%) 0 110px, transparent 112px),
		var(--paper);
	color: var(--ink);
	margin: 0;
	min-height: 100vh;
	overscroll-behavior-y: none;
}

button,
input {
	font: inherit;
}

button {
	-webkit-tap-highlight-color: transparent;
}

button,
a {
	touch-action: manipulation;
}

img {
	display: block;
	max-width: 100%;
}

svg {
	fill: none;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

[hidden] {
	display: none !important;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

.skip-link {
	background: var(--ink);
	border-radius: 0 0 8px;
	color: #fff;
	left: 8px;
	padding: 10px 14px;
	position: fixed;
	top: -80px;
	z-index: 1000;
}

.skip-link:focus {
	top: 0;
}

.app-shell {
	min-height: 100vh;
}

.app-header {
	align-items: center;
	backdrop-filter: blur(18px);
	background: rgb(246 239 226 / 92%);
	border-bottom: 1px solid rgb(67 61 49 / 9%);
	display: flex;
	height: calc(var(--header-height) + env(safe-area-inset-top));
	justify-content: space-between;
	left: 0;
	padding: env(safe-area-inset-top) max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
	position: fixed;
	right: 0;
	top: 0;
	z-index: 100;
}

.brand {
	align-items: center;
	background: none;
	border: 0;
	color: var(--ink);
	display: flex;
	gap: 11px;
	min-height: 48px;
	padding: 0;
	text-align: left;
}

.brand-mark {
	align-items: center;
	background: #fffaf1;
	border: 1px solid rgb(67 61 49 / 10%);
	border-radius: 50%;
	box-shadow: 0 4px 12px rgb(67 61 49 / 10%);
	display: flex;
	flex: 0 0 47px;
	height: 47px;
	justify-content: center;
	width: 47px;
}

.brand-mark img {
	height: 43px;
	object-fit: contain;
	width: 43px;
}

.brand-copy {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.brand-copy strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	letter-spacing: -0.02em;
}

.brand-copy small {
	color: var(--sage);
	font-size: 11px;
	font-weight: 650;
	margin-top: 4px;
}

.is-offline .brand-copy small {
	color: var(--coral-dark);
}

.is-offline .new-button,
.is-offline .bottom-nav [data-nav="reading"] {
	display: none;
}

.is-offline .bottom-nav {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.icon-button {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: currentcolor;
	display: inline-flex;
	height: 46px;
	justify-content: center;
	padding: 0;
	position: relative;
	width: 46px;
}

.icon-button svg {
	height: 24px;
	width: 24px;
}

.new-button {
	background: rgb(255 250 241 / 80%);
	border: 1px solid var(--line);
	color: var(--blue);
}

.badge {
	align-items: center;
	background: var(--coral);
	border: 2px solid var(--paper);
	border-radius: 20px;
	color: #fff;
	display: flex;
	font-size: 10px;
	font-weight: 800;
	height: 20px;
	justify-content: center;
	min-width: 20px;
	padding: 0 4px;
	position: absolute;
	right: -2px;
	top: -2px;
}

.app-main {
	margin: 0 auto;
	max-width: var(--content-width);
	min-height: 100vh;
	outline: none;
	padding: calc(var(--header-height) + env(safe-area-inset-top) + 22px) max(16px, env(safe-area-inset-right)) calc(var(--nav-height) + env(safe-area-inset-bottom) + 34px) max(16px, env(safe-area-inset-left));
}

.bottom-nav {
	align-items: stretch;
	backdrop-filter: blur(18px);
	background: rgb(255 250 241 / 94%);
	border-top: 1px solid rgb(67 61 49 / 12%);
	bottom: 0;
	box-shadow: 0 -9px 30px rgb(72 54 34 / 7%);
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	height: calc(var(--nav-height) + env(safe-area-inset-bottom));
	left: 0;
	padding: 5px max(6px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px, env(safe-area-inset-left));
	position: fixed;
	right: 0;
	z-index: 100;
}

.bottom-nav button {
	align-items: center;
	background: none;
	border: 0;
	border-radius: 14px;
	color: #59676c;
	display: flex;
	flex-direction: column;
	font-size: 10.5px;
	font-weight: 650;
	gap: 3px;
	justify-content: center;
	min-height: 56px;
	padding: 4px 2px;
}

.bottom-nav button svg {
	height: 23px;
	transition: transform 180ms ease;
	width: 23px;
}

.bottom-nav button.is-active {
	color: var(--coral-dark);
}

.bottom-nav button.is-active svg {
	fill: rgb(215 91 72 / 12%);
	transform: translateY(-1px);
}

.bottom-nav button:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
	outline: 3px solid rgb(51 93 126 / 42%);
	outline-offset: 2px;
}

.eyebrow {
	color: var(--coral-dark);
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.13em;
	margin-bottom: 7px;
	text-transform: uppercase;
}

.home-hero {
	background:
		linear-gradient(135deg, rgb(255 250 241 / 93%), rgb(238 222 196 / 96%)),
		var(--card);
	border: 1px solid rgb(134 104 62 / 10%);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	display: grid;
	grid-template-columns: 1.25fr 0.75fr;
	min-height: 250px;
	overflow: hidden;
	padding: clamp(24px, 5vw, 52px);
	position: relative;
}

.home-hero::before {
	border: 1px dashed rgb(112 78 48 / 16%);
	border-radius: 50%;
	content: "";
	height: 230px;
	position: absolute;
	right: -80px;
	top: -110px;
	width: 230px;
}

.hero-copy {
	align-self: center;
	position: relative;
	z-index: 2;
}

.hero-copy h1,
.page-intro h1,
.search-hero h1,
.reader-heading h1,
.empty-state h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	letter-spacing: -0.035em;
}

.hero-copy h1 {
	font-size: clamp(34px, 7vw, 55px);
	line-height: 0.98;
	margin: 0;
	max-width: 610px;
}

.hero-copy p {
	color: var(--ink-soft);
	font-size: 16px;
	line-height: 1.55;
	margin: 15px 0 22px;
	max-width: 480px;
}

.primary-button,
.secondary-button {
	align-items: center;
	border: 0;
	border-radius: 999px;
	display: inline-flex;
	font-weight: 750;
	gap: 8px;
	justify-content: center;
	min-height: 48px;
	padding: 0 20px;
}

.primary-button {
	background: var(--coral-dark);
	box-shadow: 0 5px 0 rgb(141 56 42 / 18%);
	color: #fff;
}

.primary-button:active {
	box-shadow: 0 2px 0 rgb(141 56 42 / 18%);
	transform: translateY(3px);
}

.primary-button.is-loading {
	opacity: 0.7;
}

.secondary-button {
	background: transparent;
	border: 1px solid currentcolor;
	color: var(--blue);
}

.hero-book {
	align-self: end;
	color: var(--blue);
	justify-self: center;
	position: relative;
	transform: rotate(2deg);
	width: min(100%, 235px);
}

.hero-book > svg {
	filter: drop-shadow(0 10px 10px rgb(56 52 40 / 12%));
	stroke-width: 3;
	width: 100%;
}

.hero-book > svg path:first-child {
	fill: #fff8e8;
}

.hero-moon {
	color: var(--ochre);
	font-family: Georgia, serif;
	font-size: 59px;
	position: absolute;
	right: 14px;
	top: -63px;
	transform: rotate(-14deg);
}

.hero-star {
	color: var(--coral);
	position: absolute;
}

.hero-star--one {
	font-size: 25px;
	left: 28px;
	top: -28px;
}

.hero-star--two {
	font-size: 20px;
	right: 71px;
	top: -36px;
}

.new-callout {
	align-items: center;
	background: var(--blue);
	border: 0;
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	color: #fff;
	display: grid;
	gap: 13px;
	grid-template-columns: auto 1fr auto;
	margin-top: 16px;
	min-height: 74px;
	padding: 12px 17px;
	text-align: left;
	width: 100%;
}

.new-callout > span:nth-child(2) {
	display: flex;
	flex-direction: column;
}

.new-callout strong {
	font-size: 15px;
}

.new-callout small {
	color: rgb(255 255 255 / 72%);
	font-size: 12px;
	margin-top: 3px;
}

.new-callout-icon {
	align-items: center;
	background: rgb(255 255 255 / 14%);
	border-radius: 50%;
	display: flex;
	font-size: 20px;
	height: 42px;
	justify-content: center;
	width: 42px;
}

.home-categories,
.latest-section,
.popular-tags {
	margin-top: 34px;
}

.section-heading,
.listing-toolbar {
	align-items: end;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 15px;
}

.section-heading h2,
.listing-toolbar h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(24px, 4.8vw, 32px);
	letter-spacing: -0.025em;
	line-height: 1.1;
	margin: 0;
}

.section-heading > button,
.listing-toolbar > span {
	background: none;
	border: 0;
	color: var(--blue);
	font-size: 13px;
	font-weight: 750;
	padding: 9px 0;
	white-space: nowrap;
}

.listing-toolbar > span {
	color: var(--ink-soft);
	font-weight: 600;
}

.tile-grid {
	display: grid;
	gap: 13px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-tile {
	aspect-ratio: 1 / 0.88;
	background: var(--tile-accent);
	border: 0;
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	color: #fff;
	overflow: hidden;
	padding: 0;
	position: relative;
	text-align: left;
}

.category-tile img {
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease;
	width: 100%;
}

.category-tile-shade {
	background: linear-gradient(to top, color-mix(in srgb, var(--tile-accent) 84%, #101618) 0%, rgb(20 24 25 / 12%) 58%, transparent 100%);
	inset: 0;
	position: absolute;
}

.category-tile-copy {
	bottom: 0;
	display: flex;
	flex-direction: column;
	left: 0;
	padding: 14px;
	position: absolute;
	right: 0;
	text-shadow: 0 1px 8px rgb(0 0 0 / 26%);
}

.category-tile-copy strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(18px, 4.5vw, 25px);
	line-height: 1.05;
}

.category-tile-copy small {
	color: rgb(255 255 255 / 83%);
	font-size: 11px;
	font-weight: 650;
	margin-top: 5px;
}

.category-tile:hover img {
	transform: scale(1.035);
}

.special-collection {
	background:
		radial-gradient(circle at 8% 12%, rgb(255 255 255 / 28%) 0 38px, transparent 39px),
		linear-gradient(135deg, #315d7d, #4b7184 58%, #6a7f70);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	color: #fff;
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
	margin-top: 34px;
	overflow: hidden;
	padding: clamp(23px, 5vw, 42px);
	position: relative;
}

.special-copy {
	align-self: center;
}

.special-copy .eyebrow {
	color: #f5c775;
}

.special-copy h2,
.reading-callout h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(30px, 5.5vw, 44px);
	letter-spacing: -0.03em;
	line-height: 1;
	margin: 0;
}

.special-copy p {
	color: rgb(255 255 255 / 78%);
	font-size: 14px;
	line-height: 1.55;
	margin: 13px 0 18px;
}

.special-copy .secondary-button {
	border-color: rgb(255 255 255 / 35%);
	color: #fff;
}

.special-chip-grid {
	display: grid;
	gap: 9px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.special-chip-grid button {
	align-items: center;
	background: rgb(255 255 255 / 12%);
	border: 1px solid rgb(255 255 255 / 18%);
	border-radius: var(--radius-sm);
	color: #fff;
	display: grid;
	gap: 0 9px;
	grid-template-columns: 28px minmax(0, 1fr);
	min-height: 65px;
	padding: 9px 11px;
	text-align: left;
}

.special-chip-grid button > span {
	color: #f5c775;
	font-size: 19px;
	grid-row: 1 / span 2;
	text-align: center;
}

.special-chip-grid strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 14px;
	line-height: 1.1;
}

.special-chip-grid small {
	color: rgb(255 255 255 / 66%);
	font-size: 9px;
	margin-top: 3px;
}

.reading-callout {
	align-items: center;
	background: linear-gradient(135deg, #fffaf1, #f2dfbc);
	border: 1px solid rgb(139 93 41 / 13%);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	display: grid;
	gap: 20px;
	grid-template-columns: 65px minmax(0, 1fr) auto;
	margin-top: 20px;
	padding: clamp(20px, 4vw, 32px);
}

.reading-callout-star {
	align-items: center;
	background: var(--ochre);
	border-radius: 50% 46% 54% 48%;
	color: #fff;
	display: flex;
	font-size: 28px;
	height: 58px;
	justify-content: center;
	transform: rotate(-8deg);
	width: 58px;
}

.reading-callout h2 {
	font-size: clamp(27px, 4.8vw, 38px);
}

.reading-callout p {
	color: var(--ink-soft);
	font-size: 13px;
	line-height: 1.5;
	margin: 8px 0 0;
}

.reading-callout .primary-button {
	white-space: nowrap;
}

.story-rail {
	display: grid;
	gap: 14px;
	grid-auto-columns: min(76vw, 290px);
	grid-auto-flow: column;
	margin-left: calc(-1 * max(16px, env(safe-area-inset-left)));
	margin-right: calc(-1 * max(16px, env(safe-area-inset-right)));
	overflow-x: auto;
	padding: 2px max(16px, env(safe-area-inset-right)) 17px max(16px, env(safe-area-inset-left));
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.story-rail::-webkit-scrollbar {
	display: none;
}

.story-card {
	background: var(--card);
	border: 1px solid rgb(76 67 54 / 10%);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	min-height: 178px;
	overflow: hidden;
	position: relative;
	transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.story-card-main {
	color: inherit;
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	height: 100%;
	min-height: 178px;
	text-decoration: none;
	width: 100%;
}

.story-card-main:focus-visible {
	border-radius: inherit;
	outline: 3px solid var(--blue);
	outline-offset: -4px;
}

.story-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.story-card.is-removing {
	opacity: 0;
	transform: scale(0.96);
}

.story-card-media {
	background: var(--paper-deep);
	min-height: 100%;
	overflow: hidden;
	position: relative;
}

.story-card-media img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.story-image-fallback {
	align-items: center;
	background:
		radial-gradient(circle at 68% 22%, rgb(255 255 255 / 55%) 0 5px, transparent 6px),
		linear-gradient(145deg, #d9c7a7, #7791a0);
	color: #fff8e8;
	display: flex;
	height: 100%;
	justify-content: center;
	min-height: 155px;
	position: relative;
	width: 100%;
}

.story-image-fallback > span {
	font-size: 24px;
	position: absolute;
	right: 20%;
	top: 21%;
}

.story-image-fallback svg {
	bottom: 22%;
	height: auto;
	position: absolute;
	stroke-width: 2;
	width: 55%;
}

.new-pill,
.media-pill {
	align-items: center;
	backdrop-filter: blur(6px);
	border-radius: 999px;
	display: inline-flex;
	font-size: 9px;
	font-weight: 850;
	height: 23px;
	letter-spacing: 0.06em;
	padding: 0 8px;
	position: absolute;
	text-transform: uppercase;
	top: 9px;
}

.new-pill {
	background: var(--coral-dark);
	color: #fff;
	left: 9px;
}

.media-pill {
	background: rgb(255 250 241 / 90%);
	color: var(--blue);
	left: 9px;
	top: 39px;
}

.favorite-button {
	align-items: center;
	background: rgb(255 250 241 / 92%);
	border: 1px solid rgb(38 50 56 / 9%);
	border-radius: 50%;
	color: var(--coral-dark);
	display: flex;
	height: 44px;
	justify-content: center;
	padding: 0;
	width: 44px;
}

.favorite-button--card {
	position: absolute;
	right: 8px;
	top: 8px;
	z-index: 4;
}

.favorite-symbol {
	fill: transparent;
	height: 24px;
	stroke: currentcolor;
	stroke-width: 1.8;
	width: 24px;
}

.favorite-button.is-favorite {
	background: var(--coral);
	border-color: var(--coral);
	color: #fff;
}

.favorite-button.is-favorite .favorite-symbol {
	fill: currentcolor;
}

.download-button {
	align-items: center;
	background: rgb(255 250 241 / 92%);
	border: 1px solid rgb(38 50 56 / 9%);
	border-radius: 50%;
	color: var(--blue);
	display: inline-flex;
	height: 44px;
	justify-content: center;
	padding: 0;
	width: 44px;
}

.download-button svg {
	height: 23px;
	width: 23px;
}

.download-button--card {
	bottom: 8px;
	position: absolute;
	right: 8px;
	z-index: 4;
}

.download-button.is-downloaded {
	background: var(--sage);
	border-color: var(--sage);
	color: #fff;
}

.download-button.is-loading svg {
	animation: downloadPulse 650ms ease-in-out infinite alternate;
}

.story-card-body {
	align-items: start;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	padding: 15px;
}

.story-title-link,
.story-author,
.read-link,
.reader-author {
	background: none;
	border: 0;
	color: inherit;
	padding: 0;
	text-align: left;
}

.story-title-link h3 {
	display: -webkit-box;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 21px;
	letter-spacing: -0.025em;
	line-height: 1.11;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.story-card-meta {
	align-items: center;
	display: flex;
	gap: 8px;
	margin-top: 7px;
	max-width: 100%;
	min-width: 0;
	width: 100%;
}

.story-author {
	color: var(--coral-dark);
	flex: 1 1 auto;
	font-size: 12px;
	font-weight: 700;
	margin-top: 0;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.story-reading-time {
	color: var(--ink-soft);
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 750;
	white-space: nowrap;
}

.story-card-body > p {
	color: var(--ink-soft);
	display: -webkit-box;
	font-size: 13px;
	line-height: 1.42;
	margin: 8px 0 0;
	max-width: 100%;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.story-list .story-card {
	height: 178px;
	min-height: 178px;
}

.story-list .story-card-main {
	height: 100%;
	min-height: 178px;
}

.story-list .story-title-link h3 {
	-webkit-line-clamp: 2;
}

.read-link {
	color: var(--blue);
	font-size: 12px;
	font-weight: 800;
	margin-top: auto;
	padding-top: 11px;
}

.story-card--compact {
	min-height: 340px;
	scroll-snap-align: start;
}

.story-card--compact .story-card-main {
	display: block;
	min-height: 340px;
}

.story-card--compact .story-card-media {
	height: 205px;
}

.story-card--compact .story-card-body {
	padding: 14px;
}

.story-card--compact .story-title-link h3 {
	-webkit-line-clamp: 2;
}

.story-card--compact.story-card--latest {
	aspect-ratio: 1.2 / 1;
	min-height: 0;
}

.story-card--compact.story-card--latest .story-card-main {
	height: 100%;
	min-height: 0;
}

.story-card--compact.story-card--latest .story-card-media {
	height: 100%;
	min-height: 0;
}

.story-card--latest .story-card-body {
	background: linear-gradient(to top, rgb(17 24 28 / 94%) 0%, rgb(17 24 28 / 70%) 58%, transparent 100%);
	bottom: 0;
	color: #fff;
	left: 0;
	padding: 78px 16px 17px;
	pointer-events: none;
	position: absolute;
	right: 0;
	z-index: 2;
}

.story-card--latest .story-title-link,
.story-card--latest .story-author {
	pointer-events: auto;
}

.story-card--latest .story-title-link h3 {
	color: #fff;
	font-size: 22px;
	line-height: 1.06;
	text-shadow: 0 2px 9px rgb(0 0 0 / 42%);
}

.story-card--latest .story-card-meta {
	margin-top: 6px;
}

.story-card--latest .story-author,
.story-card--latest .story-reading-time {
	color: rgb(255 255 255 / 88%);
	font-size: 11px;
	text-shadow: 0 1px 7px rgb(0 0 0 / 55%);
}

.story-card--latest .favorite-button--card,
.story-card--latest .download-button--card,
.story-card--latest .new-pill,
.story-card--latest .media-pill {
	z-index: 3;
}

.story-card--latest .download-button--card {
	bottom: auto;
	top: 58px;
}

.quiet-note {
	align-items: center;
	border-top: 1px solid var(--line);
	color: var(--ink-soft);
	display: flex;
	font-size: 12px;
	gap: 9px;
	justify-content: center;
	margin: 34px 0 4px;
	padding: 18px 10px 0;
	text-align: center;
}

.quiet-note > span {
	color: var(--sage);
	font-size: 24px;
}

.quiet-note p {
	margin: 0;
}

.home-offline-explainer {
	align-items: center;
	background: linear-gradient(135deg, rgb(255 250 241 / 96%), rgb(220 232 225 / 92%));
	border: 1px solid rgb(100 130 89 / 20%);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	display: grid;
	gap: 18px;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	margin: 36px 0 4px;
	padding: 22px;
}

.home-offline-logo {
	align-items: center;
	background: #fffaf1;
	border: 1px solid rgb(58 65 67 / 10%);
	border-radius: 50%;
	display: flex;
	height: 68px;
	justify-content: center;
	width: 68px;
}

.home-offline-logo img {
	height: 61px;
	object-fit: contain;
	width: 61px;
}

.home-offline-explainer h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(24px, 4.8vw, 31px);
	letter-spacing: -0.025em;
	line-height: 1.08;
	margin: 0;
}

.home-offline-explainer p {
	color: var(--ink-soft);
	font-size: 12px;
	line-height: 1.55;
	margin: 8px 0 0;
	max-width: 680px;
}

.home-offline-explainer .secondary-button {
	white-space: nowrap;
}

.offline-home-hero {
	background:
		radial-gradient(circle at 94% 5%, rgb(255 255 255 / 34%) 0 86px, transparent 88px),
		linear-gradient(135deg, #315d7d, #4b7184 56%, #648259);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	color: #fff;
	display: grid;
	gap: 22px;
	grid-template-columns: 104px minmax(0, 1fr);
	overflow: hidden;
	padding: clamp(24px, 5vw, 42px);
	position: relative;
}

.offline-home-brand {
	align-items: center;
	align-self: start;
	background: #fffaf1;
	border: 1px solid rgb(255 255 255 / 44%);
	border-radius: 50%;
	box-shadow: 0 12px 28px rgb(17 27 31 / 18%);
	display: flex;
	height: 96px;
	justify-content: center;
	position: relative;
	width: 96px;
	z-index: 1;
}

.offline-home-brand img {
	height: 87px;
	object-fit: contain;
	width: 87px;
}

.offline-home-copy {
	align-self: center;
	position: relative;
	z-index: 1;
}

.offline-mode-label {
	align-items: center;
	color: #fff4dc;
	display: inline-flex;
	font-size: 11px;
	font-weight: 800;
	gap: 8px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.offline-mode-label .offline-status-dot {
	background: #f5c775;
	border-color: rgb(49 93 125 / 84%);
	box-shadow: 0 0 0 1px rgb(255 255 255 / 34%);
}

.offline-home-copy h1 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(35px, 7vw, 53px);
	letter-spacing: -0.035em;
	line-height: 0.98;
	margin: 10px 0 0;
}

.offline-home-copy > p {
	color: rgb(255 255 255 / 82%);
	font-size: 15px;
	line-height: 1.55;
	margin: 13px 0 0;
	max-width: 660px;
}

.offline-home-guide {
	background: rgb(18 37 46 / 28%);
	border: 1px solid rgb(255 255 255 / 17%);
	border-radius: var(--radius);
	grid-column: 1 / -1;
	padding: 18px 20px;
	position: relative;
	z-index: 1;
}

.offline-home-guide strong {
	display: block;
	font-size: 13px;
}

.offline-home-guide ul {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 12px 0;
	padding: 0;
}

.offline-home-guide li {
	color: rgb(255 255 255 / 86%);
	font-size: 11px;
	line-height: 1.45;
	padding-left: 17px;
	position: relative;
}

.offline-home-guide li::before {
	color: #f5c775;
	content: "✦";
	left: 0;
	position: absolute;
	top: 0;
}

.offline-home-guide p {
	border-top: 1px solid rgb(255 255 255 / 14%);
	color: #fff4dc;
	font-size: 11px;
	line-height: 1.45;
	margin: 0;
	padding-top: 12px;
}

.offline-home-hero > .primary-button {
	background: #fffaf1;
	box-shadow: 0 5px 0 rgb(16 31 37 / 18%);
	color: var(--blue);
	grid-column: 1 / -1;
	justify-self: start;
	position: relative;
	z-index: 1;
}

.offline-home-library {
	margin-top: 34px;
}

.offline-home-library > :first-child {
	margin-top: 0;
}

.offline-home-count {
	color: var(--ink-soft);
	font-size: 12px;
	font-weight: 750;
	white-space: nowrap;
}

.offline-home-list {
	margin-top: 2px;
}

.offline-category-section,
.offline-story-group {
	margin-top: 34px;
}

.offline-category-section .section-heading p {
	color: var(--ink-soft);
	font-size: 12px;
	line-height: 1.5;
	margin: 7px 0 0;
}

.offline-category-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.offline-category-card {
	align-items: center;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
	color: var(--ink);
	display: grid;
	gap: 12px;
	grid-template-columns: 38px minmax(0, 1fr) auto;
	min-height: 74px;
	padding: 11px 13px;
	text-align: left;
}

.offline-category-card > span:first-child {
	align-items: center;
	background: rgb(51 93 126 / 10%);
	border-radius: 50%;
	color: var(--blue);
	display: flex;
	font-size: 17px;
	height: 38px;
	justify-content: center;
	width: 38px;
}

.offline-category-card > span:nth-child(2) {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.offline-category-card strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px;
	line-height: 1.12;
}

.offline-category-card small {
	color: var(--ink-soft);
	font-size: 10px;
	margin-top: 4px;
}

.offline-category-card em {
	color: var(--coral-dark);
	font-size: 18px;
	font-style: normal;
}

.offline-empty-archive {
	margin-top: 30px;
}

.offline-external-note {
	background: rgb(51 93 126 / 8%);
	border: 1px solid rgb(51 93 126 / 15%);
	border-radius: 12px;
	color: var(--ink-soft);
	font-size: 0.86em;
	padding: 13px 15px;
}

.page-intro {
	align-items: start;
	display: flex;
	gap: 14px;
	margin: 12px 0 29px;
}

.page-intro > div {
	max-width: 720px;
}

.page-intro h1,
.search-hero h1 {
	font-size: clamp(36px, 8vw, 57px);
	line-height: 1;
	margin: 0;
}

.page-intro p,
.search-hero p {
	color: var(--ink-soft);
	font-size: 15px;
	line-height: 1.6;
	margin: 11px 0 0;
}

.back-button {
	align-items: center;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink);
	display: inline-flex;
	flex: 0 0 auto;
	height: 46px;
	justify-content: center;
	padding: 0;
	width: 46px;
}

.back-button svg {
	height: 24px;
	width: 24px;
}

.category-browser {
	margin-bottom: 34px;
}

.category-groups {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-group {
	background: rgb(255 250 241 / 76%);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.category-group summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 19px;
	font-weight: 700;
	gap: 12px;
	justify-content: space-between;
	list-style: none;
	min-height: 56px;
	padding: 10px 14px;
}

.category-group summary::-webkit-details-marker {
	display: none;
}

.category-group summary::after {
	color: var(--coral);
	content: "+";
	font-family: system-ui, sans-serif;
	font-size: 22px;
	font-weight: 400;
}

.category-group[open] summary::after {
	content: "−";
}

.category-group summary small {
	color: var(--ink-soft);
	font-family: system-ui, sans-serif;
	font-size: 10px;
	font-weight: 600;
	margin-left: auto;
}

.category-chip-list {
	border-top: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	padding: 6px;
}

.category-chip {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 9px;
	color: var(--ink);
	display: flex;
	justify-content: space-between;
	min-height: 43px;
	padding: 6px 9px;
	text-align: left;
}

.category-chip:hover {
	background: var(--paper);
}

.category-chip small {
	color: var(--ink-soft);
	font-size: 10px;
}

.category-chip--root {
	color: var(--coral-dark);
	font-weight: 750;
}

.category-chip--depth-1 {
	padding-left: 22px;
}

.category-chip--depth-2 {
	padding-left: 34px;
}

.special-page-grid {
	display: grid;
	gap: 13px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.special-page-card {
	align-items: center;
	background: color-mix(in srgb, var(--card) 88%, var(--paper-deep) 12%);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	color: var(--ink);
	display: flex;
	gap: 15px;
	min-height: 132px;
	padding: 18px;
	text-align: left;
}

.special-page-symbol {
	align-items: center;
	background: color-mix(in srgb, var(--coral) 12%, var(--paper));
	border-radius: 50%;
	color: var(--coral-dark);
	display: flex;
	flex: 0 0 52px;
	font-size: 24px;
	height: 52px;
	justify-content: center;
}

.special-page-card > span:last-child {
	display: flex;
	flex-direction: column;
}

.special-page-card strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 21px;
	line-height: 1.08;
}

.special-page-card small {
	color: var(--ink-soft);
	display: -webkit-box;
	font-size: 11px;
	line-height: 1.4;
	margin-top: 6px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.special-page-card em {
	color: var(--blue);
	font-size: 10px;
	font-style: normal;
	font-weight: 750;
	margin-top: 8px;
}

.library-tabs {
	background: rgb(255 250 241 / 68%);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	display: grid;
	gap: 7px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 18px;
	padding: 6px;
}

.library-tabs button {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 14px;
	color: var(--ink-soft);
	display: flex;
	gap: 10px;
	justify-content: center;
	min-height: 58px;
	padding: 7px 12px;
}

.library-tabs button:only-child {
	grid-column: 1 / -1;
}

.library-tabs button.is-active {
	background: var(--card);
	box-shadow: var(--shadow-sm);
	color: var(--coral-dark);
}

.library-tabs svg {
	height: 24px;
	width: 24px;
}

.library-tabs button > span {
	align-items: center;
	display: flex;
	font-size: 13px;
	font-weight: 750;
	gap: 7px;
}

.library-tabs small {
	align-items: center;
	background: var(--paper-deep);
	border-radius: 999px;
	color: var(--ink-soft);
	display: inline-flex;
	font-size: 9px;
	height: 22px;
	justify-content: center;
	min-width: 22px;
	padding: 0 6px;
}

.offline-summary {
	align-items: center;
	background: rgb(100 130 89 / 10%);
	border: 1px solid rgb(100 130 89 / 18%);
	border-radius: var(--radius);
	display: flex;
	justify-content: space-between;
	margin-bottom: 24px;
	min-height: 78px;
	padding: 13px 16px;
}

.offline-summary > div {
	align-items: center;
	display: grid;
	gap: 3px 9px;
	grid-template-columns: auto 1fr;
}

.offline-status-dot {
	background: var(--sage);
	border: 3px solid rgb(255 255 255 / 75%);
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgb(100 130 89 / 20%);
	display: inline-block;
	height: 13px;
	width: 13px;
}

.offline-summary .offline-status-dot {
	grid-row: 1 / span 2;
}

.offline-summary strong {
	font-size: 13px;
}

.offline-summary small {
	color: var(--ink-soft);
	font-size: 10px;
}

.offline-summary > button {
	background: transparent;
	border: 0;
	color: var(--coral-dark);
	font-size: 11px;
	font-weight: 750;
	min-height: 44px;
	padding: 6px 8px;
}

.section-download-panel {
	align-items: center;
	background: linear-gradient(135deg, rgb(100 130 89 / 13%), rgb(255 250 241 / 88%));
	border: 1px solid rgb(100 130 89 / 22%);
	border-radius: var(--radius);
	display: grid;
	gap: 14px;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	margin: 18px 0 25px;
	padding: 15px 17px;
}

.section-download-icon {
	align-items: center;
	background: var(--sage);
	border-radius: 50%;
	color: #fff;
	display: flex;
	font-family: Georgia, serif;
	font-size: 25px;
	height: 44px;
	justify-content: center;
	width: 44px;
}

.section-download-panel > div:nth-child(2) {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.section-download-panel strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
}

.section-download-panel small {
	color: var(--ink-soft);
	font-size: 10px;
	line-height: 1.45;
	margin-top: 3px;
}

.section-download-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	justify-content: end;
}

.section-download-actions .primary-button,
.section-download-actions .secondary-button {
	min-height: 43px;
	padding: 10px 15px;
}

.section-download-actions .text-button {
	background: transparent;
	border: 0;
	color: var(--coral-dark);
	font-size: 10px;
	font-weight: 800;
	min-height: 42px;
	padding: 7px;
}

.section-progress {
	background: rgb(100 130 89 / 18%);
	border-radius: 999px;
	height: 5px;
	margin-top: 9px;
	overflow: hidden;
	width: min(330px, 100%);
}

.section-progress i {
	background: var(--sage);
	border-radius: inherit;
	display: block;
	height: 100%;
	transition: width 220ms ease;
}

.offline-sections {
	margin: 26px 0;
}

.offline-section-list {
	display: grid;
	gap: 9px;
}

.offline-section-card {
	align-items: center;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	display: flex;
	gap: 8px;
	justify-content: space-between;
	min-height: 70px;
	padding: 7px 9px;
}

.offline-section-card > button {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--ink);
	display: flex;
	flex: 1;
	gap: 11px;
	min-width: 0;
	padding: 7px;
	text-align: left;
}

.offline-section-card > button > span:first-child {
	align-items: center;
	background: var(--paper-deep);
	border-radius: 50%;
	color: var(--blue);
	display: flex;
	flex: 0 0 38px;
	font-size: 18px;
	height: 38px;
	justify-content: center;
}

.offline-section-card > button > span:last-child {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.offline-section-card strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 16px;
}

.offline-section-card small {
	color: var(--ink-soft);
	font-size: 9px;
	margin-top: 3px;
}

.offline-section-card > div {
	display: flex;
	gap: 2px;
}

.offline-section-card > div button {
	background: transparent;
	border: 0;
	color: var(--coral-dark);
	font-size: 10px;
	font-weight: 800;
	min-height: 42px;
	padding: 7px;
}

.listing-section {
	margin-top: 12px;
}

.story-list {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr;
}

.story-list-recommendation {
	background: linear-gradient(135deg, #fffaf1, #f3e2c1);
	border: 1px solid rgb(139 93 41 / 17%);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	color: var(--ink);
	display: block;
	grid-column: 1 / -1;
	overflow: hidden;
	text-decoration: none;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.story-list-recommendation:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.story-list-recommendation:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
}

.list-recommendation-main {
	color: var(--ink);
	display: grid;
	gap: 16px;
	grid-template-columns: 108px minmax(0, 1fr);
	min-height: 162px;
	padding: 16px;
	text-decoration: none;
}

.list-recommendation-cover {
	align-items: center;
	align-self: stretch;
	background: rgb(255 255 255 / 66%);
	border-radius: var(--radius-sm);
	display: flex;
	justify-content: center;
	min-height: 130px;
	overflow: hidden;
}

.list-recommendation-cover > img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.list-recommendation-cover > span {
	align-items: center;
	color: var(--ochre);
	display: flex;
	height: 100%;
	justify-content: center;
	width: 100%;
}

.list-recommendation-cover svg {
	fill: none;
	height: auto;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 58%;
}

.list-recommendation-copy {
	align-items: start;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.list-recommendation-label {
	background: var(--ochre);
	border-radius: 999px;
	color: #fff;
	font-size: 9px;
	font-weight: 850;
	letter-spacing: 0.055em;
	padding: 5px 8px;
	text-transform: uppercase;
}

.list-recommendation-copy > strong {
	display: -webkit-box;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	letter-spacing: -0.02em;
	line-height: 1.08;
	margin-top: 9px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.list-recommendation-copy > small {
	color: var(--coral-dark);
	font-size: 11px;
	font-weight: 750;
	margin-top: 5px;
}

.list-recommendation-description {
	color: var(--ink-soft);
	display: -webkit-box;
	font-size: 11px;
	line-height: 1.42;
	margin-top: 7px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.list-recommendation-copy > em {
	color: var(--blue);
	font-size: 12px;
	font-style: normal;
	font-weight: 850;
	margin-top: auto;
	padding-top: 10px;
}

.list-recommendation-disclosure {
	align-items: start;
	border-top: 1px solid rgb(139 93 41 / 13%);
	color: var(--ink-soft);
	display: flex;
	font-size: 9px;
	gap: 7px;
	line-height: 1.35;
	padding: 9px 16px 10px;
}

.list-recommendation-disclosure > span:first-child {
	align-items: center;
	border: 1px solid currentcolor;
	border-radius: 50%;
	display: flex;
	flex: 0 0 16px;
	font-size: 9px;
	height: 16px;
	justify-content: center;
}

.list-recommendation-disclosure > span:last-child {
	display: block;
	margin-top: 1px;
}

.list-sentinel {
	align-items: center;
	color: var(--ink-soft);
	display: flex;
	font-size: 12px;
	gap: 9px;
	justify-content: center;
	min-height: 76px;
	text-align: center;
}

.mini-loader {
	animation: spin 750ms linear infinite;
	border: 2px solid rgb(51 93 126 / 20%);
	border-radius: 50%;
	border-top-color: var(--blue);
	height: 20px;
	width: 20px;
}

.end-mark {
	color: var(--ochre);
	font-size: 21px;
}

.story-card--skeleton {
	grid-template-columns: 132px 1fr;
	pointer-events: none;
}

.story-card--skeleton > span,
.story-card--skeleton i {
	animation: shimmer 1.3s ease-in-out infinite;
	background: linear-gradient(90deg, #e8ddcc 25%, #f5ecdd 50%, #e8ddcc 75%);
	background-size: 200% 100%;
	display: block;
}

.story-card--skeleton > span {
	min-height: 178px;
}

.story-card--skeleton > div {
	padding: 20px 16px;
}

.story-card--skeleton i {
	border-radius: 6px;
	height: 14px;
	margin-bottom: 11px;
	width: 85%;
}

.story-card--skeleton i:first-child {
	height: 24px;
}

.story-card--skeleton i:last-child {
	width: 55%;
}

.search-hero {
	margin: 12px auto 0;
	max-width: 780px;
	text-align: center;
}

.search-form {
	margin-top: 24px;
}

.search-box {
	align-items: center;
	background: var(--card);
	border: 1px solid rgb(51 93 126 / 23%);
	border-radius: 999px;
	box-shadow: var(--shadow-md);
	display: flex;
	min-height: 59px;
	padding: 5px 6px 5px 17px;
}

.search-icon {
	color: var(--blue);
	font-family: Georgia, serif;
	font-size: 31px;
	line-height: 1;
	margin-right: 8px;
	transform: rotate(-12deg);
}

.search-box input {
	background: transparent;
	border: 0;
	color: var(--ink);
	flex: 1;
	font-size: 16px;
	min-width: 0;
	outline: none;
}

.search-box input::placeholder {
	color: #879094;
}

.search-box button {
	background: var(--blue);
	border: 0;
	border-radius: 999px;
	color: #fff;
	font-size: 13px;
	font-weight: 750;
	min-height: 47px;
	padding: 0 17px;
}

.tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag-cloud button,
.reader-tags button {
	align-items: center;
	background: rgb(255 250 241 / 82%);
	border: 1px solid rgb(51 93 126 / 18%);
	border-radius: 999px;
	color: var(--blue);
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	gap: 6px;
	min-height: 42px;
	padding: 6px 13px;
}

.tag-cloud small {
	color: var(--ink-soft);
	font-size: 9px;
	font-weight: 600;
}

.search-suggestions {
	margin-top: 24px;
}

.suggestion-groups {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.suggestion-groups h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 21px;
	margin: 0 0 8px;
}

.suggestion-list {
	background: rgb(255 250 241 / 74%);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

.search-suggestion {
	align-items: center;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	display: flex;
	gap: 10px;
	min-height: 57px;
	padding: 8px 12px;
	text-align: left;
	width: 100%;
}

.search-suggestion:last-child {
	border-bottom: 0;
}

.suggestion-icon {
	align-items: center;
	background: var(--paper-deep);
	border-radius: 50%;
	color: var(--coral-dark);
	display: flex;
	flex: 0 0 38px;
	font-family: Georgia, serif;
	font-size: 18px;
	height: 38px;
	justify-content: center;
	width: 38px;
}

.search-suggestion > span:last-child {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.search-suggestion strong {
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.search-suggestion small {
	color: var(--ink-soft);
	font-size: 10px;
	margin-top: 2px;
}

.search-listing {
	margin-top: 30px;
}

.reading-hero {
	align-items: center;
	background:
		radial-gradient(circle at 92% 14%, rgb(213 141 45 / 16%) 0 55px, transparent 57px),
		linear-gradient(135deg, #fffaf1, #eadbc2);
	border: 1px solid rgb(129 91 43 / 12%);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 180px;
	margin-bottom: 36px;
	min-height: 250px;
	overflow: hidden;
	padding: clamp(25px, 5vw, 48px);
}

.reading-hero h1 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(40px, 8vw, 66px);
	letter-spacing: -0.04em;
	line-height: 0.96;
	margin: 0;
	max-width: 650px;
}

.reading-hero p {
	color: var(--ink-soft);
	font-size: 15px;
	line-height: 1.6;
	margin: 15px 0 0;
	max-width: 620px;
}

.reading-hero-book {
	color: var(--blue);
	transform: rotate(-3deg);
}

.reading-hero-book svg {
	height: auto;
	stroke-width: 1.7;
	width: 100%;
}

.reading-guide-group,
.reading-books {
	margin-top: 34px;
}

.reading-guide-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reading-guide-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	color: var(--ink);
	display: grid;
	gap: 14px;
	grid-template-columns: 43px minmax(0, 1fr);
	min-height: 174px;
	padding: 18px;
	text-align: left;
	text-decoration: none;
	width: 100%;
}

.reading-guide-number {
	color: var(--coral);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
}

.reading-guide-card > span:last-child {
	display: flex;
	flex-direction: column;
}

.reading-guide-card small {
	color: var(--coral-dark);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.04em;
	margin-bottom: 7px;
	text-transform: uppercase;
}

.reading-guide-card strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	line-height: 1.08;
}

.reading-guide-card p {
	color: var(--ink-soft);
	display: -webkit-box;
	font-size: 11px;
	line-height: 1.45;
	margin: 9px 0 12px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.reading-guide-card em {
	color: var(--blue);
	font-size: 11px;
	font-style: normal;
	font-weight: 800;
	margin-top: auto;
}

.reading-guide-page {
	margin: 0 auto;
	max-width: 980px;
}

.reading-guide-back {
	background: transparent;
	border: 0;
	color: var(--blue);
	font-size: 12px;
	font-weight: 800;
	min-height: 44px;
	padding: 5px 0;
}

.reading-guide-hero {
	background:
		radial-gradient(circle at 91% 18%, rgb(213 141 45 / 16%) 0 54px, transparent 56px),
		linear-gradient(135deg, #fffaf1, #e7d9bf);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	margin-top: 8px;
	padding: clamp(25px, 6vw, 56px);
}

.reading-guide-hero h1 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(36px, 7vw, 62px);
	letter-spacing: -0.035em;
	line-height: 0.98;
	margin: 0;
	max-width: 760px;
}

.reading-guide-hero > p {
	color: var(--ink-soft);
	font-size: 15px;
	line-height: 1.6;
	margin: 15px 0 0;
	max-width: 690px;
}

.reading-guide-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 20px;
}

.reading-guide-facts span {
	background: rgb(51 93 126 / 9%);
	border: 1px solid rgb(51 93 126 / 12%);
	border-radius: 999px;
	color: var(--blue);
	font-size: 10px;
	font-weight: 750;
	padding: 8px 11px;
}

.affiliate-disclosure {
	align-items: start;
	background: rgb(51 93 126 / 7%);
	border: 1px solid rgb(51 93 126 / 13%);
	border-radius: var(--radius-sm);
	color: var(--ink-soft);
	display: flex;
	font-size: 10px;
	gap: 9px;
	line-height: 1.45;
	margin: -2px 0 15px;
	padding: 10px 12px;
}

.affiliate-disclosure > span {
	align-items: center;
	background: var(--blue);
	border-radius: 50%;
	color: #fff;
	display: flex;
	flex: 0 0 20px;
	font-family: Georgia, serif;
	height: 20px;
	justify-content: center;
}

.affiliate-disclosure p {
	margin: 2px 0 0;
}

.reading-book-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reading-book-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	color: var(--ink);
	display: grid;
	grid-template-columns: 126px minmax(0, 1fr);
	min-height: 200px;
	overflow: hidden;
	text-decoration: none;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.reading-book-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.reading-book-card:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
}

.reading-book-cover {
	align-items: center;
	background: linear-gradient(145deg, #d8c7a8, #7192a1);
	display: flex;
	justify-content: center;
	min-height: 100%;
	overflow: hidden;
	position: relative;
}

.reading-book-cover > img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.reading-book-cover > span svg {
	color: #fff7e7;
	height: auto;
	width: 58px;
}

.reading-book-cover > small {
	align-items: center;
	background: var(--ochre);
	border: 2px solid var(--card);
	border-radius: 50%;
	color: #fff;
	display: flex;
	font-size: 10px;
	font-weight: 850;
	height: 29px;
	justify-content: center;
	left: 9px;
	position: absolute;
	top: 9px;
	width: 29px;
}

.reading-book-copy {
	align-items: start;
	display: flex;
	flex-direction: column;
	padding: 16px;
}

.reading-book-label {
	color: var(--coral-dark);
	font-size: 8px;
	font-weight: 800;
	letter-spacing: 0.05em;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.reading-book-copy h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	line-height: 1.08;
	margin: 0;
}

.reading-book-copy p {
	color: var(--ink-soft);
	display: -webkit-box;
	font-size: 10px;
	line-height: 1.4;
	margin: 8px 0 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.reading-book-copy .reading-book-author {
	color: var(--coral-dark);
	font-size: 11px;
	font-weight: 700;
	-webkit-line-clamp: 1;
}

.reading-book-link {
	color: var(--blue);
	font-size: 11px;
	font-weight: 800;
	margin-top: auto;
	padding-top: 12px;
}

.reading-fallback-content {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	line-height: 1.6;
	margin-top: 28px;
	padding: clamp(20px, 5vw, 42px);
}

.reading-fallback-content h2,
.reading-fallback-content h3 {
	font-family: Georgia, "Times New Roman", serif;
}

.reading-fallback-content a {
	color: var(--blue);
}

.reading-fallback-content img {
	border-radius: var(--radius-sm);
	height: auto;
	max-width: 100%;
}

.reading-parent-note {
	align-items: center;
	border-top: 1px solid var(--line);
	color: var(--ink-soft);
	display: flex;
	gap: 12px;
	margin: 36px 0 5px;
	padding: 20px 5px 0;
}

.reading-parent-note > span {
	color: var(--ochre);
	font-size: 25px;
}

.reading-parent-note strong {
	color: var(--ink);
	font-size: 12px;
}

.reading-parent-note p {
	font-size: 10px;
	margin: 3px 0 0;
}

.community-invite {
	margin-top: 40px;
}

.community-invite .section-heading p {
	color: var(--ink-soft);
	font-size: 12px;
	line-height: 1.5;
	margin: 7px 0 0;
	max-width: 620px;
}

.community-invite-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-invite-card {
	align-items: center;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	color: var(--ink);
	display: grid;
	gap: 14px;
	grid-template-columns: 52px minmax(0, 1fr);
	min-height: 150px;
	padding: 18px;
	text-decoration: none;
}

.community-invite-card--story {
	background: linear-gradient(135deg, #fffaf1, #f2dfcf);
}

.community-invite-card--book {
	background: linear-gradient(135deg, #fffaf1, #dce8e1);
}

.community-invite-icon,
.reading-suggestion-icon {
	align-items: center;
	background: var(--coral);
	border-radius: 50%;
	color: #fff;
	display: flex;
	flex: 0 0 48px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 23px;
	height: 48px;
	justify-content: center;
	width: 48px;
}

.community-invite-card--book .community-invite-icon,
.reading-suggestion-icon {
	background: var(--blue);
}

.community-invite-card > span:last-child {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.community-invite-card strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	line-height: 1.1;
}

.community-invite-card small {
	color: var(--ink-soft);
	font-size: 11px;
	line-height: 1.45;
	margin-top: 7px;
}

.community-invite-card em {
	color: var(--blue);
	font-size: 11px;
	font-style: normal;
	font-weight: 800;
	margin-top: 12px;
}

.reading-suggestion {
	align-items: center;
	background: linear-gradient(135deg, #fffaf1, #dce8e1);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	display: grid;
	gap: 15px;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	margin-top: 34px;
	padding: 20px;
}

.reading-suggestion h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 23px;
	line-height: 1.1;
	margin: 0;
}

.reading-suggestion p {
	color: var(--ink-soft);
	font-size: 11px;
	line-height: 1.45;
	margin: 6px 0 0;
}

.reading-suggestion > a {
	align-items: center;
	background: var(--blue);
	border-radius: 999px;
	color: #fff;
	display: flex;
	font-size: 11px;
	font-weight: 800;
	justify-content: center;
	min-height: 48px;
	padding: 10px 17px;
	text-decoration: none;
	white-space: nowrap;
}

.empty-state {
	align-items: center;
	display: flex;
	flex-direction: column;
	margin: 54px auto;
	max-width: 480px;
	padding: 10px 20px;
	text-align: center;
}

.empty-illustration {
	align-items: center;
	background: var(--paper-deep);
	border: 1px dashed rgb(51 93 126 / 30%);
	border-radius: 50%;
	color: var(--blue);
	display: flex;
	font-family: Georgia, serif;
	font-size: 47px;
	height: 95px;
	justify-content: center;
	margin-bottom: 18px;
	transform: rotate(-8deg);
	width: 95px;
}

.empty-state h2 {
	font-size: 29px;
	margin: 0;
}

.empty-state p {
	color: var(--ink-soft);
	line-height: 1.55;
	margin: 9px 0 21px;
}

.reader-open {
	background: #efe7d7;
}

.reader-open .app-header,
.reader-open .bottom-nav {
	display: none;
}

.reader-open .app-main {
	max-width: none;
	padding: 0;
}

.story-reader {
	--reader-background: #fffaf1;
	--reader-text: #2c3436;
	--reader-muted: #687376;
	--reader-accent: #ad3f31;
	background: var(--reader-background);
	color: var(--reader-text);
	min-height: 100vh;
}

.story-reader[data-theme="sepia"] {
	--reader-background: #f1e1c2;
	--reader-text: #3f3327;
	--reader-muted: #766451;
	--reader-accent: #96392e;
}

.story-reader[data-theme="night"] {
	--reader-background: #1e282d;
	--reader-text: #e8e1d6;
	--reader-muted: #aab5b7;
	--reader-accent: #f17e6e;
}

.reader-topbar {
	align-items: center;
	background: color-mix(in srgb, var(--reader-background) 92%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--reader-text) 12%, transparent);
	color: var(--reader-text);
	display: grid;
	grid-template-columns: 48px 1fr auto;
	height: calc(66px + env(safe-area-inset-top));
	left: 0;
	padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
	position: fixed;
	right: 0;
	top: 0;
	z-index: 120;
}

.reader-topbar .back-button {
	background: transparent;
	border: 0;
	color: currentcolor;
}

.reader-topbar-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 16px;
	font-weight: 700;
	justify-self: center;
}

.reader-actions {
	display: flex;
}

.reader-actions .download-button,
.reader-actions .favorite-button {
	background: transparent;
	border: 0;
	color: var(--reader-accent);
}

.reader-actions .download-button.is-downloaded {
	background: var(--sage);
	color: #fff;
}

.reader-actions .favorite-button.is-favorite {
	background: var(--coral);
	color: #fff;
}

.reader-cover {
	background: var(--paper-deep);
	height: clamp(270px, 52vh, 520px);
	margin-top: calc(66px + env(safe-area-inset-top));
	overflow: hidden;
	position: relative;
}

.reader-cover > img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.reader-cover-shade {
	background: linear-gradient(to top, var(--reader-background), transparent 35%);
	bottom: 0;
	height: 100px;
	left: 0;
	position: absolute;
	right: 0;
}

.reader-cover-fallback,
.reader-cover-fallback .story-image-fallback {
	height: 100%;
}

.reader-cover-fallback .story-image-fallback svg {
	bottom: 19%;
	max-width: 280px;
}

.reader-paper {
	background: var(--reader-background);
	margin: -32px auto 0;
	max-width: 820px;
	min-height: 70vh;
	padding: 0 max(20px, env(safe-area-inset-right)) calc(65px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
	position: relative;
}

.reader-heading {
	border-bottom: 1px solid color-mix(in srgb, var(--reader-text) 13%, transparent);
	padding: 24px 0 21px;
	text-align: center;
}

.reader-media {
	background: color-mix(in srgb, var(--reader-text) 8%, transparent);
	border-radius: 999px;
	color: var(--reader-muted);
	display: inline-flex;
	font-size: 10px;
	font-weight: 800;
	gap: 5px;
	letter-spacing: 0.08em;
	margin-bottom: 10px;
	padding: 6px 10px;
	text-transform: uppercase;
}

.reader-heading h1 {
	font-size: clamp(36px, 8.5vw, 59px);
	line-height: 1.03;
	margin: 0 auto;
	max-width: 730px;
}

.reader-author {
	color: var(--reader-accent);
	font-size: 14px;
	font-weight: 750;
	margin-top: 12px;
}

.reader-meta {
	color: var(--reader-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 10px;
	gap: 8px 15px;
	justify-content: center;
	margin-top: 10px;
}

.reader-meta span + span::before {
	content: "•";
	margin-right: 15px;
}

.reader-offline-banner {
	align-items: center;
	background: color-mix(in srgb, var(--reader-background) 87%, var(--sage) 13%);
	border: 1px solid color-mix(in srgb, var(--reader-text) 11%, transparent);
	border-radius: var(--radius-sm);
	display: grid;
	gap: 10px;
	grid-template-columns: auto minmax(0, 1fr) auto;
	margin: 18px 0 0;
	padding: 10px 11px;
}

.reader-offline-banner > div {
	display: flex;
	flex-direction: column;
}

.reader-offline-banner strong {
	font-size: 12px;
	line-height: 1.2;
}

.reader-offline-banner small {
	color: var(--reader-text);
	font-size: 9px;
	line-height: 1.35;
	margin-top: 3px;
}

.download-button--label {
	border-radius: 999px;
	gap: 5px;
	height: 42px;
	padding: 0 12px;
	width: auto;
}

.download-button--label span {
	font-size: 11px;
	font-weight: 750;
}

.download-button--label.is-downloaded {
	background: #4f6b47;
	border-color: #4f6b47;
}

.download-button--label svg {
	height: 19px;
	width: 19px;
}

.reader-controls {
	align-items: center;
	background: color-mix(in srgb, var(--reader-background) 92%, var(--reader-text) 8%);
	border: 1px solid color-mix(in srgb, var(--reader-text) 12%, transparent);
	border-radius: var(--radius-sm);
	display: flex;
	gap: 7px;
	justify-content: space-between;
	margin: 18px 0 28px;
	padding: 6px;
	position: sticky;
	top: calc(72px + env(safe-area-inset-top));
	z-index: 20;
}

.reader-controls button {
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: var(--reader-text);
	font-size: 12px;
	font-weight: 700;
	min-height: 39px;
	padding: 0 9px;
}

.font-controls,
.theme-controls {
	display: flex;
}

.font-controls button:first-child {
	font-size: 12px;
}

.font-controls button:last-child {
	font-size: 17px;
}

.theme-controls {
	gap: 3px;
}

.theme-controls button {
	border: 2px solid transparent;
	border-radius: 50%;
	height: 34px;
	min-height: 34px;
	padding: 0;
	width: 34px;
}

.theme-controls button:nth-child(1) {
	background: #fffaf1;
}

.theme-controls button:nth-child(2) {
	background: #dfc89d;
}

.theme-controls button:nth-child(3) {
	background: #26343a;
}

.theme-controls button.is-active {
	border-color: var(--coral);
	box-shadow: 0 0 0 2px var(--reader-background);
}

.story-content {
	color: var(--reader-text);
	font-family: Georgia, "Times New Roman", serif;
	font-size: calc(19px * var(--reader-scale));
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.story-reader[data-spacing="compact"] .story-content {
	line-height: 1.55;
}

.story-reader[data-spacing="airy"] .story-content {
	line-height: 2;
}

.story-content > :first-child {
	margin-top: 0;
}

.story-content p {
	margin: 0 0 1.2em;
}

.story-content h2,
.story-content h3,
.story-content h4 {
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.2;
	margin: 1.65em 0 0.6em;
}

.story-content h2 {
	font-size: 1.55em;
}

.story-content h3 {
	font-size: 1.3em;
}

.story-content a {
	color: var(--reader-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.story-content img,
.story-content video,
.story-content iframe {
	border: 0;
	border-radius: var(--radius-sm);
	height: auto;
	margin: 1.4em auto;
	max-width: 100%;
}

.story-content iframe {
	aspect-ratio: 16 / 9;
	display: block;
	width: 100%;
}

.story-content .truf-youtube-player {
	aspect-ratio: 16 / 9;
	background: #172126;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
	margin: 1.5em 0;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.story-content .truf-youtube-player iframe {
	border: 0;
	height: 100%;
	inset: 0;
	margin: 0;
	position: absolute;
	width: 100%;
}

.story-content audio {
	margin: 1.3em 0;
	max-width: 100%;
	width: 100%;
}

.story-content blockquote {
	border-left: 4px solid var(--ochre);
	color: var(--reader-muted);
	font-style: italic;
	margin: 1.5em 0;
	padding: 0.2em 0 0.2em 1em;
}

.story-content ul,
.story-content ol {
	padding-left: 1.35em;
}

.reader-tags {
	border-top: 1px solid color-mix(in srgb, var(--reader-text) 12%, transparent);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 40px;
	padding-top: 22px;
}

.reader-tags button {
	background: color-mix(in srgb, var(--reader-background) 86%, var(--reader-text) 14%);
	border-color: transparent;
	color: var(--reader-text);
}

.story-recommendations {
	border-top: 1px solid color-mix(in srgb, var(--reader-text) 12%, transparent);
	margin-top: 38px;
	padding-top: 5px;
}

.story-recommendations .section-heading h2 {
	color: var(--reader-text);
}

.story-recommendations .section-heading p {
	color: var(--reader-muted);
	font-size: 11px;
	margin: 5px 0 0;
}

.story-recommendations .affiliate-disclosure {
	background: color-mix(in srgb, var(--reader-background) 88%, var(--reader-text) 12%);
	border-color: color-mix(in srgb, var(--reader-text) 16%, transparent);
	color: var(--reader-text);
}

.story-reader[data-theme="night"] .story-recommendations .reading-book-card {
	background: #26343a;
	border-color: rgb(255 255 255 / 11%);
	color: var(--reader-text);
}

.story-reader[data-theme="night"] .story-recommendations .reading-book-copy p,
.story-reader[data-theme="night"] .story-recommendations .affiliate-disclosure {
	color: var(--reader-muted);
}

.story-reader[data-theme="night"] .story-recommendations .affiliate-disclosure {
	background: rgb(255 255 255 / 6%);
	border-color: rgb(255 255 255 / 10%);
}

.reader-end {
	align-items: center;
	color: var(--reader-muted);
	display: flex;
	flex-direction: column;
	margin-top: 52px;
	text-align: center;
}

.reader-end > span {
	color: var(--ochre);
	font-size: 27px;
}

.reader-end p {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 16px;
	margin: 2px 0 19px;
}

.reader-end .secondary-button {
	color: var(--reader-text);
}

.initial-loader,
.reader-loading {
	align-items: center;
	color: var(--ink-soft);
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 60vh;
	text-align: center;
}

.book-loader {
	animation: bookBob 1.2s ease-in-out infinite;
	border: 3px solid var(--blue);
	border-radius: 3px 10px 10px 3px;
	display: block;
	height: 44px;
	position: relative;
	transform-origin: bottom;
	width: 54px;
}

.book-loader::before {
	border-left: 2px solid var(--blue);
	content: "";
	height: 100%;
	left: 50%;
	position: absolute;
	top: 0;
}

.book-loader::after {
	background: var(--coral);
	border-radius: 50%;
	content: "";
	height: 7px;
	position: absolute;
	right: 8px;
	top: 9px;
	width: 7px;
}

.initial-loader p,
.reader-loading p {
	font-size: 13px;
	margin-top: 14px;
}

.toast-region {
	bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 12px);
	display: flex;
	flex-direction: column;
	gap: 8px;
	left: 50%;
	pointer-events: none;
	position: fixed;
	transform: translateX(-50%);
	z-index: 300;
}

.reader-open .toast-region {
	bottom: calc(18px + env(safe-area-inset-bottom));
}

.toast {
	animation: toastIn 180ms ease-out;
	background: #283237;
	border-radius: 999px;
	box-shadow: var(--shadow-md);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	max-width: min(88vw, 360px);
	padding: 11px 17px;
	white-space: nowrap;
}

.toast.is-leaving {
	transform: translateY(5px);
	transition: 180ms ease;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

@keyframes shimmer {
	to { background-position: -200% 0; }
}

@keyframes bookBob {
	0%, 100% { transform: translateY(0) rotate(-2deg); }
	50% { transform: translateY(-6px) rotate(2deg); }
}

@keyframes downloadPulse {
	from { transform: translateY(-2px); }
	to { transform: translateY(2px); }
}

@keyframes toastIn {
	from { transform: translateY(8px); }
}

@media (min-width: 640px) {
	.tile-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.story-card {
		min-height: 220px;
	}

	.story-card-main {
		grid-template-columns: 190px minmax(0, 1fr);
		min-height: 220px;
	}

	.story-list .story-card {
		height: 220px;
		min-height: 220px;
	}

	.story-list .story-card-main {
		min-height: 220px;
	}

	.story-card-body {
		padding: 21px;
	}

	.story-title-link h3 {
		font-size: 27px;
	}

	.story-card--compact {
		min-height: 350px;
	}

	.story-card--compact .story-card-main {
		min-height: 350px;
	}

	.story-card--compact .story-card-body {
		padding: 14px;
	}

	.story-card--compact .story-title-link h3 {
		font-size: 21px;
	}

	.list-recommendation-main {
		grid-template-columns: 145px minmax(0, 1fr);
		padding: 19px;
	}

	.story-card--skeleton {
		grid-template-columns: 190px 1fr;
	}
}

@media (min-width: 840px) {
	:root {
		--header-height: 82px;
	}

	.app-header {
		padding-left: max(28px, calc((100vw - var(--content-width)) / 2));
		padding-right: max(28px, calc((100vw - var(--content-width)) / 2));
	}

	.brand-copy strong {
		font-size: 21px;
	}

	.app-main {
		padding-left: 28px;
		padding-right: 28px;
	}

	.bottom-nav {
		border: 1px solid var(--line);
		border-bottom: 0;
		border-radius: 22px 22px 0 0;
		left: 50%;
		max-width: 650px;
		right: auto;
		transform: translateX(-50%);
		width: 650px;
	}

	.tile-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.story-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.story-list .story-card {
		height: 435px;
		min-height: 435px;
	}

	.story-list .story-card-main {
		display: block;
		height: 435px;
		min-height: 435px;
	}

	.story-list .story-card-media {
		height: 235px;
		min-height: 0;
	}

	.story-list .story-card-body {
		height: 200px;
		min-height: 0;
	}

	.story-list .story-card--skeleton {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: 235px 1fr;
	}

	.story-list .story-card--skeleton > span {
		min-height: 235px;
	}

	.story-rail {
		margin-left: 0;
		margin-right: 0;
		padding-left: 2px;
		padding-right: 2px;
	}
}

@media (max-width: 639px) {
	.home-hero {
		display: block;
		min-height: 312px;
		padding: 25px 21px 118px;
	}

	.hero-copy h1 {
		max-width: 330px;
	}

	.hero-book {
		bottom: -8px;
		position: absolute;
		right: 5px;
		width: 150px;
	}

	.hero-moon {
		font-size: 43px;
		top: -41px;
	}

	.hero-star--one {
		left: 17px;
		top: -19px;
	}

	.home-offline-explainer {
		align-items: start;
		gap: 13px;
		grid-template-columns: 58px minmax(0, 1fr);
		padding: 18px;
	}

	.home-offline-logo {
		height: 56px;
		width: 56px;
	}

	.home-offline-logo img {
		height: 51px;
		width: 51px;
	}

	.home-offline-explainer .secondary-button {
		grid-column: 1 / -1;
		justify-self: stretch;
	}

	.offline-home-hero {
		display: block;
		padding: 25px 21px;
	}

	.offline-home-brand {
		height: 82px;
		margin-bottom: 19px;
		width: 82px;
	}

	.offline-home-brand img {
		height: 74px;
		width: 74px;
	}

	.offline-home-copy h1 {
		font-size: 39px;
		max-width: 330px;
	}

	.offline-home-guide {
		margin-top: 22px;
		padding: 17px;
	}

	.offline-home-guide ul {
		display: grid;
		grid-template-columns: 1fr;
	}

	.offline-home-hero > .primary-button {
		justify-content: center;
		margin-top: 16px;
		width: 100%;
	}

	.offline-home-library .section-heading {
		align-items: start;
	}

	.offline-category-grid {
		grid-template-columns: 1fr;
	}

	.category-groups,
	.suggestion-groups,
	.special-page-grid,
	.reading-guide-grid,
	.reading-book-grid,
	.community-invite-grid {
		grid-template-columns: 1fr;
	}

	.special-collection {
		display: block;
		padding: 24px 20px;
	}

	.special-chip-grid {
		margin-top: 22px;
	}

	.reading-callout {
		align-items: start;
		grid-template-columns: 52px minmax(0, 1fr);
	}

	.reading-callout-star {
		font-size: 23px;
		height: 48px;
		width: 48px;
	}

	.reading-callout .primary-button {
		grid-column: 1 / -1;
		justify-self: stretch;
	}

	.reading-hero {
		display: block;
		min-height: 0;
		padding: 28px 22px;
	}

	.reading-hero-book {
		display: none;
	}

	.reading-book-card {
		grid-template-columns: 118px minmax(0, 1fr);
	}

	.reading-suggestion {
		align-items: start;
		grid-template-columns: 48px minmax(0, 1fr);
	}

	.reading-suggestion > a {
		grid-column: 1 / -1;
	}

	.offline-summary {
		align-items: stretch;
		flex-direction: column;
	}

	.offline-summary > button {
		align-self: start;
		margin: 5px 0 -3px 22px;
	}

	.section-download-panel {
		align-items: start;
		grid-template-columns: 42px minmax(0, 1fr);
		padding: 14px;
	}

	.section-download-icon {
		font-size: 22px;
		height: 40px;
		width: 40px;
	}

	.section-download-actions {
		grid-column: 1 / -1;
		justify-content: stretch;
	}

	.section-download-actions .primary-button,
	.section-download-actions .secondary-button {
		flex: 1;
	}

	.offline-section-card {
		align-items: stretch;
		flex-direction: column;
	}

	.offline-section-card > div {
		border-top: 1px solid var(--line);
		justify-content: end;
		padding-top: 3px;
	}

	.read-link {
		display: none;
	}

	.reader-controls > [data-spacing-toggle] {
		font-size: 0;
		width: 42px;
	}

	.reader-controls > [data-spacing-toggle] span {
		font-size: 19px;
	}

	.reader-paper {
		margin-top: -28px;
	}

	.reader-topbar-title {
		font-size: 14px;
	}

	.story-content {
		font-size: calc(18.5px * var(--reader-scale));
	}
}

@media (max-width: 370px) {
	.brand-copy strong {
		font-size: 16px;
	}

	.brand-copy small {
		font-size: 10px;
	}

	.tile-grid {
		gap: 9px;
	}

	.bottom-nav button {
		font-size: 9px;
	}

	.special-chip-grid {
		grid-template-columns: 1fr;
	}

	.reader-topbar-title {
		font-size: 0;
	}

	.category-tile-copy {
		padding: 11px;
	}

	.category-tile-copy strong {
		font-size: 17px;
	}

	.story-card-main {
		grid-template-columns: 118px minmax(0, 1fr);
	}

	.story-card-body {
		padding: 13px 12px;
	}

	.story-title-link h3 {
		font-size: 19px;
	}

	.list-recommendation-main {
		gap: 12px;
		grid-template-columns: 92px minmax(0, 1fr);
		padding: 13px;
	}

	.list-recommendation-copy > strong {
		font-size: 19px;
	}

	.list-recommendation-description {
		display: none;
	}

	.search-box {
		padding-left: 12px;
	}

	.search-box button {
		padding: 0 13px;
	}
}

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

/* Lettura vocale tramite sintetizzatore del dispositivo. */
.story-tts-panel {
	background: color-mix(in srgb, var(--reader-background) 86%, var(--reader-accent) 14%);
	border: 1px solid color-mix(in srgb, var(--reader-text) 13%, transparent);
	border-radius: var(--radius-sm);
	margin: 18px 0 0;
	padding: 10px;
}

.story-tts-primary {
	align-items: center;
	background: var(--reader-accent);
	border: 0;
	border-radius: 13px;
	color: #fff;
	display: flex;
	gap: 12px;
	min-height: 58px;
	padding: 9px 14px;
	text-align: left;
	width: 100%;
}

.story-tts-primary:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.story-tts-primary > span:last-child {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.story-tts-primary strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px;
	line-height: 1.15;
}

.story-tts-primary small {
	font-size: 10px;
	line-height: 1.3;
	margin-top: 3px;
	opacity: 0.86;
}

.story-tts-icon {
	align-items: center;
	background: rgb(255 255 255 / 18%);
	border-radius: 50%;
	display: inline-flex;
	flex: 0 0 38px;
	font-family: system-ui, sans-serif;
	font-size: 15px;
	height: 38px;
	justify-content: center;
}

.story-tts-options {
	align-items: end;
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(0, 1.5fr) minmax(100px, 0.8fr) auto;
	margin-top: 9px;
}

.story-tts-options label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.story-tts-options label > span {
	color: var(--reader-muted);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.06em;
	padding-left: 3px;
	text-transform: uppercase;
}

.story-tts-options select,
.story-tts-stop {
	background: color-mix(in srgb, var(--reader-background) 94%, var(--reader-text) 6%);
	border: 1px solid color-mix(in srgb, var(--reader-text) 15%, transparent);
	border-radius: 10px;
	color: var(--reader-text);
	font-size: 11px;
	height: 40px;
	max-width: 100%;
	padding: 0 9px;
}

.story-tts-stop {
	font-weight: 750;
	white-space: nowrap;
}

.story-tts-status {
	color: var(--reader-muted);
	font-size: 10px;
	line-height: 1.35;
	margin: 8px 3px 0;
}

.story-content .is-tts-speaking,
.reader-heading.is-tts-speaking {
	background: color-mix(in srgb, var(--reader-accent) 13%, transparent);
	border-radius: 8px;
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--reader-accent) 13%, transparent);
	transition: background 180ms ease, box-shadow 180ms ease;
}

@media (max-width: 520px) {
	.story-tts-options {
		grid-template-columns: minmax(0, 1fr) minmax(105px, 0.75fr);
	}

	.story-tts-stop {
		grid-column: 1 / -1;
	}
}
