/*
Theme Name: Aster Current
Author: Hale Rowan Works
Description: A lightweight classic WordPress theme for editorial portfolio sites, built with mobile-first layouts, dynamic WordPress content, and domain-specific naming.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: tvd-theme
*/

:root {
	--tvd-bg: #f7f5ef;
	--tvd-surface: #fffcf5;
	--tvd-ink: #12110f;
	--tvd-muted: #706d66;
	--tvd-soft: #ddd7cb;
	--tvd-line: #c9c1b4;
	--tvd-accent: #a66f45;
	--tvd-accent-dark: #5f432e;
	--tvd-dark: #151515;
	--tvd-radius: 8px;
	--tvd-frame: min(92vw, 1240px);
	--tvd-reading: min(80vw, 920px);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--tvd-bg);
	color: var(--tvd-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	letter-spacing: 0;
	text-rendering: optimizeLegibility;
}

body.tvd-site {
	min-height: 100vh;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--tvd-accent);
	outline-offset: 4px;
}

.tvd-skip-link {
	position: fixed;
	left: 1rem;
	top: 1rem;
	z-index: 999;
	transform: translateY(-150%);
	border: 1px solid var(--tvd-ink);
	border-radius: 999px;
	background: var(--tvd-surface);
	padding: 0.65rem 1rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform 180ms ease;
}

.tvd-skip-link:focus {
	transform: translateY(0);
}

.tvd-frame {
	width: var(--tvd-frame);
	margin-inline: auto;
}

.tvd-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--tvd-bg) 92%, transparent);
	border-bottom: 1px solid var(--tvd-line);
	backdrop-filter: blur(18px);
}

.tvd-header__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	align-items: center;
	padding-block: 1rem;
}

.tvd-brand {
	display: inline-flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.tvd-brand__link {
	display: inline-flex;
	align-items: center;
	color: var(--tvd-ink);
	font-size: clamp(1.2rem, 3vw, 1.8rem);
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
}

.tvd-brand__mark {
	display: inline-grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-right: 0.65rem;
	border: 1px solid var(--tvd-ink);
	border-radius: 50%;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tvd-brand__description {
	margin: 0;
	color: var(--tvd-muted);
	font-size: 0.82rem;
	line-height: 1.35;
}

.tvd-brand__logo {
	width: auto;
	max-width: min(16rem, 62vw);
	max-height: 4rem;
	object-fit: contain;
}

.tvd-nav {
	width: 100%;
}

.tvd-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tvd-nav__item {
	margin: 0;
	padding: 0;
}

.tvd-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.4rem;
	border: 1px solid var(--tvd-line);
	border-radius: 999px;
	background: var(--tvd-surface);
	padding: 0.5rem 0.9rem;
	color: var(--tvd-ink);
	font-size: 0.88rem;
	font-weight: 650;
	line-height: 1;
	text-decoration: none;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.tvd-nav__link:hover,
.tvd-nav__item.tvd-is-current .tvd-nav__link {
	border-color: var(--tvd-ink);
	background: var(--tvd-ink);
	color: var(--tvd-surface);
	transform: translateY(-1px);
}

.tvd-main {
	min-height: 70vh;
}

.tvd-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: end;
	padding-block: clamp(3rem, 8vw, 7rem) clamp(2rem, 6vw, 4rem);
}

.tvd-hero__copy {
	max-width: 860px;
}

.tvd-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
	color: var(--tvd-accent-dark);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tvd-eyebrow::before {
	content: "";
	width: 2.4rem;
	height: 1px;
	background: var(--tvd-accent);
}

.tvd-hero__title {
	margin: 0;
	max-width: 11ch;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(3.6rem, 15vw, 11.5rem);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 0.88;
}

.tvd-hero__text {
	max-width: 46rem;
	margin: 1.4rem 0 0;
	color: var(--tvd-muted);
	font-size: clamp(1rem, 2.4vw, 1.22rem);
	line-height: 1.65;
}

.tvd-hero__visual {
	position: relative;
	overflow: hidden;
	min-height: clamp(18rem, 55vw, 34rem);
	border: 1px solid var(--tvd-line);
	border-radius: var(--tvd-radius);
	background:
		linear-gradient(135deg, transparent 0 48%, color-mix(in srgb, var(--tvd-line) 38%, transparent) 48% 49%, transparent 49%),
		var(--tvd-surface);
}

.tvd-hero__visual img {
	width: 100%;
	height: 100%;
	min-height: inherit;
	object-fit: cover;
	filter: saturate(0.82) contrast(0.98);
}

.tvd-hero__empty {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: end start;
	padding: clamp(1rem, 4vw, 2rem);
	color: var(--tvd-muted);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(4rem, 18vw, 9rem);
	line-height: 0.8;
}

.tvd-section-head {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	justify-content: space-between;
	margin-bottom: 1.25rem;
	border-top: 1px solid var(--tvd-line);
	padding-top: 1.25rem;
}

.tvd-section-head__title {
	margin: 0;
	font-size: clamp(1.3rem, 3vw, 2.1rem);
	line-height: 1.1;
}

.tvd-section-head__meta {
	margin: 0;
	color: var(--tvd-muted);
	font-size: 0.92rem;
}

.tvd-post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 0;
	padding: 0 0 clamp(3rem, 7vw, 6rem);
	list-style: none;
}

