/**
 * Tshirtness - Blog editorial
 * Capa de histórias + leitura de artigos.
 */

:root {
	--tsn-blog-ink: #242424;
	--tsn-blog-paper: #f5f4f1;
	--tsn-blog-white: #ffffff;
	--tsn-blog-accent: #fbbc34;
	--tsn-blog-muted: #767676;
	--tsn-blog-line: #e7e4de;
	--tsn-blog-max: 1220px;
}

/* Superfícies e pequenos detalhes do navegador. */
body.blog,
body.archive.category,
body.archive.tag,
body.single-post {
	color: var(--tsn-blog-ink);
	background: var(--tsn-blog-paper);
}

body.blog ::selection,
body.archive.category ::selection,
body.archive.tag ::selection,
body.single-post ::selection {
	color: var(--tsn-blog-ink);
	background: var(--tsn-blog-accent);
}

body.blog :focus-visible,
body.archive.category :focus-visible,
body.archive.tag :focus-visible,
body.single-post :focus-visible {
	outline: 2px solid var(--tsn-blog-accent);
	outline-offset: 4px;
}

/* Capa do blog. */
body.blog .wd-page-title,
body.archive.category .wd-page-title,
body.archive.tag .wd-page-title {
	position: relative;
	min-height: clamp(300px, 38vw, 500px);
	margin: 0;
	overflow: hidden;
	background: var(--tsn-blog-ink);
}

body.blog .wd-page-title::before,
body.archive.category .wd-page-title::before,
body.archive.tag .wd-page-title::before {
	position: absolute;
	right: clamp(24px, 6vw, 80px);
	bottom: clamp(26px, 5vw, 64px);
	width: clamp(54px, 7vw, 92px);
	height: clamp(54px, 7vw, 92px);
	border: clamp(10px, 1.15vw, 16px) solid var(--tsn-blog-accent);
	content: "";
	transform: rotate(12deg);
}

body.blog .wd-page-title::after {
	position: absolute;
	right: clamp(116px, 15vw, 220px);
	bottom: clamp(33px, 5.8vw, 76px);
	width: min(33vw, 360px);
	color: var(--tsn-blog-line);
	font: 700 clamp(13px, 1.25vw, 17px)/1.45 "Nunito Sans", sans-serif;
	content: "Cultura, memória e atitude em histórias para vestir.";
}

body.blog .wd-page-title-bg,
body.archive.category .wd-page-title-bg,
body.archive.tag .wd-page-title-bg {
	display: none;
}

body.blog .wd-page-title > .container,
body.archive.category .wd-page-title > .container,
body.archive.tag .wd-page-title > .container {
	position: relative;
	display: flex;
	width: min(100%, calc(var(--tsn-blog-max) + 48px));
	min-height: inherit;
	align-items: flex-end;
	justify-content: flex-start;
	padding: clamp(44px, 6vw, 80px) 24px;
	text-align: left;
}

body.blog .wd-page-title .entry-title,
body.archive.category .wd-page-title .entry-title,
body.archive.tag .wd-page-title .entry-title {
	max-width: 9ch;
	margin: 0;
	color: var(--tsn-blog-white);
	font-family: "Bowlby One SC", sans-serif;
	font-size: clamp(4rem, 9vw, 6rem);
	font-weight: 400;
	line-height: .84;
	letter-spacing: -.03em;
	text-transform: uppercase;
	text-wrap: balance;
}

body.blog .wd-page-title .wd-breadcrumbs,
body.archive.category .wd-page-title .wd-breadcrumbs,
body.archive.tag .wd-page-title .wd-breadcrumbs {
	position: absolute;
	top: clamp(32px, 4vw, 54px);
	left: 24px;
	margin: 0;
	color: var(--tsn-blog-line);
	font: 800 11px/1.2 "Nunito Sans", sans-serif;
	letter-spacing: .12em;
	text-transform: uppercase;
}

body.blog .wd-page-title .wd-breadcrumbs a,
body.archive.category .wd-page-title .wd-breadcrumbs a,
body.archive.tag .wd-page-title .wd-breadcrumbs a {
	color: var(--tsn-blog-accent);
}

/* Grid editorial da listagem. */
body.blog #main-content,
body.archive.category #main-content,
body.archive.tag #main-content {
	width: min(100%, calc(var(--tsn-blog-max) + 48px));
	max-width: none;
	padding: clamp(52px, 7vw, 92px) 24px clamp(80px, 10vw, 132px);
}

body.blog .site-content,
body.archive.category .site-content,
body.archive.tag .site-content {
	width: 100%;
	max-width: none;
}

