:root {
	--rmc-bg: #f8fafc;
	--rmc-surface: #ffffff;
	--rmc-surface-strong: #ffffff;
	--rmc-text: #1f2937;
	--rmc-muted: #5b6472;
	--rmc-accent: #2563eb;
	--rmc-accent-strong: #1d4ed8;
	--rmc-secondary: #0f172a;
	--rmc-border: #e5e7eb;
	--rmc-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
	--rmc-radius-lg: 18px;
	--rmc-radius-md: 14px;
	--rmc-radius-sm: 8px;
	--rmc-container: min(1100px, calc(100vw - 40px));
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Manrope', sans-serif;
	background: #ffffff;
	color: var(--rmc-text);
	line-height: 1.7;
	min-height: 100vh;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: var(--rmc-radius-sm);
}

.container {
	width: var(--rmc-container);
	margin: 0 auto;
}

.site-shell {
	position: relative;
}

.site-header {
	background: #ffffff;
	border-bottom: 1px solid var(--rmc-border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 26px 0 20px;
}

.eyebrow,
.post-card__meta {
	margin: 0 0 10px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rmc-muted);
}

.site-title,
.site-title a {
	margin: 0;
	font-family: 'Manrope', sans-serif;
	font-size: clamp(1.4rem, 2vw, 1.72rem);
	font-weight: 700;
	line-height: 1.2;
}

.site-tagline {
	margin: 4px 0 0;
	max-width: 52ch;
	color: var(--rmc-muted);
	font-size: 1rem;
}

.site-nav__menu,
.site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	align-items: center;
	padding: 0;
	margin: 0;
	list-style: none;
}

.site-nav {
	font-size: 1.12rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 22px;
}

/* Header search toggle */
.header-search {
	position: relative;
}

.header-search__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	cursor: pointer;
	color: var(--rmc-text);
	opacity: 0.65;
	transition: opacity 0.2s ease;
	list-style: none; /* hide default triangle in some browsers */
}

.header-search__toggle::-webkit-details-marker { display: none; }

.header-search__toggle:hover,
.header-search[open] .header-search__toggle {
	opacity: 1;
	color: var(--rmc-accent-strong);
}

.header-search__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	z-index: 200;
	background: #fff;
	border: 1px solid var(--rmc-border);
	border-radius: var(--rmc-radius-md);
	box-shadow: 0 4px 20px rgba(0,0,0,0.10);
	padding: 10px;
	min-width: 280px;
}

.header-search__form {
	display: flex;
	gap: 6px;
	align-items: center;
}

.header-search__input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid var(--rmc-border);
	border-radius: var(--rmc-radius-sm);
	font-size: 0.95rem;
	line-height: 1.4;
	background: #fff;
	color: var(--rmc-text);
	outline: none;
	transition: border-color 0.2s ease;
}

.header-search__input:focus {
	border-color: var(--rmc-accent);
}

.header-search__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	background: var(--rmc-accent);
	color: #fff;
	border: none;
	border-radius: var(--rmc-radius-sm);
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.header-search__submit:hover {
	opacity: 0.85;
}

.site-nav__menu a,
.site-footer__menu a {
	padding: 8px 0;
	border-radius: 0;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav__menu a {
	font-weight: 600;
}

.site-nav__menu a:hover,
.site-footer__menu a:hover,
.site-nav__menu .current-menu-item > a {
	background: transparent;
	color: var(--rmc-accent-strong);
	border-bottom-color: var(--rmc-accent);
}

.site-main {
	padding: 18px 0 64px;
}

.hero {
	padding: 18px 0 8px;
}

.hero__content,
.post-card,
.search-form,
.empty-state {
	background: var(--rmc-surface);
	border: 1px solid var(--rmc-border);
	box-shadow: var(--rmc-shadow);
	border-radius: var(--rmc-radius-md);
	padding: 24px;
}

.reading-layout .entry {
	background: var(--rmc-surface);
	border: 0;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
}

.entry-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
	font-size: 0.88rem;
	color: var(--rmc-muted);
}

.entry-meta__sep {
	color: var(--rmc-border);
}

.hero__content {
	max-width: 760px;
}

.hero__content--simple {
	padding: 8px 0 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	border-radius: 0;
}

