/*
Theme Name: GPrimo
Author: Gustavo Primo
Description: Tema do site GPrimo
Version: 1.0
*/

:root {
	color-scheme: dark;
	--gp-bg: #070b0f;
	--gp-bg-secondary: #08101c;
	--gp-card: #0b1422;
	--gp-border: #273242;
	--gp-text: #f2f3f7;
	--gp-text-secondary: #aab3c2;
	--gp-text-tertiary: #718096;
	--gp-accent: #00d9d2;
	--gp-green: #26d07c;
	--gp-blue: #0072ce;
	--gp-purple: #c800a1;
	--gp-pink: #df1995;
	--gp-orange: #ff8f1c;
	--gp-red: #e03c31;
	--gp-code-bg: #0d1117;
	--gp-shadow: rgba(0, 0, 0, 0.5);
	--gp-font-brand: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--gp-font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

html[data-theme="light"] {
	color-scheme: light;
	--gp-bg: #ffffff;
	--gp-bg-secondary: #f4f6fa;
	--gp-card: #eef2f7;
	--gp-border: #d7dee8;
	--gp-text: #131a24;
	--gp-text-secondary: #46505f;
	--gp-text-tertiary: #8b94a4;
	--gp-accent: var(--gp-blue);
	--gp-green: var(--gp-blue);
	--gp-code-bg: #101823;
	--gp-shadow: rgba(15, 25, 40, 0.12);
}

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

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--gp-bg);
	color: var(--gp-text);
	font-family: var(--gp-font-sans);
	-webkit-font-smoothing: antialiased;
	line-height: 1.6;
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--gp-font-sans);
}

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

