/*
Theme Name:   The Stoly
Theme URI:    https://thestoly.com
Description:  The Story Daily — GeneratePress child theme.
Author:       The Stoly
Template:     generatepress
Version:      2.0.0
Text Domain:  thestoly
*/

/*
 * Direction: a daily magazine cover. Night-plum cover band, heavy condensed italic
 * headlines that lean like the logo, slanted coral category tabs. The slant angle
 * (12deg) comes from the wordmark and is the only decorative motif.
 * Audience: mass-market pop culture, mostly on phones. Quick to scan, easy to share.
 */

:root {
	--stoly-night: #2b0f27;
	--stoly-plum: #89216b;
	--stoly-coral: #d23c48;
	--stoly-coral-light: #ff8a94;
	--stoly-blush: #fbeff3;
	--stoly-ink: #1e141c;
	--stoly-muted: #6b5d68;
	--stoly-rule: #eadde4;
	--stoly-paper: #ffffff;

	--stoly-sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
	--stoly-text: "Archivo", ui-sans-serif, system-ui, sans-serif;

	--stoly-heading: #2b0f27;
	--stoly-link: #89216b;
	--stoly-panel: #ffffff;

	--stoly-slant: -12deg;
	--stoly-gap: clamp(20px, 2.5vw, 36px);
	--stoly-band: clamp(40px, 5vw, 72px);
}


/* Dark mode: set on <html data-theme="dark"> by the head script (system setting or the reader's choice). */
:root[data-theme="dark"] {
	color-scheme: dark;
	--stoly-paper: #170812;
	--stoly-ink: #f1e6ed;
	--stoly-muted: #b8a3b2;
	--stoly-rule: rgba(255, 255, 255, 0.12);
	--stoly-blush: #2a1226;
	--stoly-heading: #ffffff;
	--stoly-link: #f29ad6;
	--stoly-panel: #241020;
	--stoly-coral: #e04a56;

	--base: #2a1226;
	--base-2: #170812;
	--base-3: #170812;
	--contrast: #f1e6ed;
	--contrast-2: #b8a3b2;
	--contrast-3: #6b5d68;
	--accent: #f29ad6;
}

:root[data-theme="dark"] .stoly-time,
:root[data-theme="dark"] .stoly-also__label {
	color: var(--stoly-muted);
}

:root[data-theme="dark"] .stoly-cover .stoly-time,
:root[data-theme="dark"] .stoly-also__label {
	color: var(--stoly-coral-light);
}

:root[data-theme="dark"] .stoly-toc,
:root[data-theme="dark"] .stoly-more-in {
	background: #22091d;
}

:root[data-theme="dark"] .stoly-tags {
	border-top-color: var(--stoly-rule);
}

:root[data-theme="dark"] .main-navigation ul ul {
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

/* Light / dark switch in the header ------------------------------------------ */

.stoly-theme-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
}

.stoly-theme-toggle:hover,
.stoly-theme-toggle:focus {
	background: transparent;
	color: var(--stoly-coral-light);
}

.stoly-theme-toggle svg {
	width: 20px;
	height: 20px;
}

.stoly-theme-toggle .stoly-icon-sun,
:root[data-theme="dark"] .stoly-theme-toggle .stoly-icon-moon {
	display: none;
}

:root[data-theme="dark"] .stoly-theme-toggle .stoly-icon-sun {
	display: block;
}

/* Base ------------------------------------------------------------------ */

html {
	overflow-x: clip;
}

body {
	background: var(--stoly-paper);
	color: var(--stoly-ink);
	font-family: var(--stoly-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
	font-family: var(--stoly-sans);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--stoly-sans);
	color: var(--stoly-ink);
	font-weight: 800;
	letter-spacing: -0.01em;
}

a {
	color: var(--stoly-link);
}

a:hover,
a:focus {
	color: var(--stoly-coral);
}

:focus-visible {
	outline: 3px solid var(--stoly-coral-light);
	outline-offset: 2px;
}

img {
	border-radius: 0;
}

.grid-container {
	padding-left: 20px;
	padding-right: 20px;
}

.one-container .site-content {
	padding: var(--stoly-band) 0;
}

.one-container.right-sidebar .site-main {
	margin-right: var(--stoly-gap);
}

/* Shared display treatments ------------------------------------------------ */

.stoly-heading,
.stoly-card--lead .stoly-card__title,
.stoly-card--spot .stoly-card__title,
.stoly-article-hero__title,
.stoly-archive-hero__title {
	font-family: var(--stoly-sans);
	font-style: italic;
	font-weight: 900;
	font-stretch: 72%;
	letter-spacing: -0.005em;
}

.stoly-heading {
	font-size: clamp(2rem, 1.3rem + 2vw, 2.9rem);
	line-height: 1;
	margin: 0;
	color: var(--stoly-heading);
	display: flex;
	align-items: center;
	gap: 14px;
}

.stoly-heading::before {
	content: "";
	flex: none;
	width: 16px;
	height: 0.78em;
	background: var(--stoly-coral);
	transform: skewX(var(--stoly-slant));
}

.stoly-heading a {
	color: inherit;
	text-decoration: none;
}

.stoly-heading a:hover {
	color: var(--stoly-link);
}

