/*
Theme Name: TheTechDialogue
Theme URI: https://thetechdialogue.com
Author: Satyajeet Shukla
Author URI: https://thetechdialogue.com/about/
Description: An editorial block theme for TheTechDialogue — magazine-style technology writing with a dark masthead, warm paper pages, and a long-form reading measure.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thetechdialogue
Tags: blog, news, one-column, two-columns, block-styles, full-site-editing, wide-blocks, featured-images, custom-colors, custom-logo, custom-menu, editor-style, sticky-post, threaded-comments
*/

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--sans);
	letter-spacing: -0.011em;
}

.wp-site-blocks {
	padding: 0;
}

a {
	text-underline-offset: 0.18em;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

/* -------------------------------------------------------------------------
   Masthead
   ------------------------------------------------------------------------- */

.ttd-header {
	position: relative;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--paper) 12%, transparent);
	letter-spacing: 0;
	padding-top: 1.35rem;
	padding-bottom: 1.35rem;
}

.ttd-header::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--wp--preset--color--copper);
}

.ttd-header .wp-block-site-title {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.85rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0;
}

.ttd-header .wp-block-site-title a {
	text-decoration: none;
}

.ttd-header .wp-block-site-tagline {
	color: color-mix(in srgb, var(--wp--preset--color--paper) 62%, transparent);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0.15rem 0 0;
}

.ttd-header .wp-block-navigation {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ttd-header .wp-block-navigation a {
	text-decoration: none;
}

.ttd-header .wp-block-navigation a:hover,
.ttd-header .wp-block-navigation a:focus {
	color: var(--wp--preset--color--copper);
}

.ttd-brand {
	gap: 0.85rem !important;
}

.ttd-brand .wp-block-site-logo img {
	border-radius: 4px;
}

/* -------------------------------------------------------------------------
   Homepage magazine
   ------------------------------------------------------------------------- */

.ttd-home,
.ttd-article,
.ttd-archive {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--80);
}

.ttd-home {
	padding-bottom: 0;
}

.ttd-home-intro {
	margin-bottom: var(--wp--preset--spacing--60);
}

.ttd-kicker {
	color: var(--wp--preset--color--copper);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0 0 0.75rem;
}

.ttd-featured .wp-block-post-featured-image img,
.ttd-card .wp-block-post-featured-image img {
	border-radius: 0;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.ttd-featured .wp-block-post-title {
	font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.6rem);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.08;
	margin-top: 0;
}

.ttd-featured .wp-block-post-title a,
.ttd-card .wp-block-post-title a,
.wp-block-post-title a {
	text-decoration: none;
	color: inherit;
}

.ttd-featured .wp-block-post-title a:hover,
.ttd-card .wp-block-post-title a:hover,
.wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

.ttd-featured .wp-block-post-excerpt p {
	font-size: 1.15rem;
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
}

.ttd-meta,
.ttd-card .wp-block-post-date,
.ttd-card .wp-block-post-terms,
.ttd-featured .wp-block-post-date,
.ttd-featured .wp-block-post-terms {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.wp-block-post-terms a {
	text-decoration: none;
}

.wp-block-post-terms a:hover {
	color: var(--wp--preset--color--copper);
}

.ttd-grid .wp-block-post-title {
	font-size: 1.35rem;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.ttd-card {
	height: 100%;
}

.ttd-card .wp-block-post-featured-image {
	margin-bottom: 0.9rem;
}

.ttd-section-rule {
	border-top: 1px solid var(--wp--preset--color--rule);
	padding-top: 2.5rem;
}

.ttd-topics .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	padding: 0.55rem 1.1rem;
	text-transform: uppercase;
}

.ttd-topics .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.ttd-about-band {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

.ttd-about-band h2 {
	color: var(--wp--preset--color--paper);
	font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem);
	letter-spacing: -0.03em;
}

.ttd-about-band p {
	color: color-mix(in srgb, var(--wp--preset--color--paper) 78%, transparent);
}

.ttd-about-band a {
	color: var(--wp--preset--color--copper);
}

/* -------------------------------------------------------------------------
   Article
   ------------------------------------------------------------------------- */

.ttd-article .wp-block-post-title {
	font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3.35rem);
	letter-spacing: -0.038em;
	line-height: 1.12;
}

.ttd-article .wp-block-post-featured-image {
	margin-top: 1.5rem;
	margin-bottom: 2.25rem;
}

.ttd-article .wp-block-post-featured-image img {
	border-radius: 0;
	width: 100%;
}

.ttd-article .wp-block-post-content {
	font-size: 1.125rem;
	line-height: 1.7;
}

.ttd-article .wp-block-post-content > p:first-of-type {
	font-size: 1.22rem;
	line-height: 1.65;
	color: #2a2622;
}

.ttd-article .wp-block-post-content h2,
.ttd-article .wp-block-post-content h3 {
	letter-spacing: -0.03em;
	margin-top: 2.2em;
}

.ttd-article .wp-block-post-content a {
	color: var(--wp--preset--color--accent);
}

.ttd-article .wp-block-quote {
	border-left: 3px solid var(--wp--preset--color--copper);
	padding-left: 1.25rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.25rem;
	font-style: italic;
}

.ttd-article .wp-block-code,
.ttd-article code,
.ttd-article pre {
	font-family: var(--wp--preset--font-family--mono);
}

.ttd-article pre,
.ttd-article .wp-block-code {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	border-radius: 0;
	padding: 1.25rem 1.4rem;
	overflow-x: auto;
}

.ttd-article :not(pre) > code {
	background: var(--wp--preset--color--paper-2);
	padding: 0.1em 0.35em;
	font-size: 0.9em;
}

.ttd-end-rule {
	border-top: 1px solid var(--wp--preset--color--rule);
	margin-top: 3rem;
	padding-top: 2rem;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.ttd-footer {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--paper) 14%, transparent);
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--60);
}

.ttd-search-item {
	padding-bottom: var(--wp--preset--spacing--50);
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.ttd-footer a {
	color: inherit;
	text-decoration: none;
}

.ttd-footer a:hover {
	color: var(--wp--preset--color--copper);
}

.ttd-footer .wp-block-heading {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.ttd-legal {
	color: color-mix(in srgb, var(--wp--preset--color--paper) 55%, transparent);
	font-size: 0.8rem;
}

/* -------------------------------------------------------------------------
   Query / archive
   ------------------------------------------------------------------------- */

.ttd-page-title {
	font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem);
	letter-spacing: -0.035em;
}

.wp-block-query-pagination {
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.82rem;
}

.wp-block-query-pagination a {
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   Search
   ------------------------------------------------------------------------- */

.wp-block-search__input {
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 0;
	background: #fff;
	padding: 0.7rem 0.9rem;
}

.wp-block-search__button {
	border-radius: 0;
}

/* -------------------------------------------------------------------------
   Comments
   ------------------------------------------------------------------------- */

.wp-block-comments {
	margin-top: 3rem;
	border-top: 1px solid var(--wp--preset--color--rule);
	padding-top: 2rem;
}

.wp-block-post-comments-form input:not([type="submit"]),
.wp-block-post-comments-form textarea {
	border-radius: 0;
	border-color: var(--wp--preset--color--rule);
}

/* -------------------------------------------------------------------------
   404
   ------------------------------------------------------------------------- */

.ttd-empty {
	min-height: 50vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