a {
	color: var(--gp-accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.container {
	margin-inline: auto;
	max-width: 1140px;
	padding-inline: 2rem;
}

.section {
	padding: 5rem 0;
}

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

.site-header {
	background-color: var(--gp-bg);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header-inner {
	align-items: center;
	display: flex;
	height: auto;
	justify-content: space-between;
	padding: 1rem 0;
}

.site-header .custom-logo {
	max-height: 56px;
	max-width: 165px;
}

.site-logo {
	align-items: center;
	display: inline-flex;
	gap: 0.6rem;
	text-decoration: none;
}

.custom-logo {
	height: auto;
	max-width: 180px;
	width: auto;
}

.site-logo-mark {
	height: 36px;
	width: 36px;
}

.site-logo-text {
	color: var(--gp-text);
	font-family: var(--gp-font-brand);
	font-size: 1.15rem;
	font-weight: 700;
}

.site-logo-text-accent {
	color: var(--gp-accent);
}

.gp-menu {
	display: flex;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gp-menu a {
	color: var(--gp-text-secondary);
	font-size: 0.95rem;
}

.gp-menu a:hover {
	color: var(--gp-accent);
	text-decoration: none;
}

.gp-menu .current-menu-item > a {
	color: var(--gp-green);
	position: relative;
}

.gp-menu .current-menu-item > a::after {
	background-color: var(--gp-green);
	bottom: -0.375rem;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	width: 100%;
}

/* ---------- Alternador de tema ---------- */

/* ---------- Botão do menu (mobile) ---------- */

.menu-toggle {
	align-items: center;
	background: none;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	display: none;
	flex-direction: column;
	gap: 5px;
	height: 40px;
	justify-content: center;
	padding: 0;
	position: relative;
	width: 40px;
}

.menu-toggle-bar {
	background-color: var(--gp-text-secondary);
	display: block;
	height: 2px;
	transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.25s ease;
	width: 22px;
}

.menu-toggle:hover .menu-toggle-bar {
	background-color: var(--gp-green);
}

.site-header.menu-open .menu-toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle-bar:nth-child(2) {
	opacity: 0;
}

.site-header.menu-open .menu-toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Alternador de tema ---------- */

.site-header-right {
	align-items: center;
	display: flex;
	gap: 2rem;
}

.theme-toggle {
	align-items: center;
	background: none;
	border: 0;
	border-radius: 0;
	color: var(--gp-text-secondary);
	cursor: pointer;
	display: inline-flex;
	height: 40px;
	justify-content: center;
	padding: 0;
	position: relative;
	transition: color 0.2s ease, transform 0.2s ease;
	width: 40px;
}

.theme-toggle:hover {
	color: var(--gp-green);
	transform: scale(1.1);
}

.theme-toggle-icon {
	height: 20px;
	left: 50%;
	position: absolute;
	top: 50%;
	transition: opacity 0.25s ease, transform 0.35s ease;
	width: 20px;
}

html[data-theme="dark"] .theme-toggle-sun {
	opacity: 1;
	transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

html[data-theme="dark"] .theme-toggle-moon {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

html[data-theme="light"] .theme-toggle-sun {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(-90deg) scale(0);
}

html[data-theme="light"] .theme-toggle-moon {
	opacity: 1;
	transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
	transition: background-color 0.4s ease, color 0.25s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ---------- Herói ---------- */

.hero {
	background-color: var(--gp-bg);
}

.hero-grid {
	align-items: center;
	display: grid;
	gap: 3rem;
	grid-template-columns: 1fr 1fr;
}

.hero-greeting {
	color: var(--gp-text-tertiary);
	font-size: 0.95rem;
	letter-spacing: 0.2em;
	margin: 0 0 0.5rem;
	text-transform: uppercase;
}

.hero-title {
	color: var(--gp-text);
	font-size: clamp(2.5rem, 6vw, 4.75rem);
	line-height: 1.05;
	margin: 0 0 1.25rem;
}

.hero-description {
	color: var(--gp-text-secondary);
	font-size: 1.1rem;
	margin: 0 0 2rem;
	max-width: 34rem;
}

.gp-button {
	align-items: center;
	background: none;
	border-radius: 0;
	color: var(--gp-text);
	display: inline-flex;
	font-weight: 600;
	gap: 0.6rem;
	padding: 0;
	transition: color 0.2s ease;
}

.gp-button::before {
	background-color: var(--gp-green);
	content: "";
	display: inline-block;
	height: 2px;
	width: 32px;
}

.gp-button::after {
	color: var(--gp-text);
	content: "→";
	display: inline-block;
	transition: color 0.2s ease;
}

.gp-button:hover {
	color: var(--gp-green);
	text-decoration: none;
}

.gp-button:hover::after {
	color: var(--gp-green);
}

.gp-button--green,
.gp-button--green:hover {
	color: var(--gp-green);
	text-decoration: none;
}

.gp-button--green::after,
.gp-button--green:hover::after {
	color: var(--gp-green);
}

.hero-image img {
	border: 1px solid var(--gp-border);
	border-radius: 16px;
	box-shadow: 0 20px 60px var(--gp-shadow);
}

/* ---------- Títulos de seção ---------- */

.section-title {
	color: var(--gp-text);
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	margin: 0 0 2.5rem;
}

.section-mark {
	color: var(--gp-green);
}

/* ---------- Sobre ---------- */

.sobre-grid {
	align-items: start;
	display: grid;
	gap: 3rem;
	grid-template-columns: 5fr 2fr 3fr;
}

.sobre-features {
	grid-column: 3;
}

.sobre-text p {
	color: var(--gp-text-secondary);
	margin: 0 0 1rem;
}

.feature-item {
	display: grid;
	gap: 1rem;
	grid-template-columns: auto 1fr;
	margin-bottom: 1.25rem;
}

.feature-icon {
	align-items: center;
	color: var(--gp-text);
	display: flex;
	justify-content: center;
	padding-top: 0.15rem;
}

.feature-icon svg {
	height: 26px;
	width: 26px;
}

.feature-title {
	color: var(--gp-text);
	font-size: 1.05rem;
	margin: 0 0 0.25rem;
}

.feature-desc {
	color: var(--gp-text);
	font-size: 0.95rem;
	margin: 0;
}

/* ---------- Tecnologias ---------- */

.tecnologias {
	background-color: var(--gp-bg);
}

.tech-list {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
}

.tech-item {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	text-align: center;
}

.tech-icon {
	align-items: center;
	border: 1px solid var(--gp-text);
	border-radius: 50%;
	color: var(--gp-text);
	display: inline-flex;
	font-size: 1rem;
	font-weight: 700;
	height: 52px;
	justify-content: center;
	width: 52px;
}

.tech-name {
	color: var(--gp-text);
	display: block;
	font-size: 0.95rem;
}

/* ---------- Listagem de posts (index.php) ---------- */

.gp-card {
	background-color: var(--gp-card);
	border: 1px solid var(--gp-border);
	border-radius: 12px;
	margin-bottom: 1.5rem;
	padding: 1.5rem;
}

.gp-card .entry-title {
	margin-top: 0;
}

.entry-content {
	color: var(--gp-text-secondary);
}

.gp-pagination {
	margin-top: 2rem;
}

.gp-pagination a {
	color: var(--gp-accent);
}

/* ---------- Rodapé ---------- */

.site-footer {
	background-color: var(--gp-bg);
	padding: 0;
}

.site-footer-inner {
	align-items: center;
	border-top: 1px solid var(--gp-border);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	padding-bottom: 2rem;
	padding-top: 2rem;
}

.copyright {
	color: var(--gp-text-tertiary);
	font-size: 0.9rem;
	margin: 0;
}

/* ---------- Criar projetos ---------- */

.gp-title-line {
	align-items: center;
	color: var(--gp-text);
	display: inline-flex;
	font-size: 1rem;
	font-weight: 600;
	gap: 0.6rem;
	letter-spacing: 0.08em;
	margin: 0;
	text-transform: uppercase;
}

.gp-title-line::before {
	background: linear-gradient(90deg, var(--gp-green), var(--gp-blue), var(--gp-red), var(--gp-pink));
	content: "";
	height: 2px;
	width: 32px;
}

.projetos-hero {
	padding: 3rem 0;
}

.projetos-hero-inner {
	max-width: 40%;
}

.projetos-title {
	color: var(--gp-text);
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.1;
	margin: 0.75rem 0;
}

.projetos-desc {
	color: var(--gp-text-secondary);
	margin: 0;
}

.projetos-filtro {
	display: flex;
	flex-wrap: wrap;
	gap: 1.75rem;
	margin-bottom: 2rem;
}

.projetos-filtro a {
	color: var(--gp-text-secondary);
	font-size: 0.95rem;
}

.projetos-filtro a:hover {
	color: var(--gp-accent);
	text-decoration: none;
}

.projetos-filtro a.is-active {
	color: var(--gp-green);
	position: relative;
}

.projetos-filtro a.is-active::after {
	background-color: var(--gp-green);
	bottom: -1rem;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	width: 100%;
}

.projetos-grid {
	display: grid;
	gap: 2.5rem 2rem;
	grid-template-columns: repeat(3, 1fr);
	margin-bottom: 3rem;
	scroll-margin-top: 96px;
	transition: opacity 180ms ease, transform 180ms ease;
}

.projetos-grid.is-loading {
	opacity: 0;
	transform: translateY(8px);
}

.projetos-none {
	color: var(--gp-text-tertiary);
	grid-column: 1 / -1;
}

.projeto-item {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.projeto-thumb {
	border-radius: 12px;
	display: block;
	overflow: hidden;
}

.projeto-thumb img {
	width: 100%;
}

.projeto-info {
	align-items: flex-start;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
}

.projeto-title {
	color: var(--gp-text);
	font-size: 1.15rem;
	margin: 0;
}

.projeto-title a {
	color: var(--gp-text);
}

.projeto-title a:hover {
	color: var(--gp-accent);
}

.projeto-taxes {
	color: var(--gp-text-tertiary);
	font-size: 0.85rem;
	margin: 0.25rem 0 0;
}

.projeto-cat-icon {
	color: var(--gp-text);
	display: inline-flex;
	padding-top: 0.15rem;
}

.projeto-cat-icon svg {
	height: 22px;
	width: 22px;
}

.projeto-resumo {
	color: var(--gp-text-secondary);
	font-size: 0.95rem;
	margin: 0;
}

.projeto-item .gp-button {
	font-size: 0.9rem;
	margin-top: auto;
}

/* ---------- Página individual do projeto ---------- */

.gp-button--back::before {
	background: none;
	color: var(--gp-green);
	content: "←";
	height: auto;
	width: auto;
}

.gp-button--back::after {
	content: "";
	display: none;
}

.projeto-single-header {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 2.5rem 0 1.5rem;
}

.projeto-single-cat {
	letter-spacing: 0.08em;
}

.projeto-single-cat-icon svg {
	height: 20px;
	width: 20px;
}

.projeto-single-title {
	color: var(--gp-text);
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.1;
	margin: 0.5rem 0 0.25rem;
}

.projeto-single-desc {
	color: var(--gp-text-secondary);
	font-size: 1.15rem;
	margin: 0 0 1.25rem;
	max-width: 40rem;
}

.projeto-single-meta {
	color: var(--gp-text-tertiary);
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.projeto-single-meta li {
	align-items: center;
	display: inline-flex;
	gap: 0.75rem;
}

.projeto-single-meta li + li::before {
	color: var(--gp-green);
	content: "·";
}

.projeto-single-meta a {
	color: var(--gp-text-secondary);
}

.projeto-single-meta a:hover {
	color: var(--gp-green);
	text-decoration: none;
}

.projeto-single-cover {
	margin: 1.5rem 0 0;
}

.projeto-single-cover img {
	border-radius: 16px;
	width: 100%;
}

.projeto-single-grid {
	display: grid;
	gap: 3rem;
	grid-template-columns: 7fr 3fr;
	margin-top: 3rem;
	padding: 2.5rem 0 5rem;
}

.projeto-single-content {
	border-right: 1px solid var(--gp-border);
	color: var(--gp-text-secondary);
	line-height: 1.8;
	padding-right: 2.5rem;
}

.projeto-single-content h1,
.projeto-single-content h2,
.projeto-single-content h3,
.projeto-single-content h4 {
	color: var(--gp-text);
	margin-top: 1.75em;
}

.projeto-single-content img {
	border-radius: 12px;
}

.projeto-single-content a {
	color: var(--gp-accent);
}

.projeto-single-content pre {
	background-color: var(--gp-code-bg);
	border: 1px solid var(--gp-border);
	border-radius: 12px;
	font-size: 0.9rem;
	line-height: 1.6;
	margin: 1.5rem 0;
	overflow-x: auto;
	padding: 1.25rem;
	tab-size: 4;
}

.projeto-single-content pre code {
	background: none;
	color: inherit;
	padding: 0;
}

.projeto-single-content code {
	background-color: var(--gp-card);
	border-radius: 6px;
	color: var(--gp-accent);
	padding: 0.15rem 0.4rem;
}

.projeto-sidebar-block {
	border-bottom: 1px solid var(--gp-border);
	padding: 1.5rem 0;
}

.projeto-sidebar-block:first-child {
	padding-top: 0;
}

.projeto-sidebar-block:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.projeto-sidebar-title {
	color: var(--gp-text);
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
}

.projeto-autor {
	align-items: center;
	display: flex;
	gap: 0.9rem;
}

.projeto-autor img {
	border-radius: 50%;
	height: 48px;
	width: 48px;
}

.projeto-autor-info {
	display: flex;
	flex-direction: column;
}

.projeto-autor-label {
	color: var(--gp-text-tertiary);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.projeto-autor-name {
	color: var(--gp-text);
	font-weight: 600;
}

.projeto-autor-role {
	color: var(--gp-text-tertiary);
	font-size: 0.85rem;
}

.projeto-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.projeto-tag-chip {
	border: 1px solid var(--gp-border);
	border-radius: 999px;
	color: var(--gp-text-secondary);
	display: inline-block;
	font-size: 0.85rem;
	padding: 0.3rem 0.85rem;
}

.projeto-tag-chip:hover {
	border-color: var(--gp-green);
	color: var(--gp-green);
	text-decoration: none;
}

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

.projeto-next:hover {
	text-decoration: none;
}

.projeto-next-thumb img {
	border-radius: 8px;
	height: 56px;
	object-fit: cover;
	width: 56px;
}

.projeto-next-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.projeto-next-title {
	color: var(--gp-text);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
}

.projeto-next:hover .projeto-next-title {
	color: var(--gp-accent);
}

.projeto-next-meta {
	color: var(--gp-text-tertiary);
	font-size: 0.8rem;
}

.projeto-next-arrow {
	color: var(--gp-green);
	font-size: 1.1rem;
}

/* ---------- Publicações do projeto ---------- */

.projeto-publicacoes {
	border-top: 1px solid var(--gp-border);
	margin-top: 4.5rem;
	padding-top: 2.5rem;
}

.projeto-publicacoes-list {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
}

.projeto-publicacao {
	border-bottom: 1px solid var(--gp-border);
}

.projeto-publicacao + .projeto-publicacao {
	border-top: 0;
}

.projeto-publicacao a {
	align-items: center;
	display: flex;
	gap: 1.5rem;
	padding: 1.25rem 0;
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
}

.projeto-publicacao a:hover {
	text-decoration: none;
}

.projeto-publicacao a:hover .projeto-publicacao-title {
	color: var(--gp-accent);
}

.projeto-publicacao-thumb {
	flex: 0 0 8rem;
}

.projeto-publicacao-thumb img {
	border: 1px solid var(--gp-border);
	border-radius: 0.5rem;
	display: block;
	height: 5rem;
	object-fit: cover;
	transition: transform 0.25s ease;
	width: 8rem;
}

.projeto-publicacao a:hover .projeto-publicacao-thumb img {
	transform: scale(1.04);
}

.projeto-publicacao-info {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.projeto-publicacao-title {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	transition: color 0.2s ease;
}

.projeto-publicacao-meta {
	color: var(--gp-text-tertiary);
	font-family: var(--gp-font-mono);
	font-size: 0.78rem;
}

.projeto-publicacao-arrow {
	color: var(--gp-green);
	text-decoration: none;
	transition: transform 0.2s ease;
}

.projeto-publicacao a:hover .projeto-publicacao-arrow {
	transform: translateX(4px);
}

.projeto-update-project {
	align-items: center;
	display: flex;
	gap: 0.75rem;
	transition: color 0.2s ease;
}

.projeto-update-project:hover .projeto-update-project-name {
	color: var(--gp-accent);
}

.projeto-update-project-thumb img {
	border: 1px solid var(--gp-border);
	border-radius: 0.5rem;
	display: block;
	height: auto;
	width: 3.5rem;
}

.projeto-update-project-info {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.projeto-update-project-name {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	transition: color 0.2s ease;
}

.projeto-update-project-view {
	color: var(--gp-text-tertiary);
	font-size: 0.8rem;
}

/* ---------- Navegação entre publicações ---------- */

.projeto-publicacao-nav {
	border-top: 1px solid var(--gp-border);
	display: flex;
	gap: 3rem;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	margin-inline: -2rem;
	margin-top: 3rem;
	padding-bottom: 1.5rem;
	padding-inline: 2rem;
	padding-top: 1.75rem;
}

.projeto-publicacao-nav-item {
	flex: 0 0 30%;
	min-width: 0;
	text-decoration: none;
}

.projeto-publicacao-nav-item:hover {
	text-decoration: none;
}

.projeto-publicacao-nav-item--prev {
	margin-right: auto;
}

.projeto-publicacao-nav-item--next {
	margin-left: auto;
}

.projeto-publicacao-nav-label {
	color: var(--gp-text-secondary);
	display: inline-flex;
	font-family: var(--gp-font-mono);
	font-size: 0.8rem;
	gap: 0.35rem;
}

.projeto-publicacao-nav-arrow {
	color: var(--gp-green);
	font-size: 0.9rem;
}

.projeto-publicacao-nav-info {
	align-items: center;
	display: flex;
	gap: 0.75rem;
	margin-top: 0.75rem;
}

.projeto-publicacao-nav-thumb img {
	border: 1px solid var(--gp-border);
	border-radius: 0.4rem;
	display: block;
	height: 3.5rem;
	object-fit: cover;
	transition: transform 0.25s ease;
	width: 5.5rem;
}

.projeto-publicacao-nav-item:hover .projeto-publicacao-nav-thumb img {
	transform: scale(1.04);
}

.projeto-publicacao-nav-text {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.projeto-publicacao-nav-title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	transition: color 0.2s ease;
}

.projeto-publicacao-nav-item:hover .projeto-publicacao-nav-title {
	color: var(--gp-accent);
}

.projeto-publicacao-nav-meta {
	color: var(--gp-text-tertiary);
	font-family: var(--gp-font-mono);
	font-size: 0.75rem;
}

/* ---------- Contato ---------- */

.contato {
	padding-top: 3rem;
}

.contato-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	margin-top: 3rem;
}

.contato-title {
	font-size: 1.75rem;
	line-height: 1.2;
	margin: 0 0 0.5rem;
}

.contato-desc {
	color: var(--gp-text-secondary);
	line-height: 1.7;
	margin: 0 0 2.5rem;
	max-width: 34rem;
}

.contato-list {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.contato-item {
	align-items: flex-start;
	display: flex;
	gap: 1.1rem;
}

.contato-item-icon {
	align-items: center;
	color: var(--gp-text);
	display: flex;
	flex: none;
	height: 3.25rem;
	justify-content: center;
	width: 3.25rem;
}

.contato-item-icon svg {
	height: 1.45rem;
	width: 1.45rem;
}

.contato-item-body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.contato-item-name {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
}

.contato-item-link {
	align-self: flex-start;
	color: var(--gp-green);
	font-family: var(--gp-font-mono);
	font-size: 0.85rem;
	text-decoration: none;
	word-break: break-all;
}

.contato-item-link:hover {
	color: var(--gp-green);
	text-decoration: none;
}

/* ---------- Formulário de contato ---------- */

.contato-form-card {
	align-self: start;
	background-color: var(--gp-card);
	border: 1px solid var(--gp-border);
	border-radius: 0.5rem 1rem 1rem 0.5rem;
	padding: 2rem;
	position: relative;
}

.contato-form-card::after {
	background: linear-gradient(180deg, var(--gp-green) 0%, var(--gp-blue) 40%, var(--gp-red) 70%, var(--gp-pink) 100%);
	border-radius: 0.5rem 0 0 0.5rem;
	content: "";
	position: absolute;
	top: -1px;
	bottom: -1px;
	left: -1px;
	width: 6px;
}

.contato-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.contato-field {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--gp-text-secondary);
}

.contato-field span {
	margin-left: 0.1rem;
}

.contato-field input,
.contato-field textarea {
	background-color: var(--gp-bg);
	border: 1px solid var(--gp-border);
	border-radius: 0.55rem;
	color: var(--gp-text);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 400;
	padding: 0.7rem 0.85rem;
	transition: border-color 0.2s ease;
	width: 100%;
}

.contato-field textarea {
	min-height: 8rem;
	resize: vertical;
}

.contato-field input:focus,
.contato-field textarea:focus {
	border-color: var(--gp-green);
	outline: none;
}

.contato-form .gp-button {
	align-self: stretch;
	background:
		linear-gradient(var(--gp-card), var(--gp-card)) padding-box,
		linear-gradient(90deg, var(--gp-green), var(--gp-blue), var(--gp-red), var(--gp-pink)) border-box;
	border: 2px solid transparent;
	border-radius: 0.65rem;
	color: var(--gp-text);
	cursor: pointer;
	font-size: 0.95rem;
	justify-content: center;
	margin-top: 0.25rem;
	padding: 0.8rem 1.1rem;
	transition: color 0.2s ease, filter 0.2s ease;
	width: 100%;
}

.contato-form .gp-button::before,
.contato-form .gp-button::after {
	display: none;
}

.contato-form .gp-button:hover {
	color: var(--gp-text);
	filter: brightness(1.12);
}

.contato-notice {
	border: 1px solid var(--gp-border);
	border-radius: 0.55rem;
	font-size: 0.9rem;
	line-height: 1.55;
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
}

.contato-notice--success {
	border-color: var(--gp-green);
	color: var(--gp-green);
}

.contato-notice--error {
	border-color: #d64545;
	color: #d64545;
}

/* ---------- Transição de páginas (swup) ---------- */

.site-main {
	transition: opacity 300ms ease, transform 300ms ease, filter 300ms ease;
}

html.is-animating .site-main {
	opacity: 0;
	transform: translateY(14px);
	filter: blur(5px);
}

/* ---------- Responsivo ---------- */

@media (max-width: 900px) {
	.hero-grid,
	.sobre-grid {
		grid-template-columns: 1fr;
	}

	.sobre-features {
		grid-column: auto;
	}

	.hero-image {
		order: -1;
	}

	.projetos-hero-inner {
		max-width: 100%;
	}

	.projetos-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.projeto-single-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.projeto-single-content {
		border-right: 0;
		padding-right: 0;
	}

	.projeto-publicacao-nav {
		flex-direction: column;
		gap: 2rem;
	}

	.projeto-publicacao-nav-item {
		flex-basis: auto;
		width: 100%;
	}

	.projeto-publicacao-nav-item--prev,
	.projeto-publicacao-nav-item--next {
		margin-left: 0;
		margin-right: 0;
	}

	.contato-grid {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
}

@media (max-width: 600px) {
	.section {
		padding: 3rem 0;
	}

	.site-footer-inner {
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}

	.site-header-inner {
		height: auto;
		padding: 1rem 0;
	}

	.gp-menu {
		flex-wrap: wrap;
		gap: 1rem;
	}

	.projetos-grid {
		grid-template-columns: 1fr;
	}

	.projeto-publicacao-thumb {
		flex-basis: 5rem;
	}

	.projeto-publicacao-thumb img {
		height: 3.25rem;
		width: 5rem;
	}

	.projeto-publicacao-nav-thumb img {
		height: 3rem;
		width: 4.75rem;
	}
}

/* ---------- Menu responsivo ---------- */

@media (max-width: 900px) {
	.menu-toggle {
		display: inline-flex;
	}

	.main-navigation {
		display: none;
		left: 0;
		position: absolute;
		right: 0;
		top: 100%;
	}

	.site-header.menu-open .main-navigation {
		animation: gp-menu-fade 0.18s ease;
		display: block;
	}

	.site-header.menu-open .main-navigation .gp-menu {
		background-color: var(--gp-bg);
		border-bottom: 1px solid var(--gp-border);
		box-shadow: 0 16px 32px var(--gp-shadow);
		padding: 0.5rem 2rem 1rem;
	}

	.main-navigation .gp-menu {
		flex-direction: column;
		gap: 0;
	}

	.main-navigation .gp-menu li + li {
		border-top: 1px solid var(--gp-border);
	}

	.main-navigation .gp-menu a {
		display: block;
		font-size: 1rem;
		padding: 0.9rem 0.25rem;
	}

	.main-navigation .gp-menu .current-menu-item > a::after {
		display: none;
	}
}

@keyframes gp-menu-fade {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Lista de tecnologias ---------- */

@media (max-width: 900px) {
	.tech-list {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		padding-bottom: 0.5rem;
		scroll-snap-type: x proximity;
		scrollbar-color: var(--gp-border) transparent;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.tech-list::-webkit-scrollbar {
		height: 6px;
	}

	.tech-list::-webkit-scrollbar-track {
		background: transparent;
	}

	.tech-list::-webkit-scrollbar-thumb {
		background-color: var(--gp-border);
		border-radius: 999px;
	}

	.tech-item {
		flex: 0 0 auto;
		scroll-snap-align: center;
	}
}