.stoly-chip {
	display: inline-block;
	background: var(--stoly-coral);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
	padding: 6px 11px;
	margin: 0 0 12px 4px;
	transform: skewX(var(--stoly-slant));
	text-decoration: none;
}

.stoly-chip span {
	display: inline-block;
	transform: skewX(calc(var(--stoly-slant) * -1));
}

.stoly-chip:hover,
.stoly-chip:focus {
	background: var(--stoly-plum);
	color: #fff;
}

.stoly-time {
	display: block;
	color: var(--stoly-muted);
	font-size: 13px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.stoly-more {
	flex: none;
	font-size: 15px;
	font-weight: 700;
	color: var(--stoly-link);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
	text-decoration-color: var(--stoly-coral);
}

.stoly-more:hover {
	color: var(--stoly-coral);
}

.stoly-more--light {
	color: #fff;
}

.stoly-more--light:hover {
	color: var(--stoly-coral-light);
}

/* Header ------------------------------------------------------------------- */

.site-header {
	position: relative;
	z-index: 100;
	background: var(--stoly-night);
}

.inside-header {
	padding: 18px 20px;
}

.site-logo .header-image,
.site-header .header-image {
	width: 150px;
	height: auto;
}

.site-header .main-navigation,
.site-header .main-navigation ul,
.main-navigation .menu-bar-items {
	background: transparent;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items,
.main-navigation .menu-bar-item > a {
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	font-stretch: 92%;
}

.main-navigation .main-nav ul li a {
	padding-left: 11px;
	padding-right: 11px;
	line-height: 48px;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus > a,
.main-navigation .main-nav ul li.sfHover > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	color: #fff;
	background: transparent;
	box-shadow: inset 0 -3px 0 var(--stoly-coral);
}

.site-header .main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.site-header .main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a,
.site-header .main-navigation .main-nav ul li.sfHover:not([class*="current-menu-"]) > a {
	color: #fff;
	background: transparent;
	box-shadow: inset 0 -3px 0 var(--stoly-coral);
}

.site-header .main-navigation .main-nav ul ul li:not([class*="current-menu-"]):hover > a,
.site-header .main-navigation .main-nav ul ul li:not([class*="current-menu-"]):focus > a {
	color: var(--stoly-link);
	background: var(--stoly-blush);
	box-shadow: none;
}

.main-navigation .menu-bar-item:hover > a,
.main-navigation .menu-toggle:hover {
	color: var(--stoly-coral-light);
	background: transparent;
}

.site-header .main-navigation ul ul {
	background: var(--stoly-panel);
	box-shadow: 0 18px 40px rgba(43, 15, 39, 0.25);
	width: 230px;
	border-top: 3px solid var(--stoly-coral);
}

.main-navigation .main-nav ul ul li a {
	color: var(--stoly-ink);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	padding: 11px 18px;
}

.main-navigation .main-nav ul ul li:hover > a,
.main-navigation .main-nav ul ul li:focus > a,
.main-navigation .main-nav ul ul li[class*="current-menu-"] > a {
	color: var(--stoly-link);
	background: var(--stoly-blush);
	box-shadow: none;
}

.navigation-search input[type="search"],
.navigation-search input[type="search"]:focus {
	background: var(--stoly-night);
	color: #fff;
}

/* Cards ---------------------------------------------------------------------- */

.stoly-card__media {
	display: block;
	overflow: hidden;
	background: var(--stoly-blush);
}

.stoly-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.stoly-card__title {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 700;
	font-stretch: 95%;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.stoly-card__title a {
	color: var(--stoly-ink);
	text-decoration: none;
}

.stoly-card__title a:hover {
	color: var(--stoly-ink);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	text-decoration-color: var(--stoly-coral);
}

.stoly-card__excerpt {
	font-family: var(--stoly-text);
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 10px;
	max-width: 62ch;
}

.stoly-card--md .stoly-card__media,
.stoly-card--wide .stoly-card__media,
.stoly-card--portrait .stoly-card__media {
	margin-bottom: 16px;
}

.stoly-card--md .stoly-card__media {
	aspect-ratio: 3 / 2;
}

.stoly-card--portrait .stoly-card__media {
	aspect-ratio: 4 / 5;
}

.stoly-card--wide .stoly-card__media {
	aspect-ratio: 16 / 9;
}

.stoly-card--wide .stoly-card__title {
	font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem);
	font-weight: 800;
	font-stretch: 85%;
	line-height: 1.1;
}

.stoly-card--row {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.stoly-card--row .stoly-card__media {
	aspect-ratio: 4 / 3;
}

.stoly-card--row .stoly-card__title {
	font-size: 17px;
	margin-bottom: 6px;
}

.stoly-card--row .stoly-chip {
	margin-bottom: 8px;
}

/* Front page: cover -------------------------------------------------------- */

.stoly-front .site-main {
	margin: 0;
}

.home.one-container .site-content {
	padding-top: 0;
}

.stoly-cover {
	background: var(--stoly-night);
	color: #fff;
	margin: 0 calc(50% - 50vw) var(--stoly-band);
	padding: 18px 0 var(--stoly-band);
}

.stoly-cover__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

.stoly-cover__date {
	margin: 0 0 22px;
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.66);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	padding-top: 16px;
}

.stoly-cover .stoly-card--lead {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	gap: var(--stoly-gap);
	align-items: center;
}

.stoly-cover .stoly-card--lead .stoly-card__media {
	order: 2;
	aspect-ratio: 5 / 4;
	clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
	animation: stoly-cover-reveal 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

@keyframes stoly-cover-reveal {
	from {
		clip-path: polygon(100% 0, 100% 0, 100% 100%, 86% 100%);
	}
	to {
		clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
	}
}

.stoly-card--lead .stoly-card__title {
	font-size: clamp(2.6rem, 1.2rem + 3.6vw, 4.7rem);
	line-height: 0.93;
	margin-bottom: 20px;
	text-wrap: balance;
}

.stoly-cover .stoly-card__title a {
	color: #fff;
}

.stoly-cover .stoly-card__title a:hover {
	color: #fff;
	text-decoration-thickness: 4px;
	text-underline-offset: 8px;
}

.stoly-cover .stoly-card--lead .stoly-chip {
	font-size: 14px;
	padding: 7px 13px;
}

.stoly-cover .stoly-card__excerpt {
	color: rgba(255, 255, 255, 0.86);
	font-size: 19px;
	line-height: 1.6;
	margin-bottom: 14px;
}

.stoly-cover .stoly-time {
	color: var(--stoly-coral-light);
	font-weight: 600;
}

.stoly-cover__latest {
	margin-top: var(--stoly-band);
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 8px var(--stoly-gap);
	align-items: start;
}

.stoly-cover__latest-title {
	color: #fff;
	font-style: italic;
	font-weight: 900;
	font-stretch: 72%;
	font-size: 34px;
	line-height: 1;
	margin: 0;
}

.stoly-cover__latest-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 var(--stoly-gap);
}

.stoly-cover__latest-list li {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding: 16px 0 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.stoly-cover__latest-thumb {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
}

.stoly-cover__latest-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.stoly-cover__latest-list li > :only-child {
	grid-column: 1 / -1;
}

.stoly-cover__latest-list .stoly-time {
	margin-bottom: 6px;
}

.stoly-cover__latest-list a {
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.35;
	text-decoration: none;
}

.stoly-cover__latest-list a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--stoly-coral-light);
}

.stoly-cover__latest .stoly-more {
	grid-column: 2;
	justify-self: start;
	margin-top: 4px;
}

/* Front page: most read -------------------------------------------------- */

.stoly-popular {
	background: var(--stoly-blush);
	margin: 0 calc(50% - 50vw) var(--stoly-band);
	padding: 40px max(20px, calc(50vw - 600px)) 44px;
}

.stoly-popular .stoly-heading {
	margin-bottom: 28px;
}

.stoly-popular__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--stoly-gap);
	counter-reset: stoly-rank;
}

