* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Instrument Sans", sans-serif;
  letter-spacing: -0.7px;
  color: var(--text-color-light-100);
  user-select: none;
}

::selection {
  background-color: #ffd47d;
  color: #583e09;
}

.video {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  gap: 20px;
}

.video > video {
  width: 50%;
  border-radius: 12px;
}

/* marcador para o estudo de caso do ticket inteligente */

/* 
mark {
  font-size: inherit;
  font-weight: inherit;
  background-color: hsl(277, 100%, 75%);
  color: hsl(277, 81%, 19%);
} */

html {
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

body {
  background-color: var(--background-color-light);
  background-image: url("./imgs/grid-pattern.svg");
  background-repeat: repeat;
  background-size: 24px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  min-height: 100vh;
}

:root {
  --text-color-light-100: rgba(44, 42, 34, 1);
  --text-color--light-90: rgba(44, 42, 34, 0.9);
  --text-color-light-80: rgba(44, 42, 34, 0.8);
  --text-color-light-30: rgba(44, 42, 34, 0.3);
  --background-color-light: #f7f4e6;
  --button-color-default-light: #2c2a22;
  --button-color-hover-light: #1d1b16;
  --buton-color-pressed-light: #141310;
  --white: #fdfcf7;
}

@font-face {
  font-family: "Dico";
  src: url("./fonts/Dico.ttf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Emoji";
  src: url("./fonts/EmojiFont.ttf");
  font-weight: normal;
  font-style: normal;
}

.pixel-font {
  font-family: "Dico", serif;
  margin-right: -2px;
}

.pixel-font + .p {
  margin-right: 0px;
}

.emoji-font {
  font-family: "Emoji";
}

.mono-font {
  font-family: "DM Mono", monospace;
}

h1 {
  font-family: "Gelica", serif;
  font-weight: 500;
  letter-spacing: 0px;
  font-size: 20px;
}

header > h1 {
  font-family: "Gelica", serif;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 0.9em;
  font-size: 48px;
}

p {
  color: var(--text-color-light-80);
  line-height: 1.2em;
  font-size: 20px;
}

header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

header.container {
  margin-top: 100px;
}

header.container.case-study {
  margin-top: 0px;
}

#social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style-type: none;
}

a {
  text-decoration: none;
  position: relative;
}

a:not(
    #logo,
    .btn,
    .tooltip,
    .pixel-button,
    .case-study p a,
    .case-study li a,
    .next-case-study-link
  )::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1.5px;
  width: 0%;
  height: 1px;
  background-color: var(--text-color-light-100);
  transition: width 0.3s ease;
}

a:not(#logo, .btn, .tooltip, .pixel-button):hover::after {
  width: 100%;
}

#social-links > li > a {
  font-size: 16px;
}

nav {
  background-color: var(--white);
  position: fixed;
  left: 50%;
  top: 20px;
  width: 90vw;
  max-width: 600px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  border-radius: 200px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.04), 0px 8px 12px rgba(0, 0, 0, 0.02),
    0px 16px 24px rgba(0, 0, 0, 0.01);
  z-index: 2;
  opacity: 1;
  transition: all 0.25s ease-in-out;
}

#nav-toggle {
  display: none;
}

#hamburger {
  display: none;
  font-size: 20px;
  color: var(--text-color-light-100);
  cursor: pointer;
}

nav > ul {
  display: flex;
  list-style-type: none;
  gap: 20px;
}

.nav-link {
  color: var(--text-color-light-80);
}

.btn {
  padding: 10px 20px;
  background-color: var(--button-color-default-light);
  color: var(--white);
  border-radius: 200px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.25s ease;
  width: fit-content;
}

.btn:hover {
  background-color: var(--button-color-hover-light);
  transition: background-color 0.25s ease;
}

.btn:active {
  background-color: var(--buton-color-pressed-light);
  box-shadow: none;
}

.case-study-article {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  padding: 28px 16px;
  border-radius: 24px;
  gap: 20px;
}

.next-case-study {
  margin: 42px 0;
  display: flex;
  flex-direction: row-reverse;
  background-color: var(--white);
  padding: 28px 16px;
  border-radius: 24px;
  gap: 20px;
  transition: all ease-in-out 0.3s;
}

