:root {
	--ink: #070708;
	--ink-2: #0d0d10;
	--surface: #141318;
	--surface-2: #1a181f;
	--line: #302c36;
	--paper: #f2eee6;
	--muted: #aaa2af;
	--site-accent: #d7a565;
	--shell: min(1180px, calc(100vw - 40px));
	--reading: 720px;
	--sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
	--mono: "Cascadia Code", "IBM Plex Mono", Consolas, monospace;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background:
		radial-gradient(circle at 88% 6%, color-mix(in srgb, var(--site-accent) 10%, transparent), transparent 28rem),
		var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

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

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

a:hover {
	color: var(--site-accent);
}

button,
input,
textarea,
select {
	font: inherit;
}

:focus-visible {
	outline: 2px solid var(--site-accent);
	outline-offset: 4px;
}

.skip-link {
	position: fixed;
	z-index: 1000;
	top: 12px;
	left: 12px;
	padding: 10px 14px;
	background: var(--paper);
	color: var(--ink);
	transform: translateY(-160%);
}

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

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

.shell--narrow {
	max-width: 920px;
}

.shell--reading {
	max-width: var(--reading);
}

.site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--line);
	background: color-mix(in srgb, var(--ink) 88%, transparent);
	backdrop-filter: blur(16px);
}

.site-header__inner {
	display: flex;
	min-height: 88px;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 13px;
	color: var(--paper);
	text-decoration: none;
}

.brand__mark {
	width: 47px;
	height: 47px;
	color: var(--paper);
}

.brand strong,
.brand small {
	display: block;
}

.brand strong {
	font-family: var(--serif);
	font-size: 1.45rem;
	line-height: 1;
}

.brand small {
	margin-top: 5px;
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.62rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-nav__list,
.site-footer ul,
.legal-nav {
	display: flex;
	align-items: center;
	gap: 25px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.73rem;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
	color: var(--paper);
}

.nav-toggle {
	display: none;
	min-width: 44px;
	min-height: 44px;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--paper);
}

.hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
}

.hero::before {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(color-mix(in srgb, var(--paper) 4%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--paper) 4%, transparent) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: linear-gradient(to right, transparent, black 40%, black);
	content: "";
}

.hero__grid {
	position: relative;
	display: grid;
	min-height: 690px;
	grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
	align-items: stretch;
}

.hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 90px 9vw 90px 0;
}

.kicker {
	margin: 0 0 19px;
	color: var(--site-accent);
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.manifesto blockquote,
.archive-head h1,
.page-entry h1,
.article__header h1,
.not-found h1 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 0.98;
}

.hero h1 {
	max-width: 780px;
	font-size: clamp(4.2rem, 7.2vw, 7.8rem);
}

.hero__lede {
	max-width: 670px;
	margin: 31px 0 0;
	color: var(--muted);
	font-size: clamp(1rem, 1.4vw, 1.22rem);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;
	margin-top: 38px;
}

.button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 11px 18px;
	border: 1px solid var(--line);
	color: var(--paper);
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
	border-color: var(--site-accent);
	color: var(--paper);
}

.button--primary {
	border-color: var(--site-accent);
	background: var(--site-accent);
	color: var(--ink);
}

.button--primary:hover {
	background: color-mix(in srgb, var(--site-accent) 82%, white);
	color: var(--ink);
}

.hero__visual {
	position: relative;
	min-height: 560px;
	border-left: 1px solid var(--line);
	background: var(--surface);
}

.hero__visual::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, transparent 45%, color-mix(in srgb, var(--site-accent) 16%, transparent));
	content: "";
}

.hero__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.9) contrast(1.06);
}

.hero__index {
	position: absolute;
	z-index: 1;
	right: 22px;
	bottom: 20px;
	padding: 8px 10px;
	border: 1px solid color-mix(in srgb, var(--paper) 28%, transparent);
	background: color-mix(in srgb, var(--ink) 82%, transparent);
	font-family: var(--mono);
	font-size: 0.66rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.section {
	padding: 110px 0;
}

.section--tight {
	padding-top: 60px;
}

.section-heading {
	max-width: 820px;
	margin-bottom: 50px;
}

.section-heading--row {
	display: flex;
	max-width: none;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
}

.section-heading h2 {
	font-size: clamp(3.2rem, 6vw, 6.3rem);
}

.section-heading > p:last-child {
	max-width: 680px;
	color: var(--muted);
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
}

.project-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--ink-2);
}

.project-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-bottom: 1px solid var(--line);
	background: var(--surface);
}

.project-card__media::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
	content: "";
}

.project-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms ease;
}

.project-card:hover .project-card__media img {
	transform: scale(1.025);
}

.project-card__media span {
	position: absolute;
	z-index: 2;
	right: 18px;
	bottom: 12px;
	font-family: var(--serif);
	font-size: 3.2rem;
	line-height: 1;
}

.project-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 31px;
}

.project-card__body h3,
.post-card h3,
.empty-state h3 {
	margin: 0;
	font-family: var(--serif);
	font-size: 2.1rem;
	font-weight: 500;
	line-height: 1.05;
}

.project-card__body > p:not(.kicker),
.post-card__body > p:last-child,
.empty-state p {
	color: var(--muted);
}

.project-card__body .text-link {
	margin-top: auto;
	padding-top: 18px;
}

.project-card--euviet {
	--site-accent: #8df0a8;
}

.project-card--diariodaia {
	--site-accent: #47d8ff;
}