.stoly-popular__list li {
	counter-increment: stoly-rank;
	position: relative;
	padding-top: 6px;
}

.stoly-popular__list li::before {
	content: counter(stoly-rank);
	position: absolute;
	top: -8px;
	left: -6px;
	z-index: 1;
	font-style: italic;
	font-weight: 900;
	font-stretch: 72%;
	font-size: 76px;
	line-height: 1;
	color: var(--stoly-link);
	-webkit-text-stroke: 3px var(--stoly-blush);
	paint-order: stroke fill;
}

.stoly-popular__thumb {
	display: block;
	width: 112px;
	aspect-ratio: 1 / 1;
	margin: 0 0 14px 34px;
	overflow: hidden;
}

.stoly-popular__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.stoly-popular__link {
	display: block;
	color: var(--stoly-ink);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
	text-decoration: none;
}

.stoly-popular__link:hover {
	color: var(--stoly-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--stoly-coral);
}

/* Front page: sections ------------------------------------------------------- */

.stoly-section {
	margin-bottom: calc(var(--stoly-band) * 1.1);
}

.stoly-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
}

/* Spotlight: one big picture with a caption panel cut into it. */
.stoly-card--spot .stoly-card__media {
	aspect-ratio: 21 / 9;
}

.stoly-card--spot .stoly-card__body {
	position: relative;
	background: var(--stoly-plum);
	color: #fff;
	max-width: 680px;
	margin: -150px 0 0 48px;
	padding: 26px 30px 24px;
}

.stoly-card--spot .stoly-chip {
	background: var(--stoly-night);
}

.stoly-card--spot .stoly-card__title {
	font-size: clamp(2rem, 1.2rem + 2.2vw, 3.1rem);
	line-height: 0.98;
	margin-bottom: 14px;
}

.stoly-card--spot .stoly-card__title a,
.stoly-card--spot .stoly-card__title a:hover {
	color: #fff;
}

.stoly-card--spot .stoly-card__excerpt {
	color: rgba(255, 255, 255, 0.9);
}

.stoly-card--spot .stoly-time {
	color: rgba(255, 255, 255, 0.75);
}

.stoly-section--spotlight .stoly-section__more {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--stoly-gap);
	margin-top: 36px;
}

.stoly-section--portrait .stoly-section__body,
.stoly-section--grid .stoly-section__body {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--stoly-gap);
}

