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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  color: var(--color-white);
}

h1 {
  font-size: var(--fs-3xl);
  font-weight: 700;
}

h2 {
  font-size: var(--fs-2xl);
  font-weight: 600;
}

h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
}

h4 {
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--space-4);
  color: var(--color-light-gray);
  font-weight: 300;
}

a {
  color: var(--color-white);
  text-decoration: underline;
}

a:hover {
  color: var(--color-accent-600);
  text-decoration: underline;
}

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

button {
  font-family: var(--font-heading);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

label {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
}

input,
select,
textarea {
  font-family: var(--font-body);
  font-size: var(--fs-base);
}

::selection {
  background: var(--color-accent-bg);
  color: var(--color-text);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.text-success {
  color: var(--color-success-text);
}

.text-danger {
  color: var(--color-danger-text);
}

.text-center {
  text-align: center;
}

/* So o eixo vertical: "padding: X 0" zerava o gutter lateral de ".container.section" no celular. */
.section {
  padding-block: var(--space-8);
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.section-title h2 {
  margin: 0;
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.icon-lg {
  width: 36px;
  height: 36px;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.skeleton {
  color: var(--color-text-faint);
  font-style: italic;
  padding: var(--space-6) 0;
}