.next-case-study-content h2 {
  font-size: 16px;
  color: var(--text-color-light-80);
}

.next-case-study-content {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: space-around;
}

.next-case-study-content div {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.next-case-study-content > img {
  width: 280px;
}

.next-case-study:hover {
  transform: scale(102%);
  transition: all ease-in-out 0.3s;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.04), 0px 8px 12px rgba(0, 0, 0, 0.02),
    0px 16px 24px rgba(0, 0, 0, 0.01);
}

.eyebrow-heading.mono-font:not(
    .case-study .eyebrow-heading.mono-font,
    .tooltip
  ) {
  font-weight: 500;
  color: var(--text-color-light-90);
  letter-spacing: normal;
  text-transform: uppercase;
  font-size: 18px;
}

.case-study h2.eyebrow-heading.mono-font,
.case-study a.eyebrow-heading.mono-font {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-color-light-100);
  letter-spacing: normal;
  font-weight: 500;
  text-transform: uppercase;
}

.case-study h3.eyebrow-heading.mono-font {
  font-size: 18px;
  text-transform: none;
  font-weight: 500;
  letter-spacing: -3%;
}

mark.eyebrow-heading {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: normal;
  font-weight: 500;
}

header > img {
  position: absolute;
  top: -20px;
}

.case-study-article > img,
.project > img,
.next-case-study img {
  border-radius: 12px;
}

.case-study-content {
  display: flex;
  flex-direction: column;

  gap: 12px;
}

.case-studies .case-study-content > h1 {
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  text-wrap-style: pretty;
}

.case-studies,
.professional,
.academic,
.awards {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#about {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 32px;
}