body.blog .wd-blog-holder,
body.archive.category .wd-blog-holder,
body.archive.tag .wd-blog-holder {
	display: grid !important;
	grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr);
	gap: 28px;
	margin: 0 !important;
}

body.blog .wd-blog-holder > .wd-post,
body.archive.category .wd-blog-holder > .wd-post,
body.archive.tag .wd-blog-holder > .wd-post {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.blog .wd-blog-holder > .wd-post:first-of-type,
body.archive.category .wd-blog-holder > .wd-post:first-of-type,
body.archive.tag .wd-blog-holder > .wd-post:first-of-type {
	grid-row: span 2;
}

body.blog .wd-post-inner,
body.archive.category .wd-post-inner,
body.archive.tag .wd-post-inner {
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--tsn-blog-line);
	background: var(--tsn-blog-white);
	box-shadow: none;
}

body.blog .wd-blog-holder > .wd-post:not(:first-of-type) .wd-post-inner,
body.archive.category .wd-blog-holder > .wd-post:not(:first-of-type) .wd-post-inner,
body.archive.tag .wd-blog-holder > .wd-post:not(:first-of-type) .wd-post-inner {
	display: grid;
	min-height: 288px;
	grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr);
}

body.blog .wd-post-thumb,
body.archive.category .wd-post-thumb,
body.archive.tag .wd-post-thumb {
	height: 100%;
	margin: 0;
	overflow: hidden;
	background: var(--tsn-blog-line);
}

body.blog .wd-blog-holder > .wd-post:first-of-type .wd-post-thumb,
body.archive.category .wd-blog-holder > .wd-post:first-of-type .wd-post-thumb,
body.archive.tag .wd-blog-holder > .wd-post:first-of-type .wd-post-thumb {
	aspect-ratio: 4 / 3;
	height: auto;
}

body.blog .wd-post-img,
body.archive.category .wd-post-img,
body.archive.tag .wd-post-img {
	height: 100%;
}

body.blog .wd-post-img img,
body.archive.category .wd-post-img img,
body.archive.tag .wd-post-img img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	transition: transform 420ms cubic-bezier(.16, 1, .3, 1);
}

body.blog .wd-post-inner:hover .wd-post-img img,
body.archive.category .wd-post-inner:hover .wd-post-img img,
body.archive.tag .wd-post-inner:hover .wd-post-img img {
	transform: scale(1.025) !important;
}

body.blog .wd-post-date.wd-style-with-bg,
body.archive.category .wd-post-date.wd-style-with-bg,
body.archive.tag .wd-post-date.wd-style-with-bg {
	display: none;
}

body.blog .wd-post-content,
body.archive.category .wd-post-content,
body.archive.tag .wd-post-content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px;
	text-align: left;
}

body.blog .wd-blog-holder > .wd-post:first-of-type .wd-post-content,
body.archive.category .wd-blog-holder > .wd-post:first-of-type .wd-post-content,
body.archive.tag .wd-blog-holder > .wd-post:first-of-type .wd-post-content {
	padding: clamp(26px, 3vw, 40px);
}

body.blog .wd-post-cat,
body.archive.category .wd-post-cat,
body.archive.tag .wd-post-cat,
body.single-post .wd-post-cat {
	position: static;
	width: max-content;
	max-width: 100%;
	margin: 0 0 18px;
	background: transparent !important;
	transform: none;
}

body.blog .wd-post-cat a,
body.archive.category .wd-post-cat a,
body.archive.tag .wd-post-cat a,
body.single-post .wd-post-cat a {
	display: inline-flex !important;
	width: max-content !important;
	max-width: 100%;
	padding: 5px 8px;
	color: var(--tsn-blog-ink);
	background: var(--tsn-blog-accent);
	font: 800 10px/1.15 "Nunito Sans", sans-serif;
	letter-spacing: .1em;
	text-transform: uppercase;
}

body.blog .wd-post-title,
body.archive.category .wd-post-title,
body.archive.tag .wd-post-title {
	margin: 0;
	font-family: "Bowlby One SC", sans-serif;
	font-size: clamp(1.25rem, 2vw, 1.85rem);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -.015em;
	text-transform: none;
	text-wrap: balance;
}

body.blog .wd-blog-holder > .wd-post:first-of-type .wd-post-title,
body.archive.category .wd-blog-holder > .wd-post:first-of-type .wd-post-title,
body.archive.tag .wd-blog-holder > .wd-post:first-of-type .wd-post-title {
	max-width: 18ch;
	font-size: clamp(2rem, 3.7vw, 3.55rem);
}

