/*
Theme Name: TechProbably
Theme URI: https://techprobably.com
Description: Child theme of GeneratePress for TechProbably.com. Editorial blog layout tuned for mobile reading speed.
Author: Joel Nithushan
Template: generatepress
Version: 1.0.0
Text Domain: techprobably
*/

@font-face {
	font-family: 'InterVariable';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/inter-variable.woff2') format('woff2');
}

:root {
	--tp-accent: #e02b20;
	--tp-accent-dark: #b01f16;
	--tp-heading: #1a1a1a;
	--tp-body: #2b2b2b;
	--tp-muted: #6b6b6b;
	--tp-rule: #e6e6e6;
	--tp-rule-soft: #f0f0f0;
	--tp-surface: #fafafa;
	--tp-bg: #ffffff;
	--tp-footer-bg: #1a1a1a;
	--tp-footer-text: #a8a8a8;

	--tp-font: 'InterVariable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--tp-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

	--tp-wrap: 1180px;
	--tp-measure: 620px;
	--tp-gutter: 20px;
}

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

body,
button,
input,
select,
textarea {
	font-family: var(--tp-font);
	color: var(--tp-body);
}

body {
	background: var(--tp-bg);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--tp-heading);
	font-weight: 700;
	letter-spacing: -0.018em;
	line-height: 1.25;
}

a {
	color: var(--tp-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover,
a:focus {
	color: var(--tp-accent-dark);
}

img {
	max-width: 100%;
	height: auto;
}

:focus-visible {
	outline: 2px solid var(--tp-accent);
	outline-offset: 2px;
}

.tp-wrap {
	width: 100%;
	max-width: var(--tp-wrap);
	margin: 0 auto;
	padding: 0 var(--tp-gutter);
}

.tp-skip {
	position: absolute;
	left: -9999px;
}

.tp-skip:focus {
	left: 16px;
	top: 16px;
	z-index: 999;
	background: #fff;
	padding: 10px 16px;
	border: 2px solid var(--tp-accent);
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--tp-bg);
	border-bottom: 1px solid var(--tp-rule);
}

.site-header .inside-header {
	max-width: var(--tp-wrap);
	margin: 0 auto;
	padding: 14px var(--tp-gutter);
	align-items: center;
}

.site-logo img,
.header-image {
	max-height: 40px;
	width: auto;
}

.main-navigation,
.main-navigation .inside-navigation {
	background: transparent;
}

.main-navigation .main-nav ul li a {
	color: var(--tp-heading);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	padding: 12px 14px;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item a {
	color: var(--tp-accent);
	background: transparent;
}

.main-navigation .main-nav ul li.current-menu-item > a {
	box-shadow: inset 0 -2px 0 var(--tp-accent);
}

.main-navigation .menu-toggle {
	color: var(--tp-heading);
	font-weight: 500;
}

.navigation-search input[type="search"] {
	font-family: var(--tp-font);
	font-size: 16px;
}

/* ---------- Hero ---------- */

.tp-hero {
	border-bottom: 1px solid var(--tp-rule-soft);
	padding: 40px 0 34px;
}

.tp-hero__title {
	font-size: 30px;
	margin: 0 0 8px;
}

.tp-hero__dot {
	color: var(--tp-accent);
}

.tp-hero__line {
	color: var(--tp-muted);
	font-size: 16px;
	max-width: 52ch;
	margin: 0;
}

/* ---------- Section headings ---------- */

.tp-section {
	padding: 44px 0;
}

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

.tp-section__title {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--tp-muted);
	margin: 0;
}

.tp-section__title::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	background: var(--tp-accent);
	margin-right: 9px;
	vertical-align: 1px;
}

.tp-section__more {
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

/* ---------- Post grid ---------- */

.tp-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 34px 28px;
}

.tp-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--tp-surface);
	border: 1px solid var(--tp-rule-soft);
	margin-bottom: 14px;
}

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

.tp-card__cat {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tp-accent);
	text-decoration: none;
	margin-bottom: 7px;
}

.tp-card__title {
	font-size: 20px;
	line-height: 1.32;
	margin: 0 0 8px;
}

.tp-card__title a {
	color: var(--tp-heading);
	text-decoration: none;
}