.about-img {
  border-radius: 20px;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-text > h1 {
  font-size: 36px;
  line-height: 0.9em;
  font-style: italic;
  font-weight: 400;
}

.about-text > p {
  font-size: 18px;
}

p > .semi {
  color: inherit;
  font-weight: 500;
}

p > .dark {
  color: var(--text-color-light-100);
  font-weight: 500;
}

.emoticon {
  color: inherit;
}

footer {
  background-color: var(--white);
  padding: 41px;
  border-radius: 24px 24px 0 0;
  width: 100%;
  margin-top: auto;
  position: relative;
  bottom: -20px;
}

footer > .container {
  margin-top: 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 72px;
}

.footer-text {
  display: flex;
  width: 100%;
  max-width: 300px;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.footer-text > p {
  width: 100%;
  font-size: 16px;
  line-height: 1.5em;
  color: var(--text-color-light-100);
}

.footer-text > p > .emoji-font {
  font-size: 20px;
  margin-left: 4px;
  line-height: 12px;
}

.copy-info {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.copy-info > span {
  color: var(--text-color-light-80);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: fit-content;
}

.footer-links > a {
  font-size: 20px;
  width: fit-content;
}

.separator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 0;
}

.tooltip {
  position: relative;
  cursor: pointer;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 120%;
  top: -10%;
  background-color: var(--buton-color-pressed-light);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 14px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.tooltip:focus::after {
  visibility: visible;
  opacity: 1;
}

a.pixel-font {
  font-size: 100%;
  word-break: break-all;
}

/* página sobre */

.experience > h2 {
  font-family: "Gelica", serif;
  font-weight: 300;
  font-size: 36px;
}

.experience p {
  font-size: 18px;
}

.role {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.experience-separator {
  display: flex;
  align-items: center;
  background-color: var(--text-color-light-80);
  width: 1px;
  height: 28px;
  padding: 10px 0;
  margin-left: 18px;
}

.btn > img {
  width: 16px;
  height: 16px;
  position: relative;
  top: 2px;
}

.mini {
  font-size: 36px;
  display: block;
  font-family: "Gelica", serif;
  font-weight: 300;
  font-style: italic;
  max-width: 400px;
  line-height: 0.9em;
  text-align: center;
  margin: 0 auto;
}

.collage > span {
  font-size: 36px;
  display: block;
  font-family: "Gelica", serif;
  font-weight: 300;
  color: var(--text-color-light-80);
  text-align: center;
}

.collage > img {
  max-width: 100%;
  margin-top: 36px;
}

.image-overlay {
  position: relative;
  width: 100%;
  max-width: 600px;
  overflow-x: clip;
}

figure > img {
  width: 100%;
}

.image-overlay img {
  width: 220%;
  height: auto;
  position: relative;
  transform: translate(-40%, 0);
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  width: fit-content;
  gap: 24px;
}

.h-overlay {
  font-size: 32px;
  font-family: "Gelica", serif;
  font-weight: 300;
  font-style: italic;
  max-width: 230px;
  line-height: 0.9em;
}

.p-overlay {
  width: 125%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 18px;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: start;
  justify-content: space-between;
  margin: 56px auto 0 auto;
  row-gap: 28px;
}

.project {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  padding: 28px 16px;
  border-radius: 20px;
  gap: 20px;
  width: 48%;
  height: 420px;
  justify-content: start;
}

.project > .case-study-content > h1 {
  font-style: italic;
  font-weight: 400;
  text-wrap-style: balance;
}

.pixels-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 32px 20% 0 20%;
  gap: 24px;
}

.case-study > a:not(.case-study > a.btn) {
  display: inline-block;
  width: fit-content;
  margin-bottom: 20px;
  color: var(--text-color-light-80);
}

.case-study > h1 {
  line-height: 100%;
}

.case-study > h2 {
  font-size: 18px;
  color: var(--text-color-light-80);
  font-weight: 600;
}

.case-study > h2:not(:nth-of-type(1)) {
  margin-top: 32px;
}

.case-study > h3 {
  margin-top: 12px;
}

.case-study p,
.case-study ul {
  font-size: 20px;
  color: var(--text-color--light-90);
  line-height: 130%;
  letter-spacing: -0.4%;
}

.case-study .specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: start;
  align-items: center;
  cursor: default;
}

.case-study .specs p {
  display: inline-block;
  width: fit-content;
  border: 1px var(--text-color-light-100) solid;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-color-light-100);
}

em {
  font-style: normal;
  font-weight: 500;
}

main {
  flex: 1;
  margin-bottom: 32px;
}

main.container.case-study {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

quote {
  display: block;
  width: fit-content;
  border: 1px var(--text-color-light-100) solid;
  padding: 24px 32px;
  border-radius: 4px;
  font-size: 20px;
  color: var(--text-color--light-90);
  line-height: 130%;
  letter-spacing: -0.4%;
  margin: 20px 0;
}

blockquote {
  line-height: 130%;
  font-size: 24px;
  border-left: 4px var(--text-color-light-100) solid;
  padding-left: 24px;
  margin: 20px 0;
}

.case-study ul {
  padding-left: 20px;
  list-style: none;
}

.case-study ul li {
  margin-bottom: 16px;
}

.case-study ul li::before {
  content: "↳";
  margin-right: 12px;
  color: var(--text-color-light-100);
}

.full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  max-width: 1800px;
  border-radius: 0;
}

figcaption {
  font-size: 16px;
  color: var(--text-color-light-80);
  text-align: center;
  margin-top: 12px;
  margin-bottom: 32px;
}

.case-study blockquote ul li {
  margin-bottom: 0;
  margin-top: 8px;
}

.case-study p a,
.case-study li a {
  text-decoration: underline;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.app-name > img {
  width: 24px;
  border-radius: 4px;
}

th {
  background-color: hsl(209, 100%, 40%);
  color: #e6eef6;
  font-weight: 500;
  font-size: 18px;
  border: 1px solid hsl(209, 100%, 71%);
}

tr:nth-child(even) {
  background-color: #e6eef6;
}

tr:nth-child(odd) {
  background-color: #f9f9f9;
}

.app-name {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  border: none;
}

.rating {
  text-align: center;
}

.video-div {
  background-color: #00101f;
  border-radius: 24px;
  padding: 12px 32px;
}

/* responsividade */

@media (max-width: 680px) {
  /* página de projetos responsiva */

  .projects {
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 56px auto 0 auto;
    row-gap: 28px;
  }

  .project {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    padding: 28px 16px;
    border-radius: 24px;
    gap: 20px;
    width: 100%;
    height: fit-content;
    justify-content: center;
  }
}

@media (max-width: 635px) {
  .pixels-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 32px 0 0 0;
    gap: 24px;
  }

  /* caderno na página sobre responsiva (ele some) */

  .image-overlay {
    height: fit-content;
    max-width: 100%;
    overflow-x: hidden;
  }

  .image-overlay picture img {
    display: none;
  }

  .text-overlay {
    position: relative;
    width: 80%;
    margin-top: 72px;
    margin-bottom: 72px;
    transform: none;
    top: 0;
    left: 10%;
  }

  .p-overlay p {
    width: 80%;
  }
}

@media (max-width: 600px) {
  /* navegação responsiva */

  #hamburger {
    display: block;
    user-select: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--white);
    position: absolute;
    top: 60px;
    width: 100%;
    font-size: 18px;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 24px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.04),
      0px 8px 12px rgba(0, 0, 0, 0.02), 0px 16px 24px rgba(0, 0, 0, 0.01);
  }

  #nav-toggle:checked + #hamburger + .nav-links {
    display: flex;
    right: 0;
    z-index: 3;
  }

  /* página sobre responsiva */

  #about {
    flex-direction: column;
  }

  .about-img {
    max-width: 100vw;
  }

  /* rodapé responsivo */

  footer {
    height: fit-content;
  }

  footer > .container {
    flex-direction: column;
    height: fit-content;
  }

  .footer-text {
    max-width: 100%;
    flex-direction: row;
  }

  .video {
    flex-wrap: wrap;
  }

  .video > video {
    width: 100%;
  }

  header > img {
    height: 180px;
    object-fit: cover;
  }
}

