/*
Theme Name: TuningTalks Grid
Theme URI: https://tuningtalks.com/
Description: A modern editorial child theme for TuningTalks built on top of Twenty Sixteen.
Author: OpenAI Codex
Author URI: https://openai.com/
Template: twentysixteen
Version: 1.0.0
Text Domain: tuningtalks-grid
*/

:root {
	--tt-ink: #0f172a;
	--tt-slate: #1e293b;
	--tt-steel: #64748b;
	--tt-paper: #f7fbff;
	--tt-line: rgba(15, 23, 42, 0.08);
	--tt-cyan: #06b6d4;
	--tt-coral: #f97316;
	--tt-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
	--tt-radius-lg: 28px;
	--tt-radius-md: 20px;
	--tt-max: 1220px;
}

html {
	scroll-behavior: smooth;
}

body.tuningtalks-grid-theme {
	background:
		radial-gradient(circle at top left, rgba(6, 182, 212, 0.1), transparent 24%),
		radial-gradient(circle at 88% 10%, rgba(249, 115, 22, 0.08), transparent 20%),
		linear-gradient(180deg, #fbfdff 0%, #f3f8ff 52%, #f7fbff 100%);
	color: var(--tt-ink);
	font-family: "Instrument Sans", sans-serif;
}

body.tuningtalks-grid-theme::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
	background-size: 26px 26px;
	mask-image: radial-gradient(circle at center, black 28%, transparent 84%);
}

body.tuningtalks-grid-theme .site,
body.tuningtalks-grid-theme .site-inner,
body.tuningtalks-grid-theme .site-content,
body.tuningtalks-grid-theme .content-area {
	max-width: none;
}

body.tuningtalks-grid-theme .site {
	margin: 0;
}

body.tuningtalks-grid-theme a {
	color: inherit;
}

body.tuningtalks-grid-theme .site-header,
body.tuningtalks-grid-theme .site-footer {
	padding: 0;
}

.tt-shell {
	position: relative;
	z-index: 1;
}

.tt-container {
	width: min(calc(100% - 2.5rem), var(--tt-max));
	margin: 0 auto;
}

.tt-topbar {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(226, 232, 240, 0.8);
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(16px);
}

.tt-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
}

.tt-brand {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	text-decoration: none;
}

.tt-brand-mark {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 18px;
	background: var(--tt-ink);
	color: #fff;
	font-family: "Sora", sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	box-shadow: var(--tt-shadow);
}

.tt-brand-text {
	display: block;
	font-family: "Sora", sans-serif;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.tt-brand-subtitle,
.tt-eyebrow,
.tt-card-topic,
.tt-stat-label,
.tt-section-label,
.tt-topic-pill {
	font-family: "IBM Plex Mono", monospace;
	text-transform: uppercase;
	letter-spacing: 0.18em;
}

.tt-brand-subtitle {
	display: block;
	margin-top: 0.1rem;
	font-size: 0.68rem;
	color: var(--tt-steel);
}

.tt-nav-wrap {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.tt-nav,
.tt-footer-nav {
	display: flex;
	align-items: center;
	gap: 1.4rem;
}

.tt-nav .menu,
.tt-footer-nav .menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-nav .menu li,
.tt-footer-nav .menu li {
	margin: 0;
}

.tt-nav a,
.tt-footer-nav a {
	position: relative;
	font-weight: 600;
	text-decoration: none;
	color: rgba(30, 41, 59, 0.82);
}

.tt-nav a::after,
.tt-footer-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -0.45rem;
	width: 100%;
	height: 2px;
	transform: scaleX(0);
	transform-origin: left;
	background: linear-gradient(90deg, var(--tt-cyan), rgba(249, 115, 22, 0.7));
	transition: transform 0.25s ease;
}

.tt-nav a:hover::after,
.tt-footer-nav a:hover::after {
	transform: scaleX(1);
}

.tt-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.85rem 1.2rem;
	border-radius: 18px;
	border: 1px solid transparent;
	background: var(--tt-ink);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.25s ease, background-color 0.25s ease;
}

.tt-button:hover {
	transform: translateY(-2px);
	background: var(--tt-slate);
	color: #fff;
}

.tt-button.tt-button-light {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(12px);
}

.tt-nav-toggle {
	display: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(148, 163, 184, 0.35);
	border-radius: 18px;
	background: #fff;
	cursor: pointer;
}