.tp-card__title a:hover,
.tp-card__title a:focus {
	color: var(--tp-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.tp-card__excerpt {
	font-size: 15px;
	line-height: 1.62;
	color: var(--tp-body);
	margin: 0 0 10px;
}

.tp-meta {
	font-size: 13px;
	color: var(--tp-muted);
}

.tp-meta__sep {
	margin: 0 7px;
	color: var(--tp-rule);
}

/* ---------- About strip ---------- */

.tp-about {
	background: var(--tp-surface);
	border-top: 1px solid var(--tp-rule-soft);
	border-bottom: 1px solid var(--tp-rule-soft);
	padding: 40px 0;
}

.tp-about__inner {
	max-width: 660px;
}

.tp-about__title {
	font-size: 19px;
	margin: 0 0 10px;
}

.tp-about__text {
	margin: 0 0 14px;
	font-size: 16px;
	color: var(--tp-body);
}

.tp-link-arrow {
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
}

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

.tp-single {
	padding: 36px 0 56px;
}

.tp-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
}

.tp-single__main {
	min-width: 0;
}

.tp-breadcrumb {
	font-size: 13px;
	color: var(--tp-muted);
	margin-bottom: 14px;
}

.tp-breadcrumb a {
	color: var(--tp-muted);
	text-decoration: none;
}

.tp-breadcrumb a:hover {
	color: var(--tp-accent);
}

.tp-single__title {
	font-size: 31px;
	line-height: 1.2;
	margin: 0 0 14px;
}

.tp-single__meta {
	font-size: 13px;
	color: var(--tp-muted);
	padding-bottom: 18px;
	border-bottom: 1px solid var(--tp-rule-soft);
}

.tp-single__thumb {
	margin: 24px 0 8px;
}

.tp-single__thumb img {
	width: 100%;
	display: block;
}

.tp-single__caption {
	font-size: 13px;
	color: var(--tp-muted);
	margin-top: 8px;
}

.tp-content {
	max-width: var(--tp-measure);
	font-size: 17px;
	line-height: 1.7;
}

.tp-content > * + * {
	margin-top: 1.35em;
}

.tp-content h2 {
	font-size: 24px;
	margin-top: 2em;
	padding-top: 0.55em;
	border-top: 1px solid var(--tp-rule-soft);
}

.tp-content h3 {
	font-size: 19px;
	margin-top: 1.7em;
}

.tp-content h4 {
	font-size: 17px;
	margin-top: 1.5em;
}

.tp-content ul,
.tp-content ol {
	padding-left: 1.3em;
}

.tp-content li + li {
	margin-top: 0.45em;
}

.tp-content ul li::marker {
	color: var(--tp-accent);
}

.tp-content ol li::marker {
	color: var(--tp-muted);
	font-weight: 600;
}

.tp-content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--tp-accent);
	color: var(--tp-heading);
	font-size: 18px;
}

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

.tp-content :not(pre) > code {
	font-family: var(--tp-mono);
	font-size: 0.88em;
	background: var(--tp-surface);
	border: 1px solid var(--tp-rule);
	padding: 1px 5px;
	border-radius: 3px;
	word-break: break-word;
}

.tp-content pre {
	max-inline-size: 100%;
	font-family: var(--tp-mono);
	font-size: 14px;
	line-height: 1.6;
	background: var(--tp-surface);
	border: 1px solid var(--tp-rule);
	border-left: 3px solid var(--tp-accent);
	padding: 16px 18px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	white-space: pre;
	max-width: 100%;
}

.tp-content pre code {
	background: none;
	border: 0;
	padding: 0;
	font-size: inherit;
	white-space: pre;
}

.tp-content table {
	display: block;
	overflow-x: auto;
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.tp-content th,
.tp-content td {
	border: 1px solid var(--tp-rule);
	padding: 9px 12px;
	text-align: left;
}

.tp-content th {
	background: var(--tp-surface);
	font-weight: 600;
	color: var(--tp-heading);
}

.tp-content img {
	height: auto;
}

.tp-content hr {
	border: 0;
	border-top: 1px solid var(--tp-rule);
}

/* ---------- Post footer ---------- */

.tp-tags {
	margin-top: 40px;
	padding-top: 18px;
	border-top: 1px solid var(--tp-rule-soft);
	font-size: 14px;
	color: var(--tp-muted);
	max-width: var(--tp-measure);
}

.tp-tags a {
	text-decoration: none;
	border-bottom: 1px solid var(--tp-rule);
}

.tp-related {
	margin-top: 48px;
	padding-top: 28px;
	border-top: 2px solid var(--tp-heading);
}

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

.tp-sidebar {
	min-width: 0;
}

.tp-sidebar__block + .tp-sidebar__block {
	margin-top: 34px;
}

.tp-sidebar__title {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--tp-muted);
	margin: 0 0 14px;
	padding-bottom: 9px;
	border-bottom: 1px solid var(--tp-rule);
}

