/* Press Host — Design Editorial
   Layout de post único: jornal digital moderno.
   Todas as cores são tokens: mude aqui e o site inteiro acompanha. */

:root {
	--phd-ink: #14181d;
	--phd-ink-soft: #4a5561;
	--phd-ink-faint: #78838f;
	--phd-line: #e3e7eb;
	--phd-bg: #ffffff;
	--phd-bg-soft: #f6f7f9;
	--phd-accent: #0f5c3f;
	--phd-accent-soft: #e8f2ed;
	--phd-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--phd-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--phd-measure: 40rem;
	--phd-wide: 56rem;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--phd-ink: #eef1f4;
		--phd-ink-soft: #b3bdc7;
		--phd-ink-faint: #8a95a1;
		--phd-line: #2a3138;
		--phd-bg: #12161a;
		--phd-bg-soft: #1a1f25;
		--phd-accent: #6cc79c;
		--phd-accent-soft: #182722;
	}
}

.phd-wrap {
	background: var(--phd-bg);
	color: var(--phd-ink);
	font-family: var(--phd-sans);
	padding: clamp(1.5rem, 5vw, 4rem) 1.25rem 4rem;
}

.phd-article {
	max-width: var(--phd-wide);
	margin: 0 auto;
}

/* ---------- Cabeçalho ---------- */

.phd-header {
	max-width: var(--phd-measure);
	margin: 0 auto;
}

.phd-kicker {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.phd-kicker a {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--phd-accent);
	text-decoration: none;
	border-bottom: 2px solid currentColor;
	padding-bottom: 2px;
}

.phd-kicker a:hover {
	color: var(--phd-ink);
}

.phd-title {
	font-family: var(--phd-serif);
	font-weight: 700;
	font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0 0 1rem;
	color: var(--phd-ink);
	text-wrap: balance;
}

.phd-subtitle {
	font-family: var(--phd-serif);
	font-size: clamp(1.125rem, 1rem + 0.6vw, 1.4rem);
	line-height: 1.5;
	color: var(--phd-ink-soft);
	margin: 0 0 1.75rem;
	text-wrap: pretty;
}

.phd-byline {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 0;
	border-top: 1px solid var(--phd-line);
	border-bottom: 1px solid var(--phd-line);
	margin-bottom: 2rem;
}

.phd-byline .phd-avatar {
	border-radius: 50%;
	width: 40px;
	height: 40px;
	flex: none;
}

.phd-byline-text {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}

.phd-author {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--phd-ink);
}

.phd-meta {
	font-size: 0.8125rem;
	color: var(--phd-ink-faint);
}

.phd-dot {
	margin: 0 0.4em;
}

/* ---------- Imagem, legenda e crédito ---------- */

.phd-figure {
	margin: 0 0 2.5rem;
}

.phd-figure img,
.phd-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.phd-figcaption {
	max-width: var(--phd-measure);
	margin: 0.75rem auto 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--phd-ink-faint);
	border-left: 3px solid var(--phd-line);
	padding-left: 0.75rem;
}

.phd-legenda {
	display: block;
	color: var(--phd-ink-soft);
}

.phd-credito {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--phd-ink-faint);
}

/* ---------- Corpo do texto ---------- */

.phd-content {
	max-width: var(--phd-measure);
	margin: 0 auto;
	font-family: var(--phd-serif);
	font-size: 1.1875rem;
	line-height: 1.72;
	color: var(--phd-ink);
}

.phd-content > * + * {
	margin-top: 1.4em;
}

.phd-content p {
	margin: 0;
	text-wrap: pretty;
}

.phd-content h2,
.phd-content h3 {
	font-family: var(--phd-sans);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin-top: 2.5em;
	color: var(--phd-ink);
}

.phd-content h2 {
	font-size: 1.5rem;
}

.phd-content h3 {
	font-size: 1.25rem;
}