.hero__title,
.section__title,
.entry-title {
	margin: 0;
	font-family: 'Manrope', sans-serif;
	font-size: clamp(1.95rem, 4vw, 3rem);
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.section__title {
	font-size: clamp(1.45rem, 2.8vw, 2rem);
	line-height: 1.2;
}

.entry-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	line-height: 1.2;
	margin-bottom: 12px;
}

.hero__lead,
.entry-summary,
.archive-description,
.post-card__excerpt {
	color: var(--rmc-muted);
	font-size: 1rem;
}

.hero__lead p {
	margin: 0 0 1rem;
}

.hero__lead p:last-child {
	margin-bottom: 0;
}

.hero__lead a {
	color: var(--rmc-accent-strong);
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	font-weight: 700;
	border: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button:hover {
	box-shadow: none;
}

.button--primary {
	background: var(--rmc-accent);
	color: #ffffff;
}

.section {
	padding-top: 12px;
}

.section__header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
}

/* Homepage intro strip */
.home-intro {
	padding: 28px 0 20px;
}

.home-intro__text {
	margin: 0;
	font-size: 1.05rem;
	color: var(--rmc-muted);
	line-height: 1.6;
}

.home-intro__text a {
	color: var(--rmc-muted);
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.home-intro__text a:hover {
	color: var(--rmc-accent-strong);
}

/* Featured post */
.featured-post {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
	align-items: center;
	padding: 28px 0 36px;
	border-top: 1px solid var(--rmc-border);
	border-bottom: 1px solid var(--rmc-border);
	margin-bottom: 8px;
}

.featured-post__media {
	display: block;
	border-radius: var(--rmc-radius-md);
	overflow: hidden;
	line-height: 0;
	aspect-ratio: 16 / 10;
	background: var(--rmc-border);
	order: 2;
}

.featured-post__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: var(--rmc-radius-md);
	transition: opacity 0.25s ease;
}

.featured-post__media:hover img {
	opacity: 0.9;
}

.featured-post__body {
	order: 1;
}

.featured-post__meta {
	margin: 0 0 12px;
	font-size: 0.84rem;
	color: var(--rmc-muted);
	display: flex;
	align-items: center;
	gap: 6px;
}

.featured-post__sep {
	opacity: 0.5;
}

.featured-post__title {
	margin: 0 0 14px;
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.featured-post__title a {
	color: var(--rmc-text);
	transition: color 0.2s ease;
}

.featured-post__title a:hover {
	color: var(--rmc-accent-strong);
}

.featured-post__excerpt {
	margin: 0 0 20px;
	font-size: 1rem;
	color: var(--rmc-muted);
	line-height: 1.65;
}

.featured-post__cta {
	font-size: 0.94rem;
	font-weight: 700;
	color: var(--rmc-accent-strong);
	transition: opacity 0.2s ease;
}

.featured-post__cta:hover {
	opacity: 0.75;
}

@media (max-width: 680px) {
	.featured-post {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.featured-post__media {
		order: 1;
	}

	.featured-post__body {
		order: 2;
	}
}

/* Homepage two-column layout */
.home-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 0 52px;
	padding-top: 32px;
	padding-bottom: 56px;
	align-items: start;
}

.home-grid__main > .section__title {
	font-size: clamp(1.1rem, 2vw, 1.35rem);
	margin-bottom: 4px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--rmc-text);
}

.home-grid__sidebar {
	position: sticky;
	top: 32px;
	display: flex;
	flex-direction: column;
	gap: 36px;
}

/* "Ver todos os artigos" link */
.home-all-posts {
	padding: 20px 0 0;
}

.home-all-posts a {
	font-size: 0.94rem;
	font-weight: 700;
	color: var(--rmc-accent-strong);
}

.home-all-posts a:hover {
	opacity: 0.75;
}

/* Sidebar blocks (popular list, tech radar) */
.sidebar-block__title {
	margin: 0 0 4px;
	font-size: clamp(1.05rem, 1.8vw, 1.25rem);
	letter-spacing: -0.01em;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--rmc-text);
}

/* Tech Radar sidebar card */
.tech-radar-card {
	padding: 20px 22px;
	border: 1px solid var(--rmc-border);
	border-radius: var(--rmc-radius-md);
	background: #f8fafc;
}

.tech-radar-card__label {
	margin: 0 0 4px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--rmc-accent-strong);
}

.tech-radar-card__title {
	margin: 0 0 8px;
	font-family: var(--rmc-font-display);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--rmc-text);
}

.tech-radar-card__text {
	margin: 0 0 16px;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--rmc-muted);
}