body.blog .wd-post-title a,
body.archive.category .wd-post-title a,
body.archive.tag .wd-post-title a {
	color: var(--tsn-blog-ink);
}

body.blog .wd-post-meta,
body.archive.category .wd-post-meta,
body.archive.tag .wd-post-meta {
	order: -1;
	min-height: 0;
	margin: 0 0 12px;
	color: var(--tsn-blog-muted);
	font: 800 10px/1.2 "Nunito Sans", sans-serif;
	letter-spacing: .08em;
	text-transform: uppercase;
}

body.blog .wd-post-author,
body.blog .wd-post-share,
body.blog .wd-post-reply,
body.archive.category .wd-post-author,
body.archive.category .wd-post-share,
body.archive.category .wd-post-reply,
body.archive.tag .wd-post-author,
body.archive.tag .wd-post-share,
body.archive.tag .wd-post-reply {
	display: none !important;
}

body.blog .wd-post-excerpt,
body.archive.category .wd-post-excerpt,
body.archive.tag .wd-post-excerpt {
	margin: 20px 0 0;
	color: var(--tsn-blog-muted);
	font: 600 15px/1.6 "Nunito", sans-serif;
	text-align: left;
}

body.blog .wd-blog-holder > .wd-post:not(:first-of-type) .wd-post-excerpt,
body.archive.category .wd-blog-holder > .wd-post:not(:first-of-type) .wd-post-excerpt,
body.archive.tag .wd-blog-holder > .wd-post:not(:first-of-type) .wd-post-excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

body.blog .wd-post-read-more,
body.archive.category .wd-post-read-more,
body.archive.tag .wd-post-read-more {
	margin-top: auto;
	padding-top: 24px;
}

body.blog .wd-post-read-more a,
body.archive.category .wd-post-read-more a,
body.archive.tag .wd-post-read-more a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 4px;
	border-bottom: 2px solid var(--tsn-blog-accent);
	color: var(--tsn-blog-ink);
	font: 800 11px/1.2 "Nunito Sans", sans-serif;
	letter-spacing: .1em;
	text-transform: uppercase;
}

body.blog .wd-post-read-more a::after,
body.archive.category .wd-post-read-more a::after,
body.archive.tag .wd-post-read-more a::after {
	content: "→";
	transition: transform 180ms cubic-bezier(.16, 1, .3, 1);
}

body.blog .wd-post-read-more a:hover::after,
body.archive.category .wd-post-read-more a:hover::after,
body.archive.tag .wd-post-read-more a:hover::after {
	transform: translateX(5px);
}

/* Leitura dos artigos. */
body.single-post .wd-page-title {
	display: none;
}

body.single-post .main-page-wrapper {
	padding-top: clamp(64px, 8vw, 112px);
}

body.single-post .content-layout-wrapper {
	display: block;
	width: min(100%, calc(var(--tsn-blog-max) + 48px));
	max-width: none;
	padding-right: 24px;
	padding-left: 24px;
}

body.single-post .site-content {
	width: 100%;
	max-width: none;
}

body.single-post .sidebar-container {
	display: none !important;
}

body.single-post .post-single-page {
	margin: 0;
}

body.single-post .wd-single-post-header {
	display: grid;
	grid-template-columns: minmax(0, .34fr) minmax(0, 1fr);
	column-gap: clamp(32px, 6vw, 88px);
	align-items: end;
	margin: 0 0 clamp(44px, 6vw, 80px);
	text-align: left;
}

body.single-post .wd-single-post-header .wd-post-cat {
	grid-column: 1;
	align-self: start;
	margin-top: 8px;
}

body.single-post .wd-single-post-header .wd-post-title {
	grid-column: 2;
	margin: 0;
	color: var(--tsn-blog-ink);
	font-family: "Bowlby One SC", sans-serif;
	font-size: clamp(3rem, 6vw, 6rem);
	font-weight: 400;
	line-height: .98;
	letter-spacing: -.03em;
	text-wrap: balance;
}

body.single-post .wd-single-post-header .wd-post-meta {
	grid-column: 2;
	justify-content: flex-start;
	margin: 26px 0 0;
	color: var(--tsn-blog-muted);
	font: 800 11px/1.3 "Nunito Sans", sans-serif;
	letter-spacing: .08em;
	text-transform: uppercase;
}

body.single-post .wd-single-post-header .wd-post-author > span,
body.single-post .wd-single-post-header .wd-post-author img,
body.single-post .wd-single-post-header .wd-post-date,
body.single-post .wd-single-post-header .wd-post-reply {
	display: none !important;
}