.tvd-card {
	display: grid;
	grid-template-columns: 1fr;
	overflow: hidden;
	border: 1px solid var(--tvd-line);
	border-radius: var(--tvd-radius);
	background: var(--tvd-surface);
}

.tvd-card__media {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #ebe5d8;
	text-decoration: none;
}

.tvd-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 260ms ease, filter 260ms ease;
}

.tvd-card:hover .tvd-card__media img {
	transform: scale(1.035);
	filter: saturate(0.9);
}

.tvd-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--tvd-accent-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(3rem, 14vw, 6rem);
}

.tvd-card__content {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	padding: clamp(1rem, 4vw, 1.35rem);
}

.tvd-card__date,
.tvd-single__date {
	color: var(--tvd-muted);
	font-size: 0.82rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tvd-card__title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.55rem, 5vw, 2.45rem);
	font-weight: 500;
	line-height: 1.04;
}

.tvd-card__title a {
	text-decoration: none;
}

.tvd-card__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.tvd-card__excerpt {
	margin: 0;
	color: var(--tvd-muted);
	font-size: 0.98rem;
}

.tvd-card__action {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	width: fit-content;
	margin-top: auto;
	border-bottom: 1px solid currentColor;
	color: var(--tvd-accent-dark);
	font-size: 0.9rem;
	font-weight: 800;
	text-decoration: none;
}

.tvd-card__action::after {
	content: "→";
	font-size: 1rem;
	transition: transform 160ms ease;
}

.tvd-card__action:hover::after {
	transform: translateX(3px);
}

.tvd-single {
	width: var(--tvd-reading);
	margin-inline: auto;
	padding-block: clamp(3rem, 8vw, 7rem);
}

.tvd-single__header {
	margin-bottom: clamp(2rem, 5vw, 4rem);
	border-bottom: 1px solid var(--tvd-line);
	padding-bottom: clamp(1.5rem, 5vw, 3rem);
}

.tvd-single__title {
	margin: 0.7rem 0 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.7rem, 10vw, 7.4rem);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 0.95;
}

.tvd-single__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 1.25rem;
}

.tvd-term {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--tvd-line);
	border-radius: 999px;
	padding: 0.35rem 0.7rem;
	color: var(--tvd-muted);
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
}

.tvd-term:hover {
	border-color: var(--tvd-ink);
	color: var(--tvd-ink);
}

.tvd-content {
	color: var(--tvd-ink);
	font-size: clamp(1rem, 2vw, 1.13rem);
}

.tvd-content > * {
	margin-top: 0;
	margin-bottom: 1.35rem;
}