@media (max-width: 656px) {
  /* cortar o caderno da página sobre para não aumentar a largura da pagina e a navegação ficar desalinhada */

  .image-overlay {
    overflow-x: hidden;
  }
}

@media (max-width: 600px) {
  #hamburger {
    display: block;
    user-select: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--white);
    position: absolute;
    top: 60px;
    width: 100%;
    font-size: 18px;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 24px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.04),
      0px 8px 12px rgba(0, 0, 0, 0.02), 0px 16px 24px rgba(0, 0, 0, 0.01);
  }

  iframe:nth-of-type(1) {
    height: auto;
  }

  #nav-toggle:checked + #hamburger + .nav-links {
    display: flex;
    right: 0;
    z-index: 3;
  }

  #about {
    flex-direction: column;
  }

  .about-img {
    max-width: 100vw;
  }

  footer {
    height: fit-content;
  }

  footer > .container {
    flex-direction: column;
    height: fit-content;
  }

  .footer-text {
    max-width: 100%;
    flex-direction: row;
  }

  .period {
    text-align: right;
  }

  .next-case-study {
    flex-direction: column;
    padding-top: 24px;
  }

  .next-case-study-content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: min-content;
  }

  .next-case-study img {
    width: 100%;
  }

  @media (max-width: 400px) {
    .collage h1 {
      font-size: 24px;
    }

    .case-study > h1 {
      line-height: 100%;
      font-size: 42px;
    }
  }

  @media (max-width: 370px) {
    body {
      padding: 0;
      overflow-x: hidden;
    }

    nav {
      left: 10px;
      transform: none;
    }

    .container {
      width: 100%;
      padding: 10px;
    }

    nav {
      padding: 12px 20px;
    }

    #social-links {
      flex-wrap: wrap;
      word-wrap: wrap;
      word-break: break-all;
    }

    header h1 {
      font-size: 32px;
    }

    p {
      font-size: 16px;
    }

    .eyebrow-heading {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: normal;
    }

    .btn {
      font-size: 14px;
    }

    .footer-links > a {
      font-size: 16px;
    }

    .tooltip::after {
      left: -40%;
      top: 160%;
      height: fit-content;
    }

    .footer-text {
      flex-direction: column;
    }
  }
}

.nav-hidden {
  opacity: 0;
  top: -50px;
  transition: all 0.25s ease-in-out;
}