.stoly-section--wide .stoly-section__body {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--stoly-gap);
}

.stoly-section--feature .stoly-section__body,
.stoly-section--feature-flip .stoly-section__body {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: var(--stoly-gap) calc(var(--stoly-gap) * 1.3);
}

.stoly-section--feature-flip .stoly-section__body {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
}

.stoly-section--feature-flip .stoly-section__body > .stoly-card {
	order: 2;
}

.stoly-section--feature .stoly-section__body > .stoly-card .stoly-card__media,
.stoly-section--feature-flip .stoly-section__body > .stoly-card .stoly-card__media {
	aspect-ratio: 4 / 3;
}

.stoly-section--feature .stoly-section__body > .stoly-card .stoly-card__title,
.stoly-section--feature-flip .stoly-section__body > .stoly-card .stoly-card__title {
	font-size: clamp(1.6rem, 1.1rem + 1.2vw, 2.2rem);
	font-weight: 800;
	font-stretch: 82%;
	line-height: 1.06;
}

.stoly-section__rows {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Cover bands for articles and archives -------------------------------------- */

.stoly-article-hero,
.stoly-archive-hero {
	background: var(--stoly-night);
	color: #fff;
}

.stoly-article-hero {
	padding-top: var(--stoly-band);
}

.stoly-article-hero.has-image {
	background: linear-gradient(to bottom, var(--stoly-night) calc(100% - 200px), var(--stoly-paper) calc(100% - 200px));
}

.stoly-article-hero:not(.has-image) {
	padding-bottom: var(--stoly-band);
}

.stoly-article-hero__text > * {
	max-width: 1000px;
}

.stoly-article-hero .stoly-chip {
	font-size: 14px;
	padding: 7px 13px;
}

.stoly-article-hero__title {
	color: #fff;
	font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.6rem);
	line-height: 0.95;
	margin: 0 0 22px;
	text-wrap: balance;
}

.stoly-article-hero__dek {
	font-family: var(--stoly-text);
	font-size: 20px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.86);
	max-width: 62ch !important;
	margin: 0 0 18px;
}

.stoly-article-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

.stoly-article-hero__meta a {
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.stoly-article-hero__meta a:hover {
	color: var(--stoly-coral-light);
}

.stoly-article-hero__media {
	margin-top: 36px;
	margin-bottom: 0;
}

.stoly-article-hero__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 700px;
	object-fit: cover;
}

.stoly-article-hero__media figcaption {
	font-size: 13px;
	color: var(--stoly-muted);
	margin-top: 10px;
}

.single.one-container .site-content {
	padding-top: calc(var(--stoly-band) * 0.8);
}

.stoly-archive-hero {
	padding: calc(var(--stoly-band) * 0.9) 0 var(--stoly-band);
}

.stoly-archive-hero__parent {
	display: inline-block;
	color: var(--stoly-coral-light);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	margin-bottom: 6px;
}

.stoly-archive-hero__parent:hover {
	color: #fff;
	text-decoration: underline;
}

.stoly-archive-hero__title {
	color: #fff;
	font-size: clamp(3rem, 1.6rem + 5vw, 6.4rem);
	line-height: 0.92;
	margin: 0;
}

.stoly-archive-hero__desc {
	font-family: var(--stoly-text);
	color: rgba(255, 255, 255, 0.82);
	max-width: 62ch;
	margin-top: 16px;
}

.stoly-archive-hero__desc p {
	margin: 0;
}

.stoly-archive-hero__subnav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}

.stoly-archive-hero__subnav a {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	padding: 7px 14px;
	border: 1px solid rgba(255, 255, 255, 0.32);
}

.stoly-archive-hero__subnav a:hover,
.stoly-archive-hero__subnav a[aria-current="page"] {
	background: var(--stoly-coral);
	border-color: var(--stoly-coral);
	color: #fff;
}

/* Archive lists ------------------------------------------------------------ */

.blog .site-main > article,
.archive .site-main > article,
.search .site-main > article {
	margin: 0 0 30px;
	padding-bottom: 30px;
	border-bottom: 1px solid var(--stoly-rule);
}

.blog .inside-article,
.archive .inside-article,
.search .inside-article {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	column-gap: 30px;
	align-items: start;
	padding: 0;
}

.blog .inside-article > *,
.archive .inside-article > *,
.search .inside-article > * {
	grid-column: 2;
}

.blog .post-image,
.archive .post-image,
.search .post-image {
	grid-column: 1;
	grid-row: 1 / span 4;
	margin: 0 !important;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.blog .post-image img,
.archive .post-image img,
.search .post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog .site-main .entry-title,
.archive .site-main .entry-title,
.search .site-main .entry-title {
	font-size: 25px;
	line-height: 1.12;
	font-weight: 800;
	font-stretch: 85%;
	margin-bottom: 6px;
}

.entry-title a {
	color: var(--stoly-ink);
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--stoly-ink);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	text-decoration-color: var(--stoly-coral);
}

.blog .entry-summary,
.archive .entry-summary,
.search .entry-summary {
	font-family: var(--stoly-text);
	font-size: 16px;
	line-height: 1.6;
	margin-top: 8px;
}

.blog .entry-summary p,
.archive .entry-summary p,
.search .entry-summary p {
	margin-bottom: 0;
}