.tech-radar-card__cta {
	display: inline-block;
	padding: 9px 18px;
	background: var(--rmc-accent);
	color: #ffffff;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 700;
	margin-bottom: 10px;
	transition: opacity 0.2s ease;
}

.tech-radar-card__cta:hover {
	opacity: 0.88;
}

.tech-radar-card__more {
	display: block;
	font-size: 0.82rem;
	color: var(--rmc-muted);
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.tech-radar-card__more:hover {
	color: var(--rmc-text);
}

@media (max-width: 780px) {
	.home-grid {
		grid-template-columns: 1fr;
		gap: 40px 0;
	}

	.home-grid__sidebar {
		position: static;
	}
}

.post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.post-card {
	padding: 0;
	overflow: hidden;
	transition: background-color 0.2s ease;
	border: 0;
	box-shadow: none;
	border-radius: 0;
}

.post-card:hover {
	background: #f8fafc;
}

.post-card__link {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	padding: 22px 0;
	border-bottom: 1px solid var(--rmc-border);
}

.post-card--no-thumb .post-card__link {
	grid-template-columns: minmax(0, 1fr);
}

.post-card__media img {
	width: 150px;
	height: 150px;
	object-fit: cover;
	border-radius: var(--rmc-radius-sm);
}

.post-card__body {
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.post-card__title {
	margin: 0;
	font-family: 'Manrope', sans-serif;
	font-size: 1.4rem;
	line-height: 1.3;
}

.post-card__excerpt p {
	margin: 0;
}

.post-card__cta {
	margin-top: 4px;
	font-size: 0.96rem;
	font-weight: 500;
	color: var(--rmc-accent-strong);
}

.reading-layout {
	width: min(820px, calc(100vw - 40px));
	margin: 0 auto;
}

.entry--single,
.entry--page {
	max-width: 860px;
	margin: 0 auto;
	padding: 28px 0 0;
}

.entry-header {
	margin-bottom: 28px;
}

.entry-summary {
	font-size: 1.12rem;
	line-height: 1.65;
	color: var(--rmc-muted);
	margin: 14px 0 0;
	max-width: 72ch;
}

.entry-media {
	margin: 0 0 32px;
}

.entry-media img {
	width: 100%;
	height: auto;
	border-radius: var(--rmc-radius-md);
}

.entry-media__caption {
	margin: 8px 0 0;
	font-size: 0.88rem;
	color: var(--rmc-muted);
	text-align: center;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content {
	font-size: 1.07rem;
	line-height: 1.78;
}

.entry-content a {
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.14em;
	color: var(--rmc-accent-strong);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: 1.8rem 0 0.6rem;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.entry-content p {
	margin: 0 0 1.15rem;
}

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

.entry-content img {
	border-radius: var(--rmc-radius-md);
	margin: 1.5rem 0;
}

.entry-taxonomy {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid var(--rmc-border);
}

.entry-tag {
	display: inline-block;
	padding: 4px 12px;
	background: var(--rmc-bg);
	border: 1px solid var(--rmc-border);
	border-radius: 999px;
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--rmc-muted);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.entry-tag:hover {
	color: var(--rmc-accent-strong);
	border-color: var(--rmc-accent);
}

.entry-nav {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--rmc-border);
}

.entry-nav__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.94rem;
	font-weight: 600;
	color: var(--rmc-muted);
	transition: color 0.2s ease;
}

.entry-nav__back:hover {
	color: var(--rmc-accent-strong);
}

/* Newsletter banner */
.newsletter-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 32px;
	margin: 20px 0 0;
	background: var(--rmc-accent);
	border-radius: var(--rmc-radius-md);
	color: #ffffff;
}

.newsletter-banner__label {
	margin: 0 0 6px;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.75;
}

.newsletter-banner__title {
	margin: 0 0 8px;
	font-family: var(--rmc-font-display);
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.newsletter-banner__text {
	margin: 0;
	font-size: 0.94rem;
	opacity: 0.82;
	max-width: 52ch;
}

.newsletter-banner__actions {
	display: flex;
	flex-shrink: 0;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.newsletter-banner__cta {
	display: inline-block;
	padding: 11px 22px;
	background: #ffffff;
	color: var(--rmc-accent-strong);
	border-radius: 999px;
	font-size: 0.94rem;
	font-weight: 700;
	transition: opacity 0.2s ease;
	white-space: nowrap;
}

.newsletter-banner__cta:hover {
	opacity: 0.9;
}

.newsletter-banner__secondary {
	font-size: 0.84rem;
	font-weight: 600;
	color: #ffffff;
	opacity: 0.78;
	text-decoration: underline;
	text-underline-offset: 0.12em;
	transition: opacity 0.2s ease;
}

.newsletter-banner__secondary:hover {
	opacity: 1;
}

@media (max-width: 720px) {
	.newsletter-banner {
		flex-direction: column;
		align-items: flex-start;
		padding: 22px 20px;
	}

	.newsletter-banner__actions {
		align-items: flex-start;
		flex-direction: row;
		flex-wrap: wrap;
	}
}

/* Popular posts list */
.popular-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.popular-list__item {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--rmc-border);
}

.popular-list__item:first-child {
	border-top: 1px solid var(--rmc-border);
}

.popular-list__rank {
	flex-shrink: 0;
	width: 28px;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--rmc-border);
	line-height: 1;
	text-align: right;
}

.popular-list__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.popular-list__title {
	font-size: 1.08rem;
	font-weight: 600;
	line-height: 1.35;
	transition: color 0.2s ease;
}

.popular-list__title:hover {
	color: var(--rmc-accent-strong);
}

.popular-list__views {
	font-size: 0.82rem;
	color: var(--rmc-muted);
}

.search-form {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 16px;
	margin-top: 22px;
	border-radius: var(--rmc-radius-md);
}

.search-form label {
	flex: 1;
}

.search-field {
	width: 100%;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid var(--rmc-border);
	background: rgba(255, 255, 255, 0.9);
	font: inherit;
}

.pagination-wrap {
	margin-top: 28px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.nav-links a,
.nav-links span {
	padding: 10px 14px;
	background: var(--rmc-surface);
	border: 1px solid var(--rmc-border);
	border-radius: 999px;
}

.site-footer {
	padding: 8px 0 42px;
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 20px 0 0;
	background: transparent;
	color: var(--rmc-muted);
	border-radius: 0;
	box-shadow: none;
	border-top: 1px solid var(--rmc-border);
}

/* Random quote in footer */
.footer-quote {
	width: 100%;
	padding: 24px 0 16px;
	text-align: center;
}

.footer-quote__blockquote {
	margin: 0 auto;
	max-width: 52ch;
	padding: 0;
	border: none;
}

.footer-quote__text {
	margin: 0 0 8px;
	font-family: var(--rmc-font-display);
	font-size: 1.05rem;
	font-style: italic;
	font-weight: 600;
	line-height: 1.55;
	color: var(--rmc-text);
	opacity: 0.75;
}

.footer-quote__text::before { content: '\201C'; }
.footer-quote__text::after  { content: '\201D'; }

.footer-quote__author {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--rmc-muted);
}



.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	clip: auto;
	width: auto;
	height: auto;
	margin: 12px;
	padding: 12px 16px;
	background: #fff;
	border-radius: 10px;
	z-index: 1000;
}