body.single-post .wd-single-post-header .wd-post-author::before {
	margin-right: 5px;
	content: "Por";
}

body.single-post .wd-single-post-header .wd-post-author .author {
	color: var(--tsn-blog-ink);
	border-bottom: 1px solid var(--tsn-blog-accent);
}

body.single-post .wd-single-post-header .wd-post-image {
	grid-column: 1 / -1;
	margin-top: clamp(40px, 6vw, 76px);
	overflow: hidden;
	background: var(--tsn-blog-line);
}

body.single-post .wd-single-post-header .wd-post-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

body.single-post .wd-entry-content {
	max-width: 760px;
	margin: 0 auto;
	color: var(--tsn-blog-ink);
	font-family: "Nunito", sans-serif;
	font-size: clamp(1.08rem, 1.5vw, 1.22rem);
	line-height: 1.78;
}

body.single-post .wd-entry-content > p {
	margin: 0 0 1.55em;
}

body.single-post .wd-entry-content h2,
body.single-post .wd-entry-content h3 {
	margin: 2.25em 0 .7em;
	color: var(--tsn-blog-ink);
	font-family: "Bowlby One SC", sans-serif;
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -.02em;
	text-wrap: balance;
}

body.single-post .wd-entry-content h2 {
	font-size: clamp(2rem, 3.8vw, 3.25rem);
}

body.single-post .wd-entry-content h3 {
	font-size: clamp(1.55rem, 2.7vw, 2.25rem);
}

body.single-post .wd-entry-content blockquote {
	width: min(980px, calc(100vw - 48px));
	margin: clamp(48px, 7vw, 84px) 50%;
	padding: clamp(36px, 5vw, 64px);
	border: 0;
	background: var(--tsn-blog-accent);
	color: var(--tsn-blog-ink);
	font-family: "Bowlby One SC", sans-serif;
	font-size: clamp(1.7rem, 3vw, 2.65rem);
	font-style: normal;
	line-height: 1.08;
	text-align: left;
	transform: translateX(-50%);
}

body.single-post .wd-entry-content blockquote p {
	margin: 0;
}

body.single-post .wd-entry-content a {
	color: var(--tsn-blog-ink);
	text-decoration: underline;
	text-decoration-color: var(--tsn-blog-accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
}

body.single-post .wd-single-footer,
body.single-post .wd-page-nav,
body.single-post .comments-area {
	max-width: 760px;
	margin-right: auto;
	margin-left: auto;
}

body.single-post .wd-single-footer {
	margin-top: 64px;
	padding-top: 24px;
	border-top: 1px solid var(--tsn-blog-line);
}

body.single-post .wd-page-nav {
	margin-top: 48px;
	border-color: var(--tsn-blog-line);
}

body.single-post .comments-area {
	margin-top: 72px;
	padding: 48px;
	border: 1px solid var(--tsn-blog-line);
	background: var(--tsn-blog-white);
}

body.single-post .comment-reply-title {
	font-family: "Bowlby One SC", sans-serif;
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	font-weight: 400;
	line-height: 1.08;
}

body.single-post .comment-form label {
	color: var(--tsn-blog-ink);
	font: 800 12px/1.2 "Nunito Sans", sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
}

body.single-post .comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
	border: 1px solid var(--tsn-blog-line);
	border-radius: 0;
	background: var(--tsn-blog-paper);
	box-shadow: none;
}

body.single-post .comment-form .submit {
	min-height: 48px;
	border-radius: 0;
	background: var(--tsn-blog-accent);
	color: var(--tsn-blog-ink);
	font: 800 12px/1.2 "Nunito Sans", sans-serif;
	letter-spacing: .08em;
	text-transform: uppercase;
	box-shadow: none;
}

/* Tablet. */
@media (max-width: 1024px) {
	body.blog .wd-blog-holder,
	body.archive.category .wd-blog-holder,
	body.archive.tag .wd-blog-holder {
		grid-template-columns: 1fr;
	}

	body.blog .wd-blog-holder > .wd-post:first-of-type,
	body.archive.category .wd-blog-holder > .wd-post:first-of-type,
	body.archive.tag .wd-blog-holder > .wd-post:first-of-type {
		grid-row: auto;
	}

	body.blog .wd-blog-holder > .wd-post:not(:first-of-type) .wd-post-inner,
	body.archive.category .wd-blog-holder > .wd-post:not(:first-of-type) .wd-post-inner,
	body.archive.tag .wd-blog-holder > .wd-post:not(:first-of-type) .wd-post-inner {
		grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
	}

	body.single-post .wd-single-post-header {
		grid-template-columns: 1fr;
	}

	body.single-post .wd-single-post-header .wd-post-cat,
	body.single-post .wd-single-post-header .wd-post-title,
	body.single-post .wd-single-post-header .wd-post-meta {
		grid-column: 1;
	}

	body.single-post .wd-single-post-header .wd-post-title {
		margin-top: 28px;
	}
}