.tt-nav-toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	margin: 4px auto;
	border-radius: 999px;
	background: var(--tt-ink);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.tt-mobile-panel {
	display: none;
	padding-bottom: 1rem;
}

.tt-mobile-panel.is-open {
	display: block;
}

.tt-mobile-menu {
	display: grid;
	gap: 0.45rem;
	padding: 1rem;
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: var(--tt-shadow);
}

.tt-mobile-menu a {
	padding: 0.9rem 1rem;
	border-radius: 16px;
	text-decoration: none;
	font-weight: 600;
}

.tt-mobile-menu a:hover {
	background: rgba(6, 182, 212, 0.07);
}

.tt-hero {
	padding: 2.4rem 0 1.6rem;
}

.tt-hero-intro {
	max-width: 760px;
	padding-bottom: 1.6rem;
}

.tt-feature-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.72fr);
	gap: 1.35rem;
	align-items: start;
}

.tt-feature-main {
	min-width: 0;
}

.tt-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 1rem;
	border: 1px solid var(--tt-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(12px);
	color: var(--tt-cyan);
	font-size: 0.7rem;
}

.tt-hero-title,
.tt-section-title,
.tt-card-title,
.tt-feature-title,
.tt-single-title {
	font-family: "Sora", sans-serif;
	line-height: 1.08;
	color: var(--tt-ink);
}

.tt-hero-title {
	max-width: 15ch;
	margin: 1rem 0 0;
	font-size: clamp(2.7rem, 6vw, 5.2rem);
	font-weight: 800;
	letter-spacing: -0.04em;
}

.tt-hero-summary,
.tt-section-summary,
.tt-card-excerpt,
.tt-single-excerpt {
	max-width: 62ch;
	font-size: 1.08rem;
	line-height: 1.9;
	color: rgba(30, 41, 59, 0.76);
}

.tt-hero-summary {
	margin-top: 1.2rem;
}

.tt-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.9rem;
	margin-top: 1.5rem;
}

.tt-stat {
	padding: 1rem;
	border: 1px solid var(--tt-line);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.78);
	box-shadow: var(--tt-shadow);
}

.tt-stat-label {
	font-size: 0.66rem;
	color: var(--tt-steel);
}

.tt-stat-value {
	margin-top: 0.55rem;
	font-size: 1.08rem;
	font-weight: 700;
	color: var(--tt-ink);
}

.tt-feature-card,
.tt-sidebar-card,
.tt-post-card,
.tt-info-panel,
.tt-newsletter,
.tt-single-panel,
.tt-related-card {
	border: 1px solid var(--tt-line);
	border-radius: var(--tt-radius-lg);
	box-shadow: var(--tt-shadow);
	overflow: hidden;
}

.tt-feature-card {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.95fr);
	min-height: 100%;
	background: linear-gradient(135deg, #091225, #10213f 58%, #173860);
}

.tt-feature-card .tt-card-media-link {
	order: 2;
}