.entry-meta {
	color: var(--stoly-muted);
	font-size: 13px;
	font-weight: 500;
	margin-top: 4px;
}

.entry-meta a {
	color: var(--stoly-ink);
	font-weight: 600;
	text-decoration: none;
}

.nav-links .page-numbers {
	display: inline-block;
	min-width: 42px;
	padding: 8px 12px;
	text-align: center;
	border: 1px solid var(--stoly-rule);
	text-decoration: none;
	font-weight: 700;
	color: var(--stoly-ink);
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
	background: var(--stoly-night);
	border-color: var(--stoly-heading);
	color: #fff;
}

/* Single post body ------------------------------------------------------------ */

.single .inside-article {
	padding: 0;
}

.single .entry-content {
	font-family: var(--stoly-text);
	font-size: 19px;
	line-height: 1.7;
	color: var(--stoly-ink);
	max-width: 740px;
}

.single .entry-content > p:first-child {
	font-size: 23px;
	line-height: 1.5;
	font-weight: 500;
	color: var(--stoly-heading);
}

.single .entry-content > p,
.single .entry-content > ul,
.single .entry-content > ol {
	margin-bottom: 1.2em;
}

.single .entry-content strong {
	font-weight: 700;
	color: var(--stoly-heading);
}

.single .entry-content h2,
.single .entry-content h3 {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--stoly-sans);
	font-style: italic;
	font-weight: 900;
	font-stretch: 72%;
	line-height: 1;
	margin: 1.8em 0 0.6em;
	color: var(--stoly-heading);
}

.single .entry-content h2 {
	font-size: clamp(1.9rem, 1.5rem + 1vw, 2.4rem);
}

.single .entry-content h3 {
	font-size: 1.6rem;
}

.single .entry-content h2::before,
.single .entry-content h3::before {
	content: "";
	flex: none;
	width: 12px;
	height: 0.8em;
	background: var(--stoly-coral);
	transform: skewX(var(--stoly-slant));
}

.single .entry-content a {
	color: var(--stoly-link);
	font-weight: 600;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	text-decoration-color: rgba(210, 60, 72, 0.45);
}

.single .entry-content a:hover {
	text-decoration-color: var(--stoly-coral);
}

/* Photos run the full column; portraits sit on a blush panel instead of leaving a gap. */
.single .entry-content img {
	display: block;
	width: 100%;
	height: auto;
}

.single .entry-content p:has(> img) {
	margin: 1.6em 0;
}

.single .entry-content img.stoly-portrait {
	width: auto;
	max-width: 100%;
	max-height: 760px;
	margin: 0 auto;
}

.single .entry-content p:has(> img.stoly-portrait) {
	background: var(--stoly-blush);
	padding: 28px;
}

/* Quotes: who said it, then what they said. Upright and quick to read. */
.single .entry-content blockquote {
	position: relative;
	border: 0;
	margin: 1.8em 0;
	padding: 4px 0 4px 34px;
	font-family: var(--stoly-text);
	font-style: normal;
	font-weight: 600;
	font-size: 21px;
	line-height: 1.5;
	color: var(--stoly-heading);
}

.single .entry-content blockquote::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 4px;
	background: var(--stoly-coral);
}

.single .entry-content blockquote::after {
	content: "";
	position: absolute;
	left: -2px;
	top: 4px;
	width: 12px;
	height: 22px;
	background: var(--stoly-coral);
	transform: skewX(var(--stoly-slant));
}

.single .entry-content blockquote p {
	margin-bottom: 0.75em;
}

.single .entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.single .entry-content blockquote strong {
	font-weight: 800;
	color: var(--stoly-link);
}

.single .entry-content figure,
.single .entry-content .wp-caption {
	max-width: 100%;
}

.single .entry-content figcaption,
.single .entry-content .wp-caption-text {
	font-size: 14px;
	color: var(--stoly-muted);
	margin-top: 8px;
}

.single footer.entry-meta {
	display: none;
}

/* Reading layout: fixed text column + sidebar that follows the reader ------- */

.single .site-content {
	display: grid;
	grid-template-columns: minmax(0, 740px) 300px;
	justify-content: space-between;
	column-gap: clamp(40px, 5vw, 80px);
}

.single .site-content .content-area,
.single .site-content .widget-area {
	width: auto;
	float: none;
}

.single.one-container.right-sidebar .site-main {
	margin-right: 0;
}

.single .widget-area {
	align-self: stretch;
}

.single .inside-right-sidebar {
	position: sticky;
	top: 24px;
}

.single .entry-content > h2 {
	margin-top: 2.2em;
	scroll-margin-top: 24px;
}

/* "In this story" */
.stoly-toc {
	margin: 1.6em 0 2em;
	padding: 22px 24px 20px;
	background: var(--stoly-night);
	color: #fff;
}

.stoly-toc__title {
	font-style: italic;
	font-weight: 900;
	font-stretch: 72%;
	font-size: 26px;
	line-height: 1;
	margin: 0 0 14px !important;
	color: #fff;
}