.project-card--curiosidades {
	--site-accent: #ff9b71;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--paper);
	font-family: var(--mono);
	font-size: 0.73rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.text-link span {
	color: var(--site-accent);
	font-size: 1rem;
}

.manifesto {
	border-top: 1px solid var(--line);
	background: var(--ink-2);
}

.manifesto__grid {
	display: grid;
	grid-template-columns: 0.55fr 1.55fr 0.9fr;
	gap: 60px;
	align-items: start;
}

.manifesto blockquote {
	margin: 0;
	font-size: clamp(2.5rem, 4.3vw, 5rem);
}

.manifesto__grid > div {
	color: var(--muted);
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.post-card {
	min-width: 0;
	background: var(--ink-2);
}

.post-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: var(--surface);
}

.post-card__media img,
.post-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__placeholder {
	background:
		linear-gradient(135deg, transparent 49.6%, var(--line) 50%, transparent 50.4%),
		radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--site-accent) 24%, transparent), transparent 38%),
		var(--surface);
}

.post-card__body {
	padding: 26px;
}

.post-card__meta,
.article__meta {
	color: var(--site-accent);
	font-family: var(--mono);
	font-size: 0.66rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.post-card h3 {
	font-size: 1.75rem;
}

.post-card h3 a {
	text-decoration: none;
}

.empty-state {
	grid-column: 1 / -1;
	padding: 70px;
	background: var(--ink-2);
	text-align: center;
}

.archive-head {
	padding-bottom: 40px;
	border-bottom: 1px solid var(--line);
}

.archive-head h1,
.page-entry h1,
.not-found h1 {
	font-size: clamp(3.6rem, 7vw, 7rem);
}

.article {
	padding: 95px 0 120px;
}

.article__header h1 {
	font-size: clamp(3.4rem, 6.3vw, 6.6rem);
}

.article__dek {
	max-width: 760px;
	margin: 30px 0;
	color: var(--muted);
	font-family: var(--serif);
	font-size: 1.5rem;
	line-height: 1.35;
}

.article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.article__cover {
	margin-top: 55px;
}

.article__cover img {
	width: 100%;
	max-height: 720px;
	object-fit: cover;
}

.article__content {
	margin-top: 65px;
}

.article__content h2,
.article__content h3 {
	margin: 2em 0 0.6em;
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.1;
}

.article__content h2 {
	font-size: 2.5rem;
}

.article__content h3 {
	font-size: 1.8rem;
}

.article__content p,
.article__content li {
	color: #d8d2d9;
}

.article__content a {
	color: var(--site-accent);
}

.article__content blockquote {
	margin: 2.5em 0;
	padding: 0 0 0 24px;
	border-left: 2px solid var(--site-accent);
	color: var(--paper);
	font-family: var(--serif);
	font-size: 1.5rem;
}

.article__content hr {
	margin: 55px 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.page-entry__header {
	padding-bottom: 45px;
	border-bottom: 1px solid var(--line);
}

.post-nav {
	padding: 35px 0;
	border-top: 1px solid var(--line);
}

.post-nav .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

.pagination {
	margin-top: 40px;
}

.not-found {
	min-height: 65vh;
}

.site-footer {
	border-top: 1px solid var(--line);
	background: #050506;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 0.7fr 1fr;
	gap: 70px;
	padding-block: 78px;
}

.site-footer h2 {
	margin: 0 0 18px;
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.site-footer__statement {
	max-width: 620px;
	font-family: var(--serif);
	font-size: 2rem;
	line-height: 1.15;
}

.site-footer ul {
	align-items: flex-start;
	flex-direction: column;
	gap: 9px;
}

.site-footer li,
.site-footer a {
	color: var(--muted);
	font-size: 0.92rem;
	text-decoration: none;
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-block: 22px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.64rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.site-footer__bottom p {
	margin: 0;
}

.legal-nav {
	flex-direction: row !important;
	gap: 18px !important;
}

@media (max-width: 980px) {
	.hero__grid {
		min-height: 0;
		grid-template-columns: 1fr;
	}

	.hero__copy {
		padding: 85px 0 70px;
	}

	.hero__visual {
		min-height: 520px;
		border-top: 1px solid var(--line);
		border-left: 0;
	}

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

	.project-card:last-child {
		grid-column: 1 / -1;
	}

	.manifesto__grid {
		grid-template-columns: 1fr 2fr;
	}

	.manifesto__grid > div {
		grid-column: 2;
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__grid > div:first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 760px) {
	:root {
		--shell: min(100% - 28px, 1180px);
	}

	body {
		font-size: 16px;
	}

	.site-header__inner {
		min-height: 74px;
	}

	.brand small {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		padding: 20px;
		border-top: 1px solid var(--line);
		border-bottom: 1px solid var(--line);
		background: var(--ink);
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav__list {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.site-nav a {
		display: block;
		min-height: 46px;
		padding: 12px 0;
	}

	.hero__copy {
		padding: 66px 0 54px;
	}

	.hero h1 {
		font-size: clamp(3.5rem, 17vw, 5.5rem);
	}

	.hero__visual {
		min-height: 390px;
	}

	.section {
		padding: 78px 0;
	}

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

	.project-grid,
	.post-grid,
	.manifesto__grid,
	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.project-card:last-child,
	.manifesto__grid > div,
	.site-footer__grid > div:first-child {
		grid-column: auto;
	}

	.manifesto__grid {
		gap: 35px;
	}

	.empty-state {
		padding: 45px 24px;
	}

	.article {
		padding-top: 70px;
	}

	.article__content {
		margin-top: 50px;
	}

	.site-footer__grid {
		gap: 38px;
		padding-block: 58px;
	}

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

	.legal-nav {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