.tp-sidebar__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tp-sidebar__list li + li {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--tp-rule-soft);
}

.tp-sidebar__list a {
	color: var(--tp-heading);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	display: block;
}

.tp-sidebar__list a:hover {
	color: var(--tp-accent);
}

.tp-sidebar__date {
	display: block;
	font-size: 12px;
	color: var(--tp-muted);
	font-weight: 400;
	margin-top: 3px;
}

.tp-sidebar__about {
	font-size: 14px;
	line-height: 1.6;
	color: var(--tp-body);
	margin: 0;
}

/* ---------- Search form ---------- */

.tp-search {
	display: flex;
	border: 1px solid var(--tp-rule);
}

.tp-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 10px 12px;
	font-size: 15px;
	background: #fff;
	color: var(--tp-body);
}

.tp-search input[type="search"]:focus {
	outline: none;
}

.tp-search:focus-within {
	border-color: var(--tp-heading);
}

.tp-search button {
	border: 0;
	background: var(--tp-heading);
	color: #fff;
	padding: 0 15px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.tp-search button:hover {
	background: var(--tp-accent);
}

/* ---------- Ad slots ---------- */

.tp-ad {
	display: block;
	margin: 26px 0;
	max-width: var(--tp-measure);
}

.tp-ad--below-title {
	min-height: 100px;
}

.tp-ad--mid-content {
	min-height: 280px;
}

.tp-ad--sidebar {
	min-height: 250px;
	margin: 34px 0 0;
}

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

.tp-archive-head {
	padding: 40px 0 0;
}

.tp-archive-head__kicker {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--tp-accent);
	margin: 0 0 6px;
}

.tp-archive-head__title {
	font-size: 29px;
	margin: 0 0 8px;
}

.tp-archive-head__desc {
	color: var(--tp-muted);
	font-size: 16px;
	max-width: 60ch;
	margin: 0;
}

/* ---------- Pagination ---------- */

.tp-pagination {
	margin-top: 44px;
	padding-top: 24px;
	border-top: 1px solid var(--tp-rule-soft);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px;
}

.tp-pagination .page-numbers {
	display: inline-block;
	padding: 6px 10px;
	border: 0;
	background: none;
	color: var(--tp-muted);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.tp-pagination a.page-numbers:hover,
.tp-pagination a.page-numbers:focus {
	color: var(--tp-heading);
}

.tp-pagination .page-numbers.current {
	color: var(--tp-accent);
	font-weight: 600;
}

.tp-pagination .page-numbers.dots {
	padding-left: 4px;
	padding-right: 4px;
}

/* ---------- 404 ---------- */

.tp-404 {
	padding: 70px 0;
	text-align: center;
}

.tp-404__code {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tp-accent);
	margin: 0 0 12px;
}

.tp-404__title {
	font-size: 28px;
	margin: 0 0 12px;
}

.tp-404__text {
	color: var(--tp-muted);
	max-width: 46ch;
	margin: 0 auto 26px;
}

.tp-404__search {
	max-width: 380px;
	margin: 0 auto 44px;
	text-align: left;
}

.tp-404__grid {
	text-align: left;
	margin-top: 40px;
}

/* ---------- Page template ---------- */

.tp-page {
	padding: 40px 0 60px;
}

.tp-page__title {
	font-size: 30px;
	margin: 0 0 8px;
	max-width: var(--tp-measure);
}

.tp-page__updated {
	font-size: 13px;
	color: var(--tp-muted);
	margin: 0 0 26px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--tp-rule-soft);
	max-width: var(--tp-measure);
}

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