.stoly-toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.stoly-toc li {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.single .entry-content .stoly-toc a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.single .entry-content .stoly-toc a::before {
	content: "";
	flex: none;
	width: 8px;
	height: 14px;
	background: var(--stoly-coral);
	transform: skewX(var(--stoly-slant));
}

.single .entry-content .stoly-toc a:hover {
	color: var(--stoly-coral-light);
}

/* "Also on The Stoly" */
.stoly-also {
	margin: 2em 0;
}

.single .entry-content .stoly-also a {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	padding: 14px;
	background: var(--stoly-blush);
	border-left: 6px solid var(--stoly-coral);
	color: var(--stoly-heading);
	text-decoration: none;
	font-weight: 400;
}

.single .entry-content .stoly-also img {
	width: 120px;
	height: 90px;
	object-fit: cover;
}

.stoly-also__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.stoly-also__label {
	font-size: 13px;
	font-weight: 700;
	color: var(--stoly-coral);
}

.stoly-also__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
}

.single .entry-content .stoly-also a:hover .stoly-also__title {
	text-decoration: underline;
	text-decoration-color: var(--stoly-coral);
	text-underline-offset: 3px;
}

/* Share buttons ------------------------------------------------------------- */

.stoly-share {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.stoly-share__btn {
	display: inline-block;
	padding: 9px 16px;
	font-family: var(--stoly-sans);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	border: 2px solid currentColor;
	background: transparent;
	color: var(--stoly-heading);
	transform: skewX(var(--stoly-slant));
	cursor: pointer;
}

.stoly-share__btn span {
	display: inline-block;
	transform: skewX(calc(var(--stoly-slant) * -1));
}

.stoly-share__btn--whatsapp {
	background: var(--stoly-coral);
	border-color: var(--stoly-coral);
	color: #fff;
}

.stoly-share__btn:hover,
.stoly-share__btn:focus {
	background: var(--stoly-night);
	border-color: var(--stoly-heading);
	color: #fff;
}

.stoly-article-hero .stoly-share__btn {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
}

.stoly-article-hero .stoly-share__btn--whatsapp {
	border-color: var(--stoly-coral);
}

.stoly-article-hero .stoly-share__btn:hover,
.stoly-article-hero .stoly-share__btn:focus {
	background: #fff;
	border-color: #fff;
	color: var(--stoly-night);
}

.stoly-article-hero__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	max-width: none !important;
}

/* End of article ------------------------------------------------------------ */

.stoly-article-end {
	max-width: 740px;
	margin-top: 44px;
	padding: 26px 28px 28px;
	background: var(--stoly-blush);
}

.stoly-article-end__label {
	font-style: italic;
	font-weight: 900;
	font-stretch: 72%;
	font-size: 28px;
	line-height: 1;
	color: var(--stoly-heading);
	margin: 0 0 16px;
}

.stoly-tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 22px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid rgba(43, 15, 39, 0.12);
}

.stoly-tags a {
	color: var(--stoly-link);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
}

.stoly-tags a:hover {
	color: var(--stoly-coral);
	text-decoration: underline;
}

.stoly-more-in {
	background: var(--stoly-night);
	padding: var(--stoly-band) 0;
}

.stoly-more-in .stoly-heading {
	color: #fff;
}

.stoly-more-in .stoly-more {
	color: #fff;
}

.stoly-more-in__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--stoly-gap);
}

.stoly-more-in .stoly-card__title a,
.stoly-more-in .stoly-card__title a:hover {
	color: #fff;
}

.stoly-more-in .stoly-time {
	color: rgba(255, 255, 255, 0.65);
}

