@font-face {
  font-family: "Instrument Serif";
  src: url("../fontes/InstrumentSerif-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fontes/InstrumentSerif-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fontes/Newsreader-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fontes/Newsreader-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
}

@font-face {
  font-family: "Archivo";
  src: url("../fontes/Archivo-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}

:root {
  --cafe: #1c1614;
  --cafe-elevado: #251d1a;
  --ardosia: #29314a;
  --ocre: #ad9367;
  --linho: #ede6dc;
  --camelo: #decab0;
  --linha: rgba(28, 22, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--linho);
}

body {
  margin: 0;
  font-family: "Archivo", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  overflow-x: clip;
}

.shell {
  width: min(1320px, calc(100% - 96px));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-size: 25px;
  letter-spacing: -1.2px;
  line-height: 1;
}

.brand strong {
  font-weight: 700;
}

.brand .ia,
.brand .dot {
  color: var(--ocre);
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

[hidden] {
  display: none !important;
}

.filter {
  cursor: pointer;
  user-select: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.filter:hover {
  border-color: var(--ocre);
}

.filter:focus-visible {
  outline: 2px solid var(--ocre);
  outline-offset: 2px;
}

.search {
  position: relative;
}

.search input {
  width: 100%;
  height: 70px;
  padding: 0 76px 0 28px;
  border-radius: 999px;
  outline: none;
  font-size: 17px;
}

.search button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.search svg {
  width: 20px;
  height: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid currentColor;
  text-decoration: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  min-height: 190px;
  padding: 24px;
  border-radius: 22px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-family: "Instrument Serif", serif;
  font-size: 26px;
}

.card-tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
}

.card p {
  margin: 0;
  max-width: 33ch;
  font-size: 13px;
  line-height: 1.55;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-label h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.section-label a {
  color: inherit;
  font-size: 12px;
  text-decoration: none;
}

/* Rolagem suave entre âncoras */

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

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

img {
  max-width: 100%;
}

/* Rodapé */

.rodape {
  position: relative;
  z-index: 2;
  padding: 68px 0 34px;
  color: var(--linho);
  background: var(--cafe);
  border-top: 1px solid rgba(222, 202, 176, 0.22);
}

.rodape::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--ocre);
  opacity: 0.85;
}

.rodape-topo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 72px;
}

.rodape-marca .brand {
  color: var(--linho);
}

.rodape-marca p {
  margin: 18px 0 0;
  max-width: 430px;
  color: rgba(237, 230, 220, 0.62);
  font-size: 13px;
  line-height: 1.66;
}

.rodape-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, auto));
  gap: 56px;
}

.rodape-titulo {
  margin: 0 0 14px;
  color: var(--ocre);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rodape-links a {
  display: block;
  padding: 6px 0;
  color: rgba(237, 230, 220, 0.74);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.18s ease;
}

.rodape-links a:hover {
  color: var(--ocre);
}

.rodape-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid rgba(222, 202, 176, 0.16);
  color: rgba(237, 230, 220, 0.44);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
}

/* Mobile e tablet */

@media (max-width: 1080px) {
  .shell {
    width: min(1320px, calc(100% - 56px));
  }

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

  .rodape-topo {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: calc(100% - 40px);
  }

  .brand {
    font-size: 23px;
  }

  .search input {
    height: 62px;
    padding: 0 68px 0 22px;
    font-size: 16px;
  }

  .search button {
    top: 7px;
    right: 7px;
    width: 48px;
    height: 48px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    min-height: 0;
    padding: 22px;
  }

  .card-top {
    margin-bottom: 26px;
  }

  .card h3 {
    font-size: 21px;
  }

  .card p {
    max-width: none;
    font-size: 14px;
  }

  .section-label {
    flex-wrap: wrap;
    gap: 10px;
  }

  .rodape {
    padding: 52px 0 30px;
  }

  .rodape-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .rodape-marca p {
    font-size: 14px;
  }

  .rodape-links a {
    padding: 8px 0;
    font-size: 14px;
  }

  .rodape-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 40px;
  }
}