.tp-footer {
	background: var(--tp-footer-bg);
	color: var(--tp-footer-text);
	padding: 48px 0 26px;
	margin-top: 0;
	font-size: 15px;
}

.tp-footer__cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 34px;
}

.tp-footer__title {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: #ffffff;
	margin: 0 0 14px;
}

.tp-footer__brand {
	font-size: 17px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 10px;
}

.tp-footer__brand span {
	color: var(--tp-accent);
}

.tp-footer__desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	max-width: 34ch;
}

.tp-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tp-footer__list li + li {
	margin-top: 9px;
}

.tp-footer__list a {
	color: var(--tp-footer-text);
	text-decoration: none;
	font-size: 14px;
	line-height: 1.5;
}

.tp-footer__list a:hover,
.tp-footer__list a:focus {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tp-footer__bottom {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid #2e2e2e;
	font-size: 13px;
	color: #7d7d7d;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	justify-content: space-between;
}

.tp-footer__bottom a {
	color: #7d7d7d;
	text-decoration: none;
}

.tp-footer__bottom a:hover {
	color: #ffffff;
}

/* Hide the parent theme's own footer bar. */
.site-info {
	display: none;
}

/* ---------- Back to top ---------- */

.generate-back-to-top {
	background: var(--tp-heading);
	color: #fff;
	border-radius: 0;
}

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

/* ---------- Breakpoints ---------- */

@media (min-width: 600px) {
	:root {
		--tp-gutter: 28px;
	}

	.tp-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tp-footer__cols {
		grid-template-columns: repeat(2, 1fr);
	}

	.tp-hero {
		padding: 52px 0 44px;
	}

	.tp-hero__title {
		font-size: 38px;
	}

	.tp-hero__line {
		font-size: 17px;
	}

	.tp-single__title {
		font-size: 40px;
	}

	.tp-page__title,
	.tp-archive-head__title {
		font-size: 36px;
	}

	.tp-content {
		font-size: 18px;
	}

	.tp-content h2 {
		font-size: 27px;
	}

	.tp-content h3 {
		font-size: 21px;
	}
}

@media (min-width: 900px) {
	.tp-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.tp-single__layout {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 56px;
	}

	.tp-sidebar {
		position: sticky;
		top: 90px;
		align-self: start;
	}

	.tp-footer__cols {
		grid-template-columns: 1.3fr 1fr 1.4fr;
		gap: 48px;
	}

	.tp-section {
		padding: 56px 0;
	}
}

@media (max-width: 899px) {
	/* Sidebar stacks below the article. */
	.tp-sidebar {
		padding-top: 8px;
		border-top: 2px solid var(--tp-heading);
	}
}

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

/* ---------- Parent container reset ---------- */

.site.grid-container,
#page.site {
	max-width: none;
	margin: 0;
	padding: 0;
	background: var(--tp-bg);
	box-shadow: none;
}

#content.site-content {
	max-width: none;
	padding: 0;
	margin: 0;
	display: block;
}

.separate-containers .site-main,
.one-container .site-main {
	margin: 0;
	padding: 0;
}

.separate-containers .inside-article {
	padding: 0;
}

/* ---------- Tagline under the header logo ---------- */

.site-logo {
	display: block;
}

.site-logo a {
	display: inline-block;
	line-height: 0;
}

.tp-tagline {
	margin: 5px 0 0;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--tp-muted);
	line-height: 1.2;
	white-space: nowrap;
}

@media (min-width: 600px) {
	.tp-tagline {
		font-size: 11px;
	}
}

.tp-page__title + .tp-content {
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid var(--tp-rule-soft);
}

/* ---------- Table of contents ---------- */

.tp-toc {
	margin: 0 0 1.8em;
	padding: 0;
	border: 0;
	background: none;
}

.tp-toc__title {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--tp-muted);
	margin: 0 0 10px;
}

.tp-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tp-toc__list li {
	margin: 0 0 7px;
}

.tp-toc__list a {
	color: var(--tp-accent);
	text-decoration: none;
	font-size: 15px;
	line-height: 1.45;
}

.tp-toc__list a:hover,
.tp-toc__list a:focus {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The sticky header must not cover a heading jumped to from the contents. */
.tp-content h2 {
	scroll-margin-top: 90px;
}

.tp-404__back {
	margin: 0 auto 40px;
}