.stoly-more-in + .site-footer .stoly-footer__inner {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* Sidebar ------------------------------------------------------------------- */

.sidebar .widget,
.one-container .sidebar .widget {
	padding: 0;
	margin-bottom: 40px;
	background: transparent;
	font-size: 15px;
}

.sidebar .widget-title,
.sidebar .widget h2,
.sidebar .widget.tfm_posts_widget .widget-title {
	font-style: italic;
	font-weight: 900;
	font-stretch: 72%;
	font-size: 28px;
	line-height: 1;
	color: var(--stoly-heading);
	margin-bottom: 12px;
}

/* Empty cover blocks left over from the old theme's sidebar. */
.sidebar .widget_block:has(.wp-block-cover__inner-container:empty) {
	display: none;
}

.sidebar .widget-subtitle {
	color: var(--stoly-muted);
	font-size: 14px;
	margin: 0 0 18px;
}

.sidebar .widget a {
	color: var(--stoly-ink);
	font-weight: 600;
	text-decoration: none;
}

.sidebar .widget a:hover {
	text-decoration: underline;
	text-decoration-color: var(--stoly-coral);
}

/* Post lists from the TFM widgets plugin, ranked when "show post count" is on. */
.sidebar .widget.tfm_posts_widget {
	--tfm-posts-widget-list-thumb-entry-title-size: 15px;
	--tfm-posts-widget-entry-flex-gap: 14px;
	--tfm-posts-widget-thumbnail-max-width: 88px;
}

.sidebar .widget.tfm_posts_widget .post-grid {
	counter-reset: stoly-widget-rank;
}

.sidebar .widget.tfm_posts_widget .post-grid .article.widget-entry {
	position: relative;
	margin-bottom: 18px;
	counter-increment: stoly-widget-rank;
}

.sidebar .widget.tfm_posts_widget .post-grid .article.widget-entry::before,
.sidebar .widget.tfm_posts_widget .post-grid .article.widget-entry .post-inner::before {
	display: none;
}

.sidebar .widget.tfm_posts_widget .post-grid.show-post-count .article.widget-entry::before {
	display: block;
	content: counter(stoly-widget-rank);
	position: absolute;
	top: -10px;
	left: -6px;
	z-index: 1;
	font-style: italic;
	font-weight: 900;
	font-stretch: 72%;
	font-size: 40px;
	line-height: 1;
	color: var(--stoly-link);
	-webkit-text-stroke: 3px var(--stoly-paper);
	paint-order: stroke fill;
}

.sidebar .widget.tfm_posts_widget .post-grid .article.widget-entry .post-inner {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

.sidebar .widget.tfm_posts_widget .post-grid .article.widget-entry .post-inner > * {
	flex: none;
	max-width: none;
	grid-column: 2;
	grid-row: auto;
}

.sidebar .widget.tfm_posts_widget .post-grid .article.widget-entry .post-inner > .thumbnail-wrapper {
	grid-column: 1;
	grid-row: 1 / span 3;
}

/* Lists without pictures (e.g. Editors Picks): rank number, then title and date stacked. */
.sidebar .widget.tfm_posts_widget .post-grid .article.widget-entry:not(.has-post-media) .post-inner {
	display: block;
	padding-left: 44px;
}

.sidebar .widget.tfm_posts_widget .post-grid.show-post-count .article.widget-entry:not(.has-post-media)::before {
	top: -4px;
	left: 0;
}

.sidebar .widget.tfm_posts_widget .post-grid .article.widget-entry:not(.has-post-media) .entry-meta {
	position: static;
	margin: 0;
}

.sidebar .widget.tfm_posts_widget .post-grid .article.widget-entry:not(.has-post-media) .post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 14px;
}

.sidebar .widget.tfm_posts_widget .post-thumbnail {
	margin: 0;
}

.sidebar .widget.tfm_posts_widget .post-thumbnail img {
	width: 88px;
	height: 88px;
	object-fit: cover;
	display: block;
}

.sidebar .widget.tfm_posts_widget .post-grid .article.widget-entry .entry-title {
	font-size: 15px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 0;
	margin: 0 0 4px;
}

.sidebar .widget.tfm_posts_widget .post-meta {
	font-size: 12px;
	color: var(--stoly-muted);
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Footer ------------------------------------------------------------------- */

.site-footer {
	background: var(--stoly-night);
	color: rgba(255, 255, 255, 0.8);
}

.stoly-footer__inner {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) 2fr;
	gap: var(--stoly-gap) calc(var(--stoly-gap) * 2);
	padding-top: 56px;
	padding-bottom: 40px;
}

.stoly-footer__brand img {
	width: 200px;
	height: auto;
}

.stoly-footer__brand p {
	margin: 14px 0 0;
	font-size: 15px;
	max-width: 34ch;
}

.stoly-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 3;
	column-gap: var(--stoly-gap);
}

.stoly-footer__nav li {
	break-inside: avoid;
	margin-bottom: 12px;
}

.stoly-footer__nav a {
	color: #fff;
	font-style: italic;
	font-weight: 800;
	font-stretch: 80%;
	font-size: 22px;
	text-decoration: none;
}

.stoly-footer__nav a:hover {
	color: var(--stoly-coral-light);
}

.site-info {
	background: transparent;
	color: rgba(255, 255, 255, 0.6);
	font-size: 14px;
}

.inside-site-info {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	padding-top: 18px;
	padding-bottom: 26px;
	justify-content: flex-start;
}

a.generate-back-to-top {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	line-height: 1;
	border-radius: 4px;
}

a.generate-back-to-top .gp-icon {
	width: auto;
	margin: 0;
	display: flex;
}

/* A plugin's icon font also styles ".icon-arrow-up" and adds its own glyph, pushing the arrow sideways. */
a.generate-back-to-top .gp-icon::before {
	content: none;
	display: none;
}

a.generate-back-to-top svg {
	width: 18px;
	height: 18px;
	top: 0;
}

a.generate-back-to-top,
a.generate-back-to-top:hover,
a.generate-back-to-top:focus {
	background: var(--stoly-coral);
	color: #fff;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1200px) {
	.main-navigation .main-nav ul li a {
		padding-left: 7px;
		padding-right: 7px;
		font-size: 14px;
	}
}