.phd-content a {
	color: var(--phd-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.phd-content a:hover {
	text-decoration-thickness: 2px;
}

.phd-content blockquote {
	margin: 2em 0;
	padding: 0 0 0 1.25rem;
	border-left: 3px solid var(--phd-accent);
	font-size: 1.3125rem;
	line-height: 1.5;
	color: var(--phd-ink-soft);
	font-style: italic;
}

.phd-content blockquote cite {
	display: block;
	margin-top: 0.6em;
	font-family: var(--phd-sans);
	font-size: 0.875rem;
	font-style: normal;
	color: var(--phd-ink-faint);
}

.phd-content ul,
.phd-content ol {
	padding-left: 1.25rem;
}

.phd-content li + li {
	margin-top: 0.5em;
}

.phd-content img,
.phd-content figure img {
	border-radius: 6px;
	height: auto;
}

.phd-content figcaption {
	font-family: var(--phd-sans);
	font-size: 0.8125rem;
	color: var(--phd-ink-faint);
	margin-top: 0.5rem;
}

.phd-content table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--phd-sans);
	font-size: 0.9375rem;
}

.phd-content th,
.phd-content td {
	border-bottom: 1px solid var(--phd-line);
	padding: 0.6rem 0.5rem;
	text-align: left;
}

/* ---------- Fonte ---------- */

.phd-fonte {
	max-width: var(--phd-measure);
	margin: 3rem auto 0;
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	background: var(--phd-bg-soft);
	border-left: 3px solid var(--phd-accent);
	border-radius: 0 4px 4px 0;
	padding: 0.875rem 1rem;
	font-size: 0.9375rem;
}

.phd-fonte-label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--phd-ink-faint);
	flex: none;
}

.phd-fonte-nome {
	color: var(--phd-ink-soft);
	font-weight: 500;
}

.phd-fonte-nome a {
	color: var(--phd-accent);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

/* ---------- Tags ---------- */

.phd-tags {
	max-width: var(--phd-measure);
	margin: 2rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--phd-line);
}

.phd-tags-label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--phd-ink-faint);
	margin-bottom: 0.75rem;
}

.phd-tags ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
}

.phd-tags a {
	display: inline-block;
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--phd-line);
	border-radius: 999px;
	font-size: 0.8125rem;
	color: var(--phd-ink-soft);
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.phd-tags a:hover {
	background: var(--phd-accent-soft);
	border-color: var(--phd-accent);
	color: var(--phd-accent);
}

/* ---------- Navegação anterior/próxima ---------- */

.phd-footer-nav {
	max-width: var(--phd-measure);
	margin: 3rem auto 0;
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
	.phd-footer-nav {
		grid-template-columns: 1fr 1fr;
	}
}

.phd-nav-link {
	display: block;
	padding: 1rem;
	border: 1px solid var(--phd-line);
	border-radius: 6px;
	text-decoration: none;
	color: var(--phd-ink);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.phd-nav-link:hover {
	border-color: var(--phd-accent);
	background: var(--phd-bg-soft);
}

.phd-nav-link span {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--phd-ink-faint);
	margin-bottom: 0.35rem;
}

.phd-nav-link strong {
	font-family: var(--phd-serif);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
}

.phd-nav-next {
	text-align: right;
}

/* ---------- Comentários ---------- */

.phd-comments {
	max-width: var(--phd-measure);
	margin: 3.5rem auto 0;
	padding-top: 2rem;
	border-top: 1px solid var(--phd-line);
	font-size: 0.9375rem;
}

.phd-comments input[type="text"],
.phd-comments input[type="email"],
.phd-comments input[type="url"],
.phd-comments textarea {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--phd-line);
	border-radius: 4px;
	background: var(--phd-bg);
	color: var(--phd-ink);
	font: inherit;
}

.phd-comments .submit {
	background: var(--phd-accent);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0.65rem 1.4rem;
	font-weight: 600;
	cursor: pointer;
}

/* ---------- Acessibilidade e impressão ---------- */

.phd-wrap a:focus-visible {
	outline: 2px solid var(--phd-accent);
	outline-offset: 2px;
	border-radius: 2px;
}

@media print {
	.phd-byline .phd-avatar,
	.phd-footer-nav,
	.phd-comments {
		display: none !important;
	}

	.phd-wrap {
		padding: 0;
	}

	.phd-content {
		font-size: 11pt;
	}
}