/* Mobile. */
@media (max-width: 767px) {
	body.blog .wd-page-title,
	body.archive.category .wd-page-title,
	body.archive.tag .wd-page-title {
		min-height: 340px;
	}

	body.blog .wd-page-title::before,
	body.archive.category .wd-page-title::before,
	body.archive.tag .wd-page-title::before {
		right: 24px;
		bottom: 28px;
	}

	body.blog .wd-page-title::after {
		right: auto;
		bottom: 34px;
		left: 24px;
		width: calc(100% - 130px);
		font-size: 13px;
	}

	body.blog .wd-page-title > .container,
	body.archive.category .wd-page-title > .container,
	body.archive.tag .wd-page-title > .container {
		align-items: flex-start;
		padding-top: 88px;
		padding-bottom: 120px;
	}

	body.blog .wd-page-title .entry-title,
	body.archive.category .wd-page-title .entry-title,
	body.archive.tag .wd-page-title .entry-title {
		font-size: clamp(3.6rem, 19vw, 5.4rem);
	}

	body.blog #main-content,
	body.archive.category #main-content,
	body.archive.tag #main-content {
		padding: 44px 16px 80px;
	}

	body.blog .wd-blog-holder,
	body.archive.category .wd-blog-holder,
	body.archive.tag .wd-blog-holder {
		gap: 18px;
	}

	body.blog .wd-blog-holder > .wd-post:not(:first-of-type) .wd-post-inner,
	body.archive.category .wd-blog-holder > .wd-post:not(:first-of-type) .wd-post-inner,
	body.archive.tag .wd-blog-holder > .wd-post:not(:first-of-type) .wd-post-inner {
		display: block;
		min-height: 0;
	}

	body.blog .wd-blog-holder > .wd-post:not(:first-of-type) .wd-post-thumb,
	body.archive.category .wd-blog-holder > .wd-post:not(:first-of-type) .wd-post-thumb,
	body.archive.tag .wd-blog-holder > .wd-post:not(:first-of-type) .wd-post-thumb {
		aspect-ratio: 4 / 3;
		height: auto;
	}

	body.blog .wd-post-content,
	body.archive.category .wd-post-content,
	body.archive.tag .wd-post-content {
		padding: 24px;
	}

	body.blog .wd-blog-holder > .wd-post:first-of-type .wd-post-content,
	body.archive.category .wd-blog-holder > .wd-post:first-of-type .wd-post-content,
	body.archive.tag .wd-blog-holder > .wd-post:first-of-type .wd-post-content {
		padding: 26px 24px 30px;
	}

	body.blog .wd-blog-holder > .wd-post:first-of-type .wd-post-title,
	body.archive.category .wd-blog-holder > .wd-post:first-of-type .wd-post-title,
	body.archive.tag .wd-blog-holder > .wd-post:first-of-type .wd-post-title {
		font-size: clamp(1.9rem, 10vw, 2.6rem);
	}

	body.single-post .main-page-wrapper {
		padding-top: 48px;
	}

	body.single-post .content-layout-wrapper {
		padding-right: 16px;
		padding-left: 16px;
	}

	body.single-post .wd-single-post-header {
		margin-bottom: 46px;
	}

	body.single-post .wd-single-post-header .wd-post-title {
		font-size: clamp(2.7rem, 13vw, 4.7rem);
	}

	body.single-post .wd-single-post-header .wd-post-image {
		width: calc(100% + 32px);
		margin-top: 40px;
		margin-left: -16px;
	}

	body.single-post .wd-single-post-header .wd-post-image img {
		aspect-ratio: 4 / 3;
	}

	body.single-post .wd-entry-content {
		font-size: 1.08rem;
		line-height: 1.72;
	}

	body.single-post .wd-entry-content blockquote {
		width: calc(100vw - 32px);
		padding: 32px 24px;
	}

	body.single-post .comments-area {
		margin-right: -16px;
		margin-left: -16px;
		padding: 32px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.blog .wd-post-img img,
	body.archive.category .wd-post-img img,
	body.archive.tag .wd-post-img img,
	body.blog .wd-post-read-more a::after,
	body.archive.category .wd-post-read-more a::after,
	body.archive.tag .wd-post-read-more a::after {
		transition: none;
	}
}