@media (max-width: 1024px) {
	.stoly-cover .stoly-card--lead {
		grid-template-columns: 1fr;
	}

	.stoly-cover .stoly-card--lead .stoly-card__media {
		order: 0;
		aspect-ratio: 16 / 10;
		clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%);
		animation: none;
	}

	.stoly-cover__latest {
		grid-template-columns: 1fr;
	}

	.stoly-cover__latest .stoly-more {
		grid-column: 1;
	}

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

	.stoly-popular__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 36px;
	}

	.stoly-section--portrait .stoly-section__body,
	.stoly-section--grid .stoly-section__body,
	.stoly-more-in__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	body {
		font-size: 16px;
	}

	.grid-container,
	.stoly-cover__inner {
		padding-left: 16px;
		padding-right: 16px;
	}

	.one-container.right-sidebar .site-main {
		margin-right: 0;
	}

	.inside-header {
		padding: 12px 16px;
	}

	.site-logo .header-image,
	.site-header .header-image {
		width: 120px;
	}

	.main-navigation .menu-toggle,
	.main-navigation .menu-bar-item > a {
		line-height: 48px;
	}

	.main-navigation.toggled .main-nav > ul {
		background: var(--stoly-night);
	}

	.main-navigation.toggled .main-nav ul ul {
		background: rgba(255, 255, 255, 0.06);
		box-shadow: none;
		width: auto;
	}

	.main-navigation.toggled .main-nav ul ul li a {
		color: #fff;
	}

	.stoly-cover__latest-list {
		grid-template-columns: 1fr;
	}

	.stoly-more__name {
		display: none;
	}

	.stoly-popular__list {
		grid-template-columns: 1fr;
		row-gap: 20px;
	}

	.stoly-popular__list li {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 16px;
		align-items: center;
		padding-top: 0;
	}

	.stoly-popular__thumb {
		width: 112px;
		margin: 0;
	}

	.stoly-card--spot .stoly-card__media {
		aspect-ratio: 4 / 3;
	}

	.stoly-card--spot .stoly-card__body {
		margin: -48px 12px 0;
		padding: 20px 20px 18px;
	}

	.stoly-section--spotlight .stoly-section__more,
	.stoly-section--grid .stoly-section__body,
	.stoly-section--wide .stoly-section__body,
	.stoly-section--feature .stoly-section__body,
	.stoly-section--feature-flip .stoly-section__body {
		grid-template-columns: 1fr;
	}

	.stoly-section--feature-flip .stoly-section__body > .stoly-card {
		order: 0;
	}

	.stoly-section--spotlight .stoly-section__more .stoly-card--md,
	.stoly-section--grid .stoly-card--md {
		display: grid;
		grid-template-columns: 120px minmax(0, 1fr);
		gap: 16px;
	}

	.stoly-section--spotlight .stoly-section__more .stoly-card__media,
	.stoly-section--grid .stoly-card--md .stoly-card__media {
		aspect-ratio: 4 / 3;
		margin: 0;
	}

	.stoly-card--md .stoly-card__title,
	.stoly-card--portrait .stoly-card__title {
		font-size: 17px;
	}

	.stoly-card--row {
		grid-template-columns: 120px minmax(0, 1fr);
	}

	.stoly-article-hero.has-image {
		background: linear-gradient(to bottom, var(--stoly-night) calc(100% - 90px), var(--stoly-paper) calc(100% - 90px));
	}

	.stoly-article-hero__dek {
		font-size: 18px;
	}

	.stoly-article-hero__media {
		padding-left: 0;
		padding-right: 0;
	}

	.blog .inside-article,
	.archive .inside-article,
	.search .inside-article {
		grid-template-columns: 116px minmax(0, 1fr);
		column-gap: 16px;
	}

	.blog .post-image,
	.archive .post-image,
	.search .post-image {
		aspect-ratio: 1 / 1;
		grid-row: 1 / span 3;
	}

	.blog .site-main .entry-title,
	.archive .site-main .entry-title,
	.search .site-main .entry-title {
		font-size: 18px;
	}

	.blog .entry-summary,
	.archive .entry-summary,
	.search .entry-summary {
		display: none;
	}

	.single .entry-content {
		font-size: 18px;
	}

	.single .entry-content > p:first-child {
		font-size: 20px;
	}

	.single .entry-content blockquote {
		font-size: 19px;
		padding-left: 28px;
	}

	.single .site-content {
		display: block;
	}

	.single .inside-right-sidebar {
		position: static;
	}

	.stoly-toc {
		margin-left: -16px;
		margin-right: -16px;
		padding: 20px 16px 16px;
	}

	.single .entry-content .stoly-also a {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 14px;
	}

	.single .entry-content .stoly-also img {
		width: 96px;
		height: 72px;
	}

	.stoly-also__title {
		font-size: 16px;
	}

	.single .entry-content p:has(> img) {
		margin-left: -16px;
		margin-right: -16px;
	}

	.single .entry-content p:has(> img.stoly-portrait) {
		padding: 16px;
	}

	.stoly-article-end {
		margin-left: -16px;
		margin-right: -16px;
		padding: 22px 16px 24px;
	}

	.stoly-more-in__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.stoly-more-in .stoly-card--md {
		display: grid;
		grid-template-columns: 120px minmax(0, 1fr);
		gap: 16px;
	}

	.stoly-more-in .stoly-card--md .stoly-card__media {
		aspect-ratio: 4 / 3;
		margin: 0;
	}

	.stoly-share__btn {
		padding: 9px 13px;
	}

	.stoly-footer__inner {
		grid-template-columns: 1fr;
	}

	.stoly-footer__nav ul {
		columns: 2;
	}
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.stoly-toc) {
		scroll-behavior: smooth;
	}
}

@media (prefers-reduced-motion: reduce) {
	.stoly-cover .stoly-card--lead .stoly-card__media {
		animation: none;
	}
}