.tt-feature-card .tt-card-copy {
	order: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 2rem;
	background:
		radial-gradient(circle at top left, rgba(6, 182, 212, 0.26), transparent 30%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.tt-feature-card .tt-card-meta,
.tt-feature-card .tt-card-footer {
	color: rgba(226, 232, 240, 0.8);
}

.tt-feature-card .tt-card-topic {
	color: rgba(207, 250, 254, 0.95);
}

.tt-feature-card .tt-card-title {
	font-size: clamp(1.9rem, 3vw, 2.8rem);
	color: #fff;
	line-height: 1.08;
	word-break: normal;
	overflow-wrap: break-word;
}

.tt-feature-card .tt-card-excerpt {
	color: rgba(226, 232, 240, 0.86);
}

.tt-feature-card .tt-card-image {
	min-height: 100%;
	height: 100%;
}

.tt-feature-copy {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 2rem;
	background:
		radial-gradient(circle at top left, rgba(6, 182, 212, 0.26), transparent 30%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.tt-feature-copy a {
	text-decoration: none;
}

.tt-feature-topic {
	display: inline-flex;
	margin-bottom: 1rem;
	color: rgba(207, 250, 254, 0.95);
	font-size: 0.7rem;
}

.tt-feature-title {
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 700;
	color: #fff;
}

.tt-feature-excerpt {
	margin-top: 1rem;
	font-size: 1.05rem;
	line-height: 1.85;
	color: rgba(226, 232, 240, 0.88);
}

.tt-feature-footer,
.tt-card-footer,
.tt-single-meta,
.tt-related-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.2rem;
	font-size: 0.92rem;
	color: var(--tt-steel);
}

.tt-feature-footer {
	margin-top: 1.8rem;
	color: rgba(226, 232, 240, 0.8);
}

.tt-feature-media,
.tt-card-media-link {
	display: block;
	overflow: hidden;
}

.tt-feature-media img,
.tt-card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s ease;
}

.tt-feature-card:hover .tt-feature-media img,
.tt-post-card:hover .tt-card-image {
	transform: scale(1.04);
}

.tt-sidebar-stack {
	display: grid;
	gap: 1rem;
}

.tt-sidebar-card,
.tt-info-panel,
.tt-newsletter,
.tt-single-panel,
.tt-related-card,
.tt-post-card {
	background: rgba(255, 255, 255, 0.9);
}

.tt-sidebar-card,
.tt-info-panel {
	padding: 1.35rem;
}

.tt-section {
	padding: 1.5rem 0 1rem;
}

.tt-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.4rem;
}

.tt-section-label {
	font-size: 0.68rem;
	color: var(--tt-coral);
}

.tt-section-title {
	margin: 0.35rem 0 0;
	font-size: clamp(2rem, 3vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.03em;
}

.tt-post-grid,
.tt-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.2rem;
}

.tt-post-card {
	display: flex;
	flex-direction: column;
}

.tt-card-image {
	height: 240px;
	background: linear-gradient(135deg, #d9f6fb, #ffe4d0);
}

.tt-card-image-fallback {
	background:
		radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.22), transparent 28%),
		radial-gradient(circle at 80% 18%, rgba(249, 115, 22, 0.18), transparent 22%),
		linear-gradient(135deg, #ebf7ff, #fff1e8);
}

.tt-card-copy {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.35rem;
}

.tt-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.82rem;
	color: var(--tt-steel);
}

.tt-card-topic {
	font-size: 0.68rem;
	color: var(--tt-coral);
	text-decoration: none;
}

.tt-card-title {
	margin: 0.7rem 0 0;
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.tt-card-title a,
.tt-feature-title a {
	text-decoration: none;
}

.tt-card-excerpt {
	margin-top: 0.85rem;
	font-size: 1rem;
}

.tt-card-footer {
	margin-top: auto;
	padding-top: 1rem;
}

.tt-card-link {
	font-weight: 700;
	text-decoration: none;
}

.tt-topic-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1rem;
}

.tt-topic-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0.65rem 0.9rem;
	border: 1px solid rgba(6, 182, 212, 0.16);
	border-radius: 999px;
	background: rgba(6, 182, 212, 0.06);
	color: var(--tt-ink);
	font-size: 0.68rem;
	text-decoration: none;
}

.tt-newsletter {
	margin-top: 1.5rem;
	padding: 2rem;
	background:
		radial-gradient(circle at top left, rgba(6, 182, 212, 0.3), transparent 24%),
		radial-gradient(circle at 88% 20%, rgba(249, 115, 22, 0.26), transparent 18%),
		linear-gradient(135deg, #081120, #10213f 58%, #173d6a);
	color: #fff;
}

.tt-newsletter .tt-section-label {
	color: rgba(207, 250, 254, 0.88);
}

.tt-newsletter h2 {
	margin: 0.6rem 0 0;
	font-family: "Sora", sans-serif;
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1.08;
	color: #fff;
}

.tt-newsletter p {
	max-width: 52ch;
	margin-top: 1rem;
	font-size: 1.05rem;
	line-height: 1.85;
	color: rgba(226, 232, 240, 0.84);
}

.tt-newsletter-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.8rem;
	margin-top: 1.4rem;
}

.tt-newsletter-form input {
	height: 54px;
	padding: 0 1rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--tt-ink);
}

.tt-footer {
	margin-top: 3rem;
	padding: 2rem 0 2.6rem;
	border-top: 1px solid rgba(226, 232, 240, 0.9);
	background: rgba(255, 255, 255, 0.9);
}

.tt-footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 1.2rem;
	align-items: start;
}

.tt-footer h3 {
	margin: 0;
	font-family: "Sora", sans-serif;
	font-size: 1.35rem;
}

.tt-footer p {
	margin: 0.9rem 0 0;
	line-height: 1.8;
	color: rgba(30, 41, 59, 0.74);
}

.tt-archive-head {
	padding: 2.2rem 0 0.4rem;
}