.tvd-content h1,
.tvd-content h2,
.tvd-content h3,
.tvd-content h4,
.tvd-content h5,
.tvd-content h6 {
	margin-top: 2.3rem;
	margin-bottom: 0.8rem;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
	line-height: 1.08;
}

.tvd-content h2 {
	font-size: clamp(2rem, 5vw, 3.6rem);
}

.tvd-content h3 {
	font-size: clamp(1.55rem, 4vw, 2.4rem);
}

.tvd-content p,
.tvd-content li {
	color: color-mix(in srgb, var(--tvd-ink) 88%, var(--tvd-muted));
}

.tvd-content a {
	color: var(--tvd-accent-dark);
}

.tvd-content blockquote {
	margin-inline: 0;
	border-left: 2px solid var(--tvd-accent);
	padding: 0.2rem 0 0.2rem 1.2rem;
	color: var(--tvd-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.35rem, 4vw, 2rem);
	line-height: 1.25;
}

.tvd-content figure {
	margin-inline: 0;
}

.tvd-content img {
	border-radius: var(--tvd-radius);
}

.tvd-content table {
	width: 100%;
	border-collapse: collapse;
}

.tvd-content th,
.tvd-content td {
	border: 1px solid var(--tvd-line);
	padding: 0.75rem;
	text-align: left;
}

.tvd-content pre {
	overflow-x: auto;
	border: 1px solid var(--tvd-line);
	border-radius: var(--tvd-radius);
	background: var(--tvd-dark);
	padding: 1rem;
	color: var(--tvd-surface);
}

.tvd-empty {
	width: var(--tvd-frame);
	margin-inline: auto;
	padding-block: clamp(4rem, 10vw, 8rem);
}

.tvd-empty__box {
	border: 1px solid var(--tvd-line);
	border-radius: var(--tvd-radius);
	background: var(--tvd-surface);
	padding: clamp(1.3rem, 5vw, 2.5rem);
}

.tvd-empty__title {
	margin: 0 0 0.75rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 6vw, 4rem);
	line-height: 1;
}

.tvd-empty__text {
	margin: 0;
	color: var(--tvd-muted);
}

.tvd-footer {
	border-top: 1px solid var(--tvd-line);
	background: var(--tvd-ink);
	color: var(--tvd-surface);
}

.tvd-footer__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	padding-block: clamp(2rem, 5vw, 3rem);
}

.tvd-footer__title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.8rem, 6vw, 4rem);
	font-weight: 500;
	line-height: 1;
}

.tvd-footer__meta {
	margin: 0;
	color: color-mix(in srgb, var(--tvd-surface) 68%, transparent);
	font-size: 0.9rem;
}

.tvd-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tvd-footer__item {
	margin: 0;
	padding: 0;
}

.tvd-footer__link {
	display: inline-flex;
	border: 1px solid color-mix(in srgb, var(--tvd-surface) 25%, transparent);
	border-radius: 999px;
	padding: 0.45rem 0.8rem;
	color: var(--tvd-surface);
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
}

.tvd-footer__link:hover {
	background: var(--tvd-surface);
	color: var(--tvd-ink);
}

@media (min-width: 700px) {
	.tvd-header__inner {
		grid-template-columns: minmax(16rem, 0.85fr) 1.15fr;
	}

	.tvd-nav__list {
		justify-content: flex-end;
	}

	.tvd-section-head {
		flex-direction: row;
		align-items: end;
	}

	.tvd-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tvd-card:first-child {
		grid-column: 1 / -1;
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	}

	.tvd-card:first-child .tvd-card__media {
		aspect-ratio: auto;
		min-height: 27rem;
	}

	.tvd-footer__inner {
		grid-template-columns: 1.1fr 0.9fr;
		align-items: end;
	}

	.tvd-footer__links {
		justify-content: flex-end;
	}
}

@media (min-width: 980px) {
	.tvd-hero {
		grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.78fr);
	}

	.tvd-post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tvd-card:first-child {
		grid-column: span 2;
	}
}

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