/* Base: reset leve, utilitários tipográficos e acessibilidade. Mobile first. */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--theme-slate-bg-default);
	color: var(--theme-slate-text-primary);
	font-family: var(--font-text);
	font-size: var(--text-sm-size);
	line-height: var(--text-sm-lh);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.is-drawer-open {
	overflow: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
ul,
ol {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font: inherit;
}

ul[class],
ol[class] {
	list-style: none;
	padding: 0;
}

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

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

/* Text styles do Figma */
.t-xxs {
	font-family: var(--font-text);
	font-size: var(--text-xxs-size);
	line-height: var(--text-xxs-lh);
}

.t-xs {
	font-family: var(--font-text);
	font-size: var(--text-xs-size);
	line-height: var(--text-xs-lh);
	font-weight: 400;
}

.t-xs-medium {
	font-family: var(--font-text);
	font-size: var(--text-xs-size);
	line-height: 18px;
	font-weight: 500;
}

.t-sm {
	font-family: var(--font-text);
	font-size: var(--text-sm-size);
	line-height: var(--text-sm-lh);
	font-weight: 400;
}

.t-sm-bold {
	font-family: var(--font-text);
	font-size: var(--text-sm-size);
	line-height: var(--text-sm-lh);
	font-weight: 700;
}

.t-base {
	font-family: var(--font-text);
	font-size: var(--text-base-size);
	line-height: var(--text-base-lh);
	font-weight: 400;
}

.t-base-bold {
	font-family: var(--font-text);
	font-size: var(--text-base-size);
	line-height: var(--text-base-lh);
	font-weight: 700;
}

.t-mono-xs {
	font-family: var(--font-monotype);
	font-size: var(--mono-xs-size);
	line-height: var(--mono-xs-lh);
	letter-spacing: var(--mono-tracking);
	font-weight: 400;
}

.t-mono-sm-bold {
	font-family: var(--font-monotype);
	font-size: var(--mono-sm-size);
	line-height: var(--mono-sm-lh);
	letter-spacing: var(--mono-tracking);
	font-weight: 700;
}

.text-muted {
	color: var(--theme-slate-text-muted);
}

.sep {
	white-space: pre;
}

/* Tags e trilhas com termos longos sem espaços não podem estourar a largura no mobile. */
.breadcrumb,
.article__meta,
.article__tags,
.card__tags,
.tag-list__items {
	overflow-wrap: anywhere;
}

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

.skip-link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1000;
	padding: var(--spacing-2) var(--spacing-3);
	background: var(--theme-slate-text-primary);
	color: var(--theme-slate-bg-default);
	font-size: var(--text-xs-size);
	line-height: var(--text-xs-lh);
	transform: translateY(-100%);
}

.skip-link:focus {
	transform: none;
}

:focus-visible {
	outline: 2px solid var(--theme-slate-text-primary);
	outline-offset: 2px;
}

.site-main:focus {
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}