.tt-empty {
	padding: 2rem;
	border: 1px solid var(--tt-line);
	border-radius: var(--tt-radius-lg);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: var(--tt-shadow);
}

.tt-pagination {
	display: flex;
	justify-content: center;
	margin-top: 1.6rem;
}

.tt-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.tt-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.85rem;
	border: 1px solid var(--tt-line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}

.tt-pagination .current {
	background: var(--tt-ink);
	color: #fff;
}

.tt-single {
	padding: 2.4rem 0 0;
}

.tt-single-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 1.4rem;
	align-items: start;
}

.tt-single-panel {
	padding: 2rem;
}

.tt-single-topic {
	color: var(--tt-coral);
	text-decoration: none;
}

.tt-single-title {
	margin: 0.9rem 0 0;
	font-size: clamp(2.4rem, 5vw, 4.4rem);
	font-weight: 800;
	letter-spacing: -0.04em;
}

.tt-single-excerpt {
	margin-top: 1rem;
}

.tt-single-thumbnail {
	margin: 1.6rem 0;
	overflow: hidden;
	border-radius: 24px;
}

.tt-single-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
}

.tt-single-content,
.tt-single-content p,
.tt-single-content li,
.tt-single-content blockquote,
.tt-single-content figcaption {
	font-size: 1.06rem;
	line-height: 1.95;
	color: rgba(30, 41, 59, 0.84);
}

.tt-single-content h2,
.tt-single-content h3,
.tt-single-content h4 {
	margin-top: 1.8rem;
	font-family: "Sora", sans-serif;
	color: var(--tt-ink);
	letter-spacing: -0.03em;
}

.tt-single-content a {
	color: var(--tt-cyan);
}

.tt-sidebar-list {
	display: grid;
	gap: 0.8rem;
	margin: 1rem 0 0;
}

.tt-sidebar-list a {
	text-decoration: none;
	font-weight: 600;
}

.tt-sidebar-list span {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.85rem;
	color: var(--tt-steel);
}

.tt-sidebar-list a {
	padding-bottom: 0.8rem;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.tt-sidebar-list a:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.tt-info-panel h3,
.tt-sidebar-card h3 {
	margin: 0;
	font-family: "Sora", sans-serif;
	font-size: 1.35rem;
}

.tt-info-panel p,
.tt-sidebar-card p {
	margin: 0.7rem 0 0;
	line-height: 1.8;
	color: rgba(30, 41, 59, 0.74);
}

.tt-meta-list {
	display: grid;
	gap: 0.85rem;
	margin-top: 1rem;
}

.tt-meta-list strong {
	display: block;
	font-size: 0.88rem;
	color: var(--tt-steel);
}

.tt-related {
	margin-top: 1.5rem;
}

.tt-related-card {
	padding: 1.1rem;
}

.tt-related-title {
	margin: 0.75rem 0 0;
	font-family: "Sora", sans-serif;
	font-size: 1.2rem;
	line-height: 1.25;
}

.tt-hide-default {
	display: none;
}

@media (max-width: 1120px) {
	.tt-feature-layout,
	.tt-post-grid,
	.tt-related-grid,
	.tt-footer-grid,
	.tt-single-grid {
		grid-template-columns: 1fr;
	}

	.tt-feature-card {
		grid-template-columns: 1fr;
	}

	.tt-feature-card .tt-card-media-link,
	.tt-feature-card .tt-card-copy {
		order: initial;
	}
}

@media (max-width: 860px) {
	.tt-nav-wrap {
		display: none;
	}

	.tt-nav-toggle {
		display: inline-block;
	}

	.tt-container {
		width: min(calc(100% - 1.4rem), var(--tt-max));
	}

	.tt-stats,
	.tt-newsletter-form {
		grid-template-columns: 1fr;
	}

	.tt-post-grid {
		grid-template-columns: 1fr;
	}

	.tt-section-heading {
		align-items: start;
		flex-direction: column;
	}
}

@media (max-width: 640px) {
	.tt-hero {
		padding-top: 1.5rem;
	}

	.tt-feature-copy,
	.tt-sidebar-card,
	.tt-info-panel,
	.tt-card-copy,
	.tt-single-panel,
	.tt-newsletter {
		padding: 1.2rem;
	}

	.tt-feature-title,
	.tt-card-title {
		font-size: 1.7rem;
	}

	.tt-card-image {
		height: 220px;
	}

	body.tuningtalks-grid-theme::before {
		background-size: 20px 20px;
	}
}