@media (max-width: 960px) {
	.site-header {
		position: static;
	}

	.site-header__inner,
	.site-footer__inner {
		grid-template-columns: 1fr;
		flex-direction: column;
		align-items: flex-start;
	}

	.section__header {
		align-items: start;
		flex-direction: column;
	}

	.hero__content {
		padding: 24px;
	}

	.hero__content--simple {
		padding: 0;
	}

	.post-card__link {
		grid-template-columns: 110px minmax(0, 1fr);
	}

	.post-card__media img {
		width: 110px;
		height: 110px;
	}

	.search-form {
		flex-direction: column;
		align-items: stretch;
	}

	.site-nav__menu {
		gap: 14px;
	}

	.hero__title,
	.entry-title {
		font-size: clamp(1.85rem, 9vw, 2.6rem);
	}
}

@media (max-width: 640px) {
	.site-main {
		padding-top: 24px;
	}

	.hero {
		padding-top: 24px;
	}

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

	.post-card__media img {
		width: 100%;
		height: 180px;
	}

	.container {
		width: min(100vw - 24px, 1120px);
	}

	.hero__content,
	.empty-state {
		padding: 20px;
		border-radius: 16px;
	}

	.hero__content--simple {
		padding: 0;
	}

	.site-header__inner {
		padding: 14px 0;
	}

	.site-nav__menu a {
		padding: 4px 0;
	}

	.site-nav {
		font-size: 1.04rem;
	}
}
